#! /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 uint32_t tmp, old = 0; uint64_t tmp64, old64 = 0; int main () { __atomic_thread_fence(__ATOMIC_SEQ_CST); __atomic_compare_exchange_n(&tmp, &old, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); __atomic_add_fetch(&tmp, 1, __ATOMIC_RELAXED); __atomic_compare_exchange_n(&tmp64, &old64, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); __atomic_add_fetch(&tmp64, 1, __ATOMIC_RELAXED); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_cv_asm_builtin="BUILTIN_GCC" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # Check for 128-bit support # 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 atomic_compare_exchange_n_128_result atomic_compare_exchange_n_128_CFLAGS_save atomic_compare_exchange_n_128_LIBS_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=\"atomic_compare_exchange_n_128_result atomic_compare_exchange_n_128_CFLAGS_save atomic_compare_exchange_n_128_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` atomic_compare_exchange_n_128_CFLAGS_save=$CFLAGS atomic_compare_exchange_n_128_LIBS_save=$LIBS # Do we have __sync_bool_compare_and_swap? # Use a special macro because we need to check with a few different # CFLAGS/LIBS. # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange_n" >&5 $as_echo_n "checking for __atomic_compare_exchange_n... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, desired.real, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED); if ( !(r == false && ptr.real == expected.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 expected = ptr; ompi128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, desired.real, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED); if (!(r == true && ptr.real == desired.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange_n with -mcx16" >&5 $as_echo_n "checking for __atomic_compare_exchange_n with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, desired.real, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED); if ( !(r == false && ptr.real == expected.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 expected = ptr; ompi128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, desired.real, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED); if (!(r == true && ptr.real == desired.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange_n with -latomic" >&5 $as_echo_n "checking for __atomic_compare_exchange_n with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, desired.real, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED); if ( !(r == false && ptr.real == expected.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 expected = ptr; ompi128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, desired.real, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED); if (!(r == true && ptr.real == desired.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __atomic_compare_exchange_n() gives correct results" >&5 $as_echo_n "checking if __atomic_compare_exchange_n() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, desired.real, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED); if ( !(r == false && ptr.real == expected.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 expected = ptr; ompi128 desired = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real, desired.real, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED); if (!(r == true && ptr.real == desired.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : atomic_compare_exchange_n_128_result=1 else atomic_compare_exchange_n_128_result=0 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 we have it and it works, check to make sure it is always lock # free. if test $atomic_compare_exchange_n_128_result -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __int128 atomic compare-and-swap is always lock-free" >&5 $as_echo_n "checking if __int128 atomic compare-and-swap is always lock-free... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { if (!__atomic_always_lock_free(16, 0)) { return 1; } ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else atomic_compare_exchange_n_128_result=0 # If this test fails, need to reset CFLAGS/LIBS (the # above tests atomically set CFLAGS/LIBS or not; this # test is running after the fact, so we have to undo # the side-effects of setting CFLAGS/LIBS if the above # tests passed). CFLAGS=$atomic_compare_exchange_n_128_CFLAGS_save LIBS=$atomic_compare_exchange_n_128_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_GCC_BUILTIN_CSWAP_INT128 $atomic_compare_exchange_n_128_result _ACEOF if test $atomic_compare_exchange_n_128_result -eq 0; 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 sync_bool_compare_and_swap_128_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=\"sync_bool_compare_and_swap_128_result\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Do we have __sync_bool_compare_and_swap? # Use a special macro because we need to check with a few different # CFLAGS/LIBS. # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 $as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : sync_bool_compare_and_swap_128_result=1 else sync_bool_compare_and_swap_128_result=0 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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result _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 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 "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5 $as_echo_n "checking for __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long tmp; int main () { __sync_synchronize(); __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_cv_asm_builtin="BUILTIN_SYNC" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5 $as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include uint64_t tmp; int main () { __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_asm_sync_have_64bit=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_asm_sync_have_64bit=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext cat >>confdefs.h <<_ACEOF #define OPAL_ASM_SYNC_HAVE_64BIT $opal_asm_sync_have_64bit _ACEOF # Check for 128-bit support # 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 sync_bool_compare_and_swap_128_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=\"sync_bool_compare_and_swap_128_result\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Do we have __sync_bool_compare_and_swap? # Use a special macro because we need to check with a few different # CFLAGS/LIBS. # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 $as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : sync_bool_compare_and_swap_128_result=1 else sync_bool_compare_and_swap_128_result=0 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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result _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 fi if test "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" = "yes"; then : as_fn_error $? "__sync builtin atomics requested but not found." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .proc/endp is needed" >&5 $as_echo_n "checking if .proc/endp is needed... " >&6; } if ${opal_cv_asm_need_proc+:} false; then : $as_echo_n "(cached) " >&6 else opal_cv_asm_need_proc="no" cat >conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 opal_cv_asm_need_proc="yes" else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 : fi rm -rf conftest* unset opal_assemble rm -f conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_need_proc" >&5 $as_echo "$opal_cv_asm_need_proc" >&6; } if test "$opal_cv_asm_need_proc" = "yes" ; then opal_cv_asm_proc=".proc" opal_cv_asm_endproc=".endp" else opal_cv_asm_proc="#" opal_cv_asm_endproc="#" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking directive for setting text section" >&5 $as_echo_n "checking directive for setting text section... " >&6; } opal_cv_asm_text="" if test "$opal_cv_c_compiler_vendor" = "microsoft" ; then # text section will be brought in with the rest of # header for MS - leave blank for now opal_cv_asm_text="" else case $host in *-aix*) opal_cv_asm_text=".csect .text[PR]" ;; *) opal_cv_asm_text=".text" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_text" >&5 $as_echo "$opal_cv_asm_text" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ASM_TEXT "$opal_cv_asm_text" _ACEOF OPAL_ASM_TEXT="$opal_cv_asm_text" { $as_echo "$as_me:${as_lineno-$LINENO}: checking directive for exporting symbols" >&5 $as_echo_n "checking directive for exporting symbols... " >&6; } opal_cv_asm_global="" if test "$opal_cv_c_compiler_vendor" = "microsoft" ; then opal_cv_asm_global="PUBLIC" else case $host in *) opal_cv_asm_global=".globl" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_global" >&5 $as_echo "$opal_cv_asm_global" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ASM_GLOBAL "$opal_cv_asm_global" _ACEOF OPAL_ASM_GLOBAL="$opal_cv_asm_global" # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .note.GNU-stack is needed" >&5 $as_echo_n "checking if .note.GNU-stack is needed... " >&6; } if ${opal_cv_asm_gnu_stack_result+:} false; then : $as_echo_n "(cached) " >&6 else if test "$OBJDUMP" != ""; then : # first, see if a simple C program has it set cat >conftest.c <&5 $CC $CFLAGS -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:39497: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status $OBJDUMP -x conftest.$OBJEXT | $GREP '\.note\.GNU-stack' > /dev/null && opal_cv_asm_gnu_stack_result=yes else unset opal_status # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:39510: 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_cv_asm_gnu_stack_result=no fi if test "$opal_cv_asm_gnu_stack_result" != "yes" ; then opal_cv_asm_gnu_stack_result="no" fi rm -rf conftest.* else opal_cv_asm_gnu_stack_result="no" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_gnu_stack_result" >&5 $as_echo "$opal_cv_asm_gnu_stack_result" >&6; } if test "$opal_cv_asm_gnu_stack_result" = "yes" ; then opal_cv_asm_gnu_stack=1 else opal_cv_asm_gnu_stack=0 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking suffix for labels" >&5 $as_echo_n "checking suffix for labels... " >&6; } opal_cv_asm_label_suffix="" case $host in *) opal_cv_asm_label_suffix=":" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_label_suffix" >&5 $as_echo "$opal_cv_asm_label_suffix" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ASM_LABEL_SUFFIX "$opal_cv_asm_label_suffix" _ACEOF OPAL_ASM_LABEL_SUFFIX="$opal_cv_asm_label_suffix" { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for global symbol labels" >&5 $as_echo_n "checking prefix for global symbol labels... " >&6; } if ${opal_cv_asm_gsym+:} false; then : $as_echo_n "(cached) " >&6 else opal_cv_asm_gsym="none" for sym in "_" "" "." ; do asm_result=0 echo "configure: trying $sym" >&5 cat > conftest_c.c <conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 opal_compile="$CC $CFLAGS -I. conftest_c.c -c > conftest.cmpl 2>&1" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$opal_compile\""; } >&5 (eval $opal_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ; then # save the warnings cat conftest.cmpl >&5 opal_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest $LDFLAGS $LIBS > conftest.link 2>&1" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$opal_link\""; } >&5 (eval $opal_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ; then # save the warnings cat conftest.link >&5 asm_result=1 else cat conftest.link >&5 echo "configure: failed C program was: " >&5 cat conftest_c.c >&5 echo "configure: failed ASM program was: " >&5 cat conftest.s >&5 asm_result=0 fi else # save output and failed program cat conftest.cmpl >&5 echo "configure: failed C program was: " >&5 cat conftest.c >&5 asm_result=0 fi else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 asm_result=0 fi rm -rf conftest* unset opal_assemble if test "$asm_result" = "1" ; then opal_cv_asm_gsym="$sym" break fi done rm -rf conftest.* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_gsym" >&5 $as_echo "$opal_cv_asm_gsym" >&6; } if test "$opal_cv_asm_gsym" = "none" ; then as_fn_error $? "Could not determine global symbol label prefix" "$LINENO" 5 fi cat >>confdefs.h <<_ACEOF #define OPAL_ASM_GSYM "$opal_cv_asm_gsym" _ACEOF OPAL_ASM_GSYM="$opal_cv_asm_gsym" { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for lsym labels" >&5 $as_echo_n "checking prefix for lsym labels... " >&6; } if ${opal_cv_asm_lsym+:} false; then : $as_echo_n "(cached) " >&6 else opal_cv_asm_lsym="L" for sym in L .L $ L$ ; do asm_result=0 echo "configure: trying $sym" >&5 cat >conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 # ok, we succeeded at assembling. see if we can nm, # throwing the results in a file if $NM conftest.$OBJEXT > conftest.out 2>&5 ; then if test "`$GREP mytestlabel conftest.out`" = "" ; then # there was no symbol... looks promising to me opal_cv_asm_lsym="$sym" asm_result=1 elif test "`$GREP ' [Nt] .*mytestlabel' conftest.out`" = "" ; then # see if we have a non-global-ish symbol # but we should see if we can do better. opal_cv_asm_lsym="$sym" fi else # not so much on the NM goodness :/ echo "$NM failed. Output from NM was:" >&5 cat conftest.out >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $NM could not read object file" >&5 $as_echo "$as_me: WARNING: $NM could not read object file" >&2;} fi else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 : fi rm -rf conftest* unset opal_assemble if test "$asm_result" = "1" ; then break fi done rm -f conftest.out unset asm_result sym fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_lsym" >&5 $as_echo "$opal_cv_asm_lsym" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ASM_LSYM "$opal_cv_asm_lsym" _ACEOF OPAL_ASM_LSYM="$opal_cv_asm_lsym" { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for function in .type" >&5 $as_echo_n "checking prefix for function in .type... " >&6; } if ${opal_cv_asm_type+:} false; then : $as_echo_n "(cached) " >&6 else opal_cv_asm_type="" case "${host}" in *-sun-solaris*) # GCC on solaris seems to accept just about anything, not # that what it defines actually works... So just hardwire # to the right answer opal_cv_asm_type="#" ;; *) for type in @ \# % ; do asm_result=0 echo "configure: trying $type" >&5 cat >conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 opal_cv_asm_type="${type}" asm_result=1 else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 : fi rm -rf conftest* unset opal_assemble if test "$asm_result" = "1" ; then break fi done ;; esac rm -f conftest.out unset asm_result type fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_type" >&5 $as_echo "$opal_cv_asm_type" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ASM_TYPE "$opal_cv_asm_type" _ACEOF OPAL_ASM_TYPE="$opal_cv_asm_type" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .size is needed" >&5 $as_echo_n "checking if .size is needed... " >&6; } if ${opal_cv_asm_need_size+:} false; then : $as_echo_n "(cached) " >&6 else opal_cv_asm_need_size="no" cat >conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 opal_cv_asm_need_size="yes" else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 : fi rm -rf conftest* unset opal_assemble rm -f conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_need_size" >&5 $as_echo "$opal_cv_asm_need_size" >&6; } if test "$opal_cv_asm_need_size" = "yes" ; then opal_asm_size=1 else opal_asm_size=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_ASM_SIZE "$opal_asm_size" _ACEOF OPAL_ASM_SIZE="$opal_asm_size" unset asm_result { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align directive takes logarithmic value" >&5 $as_echo_n "checking if .align directive takes logarithmic value... " >&6; } if ${opal_cv_asm_align_log+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 opal_asm_addr=`$NM conftest.$OBJEXT | $GREP foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'` else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 opal_asm_addr="" fi rm -rf conftest* unset opal_assemble # test for both 16 and 10 (decimal and hex notations) echo "configure: .align test address offset is $opal_asm_addr" >&5 if test "$opal_asm_addr" = "16" || test "$opal_asm_addr" = "10" ; then opal_cv_asm_align_log="yes" else opal_cv_asm_align_log="no" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_align_log" >&5 $as_echo "$opal_cv_asm_align_log" >&6; } if test "$opal_cv_asm_align_log" = "yes" || test "$opal_cv_asm_align_log" = "1" ; then opal_asm_align_log_result=1 else opal_asm_align_log_result=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_ASM_ALIGN_LOG $asm_align_log_result _ACEOF unset omp_asm_addr asm_result # find our architecture for purposes of assembly stuff opal_cv_asm_arch="UNSUPPORTED" OPAL_GCC_INLINE_ASSIGN="" OPAL_ASM_SUPPORT_64BIT=0 case "${host}" in x86_64-*x32) opal_cv_asm_arch="X86_64" OPAL_ASM_SUPPORT_64BIT=1 OPAL_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)' ;; i?86-*|x86_64*|amd64*) if test "$ac_cv_sizeof_long" = "4" ; then opal_cv_asm_arch="IA32" else opal_cv_asm_arch="X86_64" fi OPAL_ASM_SUPPORT_64BIT=1 OPAL_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)' # 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 cmpxchg16b_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=\"cmpxchg16b_result\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpxchg16b" >&5 $as_echo_n "checking for cmpxchg16b... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned char tmp[16]; int main () { __asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpxchg16b with -mcx16" >&5 $as_echo_n "checking for cmpxchg16b with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned char tmp[16]; int main () { __asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpxchg16b with -latomic" >&5 $as_echo_n "checking for cmpxchg16b with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned char tmp[16]; int main () { __asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cmpxchg16b() gives correct results" >&5 $as_echo_n "checking if cmpxchg16b() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned char tmp[16]; int main () { __asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc"); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : cmpxchg16b_result=1 else cmpxchg16b_result=0 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 we have it, make sure it works. if test $cmpxchg16b_result -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cmpxchg16b_result works" >&5 $as_echo_n "checking if cmpxchg16b_result works... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include union opal_counted_pointer_t { struct { uint64_t counter; uint64_t item; } data; #if defined(HAVE___INT128) && HAVE___INT128 __int128 value; #elif defined(HAVE_INT128_T) && HAVE_INT128_T int128_t value; #endif }; typedef union opal_counted_pointer_t opal_counted_pointer_t; int main(int argc, char* argv) { volatile opal_counted_pointer_t a; opal_counted_pointer_t b; a.data.counter = 0; a.data.item = 0x1234567890ABCDEF; b.data.counter = a.data.counter; b.data.item = a.data.item; /* bozo checks */ assert(16 == sizeof(opal_counted_pointer_t)); assert(a.data.counter == b.data.counter); assert(a.data.item == b.data.item); /* * the following test fails on buggy compilers * so far, with icc -o conftest conftest.c * - intel icc 14.0.0.080 (aka 2013sp1) * - intel icc 14.0.1.106 (aka 2013sp1u1) * older and more recents compilers work fine * buggy compilers work also fine but only with -O0 */ #if (defined(HAVE___INT128) && HAVE___INT128) || (defined(HAVE_INT128_T) && HAVE_INT128_T) return (a.value != b.value); #else return 0; #endif } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else cmpxchg16b_result=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CMPXCHG16B $cmpxchg16b_result _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 ;; ia64-*) opal_cv_asm_arch="IA64" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5 $as_echo_n "checking for __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long tmp; int main () { __sync_synchronize(); __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_cv_asm_builtin="BUILTIN_SYNC" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5 $as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include uint64_t tmp; int main () { __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_asm_sync_have_64bit=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_asm_sync_have_64bit=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext cat >>confdefs.h <<_ACEOF #define OPAL_ASM_SYNC_HAVE_64BIT $opal_asm_sync_have_64bit _ACEOF # Check for 128-bit support # 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 sync_bool_compare_and_swap_128_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=\"sync_bool_compare_and_swap_128_result\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Do we have __sync_bool_compare_and_swap? # Use a special macro because we need to check with a few different # CFLAGS/LIBS. # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 $as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : sync_bool_compare_and_swap_128_result=1 else sync_bool_compare_and_swap_128_result=0 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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result _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 ;; aarch64*) opal_cv_asm_arch="ARM64" OPAL_ASM_SUPPORT_64BIT=1 OPAL_ASM_ARM_VERSION=8 cat >>confdefs.h <<_ACEOF #define OPAL_ASM_ARM_VERSION $OPAL_ASM_ARM_VERSION _ACEOF # If built-in atomics were not specifically request then disable the # use of built-in atomics. The performance of Open MPI when using the # built-ins is worse than when they are not in use. if test "$enable_builtin_atomics" != "yes" ; then opal_cv_asm_builtin="BUILTIN_NO" fi OPAL_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)' ;; armv7*|arm-*-linux-gnueabihf) opal_cv_asm_arch="ARM" OPAL_ASM_SUPPORT_64BIT=1 OPAL_ASM_ARM_VERSION=7 cat >>confdefs.h <<_ACEOF #define OPAL_ASM_ARM_VERSION $OPAL_ASM_ARM_VERSION _ACEOF OPAL_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)' ;; armv6*) opal_cv_asm_arch="ARM" OPAL_ASM_SUPPORT_64BIT=0 OPAL_ASM_ARM_VERSION=6 CCASFLAGS="$CCASFLAGS -march=armv7-a" cat >>confdefs.h <<_ACEOF #define OPAL_ASM_ARM_VERSION $OPAL_ASM_ARM_VERSION _ACEOF OPAL_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)' ;; armv5*linux*|armv4*linux*|arm-*-linux-gnueabi) # uses Linux kernel helpers for some atomic operations opal_cv_asm_arch="ARM" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5 $as_echo_n "checking for __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long tmp; int main () { __sync_synchronize(); __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_cv_asm_builtin="BUILTIN_SYNC" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5 $as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include uint64_t tmp; int main () { __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_asm_sync_have_64bit=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_asm_sync_have_64bit=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext cat >>confdefs.h <<_ACEOF #define OPAL_ASM_SYNC_HAVE_64BIT $opal_asm_sync_have_64bit _ACEOF # Check for 128-bit support # 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 sync_bool_compare_and_swap_128_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=\"sync_bool_compare_and_swap_128_result\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Do we have __sync_bool_compare_and_swap? # Use a special macro because we need to check with a few different # CFLAGS/LIBS. # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 $as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : sync_bool_compare_and_swap_128_result=1 else sync_bool_compare_and_swap_128_result=0 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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result _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 ;; mips-*|mips64*) # Should really find some way to make sure that we are on # a MIPS III machine (r4000 and later) opal_cv_asm_arch="MIPS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5 $as_echo_n "checking for __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long tmp; int main () { __sync_synchronize(); __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_cv_asm_builtin="BUILTIN_SYNC" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5 $as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include uint64_t tmp; int main () { __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_asm_sync_have_64bit=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_asm_sync_have_64bit=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext cat >>confdefs.h <<_ACEOF #define OPAL_ASM_SYNC_HAVE_64BIT $opal_asm_sync_have_64bit _ACEOF # Check for 128-bit support # 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 sync_bool_compare_and_swap_128_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=\"sync_bool_compare_and_swap_128_result\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Do we have __sync_bool_compare_and_swap? # Use a special macro because we need to check with a few different # CFLAGS/LIBS. # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 $as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : sync_bool_compare_and_swap_128_result=1 else sync_bool_compare_and_swap_128_result=0 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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result _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 ;; powerpc-*|powerpc64-*|powerpcle-*|powerpc64le-*|rs6000-*|ppc-*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PowerPC registers have r prefix" >&5 $as_echo_n "checking if PowerPC registers have r prefix... " >&6; } cat >conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 opal_cv_asm_powerpc_r_reg=0 else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 cat >conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 opal_cv_asm_powerpc_r_reg=1 else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 as_fn_error $? "Can not determine how to use PPC registers" "$LINENO" 5 fi rm -rf conftest* unset opal_assemble fi rm -rf conftest* unset opal_assemble if test "$opal_cv_asm_powerpc_r_reg" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi cat >>confdefs.h <<_ACEOF #define OPAL_POWERPC_R_REGISTERS $opal_cv_asm_powerpc_r_reg _ACEOF if test "$ac_cv_sizeof_long" = "4" ; then opal_cv_asm_arch="POWERPC32" # Note that on some platforms (Apple G5), even if we are # compiling in 32 bit mode (and therefore should assume # sizeof(long) == 4), we can use the 64 bit test and set # operations. if test "$ac_cv_sizeof_long" != "4" ; then # this function should only be called in the 32 bit case as_fn_error $? "CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit PowerPC assembly support" >&5 $as_echo_n "checking for 64-bit PowerPC assembly support... " >&6; } case $host in *-darwin*) ppc64_result=0 if test "$opal_cv_asm_powerpc_r_reg" = "1" ; then ldarx_asm=" ldarx r1,r1,r1"; else ldarx_asm=" ldarx 1,1,1"; fi cat >conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 ppc64_result=1 else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 ppc64_result=0 fi rm -rf conftest* unset opal_assemble ;; *) ppc64_result=0 ;; esac if test "$ppc64_result" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } OPAL_ASM_SUPPORT_64BIT=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } : fi unset ppc64_result ldarx_asm elif test "$ac_cv_sizeof_long" = "8" ; then OPAL_ASM_SUPPORT_64BIT=1 opal_cv_asm_arch="POWERPC64" else as_fn_error $? "Could not determine PowerPC word size: $ac_cv_sizeof_long" "$LINENO" 5 fi OPAL_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)' # See the following github PR and some performance numbers/discussion: # https://github.com/open-mpi/ompi/pull/8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $opal_cv_asm_arch: Checking if force gcc atomics requested" >&5 $as_echo_n "checking $opal_cv_asm_arch: Checking if force gcc atomics requested... " >&6; } if test $force_gcc_atomics_ppc = 0 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_cv_asm_builtin="BUILTIN_NO" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes" >&5 $as_echo "Yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $opal_cv_asm_arch: gcc atomics have been known to perform poorly on powerpc." >&5 $as_echo "$as_me: WARNING: $opal_cv_asm_arch: gcc atomics have been known to perform poorly on powerpc." >&2;} fi ;; # There is no current difference between s390 and s390x # But use two different defines in case some come later # as s390 is 31bits while s390x is 64bits s390-*) opal_cv_asm_arch="S390" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5 $as_echo_n "checking for __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long tmp; int main () { __sync_synchronize(); __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_cv_asm_builtin="BUILTIN_SYNC" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5 $as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include uint64_t tmp; int main () { __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_asm_sync_have_64bit=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_asm_sync_have_64bit=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext cat >>confdefs.h <<_ACEOF #define OPAL_ASM_SYNC_HAVE_64BIT $opal_asm_sync_have_64bit _ACEOF # Check for 128-bit support # 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 sync_bool_compare_and_swap_128_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=\"sync_bool_compare_and_swap_128_result\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Do we have __sync_bool_compare_and_swap? # Use a special macro because we need to check with a few different # CFLAGS/LIBS. # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 $as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : sync_bool_compare_and_swap_128_result=1 else sync_bool_compare_and_swap_128_result=0 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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result _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 ;; s390x-*) opal_cv_asm_arch="S390X" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5 $as_echo_n "checking for __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long tmp; int main () { __sync_synchronize(); __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_cv_asm_builtin="BUILTIN_SYNC" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5 $as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include uint64_t tmp; int main () { __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_asm_sync_have_64bit=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_asm_sync_have_64bit=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext cat >>confdefs.h <<_ACEOF #define OPAL_ASM_SYNC_HAVE_64BIT $opal_asm_sync_have_64bit _ACEOF # Check for 128-bit support # 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 sync_bool_compare_and_swap_128_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=\"sync_bool_compare_and_swap_128_result\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Do we have __sync_bool_compare_and_swap? # Use a special macro because we need to check with a few different # CFLAGS/LIBS. # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 $as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : sync_bool_compare_and_swap_128_result=1 else sync_bool_compare_and_swap_128_result=0 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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result _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 ;; sparc*-*) # SPARC v9 (and above) are the only ones with 64bit support # if compiling 32 bit, see if we are v9 (aka v8plus) or # earlier (casa is v8+/v9). if test "$ac_cv_sizeof_long" = "4" ; then have_v8plus=0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if have Sparc v8+/v9 support" >&5 $as_echo_n "checking if have Sparc v8+/v9 support... " >&6; } sparc_result=0 cat >conftest.s <&5 (eval $opal_assemble) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # save the warnings cat conftest.out >&5 sparc_result=1 else # save compiler output and failed program cat conftest.out >&5 echo "configure: failed program was:" >&5 cat conftest.s >&5 sparc_result=0 fi rm -rf conftest* unset opal_assemble if test "$sparc_result" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_v8plus=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } : fi unset sparc_result if test "$have_v8plus" = "0" ; then OPAL_ASM_SUPPORT_64BIT=0 opal_cv_asm_arch="SPARC" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&5 $as_echo "$as_me: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must specify the target architecture v8plus to compile" >&5 $as_echo "$as_me: WARNING: You must specify the target architecture v8plus to compile" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI in 32 bit mode on Sparc processors (see the README)." >&5 $as_echo "$as_me: WARNING: Open MPI in 32 bit mode on Sparc processors (see the README)." >&2;} as_fn_error $? "Can not continue." "$LINENO" 5 else OPAL_ASM_SUPPORT_64BIT=1 opal_cv_asm_arch="SPARCV9_32" fi elif test "$ac_cv_sizeof_long" = "8" ; then OPAL_ASM_SUPPORT_64BIT=1 opal_cv_asm_arch="SPARCV9_64" else as_fn_error $? "Could not determine Sparc word size: $ac_cv_sizeof_long" "$LINENO" 5 fi OPAL_GCC_INLINE_ASSIGN='"mov 0,%0" : "=&r"(ret)' ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5 $as_echo_n "checking for __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long tmp; int main () { __sync_synchronize(); __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_cv_asm_builtin="BUILTIN_SYNC" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5 $as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include uint64_t tmp; int main () { __sync_bool_compare_and_swap(&tmp, 0, 1); __sync_add_and_fetch(&tmp, 1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_asm_sync_have_64bit=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_asm_sync_have_64bit=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext cat >>confdefs.h <<_ACEOF #define OPAL_ASM_SYNC_HAVE_64BIT $opal_asm_sync_have_64bit _ACEOF # Check for 128-bit support # 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 sync_bool_compare_and_swap_128_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=\"sync_bool_compare_and_swap_128_result\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Do we have __sync_bool_compare_and_swap? # Use a special macro because we need to check with a few different # CFLAGS/LIBS. # 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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_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_asm_check_func_happy opal_asm_check_func_CFLAGS_save opal_asm_check_func_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_asm_check_func_CFLAGS_save=$CFLAGS opal_asm_check_func_LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; } CFLAGS="$CFLAGS -mcx16" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 CFLAGS=$opal_asm_check_func_CFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5 $as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; } LIBS="$LIBS -latomic" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_asm_check_func_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 LIBS=$opal_asm_check_func_LIBS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test $opal_asm_check_func_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5 $as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5 $as_echo "cannot test -- assume yes (cross compiling)" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include typedef union { uint64_t fake[2]; __int128 real; } ompi128; static void test1(void) { // As of Aug 2018, we could not figure out a way to assign 128-bit // constants -- the compilers would not accept it. So use a fake // union to assign 2 uin64_t's to make a single __int128. ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }}; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == false && ptr.real != newval.real)) { exit(1); } } static void test2(void) { ompi128 ptr = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }}; ompi128 oldval = ptr; ompi128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }}; bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real); if (!(r == true && ptr.real == newval.real)) { exit(2); } } int main(int argc, char** argv) { test1(); test2(); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else opal_asm_check_func_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $opal_asm_check_func_happy -eq 0; then : CFLAGS=$opal_asm_check_func_CFLAGS_save LIBS=$opal_asm_check_func_LIBS_save fi if test $opal_asm_check_func_happy -eq 1; then : sync_bool_compare_and_swap_128_result=1 else sync_bool_compare_and_swap_128_result=0 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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result _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 ;; esac if test "x$OPAL_ASM_SUPPORT_64BIT" = "x1" && test "$opal_cv_asm_builtin" = "BUILTIN_SYNC" && test "$opal_asm_sync_have_64bit" = "0" ; then # __sync builtins exist but do not implement 64-bit support. Fall back on inline asm. opal_cv_asm_builtin="BUILTIN_NO" fi if test "$opal_cv_asm_builtin" = "BUILTIN_SYNC" || test "$opal_cv_asm_builtin" = "BUILTIN_GCC" ; then $as_echo "#define OPAL_C_GCC_INLINE_ASSEMBLY 1" >>confdefs.h else cat >>confdefs.h <<_ACEOF #define OPAL_ASM_SUPPORT_64BIT $OPAL_ASM_SUPPORT_64BIT _ACEOF # # figure out if we need any special function start / stop code # case $host_os in aix*) opal_asm_arch_config="aix" ;; *) opal_asm_arch_config="default" ;; esac opal_cv_asm_inline_supported="no" # now that we know our architecture, try to inline assemble assembly="$OPAL_GCC_INLINE_ASSIGN" asm_result="unknown" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports GCC inline assembly" >&5 $as_echo_n "checking if $CC supports GCC inline assembly... " >&6; } if test ! "$assembly" = "" ; then if test "$cross_compiling" = yes; then : asm_result="unknown" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { int ret = 1; int negone = -1; __asm__ __volatile__ ($assembly); return ret; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : asm_result="yes" else asm_result="no" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi else assembly="test skipped - assuming no" fi # if we're cross compiling, just try to compile and figure good enough if test "$asm_result" = "unknown" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { int ret = 1; int negone = -1; __asm__ __volatile__ ($assembly); return ret; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : asm_result="yes" else asm_result="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asm_result" >&5 $as_echo "$asm_result" >&6; } if test "$asm_result" = "yes" ; then OPAL_C_GCC_INLINE_ASSEMBLY=1 opal_cv_asm_inline_supported="yes" else OPAL_C_GCC_INLINE_ASSEMBLY=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_C_GCC_INLINE_ASSEMBLY $OPAL_C_GCC_INLINE_ASSEMBLY _ACEOF unset OPAL_C_GCC_INLINE_ASSEMBLY assembly asm_result # format: # config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack asm_format="${opal_asm_arch_config}" asm_format="${asm_format}-${opal_cv_asm_text}-${opal_cv_asm_global}" asm_format="${asm_format}-${opal_cv_asm_label_suffix}-${opal_cv_asm_gsym}" asm_format="${asm_format}-${opal_cv_asm_lsym}" asm_format="${asm_format}-${opal_cv_asm_type}-${opal_asm_size}" asm_format="${asm_format}-${opal_asm_align_log_result}" if test "$opal_cv_asm_arch" = "POWERPC32" || test "$opal_cv_asm_arch" = "POWERPC64" ; then asm_format="${asm_format}-${opal_cv_asm_powerpc_r_reg}" else asm_format="${asm_format}-1" fi asm_format="${asm_format}-${OPAL_ASM_SUPPORT_64BIT}" opal_cv_asm_format="${asm_format}-${opal_cv_asm_gnu_stack}" # For the Makefile, need to escape the $ as $$. Don't display # this version, but make sure the Makefile gives the right thing # when regenerating the files because the base has been touched. OPAL_ASSEMBLY_FORMAT=`echo "$opal_cv_asm_format" | sed -e 's/\\\$/\\\$\\\$/'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembly format" >&5 $as_echo_n "checking for assembly format... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_format" >&5 $as_echo "$opal_cv_asm_format" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ASSEMBLY_FORMAT "$OPAL_ASSEMBLY_FORMAT" _ACEOF fi # if opal_cv_asm_builtin = BUILTIN_SYNC result="OPAL_$opal_cv_asm_arch" OPAL_ASSEMBLY_ARCH="$opal_cv_asm_arch" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembly architecture" >&5 $as_echo_n "checking for assembly architecture... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_arch" >&5 $as_echo "$opal_cv_asm_arch" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ASSEMBLY_ARCH $result _ACEOF # Check for RDTSCP support result=0 if test "$opal_cv_asm_arch" = "X86_64" || test "$opal_cv_asm_arch" = "IA32"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RDTSCP assembly support" >&5 $as_echo_n "checking for RDTSCP assembly support... " >&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 "$cross_compiling" = yes; then : #cross compile not supported { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no (cross compiling)\"" >&5 $as_echo "\"no (cross compiling)\"" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ [ int main(int argc, char* argv[]) { unsigned int rax, rdx; __asm__ __volatile__ ("rdtscp\n": "=a" (rax), "=d" (rdx):: "%rax", "%rdx"); return 0; } ] _ACEOF if ac_fn_c_try_run "$LINENO"; then : result=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core *.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 cat >>confdefs.h <<_ACEOF #define OPAL_ASSEMBLY_SUPPORTS_RDTSCP $result _ACEOF result="OPAL_$opal_cv_asm_builtin" OPAL_ASSEMBLY_BUILTIN="$opal_cv_asm_builtin" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin atomics" >&5 $as_echo_n "checking for builtin atomics... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_asm_builtin" >&5 $as_echo "$opal_cv_asm_builtin" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ASSEMBLY_BUILTIN $result _ACEOF if test "$opal_cv_asm_arch" != "WINDOWS" && test "$opal_cv_asm_builtin" != "BUILTIN_SYNC" && test "$opal_cv_asm_builtin" != "BUILTIN_GCC" && test "$opal_cv_asm_builtin" != "BUILTIN_OSX" && test "$opal_cv_asm_inline_arch" = "no" ; then as_fn_error $? "no atomic support available. exiting" "$LINENO" 5 else # On windows with VC++, atomics are done with compiler primitives opal_cv_asm_file="" fi unset result asm_format ################################## # Fortran ################################## OMPI_BUILD_FORTRAN_BINDINGS=0 opal_show_subtitle "Fortran 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 ompi_fcflags_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_fcflags_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ompi_fcflags_save="$FCFLAGS" # Note that AC_PROG_FC will look for *any* fortran compiler, and # we don't want it to find an F77-only compiler. The AC docs # don't recommend using the "dialect" feature of AC_PROG_FC, so # instead use the optional first parameter and steal the list of # Fortran compilers (excluding the f77 compiler names) from AC's # default list of compilers and use it here. This is the main # reason we have an OMPI-ized version of the PROG_FC macro. ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgfortran pgf95 lf95 f90 xlf90 pgf90 epcf90 nagfor 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_FC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 $as_echo "$FC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$FC" && break done fi if test -z "$FC"; then ac_ct_FC=$FC for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgfortran pgf95 lf95 f90 xlf90 pgf90 epcf90 nagfor 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_FC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_FC"; then ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_FC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_FC=$ac_cv_prog_ac_ct_FC if test -n "$ac_ct_FC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 $as_echo "$ac_ct_FC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_FC" && break done if test "x$ac_ct_FC" = x; then FC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FC=$ac_ct_FC fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } if ${ac_cv_fc_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_fc_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 $as_echo "$ac_cv_fc_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FCFLAGS=${FCFLAGS+set} ac_save_FCFLAGS=$FCFLAGS FCFLAGS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 $as_echo_n "checking whether $FC accepts -g... " >&6; } if ${ac_cv_prog_fc_g+:} false; then : $as_echo_n "(cached) " >&6 else FCFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_prog_fc_g=yes else ac_cv_prog_fc_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 $as_echo "$ac_cv_prog_fc_g" >&6; } if test "$ac_test_FCFLAGS" = set; then FCFLAGS=$ac_save_FCFLAGS elif test $ac_cv_prog_fc_g = yes; then if test "x$ac_cv_fc_compiler_gnu" = xyes; then FCFLAGS="-g -O2" else FCFLAGS="-g" fi else if test "x$ac_cv_fc_compiler_gnu" = xyes; then FCFLAGS="-O2" else FCFLAGS= fi fi if test $ac_compiler_gnu = yes; then GFC=yes else GFC= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu FCFLAGS="$ompi_fcflags_save" # Unwind the index 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 # Default to building nothing OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_NO_BINDINGS OMPI_FORTRAN_BUILD_SIZEOF=0 OMPI_FORTRAN_USEMPI_DIR= OMPI_FORTRAN_USEMPI_LIB= OMPI_FORTRAN_USEMPIF08_LIB= OMPI_FORTRAN_MAX_ARRAY_RANK=0 OMPI_FORTRAN_HAVE_INTERFACE=0 OMPI_FORTRAN_HAVE_IGNORE_TKR=0 OMPI_FORTRAN_HAVE_OPTIONAL_ARGS=0 OMPI_FORTRAN_HAVE_BIND_C=0 OMPI_FORTRAN_HAVE_ISO_FORTRAN_ENV=0 OMPI_FORTRAN_HAVE_STORAGE_SIZE=0 OMPI_FORTRAN_HAVE_ISO_C_BINDING=0 OMPI_FORTRAN_HAVE_BIND_C_SUB=0 OMPI_FORTRAN_HAVE_BIND_C_TYPE=0 OMPI_FORTRAN_HAVE_BIND_C_TYPE_NAME=0 OMPI_FORTRAN_HAVE_F08_ASSUMED_RANK=0 OMPI_FORTRAN_HAVE_PRIVATE=0 # These macros control symbol names for Fortran/C interoperability # OMPI_F08_SUFFIX="_f08" OMPI_F_SUFFIX="_f" OMPI_MPI_PREFIX="MPI_" OMPI_MPI_BIND_PREFIX="mpi_" # Open MPI now treats $F77 and $FC the same, meaning that we # expect them to be the same back-end compiler. If they're not, # results are undefined. We do a cursory check to see that FC and # F77 are the same string value (if they're defined). If they're # not, we'll issue a warning, but keep going on the assumption # that they're the same back-end compiler (e.g., pgf77 and pgf90). # Open MPI only uses $FC and $FCFLAGS -- $F77 and $FFLAGS are now # ignored. if test "$F77" != "" || test "$FFLAGS" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI now ignores the F77 and FFLAGS environment variables; only the FC and FCFLAGS environment variables are used." >&5 $as_echo "$as_me: WARNING: Open MPI now ignores the F77 and FFLAGS environment variables; only the FC and FCFLAGS environment variables are used." >&2;} sleep 5 fi #----------------------------------------------------------------------- # If we want any of the Fortran MPI bindings, setup the Fortran compiler #----------------------------------------------------------------------- ompi_fortran_happy=0 # $LN_S is used below { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi ompi_fortran_double_underscore=0 ompi_fortran_single_underscore=0 ompi_fortran_caps=0 ompi_fortran_plain=0 cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_MPIFH_BINDINGS $OMPI_FORTRAN_MPIFH_BINDINGS _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_USEMPI_BINDINGS $OMPI_FORTRAN_USEMPI_BINDINGS _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_USEMPIF08_BINDINGS $OMPI_FORTRAN_USEMPIF08_BINDINGS _ACEOF if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; 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_fc_happy LDFLAGS_save fc_version; 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_fc_happy LDFLAGS_save fc_version\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Force the intro banner to be displayed first # Unfortunately, we must REQUIRE this for the reasons cited in the # Autoconf (version >= 2.64) docs. if test -z "$FC"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** All Fortran MPI bindings disabled (could not find compiler)" >&5 $as_echo "$as_me: WARNING: *** All Fortran MPI bindings disabled (could not find compiler)" >&2;} ompi_fc_happy=0 else ompi_fc_happy=1 fi if test $ompi_fc_happy -eq 1 && test "$WANT_DEBUG" = "1" && test "$enable_debug_symbols" != "no"; then : FCFLAGS="$FCFLAGS -g" # 1 is the variable name to be uniq-ized opal_name=FCFLAGS # Go through each item in the variable and only keep the unique ones opal_count=0 for val in ${FCFLAGS}; 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 FCFLAGS (--enable-debug)" >&5 $as_echo "$as_me: WARNING: -g has been added to FCFLAGS (--enable-debug)" >&2;} fi # Make sure the compiler actually works, if not cross-compiling. # Don't just use the AC macro so that we can have a pretty # message. if test $ompi_fc_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler works" >&5 $as_echo_n "checking if Fortran compiler works... " >&6; } if ${opal_cv_Fortran_works+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : opal_cv_Fortran_works="links (cross compiling)" else opal_cv_Fortran_works="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : opal_cv_Fortran_works="yes" else opal_cv_Fortran_works="no" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_Fortran_works" >&5 $as_echo "$opal_cv_Fortran_works" >&6; } if test "x$opal_cv_Fortran_works" = xno; then : cat <&2 ********************************************************************** * It appears that your Fortran compiler is unable to produce working * executables. A simple test application failed to properly * execute. Note that this is likely not a problem with Open MPI, * but a problem with the local compiler installation. More * information (including exactly what command was given to the * compiler and what error resulted when the command was executed) is * available in the config.log file in the Open MPI build directory. ********************************************************************** EOF as_fn_error $? "Could not run a simple Fortran program. Aborting." "$LINENO" 5 fi fi # OS X before 10.3 (deployment target) does not allow undefined common # symbols in shared libraries. Because we can't figure out how to # implement MPI_STATUSES_IGNORE and friends wihtout common symbols, on # OS X we can't build the F90 bindings as a shared library. OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS= if test $ompi_fc_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra arguments to build a shared library" >&5 $as_echo_n "checking for extra arguments to build a shared library... " >&6; } case "$host" in *apple-darwin*) if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: impossible -- -static" >&5 $as_echo "impossible -- -static" >&6; } OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS="-static" else case ${MACOSX_DEPLOYMENT_TARGET} in 10.012) { $as_echo "$as_me:${as_lineno-$LINENO}: result: impossible -- -static" >&5 $as_echo "impossible -- -static" >&6; } OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS="-static" ;; 10.*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wl,-single_module" >&5 $as_echo "-Wl,-single_module" >&6; } OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS="-Wl,-single_module" esac fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS="" ;; esac fi # The Absoft compiler does not like the fact that we use lots of # "ignore TKR" comment pragmas that it doesn't understand, and # will warn about them. From Tony Goetz at Absoft, we can use the # -Z790 flag to quell these warnings. # The NAG compiler is too picky about naming conventions, so use the # -mismatch flag to keep it happy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $FC warnings flags" >&5 $as_echo_n "checking for $FC warnings flags... " >&6; } fc_version=`$FC --version 2>&1` case "$fc_version" in *Absoft*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Z790" >&5 $as_echo "-Z790" >&6; } FCFLAGS="$FCFLAGS -Z790" ;; *NAG*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: -mismatch" >&5 $as_echo "-mismatch" >&6; } FCFLAGS="$FCFLAGS -mismatch" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } ;; esac # If we're still good, then save the extra file types. Do this last # because it implies tests that should be invoked by the above tests # (e.g., running the fortran compiler). if test $ompi_fc_happy -eq 1; then : ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f files" >&5 $as_echo_n "checking for Fortran flag to compile .f files... " >&6; } if ${ac_cv_fc_srcext_f+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=f ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= ac_cv_fc_srcext_f=unknown case $ac_ext in #( [fF]77) ac_try=f77;; #( *) ac_try=f95;; esac for ac_flag in none -qsuffix=f=f -Tf "-x $ac_try"; do test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_srcext_f=$ac_flag; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest.$ac_objext conftest.f ac_fcflags_srcext=$ac_fcflags_srcext_save fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f" >&5 $as_echo "$ac_cv_fc_srcext_f" >&6; } if test "x$ac_cv_fc_srcext_f" = xunknown; then as_fn_error $? "Fortran could not compile .f files" "$LINENO" 5 else ac_fc_srcext=f if test "x$ac_cv_fc_srcext_f" = xnone; then ac_fcflags_srcext="" FCFLAGS_f="" else ac_fcflags_srcext=$ac_cv_fc_srcext_f FCFLAGS_f=$ac_cv_fc_srcext_f fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 $as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } if ${ac_cv_fc_srcext_f90+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=f90 ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= ac_cv_fc_srcext_f90=unknown case $ac_ext in #( [fF]77) ac_try=f77;; #( *) ac_try=f95;; esac for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_srcext_f90=$ac_flag; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest.$ac_objext conftest.f90 ac_fcflags_srcext=$ac_fcflags_srcext_save fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 $as_echo "$ac_cv_fc_srcext_f90" >&6; } if test "x$ac_cv_fc_srcext_f90" = xunknown; then as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 else ac_fc_srcext=f90 if test "x$ac_cv_fc_srcext_f90" = xnone; then ac_fcflags_srcext="" FCFLAGS_f90="" else ac_fcflags_srcext=$ac_cv_fc_srcext_f90 FCFLAGS_f90=$ac_cv_fc_srcext_f90 fi fi ac_ext=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 # Check to see if we need additional compiler flags for # preprocessing .F90 files. if test $ompi_fc_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compilers preprocess .F90 files without additional flag" >&5 $as_echo_n "checking if Fortran compilers preprocess .F90 files without additional flag... " >&6; } cat > conftest_f.F90 << EOF #if 0 #error The source file was not preprocessed #endif program bogus end program EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:44438: $FC $FCFLAGS -c conftest_f.F90" >&5 $FC $FCFLAGS -c conftest_f.F90 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:44445: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fpp flag works" >&5 $as_echo_n "checking if -fpp flag works... " >&6; } # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:44463: $FC $FCFLAGS -fpp -c conftest_f.F90" >&5 $FC $FCFLAGS -fpp -c conftest_f.F90 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:44470: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } FCFLAGS="$FCFLAGS -fpp" else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "cannot preprocess Fortran files, Aborting" "$LINENO" 5 fi fi rm -f conftest* fi # Per trac #1982, on OS X, we may need some esoteric linker flags # in the wrapper compilers. However, per # https://github.com/open-mpi/ompi/issues/259, we need to use # -Wl,-flat_namespace when *building* the library (and # -Wl,-commons,use_dylibs isn't quite sufficient). if test $ompi_fc_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Fortran compilers need additional linker flags" >&5 $as_echo_n "checking to see if Fortran compilers need additional linker flags... " >&6; } case "$host" in *apple-darwin*) # Test whether -Wl,-flat_namespace works; if it does, # both use it to build the libraries, and also put it # in the wrapper compiler LDFLAGS. LDFLAGS_save=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,-flat_namespace" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program test integer :: i end program _ACEOF if ac_fn_fc_try_link "$LINENO"; then : LDFLAGS_save=$LDFLAGS OMPI_FORTRAN_WRAPPER_FLAGS="-Wl,-flat_namespace" # 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_FORTRAN_WRAPPER_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_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 else OMPI_FORTRAN_WRAPPER_FLAGS=none fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LDFLAGS=$LDFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_FORTRAN_WRAPPER_FLAGS" >&5 $as_echo "$OMPI_FORTRAN_WRAPPER_FLAGS" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } ;; esac fi # Get our Fortran symbol mangling scheme if test $ompi_fc_happy -eq 1; 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 FCFLAGS_NEW LDFLAGS_NEW FLAG; 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=\"FCFLAGS_NEW LDFLAGS_NEW FLAG\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # invalidate cache if result came from a run where FORTRAN was disabled if test "$ompi_cv_fortran_external_symbol" = "skipped" ; then unset ompi_cv_fortran_external_symbol fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking $FORTRAN external symbol convention" >&5 $as_echo_n "checking $FORTRAN external symbol convention... " >&6; } if ${ompi_cv_fortran_external_symbol+:} false; then : $as_echo_n "(cached) " >&6 else if test "$FC" = "none" || \ test "$OMPI_TRY_FORTRAN_BINDINGS" = "$OMPI_FORTRAN_NO_BINDINGS"; then ompi_cv_fortran_external_symbol="skipped" else cat >conftest.f <&5 else echo Try with new FCFLAGS: $FCFLAGS_NEW and new LDFLAGS:$LDFLAGS_NEW >&5 fi ;; *) FCFLAGS_NEW="$FCFLAGS" LDFLAGS_NEW="$LDFLAGS" ;; esac happy=1 # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:44729: $FC $FCFLAGS_NEW -c conftest.f $LDFLAGS_NEW $LIBS" >&5 $FC $FCFLAGS_NEW -c conftest.f $LDFLAGS_NEW $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:44736: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status if $NM conftest.o | $GREP foo_bar__ >/dev/null 2>&1 ; then ompi_cv_fortran_external_symbol="double underscore" elif $NM conftest.o | $GREP foo_bar_ >/dev/null 2>&1 ; then ompi_cv_fortran_external_symbol="single underscore" elif $NM conftest.o | $GREP FOO_bar >/dev/null 2>&1 ; then ompi_cv_fortran_external_symbol="mixed case" elif $NM conftest.o | $GREP foo_bar >/dev/null 2>&1 ; then ompi_cv_fortran_external_symbol="no underscore" elif $NM conftest.o | $GREP FOO_BAR >/dev/null 2>&1 ; then ompi_cv_fortran_external_symbol="upper case" else $NM conftest.o >conftest.out 2>&1 # 1 is the message # 2 is whether to put a prefix or not if test -n ""; then echo "configure:44758: Could not determine Fortran naming convention. Output from $NM:" >&5 else echo Could not determine Fortran naming convention. Output from $NM: >&5 fi # 1 is the filename if test -n "conftest.out" && test -f "conftest.out"; then cat conftest.out >&5 fi happy=0 fi else unset opal_status as_fn_error $? "Fortran compiler did not produce object file" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_external_symbol" >&5 $as_echo "$ompi_cv_fortran_external_symbol" >&6; } # These values were all already set to 0 back up in # ompi_setup_mpi_fortran.m4, because this whole macro is # conditionally executed (i.e., it is not executed in the # --disable-mpi-fortran case). if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then ompi_fortran_double_underscore=1 elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_fortran_single_underscore=1 elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_fortran_caps=1 elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_fortran_plain=1 elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_fortran_caps=1 elif test "$ompi_cv_fortran_external_symbol" != "skipped" ; then as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$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 rm -rf conftest.* fi # Make sure we can link with C code. if test $ompi_fc_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C and Fortran are link compatible" >&5 $as_echo_n "checking if C and Fortran are link compatible... " >&6; } if ${ompi_cv_c_link_Fortran+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo testfunc | $GREP _ >/dev/null 2>&1 ; then testfunc_name=testfunc__ else testfunc_name=testfunc_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then testfunc_name=testfunc_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then testfunc_name=testfunc elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then testfunc_name=testfunc elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then testfunc_name=TESTFUNC else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Write out C part ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f conftest_c.$ac_ext cat > conftest_c.$ac_ext << EOF int $testfunc_name(int a); int $testfunc_name(int a) { return a; } EOF # Now compile both parts # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:44874: $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:44881: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu ompi_lang_link_with_c_libs="$LIBS" LIBS="conftest_c.o $LIBS" cat > conftest.$ac_ext <<_ACEOF program main external testfunc call testfunc(1) end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : ompi_cv_c_link_Fortran="yes" else ompi_cv_c_link_Fortran="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_Fortran="no" fi rm -f conftest_c.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_c_link_Fortran" >&5 $as_echo "$ompi_cv_c_link_Fortran" >&6; } if test "x$ompi_cv_c_link_Fortran" = xyes; then : else cat <&5 $as_echo_n "checking to see if Fortran compiler likes the C++ exception flags... " >&6; } if test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (no C++ exceptions flags)" >&5 $as_echo "skipped (no C++ exceptions flags)" >&6; } else FCFLAGS="$FCFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main INTEGER I I = 3 end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ exception flags are different between the C and Fortran 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 Fortran compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&2;} as_fn_error $? "*** Cannot continue" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi # Per #1982, on OS X, we may need some esoteric linker flags in the # Fortran wrapper compiler. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if mpifort compiler needs additional linker flags" >&5 $as_echo_n "checking to see if mpifort compiler needs additional linker flags... " >&6; } case "$host" in *apple-darwin*) # Test whether -Wl,-commons,use_dylibs works; if it does, use it. LDFLAGS_save=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,-commons,use_dylibs" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program test integer :: i end program _ACEOF if ac_fn_fc_try_link "$LINENO"; then : OMPI_FORTRAN_WRAPPER_FLAGS="-Wl,-commons,use_dylibs" # 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_FORTRAN_WRAPPER_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_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 else OMPI_FORTRAN_WRAPPER_FLAGS=none fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LDFLAGS=$LDFLAGS_save { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_FORTRAN_WRAPPER_FLAGS" >&5 $as_echo "$OMPI_FORTRAN_WRAPPER_FLAGS" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } ;; esac # All done if test $ompi_fc_happy -eq 1; then : ompi_fortran_happy=1 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 # These values will be determined by SETUP_FC. We must always # AC_DEFINE these results, even in the --disable-mpi-fortran case, # for ompi_info. cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_DOUBLE_UNDERSCORE $ompi_fortran_double_underscore _ACEOF OMPI_FORTRAN_DOUBLE_UNDERSCORE=$ompi_fortran_double_underscore cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_SINGLE_UNDERSCORE $ompi_fortran_single_underscore _ACEOF OMPI_FORTRAN_SINGLE_UNDERSCORE=$ompi_fortran_single_underscore cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_CAPS $ompi_fortran_caps _ACEOF OMPI_FORTRAN_CAPS=$ompi_fortran_caps cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_PLAIN $ompi_fortran_plain _ACEOF OMPI_FORTRAN_PLAIN=$ompi_fortran_plain # Check to see if any of the MPI Fortran bindings were # specifically requested. If so, and we weren't able to setup the # Fortran compiler properly, it's an error. if test $ompi_fortran_happy -eq 0 && \ test $OMPI_MIN_REQUIRED_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI Fortran bindings requested, but no suitable Fortran compiler found" >&5 $as_echo "$as_me: WARNING: MPI Fortran bindings requested, but no suitable Fortran compiler found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # This allows us to mark bogus types, but still have them be a valid # [sentinel] value $as_echo "#define ompi_fortran_bogus_type_t int" >>confdefs.h # These get filled in as we check for each type OMPI_FORTRAN_IKINDS= OMPI_FORTRAN_RKINDS= OMPI_FORTRAN_CKINDS= # We want to set the #define's for all of these, so invoke the macros # regardless of whether we have F77 support or not. # Is the private index set? If not, set it. if test "x$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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=-1 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports CHARACTER" >&5 $as_echo_n "checking if Fortran compiler supports CHARACTER... " >&6; } if ${ompi_cv_fortran_have_CHARACTER+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main CHARACTER :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_CHARACTER=yes else ompi_cv_fortran_have_CHARACTER=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_CHARACTER" >&5 $as_echo "$ompi_cv_fortran_have_CHARACTER" >&6; } if test "x$ompi_cv_fortran_have_CHARACTER" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports CHARACTER" >&5 $as_echo_n "checking if Fortran compiler supports CHARACTER... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran CHARACTER" >&5 $as_echo_n "checking size of Fortran CHARACTER... " >&6; } if ${ompi_cv_fortran_sizeof_CHARACTER+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:45404: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:45411: \$? = $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:45421: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:45428: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:45449: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of CHARACTER" >&5 $as_echo "$as_me: WARNING: Could not determine size of CHARACTER" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of CHARACTER when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:45472: ./conftest" >&5 ./conftest 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:45479: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_CHARACTER=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of CHARACTER" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_CHARACTER" >&5 $as_echo "$ompi_cv_fortran_sizeof_CHARACTER" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_CHARACTER if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran CHARACTER does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran CHARACTER does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran CHARACTER" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran CHARACTER" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to CHARACTER" >&5 $as_echo_n "checking for C type corresponding to CHARACTER... " >&6; } if ${opal_cv_find_type_CHARACTER+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then oft_real_type="char" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then oft_real_type="int32_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : opal_cv_find_type_CHARACTER="not found" else opal_cv_find_type_CHARACTER="$oft_real_type" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_find_type_CHARACTER" >&5 $as_echo "$opal_cv_find_type_CHARACTER" >&6; } if test "x$opal_cv_find_type_CHARACTER" = x"not found"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if test "x$opal_cv_find_type_CHARACTER" = x"not found"; then : ofc_c_type= else ofc_c_type=$opal_cv_find_type_CHARACTER fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran CHARACTER" >&5 $as_echo_n "checking alignment of Fortran CHARACTER... " >&6; } if ${ompi_cv_fortran_alignment_CHARACTER+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:45711: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:45718: \$? = $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:45728: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:45735: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of CHARACTER" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of CHARACTER when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:45766: ./conftest" >&5 ./conftest 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:45773: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_CHARACTER=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of CHARACTER" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_CHARACTER" >&5 $as_echo "$ompi_cv_fortran_alignment_CHARACTER" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_CHARACTER # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=C ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of CHARACTER" >&5 $as_echo_n "checking for corresponding KIND value of CHARACTER... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler CHARACTER and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler CHARACTER and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_CHARACTER $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_CHARACTER $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_CHARACTER $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_CHARACTER $ofc_type_kind _ACEOF if test "char, int32_t, int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_character_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_CHARACTER_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_CHARACTER=$ofc_type_kind OMPI_HAVE_FORTRAN_CHARACTER=$ofc_have_type OMPI_SIZEOF_FORTRAN_CHARACTER=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_CHARACTER=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=-1 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL... " >&6; } if ${ompi_cv_fortran_have_LOGICAL+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main LOGICAL :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_LOGICAL=yes else ompi_cv_fortran_have_LOGICAL=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_LOGICAL" >&5 $as_echo "$ompi_cv_fortran_have_LOGICAL" >&6; } if test "x$ompi_cv_fortran_have_LOGICAL" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran LOGICAL" >&5 $as_echo_n "checking size of Fortran LOGICAL... " >&6; } if ${ompi_cv_fortran_sizeof_LOGICAL+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:46300: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:46307: \$? = $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:46317: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:46324: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:46345: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL" >&5 $as_echo "$as_me: WARNING: Could not determine size of LOGICAL" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of LOGICAL when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:46368: ./conftest" >&5 ./conftest 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:46375: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_LOGICAL=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of LOGICAL" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_LOGICAL" >&5 $as_echo "$ompi_cv_fortran_sizeof_LOGICAL" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_LOGICAL if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran LOGICAL does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran LOGICAL does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran LOGICAL" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran LOGICAL" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL" >&5 $as_echo_n "checking for C type corresponding to LOGICAL... " >&6; } if ${opal_cv_find_type_LOGICAL+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then oft_real_type="char" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then oft_real_type="int32_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : opal_cv_find_type_LOGICAL="not found" else opal_cv_find_type_LOGICAL="$oft_real_type" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_find_type_LOGICAL" >&5 $as_echo "$opal_cv_find_type_LOGICAL" >&6; } if test "x$opal_cv_find_type_LOGICAL" = x"not found"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if test "x$opal_cv_find_type_LOGICAL" = x"not found"; then : ofc_c_type= else ofc_c_type=$opal_cv_find_type_LOGICAL fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL" >&5 $as_echo_n "checking alignment of Fortran LOGICAL... " >&6; } if ${ompi_cv_fortran_alignment_LOGICAL+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:46607: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:46614: \$? = $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:46624: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:46631: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of LOGICAL when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:46662: ./conftest" >&5 ./conftest 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:46669: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_LOGICAL=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_LOGICAL" >&5 $as_echo "$ompi_cv_fortran_alignment_LOGICAL" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_LOGICAL # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=L ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of LOGICAL" >&5 $as_echo_n "checking for corresponding KIND value of LOGICAL... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler LOGICAL and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler LOGICAL and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_LOGICAL $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_LOGICAL $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_LOGICAL $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_LOGICAL $ofc_type_kind _ACEOF if test "char, int32_t, int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_logical_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_LOGICAL_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_LOGICAL=$ofc_type_kind OMPI_HAVE_FORTRAN_LOGICAL=$ofc_have_type OMPI_SIZEOF_FORTRAN_LOGICAL=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_LOGICAL=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=1 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL*1" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL*1... " >&6; } if ${ompi_cv_fortran_have_LOGICALp1+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main LOGICAL*1 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_LOGICALp1=yes else ompi_cv_fortran_have_LOGICALp1=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_LOGICALp1" >&5 $as_echo "$ompi_cv_fortran_have_LOGICALp1" >&6; } if test "x$ompi_cv_fortran_have_LOGICALp1" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL*1" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL*1... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran LOGICAL*1" >&5 $as_echo_n "checking size of Fortran LOGICAL*1... " >&6; } if ${ompi_cv_fortran_sizeof_LOGICALp1+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:47195: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:47202: \$? = $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:47212: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:47219: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:47240: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL*1" >&5 $as_echo "$as_me: WARNING: Could not determine size of LOGICAL*1" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of LOGICAL*1 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:47263: ./conftest" >&5 ./conftest 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:47270: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_LOGICALp1=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of LOGICAL*1" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_LOGICALp1" >&5 $as_echo "$ompi_cv_fortran_sizeof_LOGICALp1" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_LOGICALp1 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran LOGICAL*1 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran LOGICAL*1 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran LOGICAL*1" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran LOGICAL*1" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_LOGICAL*1" | $as_tr_sh` oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL*1" >&5 $as_echo_n "checking for C type corresponding to LOGICAL*1... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then oft_real_type="char" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then oft_real_type="int8_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then oft_real_type="short" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then oft_real_type="int32_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL*1" >&5 $as_echo_n "checking alignment of Fortran LOGICAL*1... " >&6; } if ${ompi_cv_fortran_alignment_LOGICALp1+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:47514: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:47521: \$? = $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:47531: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:47538: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL*1" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of LOGICAL*1 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:47569: ./conftest" >&5 ./conftest 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:47576: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_LOGICALp1=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL*1" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_LOGICALp1" >&5 $as_echo "$ompi_cv_fortran_alignment_LOGICALp1" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_LOGICALp1 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=L ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of LOGICAL*1" >&5 $as_echo_n "checking for corresponding KIND value of LOGICAL*1... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler LOGICAL*1 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler LOGICAL*1 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_LOGICAL1 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_LOGICAL1 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_LOGICAL1 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_LOGICAL1 $ofc_type_kind _ACEOF if test "char, int8_t, short, int32_t, int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_logical1_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_LOGICAL1_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_LOGICAL1=$ofc_type_kind OMPI_HAVE_FORTRAN_LOGICAL1=$ofc_have_type OMPI_SIZEOF_FORTRAN_LOGICAL1=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_LOGICAL1=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=2 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL*2" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL*2... " >&6; } if ${ompi_cv_fortran_have_LOGICALp2+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main LOGICAL*2 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_LOGICALp2=yes else ompi_cv_fortran_have_LOGICALp2=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_LOGICALp2" >&5 $as_echo "$ompi_cv_fortran_have_LOGICALp2" >&6; } if test "x$ompi_cv_fortran_have_LOGICALp2" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL*2" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL*2... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran LOGICAL*2" >&5 $as_echo_n "checking size of Fortran LOGICAL*2... " >&6; } if ${ompi_cv_fortran_sizeof_LOGICALp2+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:48102: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:48109: \$? = $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:48119: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:48126: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:48147: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL*2" >&5 $as_echo "$as_me: WARNING: Could not determine size of LOGICAL*2" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of LOGICAL*2 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:48170: ./conftest" >&5 ./conftest 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:48177: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_LOGICALp2=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of LOGICAL*2" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_LOGICALp2" >&5 $as_echo "$ompi_cv_fortran_sizeof_LOGICALp2" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_LOGICALp2 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran LOGICAL*2 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran LOGICAL*2 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran LOGICAL*2" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran LOGICAL*2" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_LOGICAL*2" | $as_tr_sh` oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL*2" >&5 $as_echo_n "checking for C type corresponding to LOGICAL*2... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then oft_real_type="short" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then oft_real_type="int16_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then oft_real_type="int32_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL*2" >&5 $as_echo_n "checking alignment of Fortran LOGICAL*2... " >&6; } if ${ompi_cv_fortran_alignment_LOGICALp2+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:48416: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:48423: \$? = $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:48433: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:48440: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL*2" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of LOGICAL*2 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:48471: ./conftest" >&5 ./conftest 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:48478: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_LOGICALp2=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL*2" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_LOGICALp2" >&5 $as_echo "$ompi_cv_fortran_alignment_LOGICALp2" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_LOGICALp2 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=L ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of LOGICAL*2" >&5 $as_echo_n "checking for corresponding KIND value of LOGICAL*2... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler LOGICAL*2 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler LOGICAL*2 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_LOGICAL2 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_LOGICAL2 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_LOGICAL2 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_LOGICAL2 $ofc_type_kind _ACEOF if test "short, int16_t, int32_t, int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_logical2_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_LOGICAL2_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_LOGICAL2=$ofc_type_kind OMPI_HAVE_FORTRAN_LOGICAL2=$ofc_have_type OMPI_SIZEOF_FORTRAN_LOGICAL2=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_LOGICAL2=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=4 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL*4" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL*4... " >&6; } if ${ompi_cv_fortran_have_LOGICALp4+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main LOGICAL*4 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_LOGICALp4=yes else ompi_cv_fortran_have_LOGICALp4=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_LOGICALp4" >&5 $as_echo "$ompi_cv_fortran_have_LOGICALp4" >&6; } if test "x$ompi_cv_fortran_have_LOGICALp4" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL*4" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL*4... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran LOGICAL*4" >&5 $as_echo_n "checking size of Fortran LOGICAL*4... " >&6; } if ${ompi_cv_fortran_sizeof_LOGICALp4+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:49004: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:49011: \$? = $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:49021: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:49028: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:49049: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL*4" >&5 $as_echo "$as_me: WARNING: Could not determine size of LOGICAL*4" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of LOGICAL*4 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:49072: ./conftest" >&5 ./conftest 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:49079: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_LOGICALp4=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of LOGICAL*4" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_LOGICALp4" >&5 $as_echo "$ompi_cv_fortran_sizeof_LOGICALp4" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_LOGICALp4 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran LOGICAL*4 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran LOGICAL*4 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran LOGICAL*4" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran LOGICAL*4" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_LOGICAL*4" | $as_tr_sh` oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL*4" >&5 $as_echo_n "checking for C type corresponding to LOGICAL*4... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then oft_real_type="int32_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL*4" >&5 $as_echo_n "checking alignment of Fortran LOGICAL*4... " >&6; } if ${ompi_cv_fortran_alignment_LOGICALp4+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:49308: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:49315: \$? = $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:49325: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:49332: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL*4" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of LOGICAL*4 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:49363: ./conftest" >&5 ./conftest 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:49370: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_LOGICALp4=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL*4" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_LOGICALp4" >&5 $as_echo "$ompi_cv_fortran_alignment_LOGICALp4" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_LOGICALp4 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=L ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of LOGICAL*4" >&5 $as_echo_n "checking for corresponding KIND value of LOGICAL*4... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler LOGICAL*4 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler LOGICAL*4 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_LOGICAL4 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_LOGICAL4 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_LOGICAL4 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_LOGICAL4 $ofc_type_kind _ACEOF if test "int32_t, int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_logical4_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_LOGICAL4_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_LOGICAL4=$ofc_type_kind OMPI_HAVE_FORTRAN_LOGICAL4=$ofc_have_type OMPI_SIZEOF_FORTRAN_LOGICAL4=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_LOGICAL4=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=8 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL*8" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL*8... " >&6; } if ${ompi_cv_fortran_have_LOGICALp8+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main LOGICAL*8 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_LOGICALp8=yes else ompi_cv_fortran_have_LOGICALp8=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_LOGICALp8" >&5 $as_echo "$ompi_cv_fortran_have_LOGICALp8" >&6; } if test "x$ompi_cv_fortran_have_LOGICALp8" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports LOGICAL*8" >&5 $as_echo_n "checking if Fortran compiler supports LOGICAL*8... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran LOGICAL*8" >&5 $as_echo_n "checking size of Fortran LOGICAL*8... " >&6; } if ${ompi_cv_fortran_sizeof_LOGICALp8+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:49896: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:49903: \$? = $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:49913: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:49920: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:49941: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of LOGICAL*8" >&5 $as_echo "$as_me: WARNING: Could not determine size of LOGICAL*8" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of LOGICAL*8 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:49964: ./conftest" >&5 ./conftest 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:49971: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_LOGICALp8=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of LOGICAL*8" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_LOGICALp8" >&5 $as_echo "$ompi_cv_fortran_sizeof_LOGICALp8" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_LOGICALp8 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran LOGICAL*8 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran LOGICAL*8 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran LOGICAL*8" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran LOGICAL*8" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_LOGICAL*8" | $as_tr_sh` oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to LOGICAL*8" >&5 $as_echo_n "checking for C type corresponding to LOGICAL*8... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran LOGICAL*8" >&5 $as_echo_n "checking alignment of Fortran LOGICAL*8... " >&6; } if ${ompi_cv_fortran_alignment_LOGICALp8+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:50195: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:50202: \$? = $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:50212: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:50219: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL*8" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of LOGICAL*8 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:50250: ./conftest" >&5 ./conftest 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:50257: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_LOGICALp8=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of LOGICAL*8" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_LOGICALp8" >&5 $as_echo "$ompi_cv_fortran_alignment_LOGICALp8" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_LOGICALp8 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=L ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of LOGICAL*8" >&5 $as_echo_n "checking for corresponding KIND value of LOGICAL*8... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler LOGICAL*8 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler LOGICAL*8 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_LOGICAL8 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_LOGICAL8 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_LOGICAL8 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_LOGICAL8 $ofc_type_kind _ACEOF if test "int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_logical8_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_LOGICAL8_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_LOGICAL8=$ofc_type_kind OMPI_HAVE_FORTRAN_LOGICAL8=$ofc_have_type OMPI_SIZEOF_FORTRAN_LOGICAL8=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_LOGICAL8=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=-1 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER... " >&6; } if ${ompi_cv_fortran_have_INTEGER+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main INTEGER :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_INTEGER=yes else ompi_cv_fortran_have_INTEGER=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_INTEGER" >&5 $as_echo "$ompi_cv_fortran_have_INTEGER" >&6; } if test "x$ompi_cv_fortran_have_INTEGER" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran INTEGER" >&5 $as_echo_n "checking size of Fortran INTEGER... " >&6; } if ${ompi_cv_fortran_sizeof_INTEGER+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:50784: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:50791: \$? = $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:50801: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:50808: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:50829: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER" >&5 $as_echo "$as_me: WARNING: Could not determine size of INTEGER" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of INTEGER when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:50852: ./conftest" >&5 ./conftest 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:50859: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_INTEGER=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of INTEGER" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_INTEGER" >&5 $as_echo "$ompi_cv_fortran_sizeof_INTEGER" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_INTEGER if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran INTEGER does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran INTEGER does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran INTEGER" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran INTEGER" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER" >&5 $as_echo_n "checking for C type corresponding to INTEGER... " >&6; } if ${opal_cv_find_type_INTEGER+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then oft_real_type="int32_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : opal_cv_find_type_INTEGER="not found" else opal_cv_find_type_INTEGER="$oft_real_type" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_find_type_INTEGER" >&5 $as_echo "$opal_cv_find_type_INTEGER" >&6; } if test "x$opal_cv_find_type_INTEGER" = x"not found"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if test "x$opal_cv_find_type_INTEGER" = x"not found"; then : ofc_c_type= else ofc_c_type=$opal_cv_find_type_INTEGER fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER" >&5 $as_echo_n "checking alignment of Fortran INTEGER... " >&6; } if ${ompi_cv_fortran_alignment_INTEGER+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:51086: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:51093: \$? = $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:51103: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:51110: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of INTEGER when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:51141: ./conftest" >&5 ./conftest 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:51148: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_INTEGER=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_INTEGER" >&5 $as_echo "$ompi_cv_fortran_alignment_INTEGER" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_INTEGER # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=I ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of INTEGER" >&5 $as_echo_n "checking for corresponding KIND value of INTEGER... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler INTEGER and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler INTEGER and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_INTEGER $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_INTEGER $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_INTEGER $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_INTEGER $ofc_type_kind _ACEOF if test "int32_t, int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_integer_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_INTEGER_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_INTEGER=$ofc_type_kind OMPI_HAVE_FORTRAN_INTEGER=$ofc_have_type OMPI_SIZEOF_FORTRAN_INTEGER=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_INTEGER=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=1 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*1" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*1... " >&6; } if ${ompi_cv_fortran_have_INTEGERp1+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main INTEGER*1 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_INTEGERp1=yes else ompi_cv_fortran_have_INTEGERp1=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_INTEGERp1" >&5 $as_echo "$ompi_cv_fortran_have_INTEGERp1" >&6; } if test "x$ompi_cv_fortran_have_INTEGERp1" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*1" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*1... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran INTEGER*1" >&5 $as_echo_n "checking size of Fortran INTEGER*1... " >&6; } if ${ompi_cv_fortran_sizeof_INTEGERp1+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:51674: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:51681: \$? = $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:51691: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:51698: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:51719: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*1" >&5 $as_echo "$as_me: WARNING: Could not determine size of INTEGER*1" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of INTEGER*1 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:51742: ./conftest" >&5 ./conftest 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:51749: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_INTEGERp1=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of INTEGER*1" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_INTEGERp1" >&5 $as_echo "$ompi_cv_fortran_sizeof_INTEGERp1" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_INTEGERp1 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran INTEGER*1 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran INTEGER*1 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran INTEGER*1" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran INTEGER*1" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_INTEGER*1" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*1" >&5 $as_echo_n "checking for C type corresponding to INTEGER*1... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then oft_real_type="char" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then oft_real_type="int8_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then oft_real_type="short" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*1" >&5 $as_echo_n "checking alignment of Fortran INTEGER*1... " >&6; } if ${ompi_cv_fortran_alignment_INTEGERp1+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:51988: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:51995: \$? = $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:52005: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:52012: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*1" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of INTEGER*1 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:52043: ./conftest" >&5 ./conftest 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:52050: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_INTEGERp1=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*1" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_INTEGERp1" >&5 $as_echo "$ompi_cv_fortran_alignment_INTEGERp1" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_INTEGERp1 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=I ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of INTEGER*1" >&5 $as_echo_n "checking for corresponding KIND value of INTEGER*1... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler INTEGER*1 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler INTEGER*1 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_INTEGER1 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_INTEGER1 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_INTEGER1 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_INTEGER1 $ofc_type_kind _ACEOF if test "char, int8_t, short, int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_integer1_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_INTEGER1_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_INTEGER1=$ofc_type_kind OMPI_HAVE_FORTRAN_INTEGER1=$ofc_have_type OMPI_SIZEOF_FORTRAN_INTEGER1=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_INTEGER1=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=2 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*2" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*2... " >&6; } if ${ompi_cv_fortran_have_INTEGERp2+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main INTEGER*2 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_INTEGERp2=yes else ompi_cv_fortran_have_INTEGERp2=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_INTEGERp2" >&5 $as_echo "$ompi_cv_fortran_have_INTEGERp2" >&6; } if test "x$ompi_cv_fortran_have_INTEGERp2" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*2" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*2... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran INTEGER*2" >&5 $as_echo_n "checking size of Fortran INTEGER*2... " >&6; } if ${ompi_cv_fortran_sizeof_INTEGERp2+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:52576: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:52583: \$? = $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:52593: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:52600: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:52621: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*2" >&5 $as_echo "$as_me: WARNING: Could not determine size of INTEGER*2" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of INTEGER*2 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:52644: ./conftest" >&5 ./conftest 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:52651: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_INTEGERp2=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of INTEGER*2" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_INTEGERp2" >&5 $as_echo "$ompi_cv_fortran_sizeof_INTEGERp2" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_INTEGERp2 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran INTEGER*2 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran INTEGER*2 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran INTEGER*2" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran INTEGER*2" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_INTEGER*2" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*2" >&5 $as_echo_n "checking for C type corresponding to INTEGER*2... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then oft_real_type="short" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then oft_real_type="int16_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then oft_real_type="int32_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*2" >&5 $as_echo_n "checking alignment of Fortran INTEGER*2... " >&6; } if ${ompi_cv_fortran_alignment_INTEGERp2+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:52890: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:52897: \$? = $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:52907: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:52914: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*2" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of INTEGER*2 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:52945: ./conftest" >&5 ./conftest 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:52952: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_INTEGERp2=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*2" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_INTEGERp2" >&5 $as_echo "$ompi_cv_fortran_alignment_INTEGERp2" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_INTEGERp2 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=I ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of INTEGER*2" >&5 $as_echo_n "checking for corresponding KIND value of INTEGER*2... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler INTEGER*2 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler INTEGER*2 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_INTEGER2 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_INTEGER2 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_INTEGER2 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_INTEGER2 $ofc_type_kind _ACEOF if test "short, int16_t, int32_t, int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_integer2_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_INTEGER2_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_INTEGER2=$ofc_type_kind OMPI_HAVE_FORTRAN_INTEGER2=$ofc_have_type OMPI_SIZEOF_FORTRAN_INTEGER2=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_INTEGER2=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=4 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*4" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*4... " >&6; } if ${ompi_cv_fortran_have_INTEGERp4+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main INTEGER*4 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_INTEGERp4=yes else ompi_cv_fortran_have_INTEGERp4=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_INTEGERp4" >&5 $as_echo "$ompi_cv_fortran_have_INTEGERp4" >&6; } if test "x$ompi_cv_fortran_have_INTEGERp4" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*4" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*4... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran INTEGER*4" >&5 $as_echo_n "checking size of Fortran INTEGER*4... " >&6; } if ${ompi_cv_fortran_sizeof_INTEGERp4+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:53478: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:53485: \$? = $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:53495: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:53502: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:53523: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*4" >&5 $as_echo "$as_me: WARNING: Could not determine size of INTEGER*4" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of INTEGER*4 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:53546: ./conftest" >&5 ./conftest 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:53553: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_INTEGERp4=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of INTEGER*4" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_INTEGERp4" >&5 $as_echo "$ompi_cv_fortran_sizeof_INTEGERp4" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_INTEGERp4 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran INTEGER*4 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran INTEGER*4 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran INTEGER*4" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran INTEGER*4" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_INTEGER*4" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*4" >&5 $as_echo_n "checking for C type corresponding to INTEGER*4... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then oft_real_type="int32_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*4" >&5 $as_echo_n "checking alignment of Fortran INTEGER*4... " >&6; } if ${ompi_cv_fortran_alignment_INTEGERp4+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:53782: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:53789: \$? = $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:53799: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:53806: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*4" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of INTEGER*4 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:53837: ./conftest" >&5 ./conftest 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:53844: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_INTEGERp4=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*4" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_INTEGERp4" >&5 $as_echo "$ompi_cv_fortran_alignment_INTEGERp4" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_INTEGERp4 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=I ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of INTEGER*4" >&5 $as_echo_n "checking for corresponding KIND value of INTEGER*4... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler INTEGER*4 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler INTEGER*4 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_INTEGER4 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_INTEGER4 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_INTEGER4 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_INTEGER4 $ofc_type_kind _ACEOF if test "int32_t, int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_integer4_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_INTEGER4_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_INTEGER4=$ofc_type_kind OMPI_HAVE_FORTRAN_INTEGER4=$ofc_have_type OMPI_SIZEOF_FORTRAN_INTEGER4=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_INTEGER4=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=8 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*8" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*8... " >&6; } if ${ompi_cv_fortran_have_INTEGERp8+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main INTEGER*8 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_INTEGERp8=yes else ompi_cv_fortran_have_INTEGERp8=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_INTEGERp8" >&5 $as_echo "$ompi_cv_fortran_have_INTEGERp8" >&6; } if test "x$ompi_cv_fortran_have_INTEGERp8" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*8" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*8... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran INTEGER*8" >&5 $as_echo_n "checking size of Fortran INTEGER*8... " >&6; } if ${ompi_cv_fortran_sizeof_INTEGERp8+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:54370: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:54377: \$? = $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:54387: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:54394: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:54415: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*8" >&5 $as_echo "$as_me: WARNING: Could not determine size of INTEGER*8" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of INTEGER*8 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:54438: ./conftest" >&5 ./conftest 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:54445: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_INTEGERp8=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of INTEGER*8" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_INTEGERp8" >&5 $as_echo "$ompi_cv_fortran_sizeof_INTEGERp8" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_INTEGERp8 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran INTEGER*8 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran INTEGER*8 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran INTEGER*8" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran INTEGER*8" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_INTEGER*8" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*8" >&5 $as_echo_n "checking for C type corresponding to INTEGER*8... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*8" >&5 $as_echo_n "checking alignment of Fortran INTEGER*8... " >&6; } if ${ompi_cv_fortran_alignment_INTEGERp8+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:54669: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:54676: \$? = $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:54686: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:54693: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*8" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of INTEGER*8 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:54724: ./conftest" >&5 ./conftest 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:54731: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_INTEGERp8=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*8" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_INTEGERp8" >&5 $as_echo "$ompi_cv_fortran_alignment_INTEGERp8" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_INTEGERp8 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=I ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of INTEGER*8" >&5 $as_echo_n "checking for corresponding KIND value of INTEGER*8... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler INTEGER*8 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler INTEGER*8 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_INTEGER8 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_INTEGER8 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_INTEGER8 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_INTEGER8 $ofc_type_kind _ACEOF if test "int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_integer8_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_INTEGER8_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_INTEGER8=$ofc_type_kind OMPI_HAVE_FORTRAN_INTEGER8=$ofc_have_type OMPI_SIZEOF_FORTRAN_INTEGER8=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_INTEGER8=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=16 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*16" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*16... " >&6; } if ${ompi_cv_fortran_have_INTEGERp16+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main INTEGER*16 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_INTEGERp16=yes else ompi_cv_fortran_have_INTEGERp16=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_INTEGERp16" >&5 $as_echo "$ompi_cv_fortran_have_INTEGERp16" >&6; } if test "x$ompi_cv_fortran_have_INTEGERp16" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTEGER*16" >&5 $as_echo_n "checking if Fortran compiler supports INTEGER*16... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran INTEGER*16" >&5 $as_echo_n "checking size of Fortran INTEGER*16... " >&6; } if ${ompi_cv_fortran_sizeof_INTEGERp16+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:55257: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:55264: \$? = $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:55274: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:55281: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:55302: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of INTEGER*16" >&5 $as_echo "$as_me: WARNING: Could not determine size of INTEGER*16" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of INTEGER*16 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:55325: ./conftest" >&5 ./conftest 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:55332: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_INTEGERp16=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of INTEGER*16" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_INTEGERp16" >&5 $as_echo "$ompi_cv_fortran_sizeof_INTEGERp16" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_INTEGERp16 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran INTEGER*16 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran INTEGER*16 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran INTEGER*16" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran INTEGER*16" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_INTEGER*16" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER*16" >&5 $as_echo_n "checking for C type corresponding to INTEGER*16... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then oft_real_type="int" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then oft_real_type="int64_t" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then oft_real_type="long long" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then oft_real_type="long" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran INTEGER*16" >&5 $as_echo_n "checking alignment of Fortran INTEGER*16... " >&6; } if ${ompi_cv_fortran_alignment_INTEGERp16+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:55556: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:55563: \$? = $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:55573: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:55580: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*16" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of INTEGER*16 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:55611: ./conftest" >&5 ./conftest 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:55618: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_INTEGERp16=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of INTEGER*16" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_INTEGERp16" >&5 $as_echo "$ompi_cv_fortran_alignment_INTEGERp16" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_INTEGERp16 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=I ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of INTEGER*16" >&5 $as_echo_n "checking for corresponding KIND value of INTEGER*16... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler INTEGER*16 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler INTEGER*16 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_INTEGER16 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_INTEGER16 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_INTEGER16 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_INTEGER16 $ofc_type_kind _ACEOF if test "int, int64_t, long long, long" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_integer16_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_INTEGER16_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_INTEGER16=$ofc_type_kind OMPI_HAVE_FORTRAN_INTEGER16=$ofc_have_type OMPI_SIZEOF_FORTRAN_INTEGER16=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_INTEGER16=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=-1 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL" >&5 $as_echo_n "checking if Fortran compiler supports REAL... " >&6; } if ${ompi_cv_fortran_have_REAL+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main REAL :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_REAL=yes else ompi_cv_fortran_have_REAL=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_REAL" >&5 $as_echo "$ompi_cv_fortran_have_REAL" >&6; } if test "x$ompi_cv_fortran_have_REAL" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL" >&5 $as_echo_n "checking if Fortran compiler supports REAL... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran REAL" >&5 $as_echo_n "checking size of Fortran REAL... " >&6; } if ${ompi_cv_fortran_sizeof_REAL+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:56145: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:56152: \$? = $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:56162: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:56169: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:56190: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL" >&5 $as_echo "$as_me: WARNING: Could not determine size of REAL" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of REAL when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:56213: ./conftest" >&5 ./conftest 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:56220: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_REAL=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of REAL" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_REAL" >&5 $as_echo "$ompi_cv_fortran_sizeof_REAL" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_REAL if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran REAL does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran REAL does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran REAL" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran REAL" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL" >&5 $as_echo_n "checking for C type corresponding to REAL... " >&6; } if ${opal_cv_find_type_REAL+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then oft_real_type="float" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then oft_real_type="double" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then oft_real_type="long double" fi fi fi if test -z "$oft_real_type"; then : opal_cv_find_type_REAL="not found" else opal_cv_find_type_REAL="$oft_real_type" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_find_type_REAL" >&5 $as_echo "$opal_cv_find_type_REAL" >&6; } if test "x$opal_cv_find_type_REAL" = x"not found"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if test "x$opal_cv_find_type_REAL" = x"not found"; then : ofc_c_type= else ofc_c_type=$opal_cv_find_type_REAL fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL" >&5 $as_echo_n "checking alignment of Fortran REAL... " >&6; } if ${ompi_cv_fortran_alignment_REAL+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:56437: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:56444: \$? = $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:56454: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:56461: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of REAL when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:56492: ./conftest" >&5 ./conftest 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:56499: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_REAL=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_REAL" >&5 $as_echo "$ompi_cv_fortran_alignment_REAL" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_REAL # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=R ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of REAL" >&5 $as_echo_n "checking for corresponding KIND value of REAL... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler REAL and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler REAL and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_REAL $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_REAL $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_REAL $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_REAL $ofc_type_kind _ACEOF if test "float, double, long double" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_real_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_REAL_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_REAL=$ofc_type_kind OMPI_HAVE_FORTRAN_REAL=$ofc_have_type OMPI_SIZEOF_FORTRAN_REAL=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_REAL=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=2 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL*2" >&5 $as_echo_n "checking if Fortran compiler supports REAL*2... " >&6; } if ${ompi_cv_fortran_have_REALp2+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main REAL*2 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_REALp2=yes else ompi_cv_fortran_have_REALp2=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_REALp2" >&5 $as_echo "$ompi_cv_fortran_have_REALp2" >&6; } if test "x$ompi_cv_fortran_have_REALp2" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL*2" >&5 $as_echo_n "checking if Fortran compiler supports REAL*2... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran REAL*2" >&5 $as_echo_n "checking size of Fortran REAL*2... " >&6; } if ${ompi_cv_fortran_sizeof_REALp2+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:57025: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:57032: \$? = $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:57042: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:57049: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:57070: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL*2" >&5 $as_echo "$as_me: WARNING: Could not determine size of REAL*2" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of REAL*2 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:57093: ./conftest" >&5 ./conftest 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:57100: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_REALp2=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of REAL*2" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_REALp2" >&5 $as_echo "$ompi_cv_fortran_sizeof_REALp2" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_REALp2 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran REAL*2 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran REAL*2 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran REAL*2" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran REAL*2" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_REAL*2" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL*2" >&5 $as_echo_n "checking for C type corresponding to REAL*2... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then oft_real_type="float" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then oft_real_type="double" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then oft_real_type="long double" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL*2" >&5 $as_echo_n "checking alignment of Fortran REAL*2... " >&6; } if ${ompi_cv_fortran_alignment_REALp2+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:57319: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:57326: \$? = $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:57336: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:57343: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL*2" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of REAL*2 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:57374: ./conftest" >&5 ./conftest 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:57381: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_REALp2=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL*2" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_REALp2" >&5 $as_echo "$ompi_cv_fortran_alignment_REALp2" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_REALp2 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=R ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of REAL*2" >&5 $as_echo_n "checking for corresponding KIND value of REAL*2... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler REAL*2 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler REAL*2 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_REAL2 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_REAL2 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_REAL2 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_REAL2 $ofc_type_kind _ACEOF if test "float, double, long double" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_real2_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_REAL2_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_REAL2=$ofc_type_kind OMPI_HAVE_FORTRAN_REAL2=$ofc_have_type OMPI_SIZEOF_FORTRAN_REAL2=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_REAL2=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=4 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL*4" >&5 $as_echo_n "checking if Fortran compiler supports REAL*4... " >&6; } if ${ompi_cv_fortran_have_REALp4+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main REAL*4 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_REALp4=yes else ompi_cv_fortran_have_REALp4=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_REALp4" >&5 $as_echo "$ompi_cv_fortran_have_REALp4" >&6; } if test "x$ompi_cv_fortran_have_REALp4" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL*4" >&5 $as_echo_n "checking if Fortran compiler supports REAL*4... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran REAL*4" >&5 $as_echo_n "checking size of Fortran REAL*4... " >&6; } if ${ompi_cv_fortran_sizeof_REALp4+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:57907: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:57914: \$? = $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:57924: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:57931: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:57952: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL*4" >&5 $as_echo "$as_me: WARNING: Could not determine size of REAL*4" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of REAL*4 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:57975: ./conftest" >&5 ./conftest 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:57982: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_REALp4=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of REAL*4" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_REALp4" >&5 $as_echo "$ompi_cv_fortran_sizeof_REALp4" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_REALp4 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran REAL*4 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran REAL*4 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran REAL*4" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran REAL*4" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_REAL*4" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL*4" >&5 $as_echo_n "checking for C type corresponding to REAL*4... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then oft_real_type="float" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then oft_real_type="double" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then oft_real_type="long double" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL*4" >&5 $as_echo_n "checking alignment of Fortran REAL*4... " >&6; } if ${ompi_cv_fortran_alignment_REALp4+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:58201: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:58208: \$? = $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:58218: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:58225: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL*4" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of REAL*4 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:58256: ./conftest" >&5 ./conftest 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:58263: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_REALp4=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL*4" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_REALp4" >&5 $as_echo "$ompi_cv_fortran_alignment_REALp4" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_REALp4 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=R ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of REAL*4" >&5 $as_echo_n "checking for corresponding KIND value of REAL*4... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler REAL*4 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler REAL*4 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_REAL4 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_REAL4 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_REAL4 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_REAL4 $ofc_type_kind _ACEOF if test "float, double, long double" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_real4_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_REAL4_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_REAL4=$ofc_type_kind OMPI_HAVE_FORTRAN_REAL4=$ofc_have_type OMPI_SIZEOF_FORTRAN_REAL4=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_REAL4=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=8 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL*8" >&5 $as_echo_n "checking if Fortran compiler supports REAL*8... " >&6; } if ${ompi_cv_fortran_have_REALp8+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main REAL*8 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_REALp8=yes else ompi_cv_fortran_have_REALp8=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_REALp8" >&5 $as_echo "$ompi_cv_fortran_have_REALp8" >&6; } if test "x$ompi_cv_fortran_have_REALp8" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL*8" >&5 $as_echo_n "checking if Fortran compiler supports REAL*8... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran REAL*8" >&5 $as_echo_n "checking size of Fortran REAL*8... " >&6; } if ${ompi_cv_fortran_sizeof_REALp8+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:58789: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:58796: \$? = $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:58806: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:58813: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:58834: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL*8" >&5 $as_echo "$as_me: WARNING: Could not determine size of REAL*8" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of REAL*8 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:58857: ./conftest" >&5 ./conftest 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:58864: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_REALp8=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of REAL*8" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_REALp8" >&5 $as_echo "$ompi_cv_fortran_sizeof_REALp8" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_REALp8 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran REAL*8 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran REAL*8 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran REAL*8" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran REAL*8" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_REAL*8" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL*8" >&5 $as_echo_n "checking for C type corresponding to REAL*8... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then oft_real_type="float" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then oft_real_type="double" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then oft_real_type="long double" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL*8" >&5 $as_echo_n "checking alignment of Fortran REAL*8... " >&6; } if ${ompi_cv_fortran_alignment_REALp8+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:59083: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:59090: \$? = $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:59100: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:59107: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL*8" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of REAL*8 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:59138: ./conftest" >&5 ./conftest 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:59145: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_REALp8=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL*8" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_REALp8" >&5 $as_echo "$ompi_cv_fortran_alignment_REALp8" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_REALp8 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=R ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of REAL*8" >&5 $as_echo_n "checking for corresponding KIND value of REAL*8... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler REAL*8 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler REAL*8 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_REAL8 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_REAL8 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_REAL8 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_REAL8 $ofc_type_kind _ACEOF if test "float, double, long double" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_real8_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_REAL8_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_REAL8=$ofc_type_kind OMPI_HAVE_FORTRAN_REAL8=$ofc_have_type OMPI_SIZEOF_FORTRAN_REAL8=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_REAL8=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=16 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL*16" >&5 $as_echo_n "checking if Fortran compiler supports REAL*16... " >&6; } if ${ompi_cv_fortran_have_REALp16+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main REAL*16 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_REALp16=yes else ompi_cv_fortran_have_REALp16=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_REALp16" >&5 $as_echo "$ompi_cv_fortran_have_REALp16" >&6; } if test "x$ompi_cv_fortran_have_REALp16" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports REAL*16" >&5 $as_echo_n "checking if Fortran compiler supports REAL*16... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran REAL*16" >&5 $as_echo_n "checking size of Fortran REAL*16... " >&6; } if ${ompi_cv_fortran_sizeof_REALp16+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:59671: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:59678: \$? = $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:59688: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:59695: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:59716: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of REAL*16" >&5 $as_echo "$as_me: WARNING: Could not determine size of REAL*16" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of REAL*16 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:59739: ./conftest" >&5 ./conftest 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:59746: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_REALp16=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of REAL*16" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_REALp16" >&5 $as_echo "$ompi_cv_fortran_sizeof_REALp16" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_REALp16 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran REAL*16 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran REAL*16 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran REAL*16" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran REAL*16" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_REAL*16" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL*16" >&5 $as_echo_n "checking for C type corresponding to REAL*16... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then oft_real_type="float" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then oft_real_type="double" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then oft_real_type="long double" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran REAL*16" >&5 $as_echo_n "checking alignment of Fortran REAL*16... " >&6; } if ${ompi_cv_fortran_alignment_REALp16+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:59965: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:59972: \$? = $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:59982: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:59989: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL*16" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of REAL*16 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:60020: ./conftest" >&5 ./conftest 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:60027: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_REALp16=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of REAL*16" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_REALp16" >&5 $as_echo "$ompi_cv_fortran_alignment_REALp16" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_REALp16 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=R ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of REAL*16" >&5 $as_echo_n "checking for corresponding KIND value of REAL*16... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler REAL*16 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler REAL*16 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_REAL16 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_REAL16 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_REAL16 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_REAL16 $ofc_type_kind _ACEOF if test "float, double, long double" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_real16_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_REAL16_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_REAL16=$ofc_type_kind OMPI_HAVE_FORTRAN_REAL16=$ofc_have_type OMPI_SIZEOF_FORTRAN_REAL16=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_REAL16=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 # In some compilers, the bit representation of REAL*16 is not the same # as the C counterpart that we found. If this is the case, then we # want to disable reduction support for MPI_REAL16 (per ticket #1603). unset happy # 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 happy define_value msg 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=\"happy define_value msg CFLAGS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # We have to do this as a cache check for cross-compilation platforms { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching bit representation of REAL*16" >&5 $as_echo_n "checking for C type matching bit representation of REAL*16... " >&6; } if ${ompi_cv_real16_c_equiv+:} false; then : $as_echo_n "(cached) " >&6 else if test "$OMPI_TRY_FORTRAN_BINDINGS" -gt "$OMPI_FORTRAN_NO_BINDINGS" && \ test "$OMPI_HAVE_FORTRAN_REAL16" = "1"; then : # AC_CACHE_CHECK automatically does its own AC_MSG_CHECKING, so close it out { $as_echo "$as_me:${as_lineno-$LINENO}: result: pending" >&5 $as_echo "pending" >&6; } # First check the type that we found was the same length in C { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $OMPI_FORTRAN_REAL16_C_TYPE == REAL*16" >&5 $as_echo_n "checking if $OMPI_FORTRAN_REAL16_C_TYPE == REAL*16... " >&6; } # C module cat > conftest_c.c < #include #ifdef __cplusplus extern "C" { #endif void c_backend($OMPI_FORTRAN_REAL16_C_TYPE *a) { $OMPI_FORTRAN_REAL16_C_TYPE foo = 11; FILE *fp = fopen("conftestval", "w"); if (NULL == fp) exit(1); foo = 1 / foo; fprintf(fp, "%s\n", (foo == *a) ? "yes" : "no"); fclose(fp); } void C($OMPI_FORTRAN_REAL16_C_TYPE *a) { c_backend(a); } void c($OMPI_FORTRAN_REAL16_C_TYPE *a) { c_backend(a); } void c_($OMPI_FORTRAN_REAL16_C_TYPE *a) { c_backend(a); } /* JMS I'm pretty sure this one will never happen...? */ void c__($OMPI_FORTRAN_REAL16_C_TYPE *a) { c_backend(a); } #ifdef __cplusplus } #endif EOF # Fortran module cat > conftest_f.f <&5 $CC $CFLAGS -I. -c conftest_c.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:60474: \$? = $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:60484: $FC $FCFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftest_f.f conftest_c.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:60491: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not determine if REAL*16 bit-matches C type" >&5 $as_echo "Could not determine if REAL*16 bit-matches C type" >&6; } else # If it worked so far, try running to see what we get if test "$happy" = "yes" && test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine if REAL*16 bit-matches C if cross compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:60520: ./conftest" >&5 ./conftest 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:60527: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine if REAL*16 bit-matches C type" "$LINENO" 5 fi fi fi # All done; whack tmp files rm -rf conftest* # If that didn't work, see if we have a compiler-specific # type that might work if test "$happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $happy" >&5 $as_echo "$happy" >&6; } # Intel compiler has a special type that should work if test "$opal_cv_c_compiler_vendor" = "intel"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if intel compiler _Quad == REAL*16" >&5 $as_echo_n "checking if intel compiler _Quad == REAL*16... " >&6; } CFLAGS_save="$CFLAGS" CFLAGS="$CFLAGS -Qoption,cpp,--extended_float_types" # 1 is the variable name to be uniq-ized 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 # C module cat > conftest_c.c < #include #ifdef __cplusplus extern "C" { #endif void c_backend(_Quad *a) { _Quad foo = 11; FILE *fp = fopen("conftestval", "w"); if (NULL == fp) exit(1); foo = 1 / foo; fprintf(fp, "%s\n", (foo == *a) ? "yes" : "no"); fclose(fp); } void C(_Quad *a) { c_backend(a); } void c(_Quad *a) { c_backend(a); } void c_(_Quad *a) { c_backend(a); } /* JMS I'm pretty sure this one will never happen...? */ void c__(_Quad *a) { c_backend(a); } #ifdef __cplusplus } #endif EOF # Fortran module cat > conftest_f.f <&5 $CC $CFLAGS -I. -c conftest_c.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:60701: \$? = $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:60711: $FC $FCFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftest_f.f conftest_c.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:60718: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not determine if REAL*16 bit-matches C type" >&5 $as_echo "Could not determine if REAL*16 bit-matches C type" >&6; } else # If it worked so far, try running to see what we get if test "$happy" = "yes" && test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine if REAL*16 bit-matches C if cross compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:60747: ./conftest" >&5 ./conftest 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:60754: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine if REAL*16 bit-matches C type" "$LINENO" 5 fi fi fi # All done; whack tmp files rm -rf conftest* if test "$happy" = "yes"; then : OMPI_FORTRAN_REAL16_C_TYPE="_Quad" { $as_echo "$as_me:${as_lineno-$LINENO}: result: works!" >&5 $as_echo "works!" >&6; } else CFLAGS="$CFLAGS_save" { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not work" >&5 $as_echo "does not work" >&6; } fi fi if test "$opal_cv_c_compiler_vendor" = "gnu" && test "$ac_cv_type___float128" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gnu compiler __float128 == REAL*16" >&5 $as_echo_n "checking if gnu compiler __float128 == REAL*16... " >&6; } # 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 # C module cat > conftest_c.c < #include #ifdef __cplusplus extern "C" { #endif void c_backend(__float128 *a) { __float128 foo = 11; FILE *fp = fopen("conftestval", "w"); if (NULL == fp) exit(1); foo = 1 / foo; fprintf(fp, "%s\n", (foo == *a) ? "yes" : "no"); fclose(fp); } void C(__float128 *a) { c_backend(a); } void c(__float128 *a) { c_backend(a); } void c_(__float128 *a) { c_backend(a); } /* JMS I'm pretty sure this one will never happen...? */ void c__(__float128 *a) { c_backend(a); } #ifdef __cplusplus } #endif EOF # Fortran module cat > conftest_f.f <&5 $CC $CFLAGS -I. -c conftest_c.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:60931: \$? = $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:60941: $FC $FCFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftest_f.f conftest_c.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:60948: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not determine if REAL*16 bit-matches C type" >&5 $as_echo "Could not determine if REAL*16 bit-matches C type" >&6; } else # If it worked so far, try running to see what we get if test "$happy" = "yes" && test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine if REAL*16 bit-matches C if cross compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:60977: ./conftest" >&5 ./conftest 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:60984: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine if REAL*16 bit-matches C type" "$LINENO" 5 fi fi fi # All done; whack tmp files rm -rf conftest* if test "$happy" = "yes"; then : OMPI_FORTRAN_REAL16_C_TYPE="__float128" { $as_echo "$as_me:${as_lineno-$LINENO}: result: works!" >&5 $as_echo "works!" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not work" >&5 $as_echo "does not work" >&6; } fi fi # We have to [re-]print a new message here, because # AC_CACHE_CHECK will automatically AC_MSG_RESULT { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching bit representation of REAL*16" >&5 $as_echo_n "checking for C type matching bit representation of REAL*16... " >&6; } fi ompi_cv_real16_c_equiv=$happy else # No fortran bindings or no REAL*16 if test "$OMPI_TRY_FORTRAN_BINDINGS" = "$OMPI_FORTRAN_NO_BINDINGS"; then : msg="skipped (no Fortran MPI bindings)" else msg="skipped (no REAL*16)" fi ompi_cv_real16_c_equiv=$msg fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_real16_c_equiv" >&5 $as_echo "$ompi_cv_real16_c_equiv" >&6; } ompi_real16_matches_c=$ompi_cv_real16_c_equiv if test "$ompi_real16_matches_c" = "yes"; then : define_value=1 else define_value=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&5 $as_echo "$as_me: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&2;} fi cat >>confdefs.h <<_ACEOF #define OMPI_REAL16_MATCHES_C $define_value _ACEOF # Unwind the index 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=-1 ofc_define_type=yes ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports DOUBLE PRECISION" >&5 $as_echo_n "checking if Fortran compiler supports DOUBLE PRECISION... " >&6; } if ${ompi_cv_fortran_have_DOUBLE_PRECISION+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main DOUBLE PRECISION :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_DOUBLE_PRECISION=yes else ompi_cv_fortran_have_DOUBLE_PRECISION=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_DOUBLE_PRECISION" >&5 $as_echo "$ompi_cv_fortran_have_DOUBLE_PRECISION" >&6; } if test "x$ompi_cv_fortran_have_DOUBLE_PRECISION" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports DOUBLE PRECISION" >&5 $as_echo_n "checking if Fortran compiler supports DOUBLE PRECISION... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran DOUBLE PRECISION" >&5 $as_echo_n "checking size of Fortran DOUBLE PRECISION... " >&6; } if ${ompi_cv_fortran_sizeof_DOUBLE_PRECISION+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:61268: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:61275: \$? = $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:61285: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:61292: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:61313: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of DOUBLE PRECISION" >&5 $as_echo "$as_me: WARNING: Could not determine size of DOUBLE PRECISION" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of DOUBLE PRECISION when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:61336: ./conftest" >&5 ./conftest 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:61343: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_DOUBLE_PRECISION=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of DOUBLE PRECISION" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_DOUBLE_PRECISION" >&5 $as_echo "$ompi_cv_fortran_sizeof_DOUBLE_PRECISION" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_DOUBLE_PRECISION if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran DOUBLE PRECISION does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran DOUBLE PRECISION does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran DOUBLE PRECISION" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran DOUBLE PRECISION" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to DOUBLE PRECISION" >&5 $as_echo_n "checking for C type corresponding to DOUBLE PRECISION... " >&6; } if ${opal_cv_find_type_DOUBLE_PRECISION+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then oft_real_type="float" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then oft_real_type="double" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then oft_real_type="long double" fi fi fi if test -z "$oft_real_type"; then : opal_cv_find_type_DOUBLE_PRECISION="not found" else opal_cv_find_type_DOUBLE_PRECISION="$oft_real_type" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_find_type_DOUBLE_PRECISION" >&5 $as_echo "$opal_cv_find_type_DOUBLE_PRECISION" >&6; } if test "x$opal_cv_find_type_DOUBLE_PRECISION" = x"not found"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if test "x$opal_cv_find_type_DOUBLE_PRECISION" = x"not found"; then : ofc_c_type= else ofc_c_type=$opal_cv_find_type_DOUBLE_PRECISION fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran DOUBLE PRECISION" >&5 $as_echo_n "checking alignment of Fortran DOUBLE PRECISION... " >&6; } if ${ompi_cv_fortran_alignment_DOUBLE_PRECISION+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:61560: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:61567: \$? = $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:61577: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:61584: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of DOUBLE PRECISION" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of DOUBLE PRECISION when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:61615: ./conftest" >&5 ./conftest 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:61622: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_DOUBLE_PRECISION=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of DOUBLE PRECISION" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_DOUBLE_PRECISION" >&5 $as_echo "$ompi_cv_fortran_alignment_DOUBLE_PRECISION" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_DOUBLE_PRECISION # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=D ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of DOUBLE PRECISION" >&5 $as_echo_n "checking for corresponding KIND value of DOUBLE PRECISION... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler DOUBLE PRECISION and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler DOUBLE PRECISION and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_DOUBLE_PRECISION $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_DOUBLE_PRECISION $ofc_type_kind _ACEOF if test "float, double, long double" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_double_precision_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_DOUBLE_PRECISION_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_DOUBLE_PRECISION=$ofc_type_kind OMPI_HAVE_FORTRAN_DOUBLE_PRECISION=$ofc_have_type OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=-1 ofc_define_type=no ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX... " >&6; } if ${ompi_cv_fortran_have_COMPLEX+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main COMPLEX :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_COMPLEX=yes else ompi_cv_fortran_have_COMPLEX=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_COMPLEX" >&5 $as_echo "$ompi_cv_fortran_have_COMPLEX" >&6; } if test "x$ompi_cv_fortran_have_COMPLEX" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran COMPLEX" >&5 $as_echo_n "checking size of Fortran COMPLEX... " >&6; } if ${ompi_cv_fortran_sizeof_COMPLEX+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:62149: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:62156: \$? = $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:62166: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:62173: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:62194: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of COMPLEX" >&5 $as_echo "$as_me: WARNING: Could not determine size of COMPLEX" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of COMPLEX when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:62217: ./conftest" >&5 ./conftest 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:62224: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_COMPLEX=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of COMPLEX" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_COMPLEX" >&5 $as_echo "$ompi_cv_fortran_sizeof_COMPLEX" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_COMPLEX if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran COMPLEX does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran COMPLEX does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran COMPLEX" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran COMPLEX" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= oft_abort_on_fail="yes" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to COMPLEX" >&5 $as_echo_n "checking for C type corresponding to COMPLEX... " >&6; } if ${opal_cv_find_type_COMPLEX+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float__Complex" = "$oft_target_size" ; then oft_real_type="float _Complex" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double__Complex" = "$oft_target_size" ; then oft_real_type="double _Complex" fi fi fi if test -z "$oft_real_type"; then : opal_cv_find_type_COMPLEX="not found" else opal_cv_find_type_COMPLEX="$oft_real_type" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_find_type_COMPLEX" >&5 $as_echo "$opal_cv_find_type_COMPLEX" >&6; } if test "x$opal_cv_find_type_COMPLEX" = x"not found"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if test "x$opal_cv_find_type_COMPLEX" = x"not found"; then : ofc_c_type= else ofc_c_type=$opal_cv_find_type_COMPLEX fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran COMPLEX" >&5 $as_echo_n "checking alignment of Fortran COMPLEX... " >&6; } if ${ompi_cv_fortran_alignment_COMPLEX+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:62436: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:62443: \$? = $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:62453: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:62460: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of COMPLEX when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:62491: ./conftest" >&5 ./conftest 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:62498: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_COMPLEX=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_COMPLEX" >&5 $as_echo "$ompi_cv_fortran_alignment_COMPLEX" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_COMPLEX # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=C ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of COMPLEX" >&5 $as_echo_n "checking for corresponding KIND value of COMPLEX... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler COMPLEX and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler COMPLEX and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_COMPLEX $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_COMPLEX $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_COMPLEX $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_COMPLEX $ofc_type_kind _ACEOF if test "float _Complex, double _Complex" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_complex_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_COMPLEX_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_COMPLEX=$ofc_type_kind OMPI_HAVE_FORTRAN_COMPLEX=$ofc_have_type OMPI_SIZEOF_FORTRAN_COMPLEX=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_COMPLEX=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 # The complex*N tests are a bit different (note: the complex tests are # the same as all the rest, because complex is a composite of two # reals, which we *have* to have. It's only the complex*N tests that # are different). The fortran complex types are composites of the # real*(N/2) types. So for us to support complex*N, two conditions # must be true: # # a) we must support real*(N/2) (i.e., compiler supports it and we # have a back-end C type for it) # b) compiler supports complex*N # Is the private index set? If not, set it. if test "x$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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=4 ofc_define_type=no ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX*4" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX*4... " >&6; } if ${ompi_cv_fortran_have_COMPLEXp4+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main COMPLEX*4 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_COMPLEXp4=yes else ompi_cv_fortran_have_COMPLEXp4=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_COMPLEXp4" >&5 $as_echo "$ompi_cv_fortran_have_COMPLEXp4" >&6; } if test "x$ompi_cv_fortran_have_COMPLEXp4" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX*4" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX*4... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran COMPLEX*4" >&5 $as_echo_n "checking size of Fortran COMPLEX*4... " >&6; } if ${ompi_cv_fortran_sizeof_COMPLEXp4+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:63036: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:63043: \$? = $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:63053: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:63060: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:63081: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of COMPLEX*4" >&5 $as_echo "$as_me: WARNING: Could not determine size of COMPLEX*4" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of COMPLEX*4 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:63104: ./conftest" >&5 ./conftest 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:63111: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_COMPLEXp4=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of COMPLEX*4" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_COMPLEXp4" >&5 $as_echo "$ompi_cv_fortran_sizeof_COMPLEXp4" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_COMPLEXp4 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran COMPLEX*4 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran COMPLEX*4 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran COMPLEX*4" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran COMPLEX*4" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_COMPLEX*4" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to COMPLEX*4" >&5 $as_echo_n "checking for C type corresponding to COMPLEX*4... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float__Complex" = "$oft_target_size" ; then oft_real_type="float _Complex" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran COMPLEX*4" >&5 $as_echo_n "checking alignment of Fortran COMPLEX*4... " >&6; } if ${ompi_cv_fortran_alignment_COMPLEXp4+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:63320: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:63327: \$? = $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:63337: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:63344: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX*4" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of COMPLEX*4 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:63375: ./conftest" >&5 ./conftest 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:63382: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_COMPLEXp4=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX*4" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_COMPLEXp4" >&5 $as_echo "$ompi_cv_fortran_alignment_COMPLEXp4" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_COMPLEXp4 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=C ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of COMPLEX*4" >&5 $as_echo_n "checking for corresponding KIND value of COMPLEX*4... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler COMPLEX*4 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler COMPLEX*4 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_COMPLEX4 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_COMPLEX4 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_COMPLEX4 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_COMPLEX4 $ofc_type_kind _ACEOF if test "float _Complex" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_complex4_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_COMPLEX4_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_COMPLEX4=$ofc_type_kind OMPI_HAVE_FORTRAN_COMPLEX4=$ofc_have_type OMPI_SIZEOF_FORTRAN_COMPLEX4=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_COMPLEX4=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=8 ofc_define_type=no ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX*8" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX*8... " >&6; } if ${ompi_cv_fortran_have_COMPLEXp8+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main COMPLEX*8 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_COMPLEXp8=yes else ompi_cv_fortran_have_COMPLEXp8=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_COMPLEXp8" >&5 $as_echo "$ompi_cv_fortran_have_COMPLEXp8" >&6; } if test "x$ompi_cv_fortran_have_COMPLEXp8" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX*8" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX*8... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran COMPLEX*8" >&5 $as_echo_n "checking size of Fortran COMPLEX*8... " >&6; } if ${ompi_cv_fortran_sizeof_COMPLEXp8+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:63908: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:63915: \$? = $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:63925: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:63932: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:63953: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of COMPLEX*8" >&5 $as_echo "$as_me: WARNING: Could not determine size of COMPLEX*8" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of COMPLEX*8 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:63976: ./conftest" >&5 ./conftest 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:63983: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_COMPLEXp8=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of COMPLEX*8" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_COMPLEXp8" >&5 $as_echo "$ompi_cv_fortran_sizeof_COMPLEXp8" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_COMPLEXp8 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran COMPLEX*8 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran COMPLEX*8 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran COMPLEX*8" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran COMPLEX*8" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_COMPLEX*8" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to COMPLEX*8" >&5 $as_echo_n "checking for C type corresponding to COMPLEX*8... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float__Complex" = "$oft_target_size" ; then oft_real_type="float _Complex" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double__Complex" = "$oft_target_size" ; then oft_real_type="double _Complex" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double__Complex" = "$oft_target_size" ; then oft_real_type="long double _Complex" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran COMPLEX*8" >&5 $as_echo_n "checking alignment of Fortran COMPLEX*8... " >&6; } if ${ompi_cv_fortran_alignment_COMPLEXp8+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:64202: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:64209: \$? = $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:64219: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:64226: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX*8" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of COMPLEX*8 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:64257: ./conftest" >&5 ./conftest 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:64264: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_COMPLEXp8=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX*8" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_COMPLEXp8" >&5 $as_echo "$ompi_cv_fortran_alignment_COMPLEXp8" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_COMPLEXp8 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=C ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of COMPLEX*8" >&5 $as_echo_n "checking for corresponding KIND value of COMPLEX*8... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler COMPLEX*8 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler COMPLEX*8 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_COMPLEX8 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_COMPLEX8 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_COMPLEX8 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_COMPLEX8 $ofc_type_kind _ACEOF if test "float _Complex, double _Complex, long double _Complex" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_complex8_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_COMPLEX8_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_COMPLEX8=$ofc_type_kind OMPI_HAVE_FORTRAN_COMPLEX8=$ofc_have_type OMPI_SIZEOF_FORTRAN_COMPLEX8=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_COMPLEX8=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=16 ofc_define_type=no ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX*16" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX*16... " >&6; } if ${ompi_cv_fortran_have_COMPLEXp16+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main COMPLEX*16 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_COMPLEXp16=yes else ompi_cv_fortran_have_COMPLEXp16=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_COMPLEXp16" >&5 $as_echo "$ompi_cv_fortran_have_COMPLEXp16" >&6; } if test "x$ompi_cv_fortran_have_COMPLEXp16" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX*16" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX*16... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran COMPLEX*16" >&5 $as_echo_n "checking size of Fortran COMPLEX*16... " >&6; } if ${ompi_cv_fortran_sizeof_COMPLEXp16+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:64790: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:64797: \$? = $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:64807: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:64814: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:64835: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of COMPLEX*16" >&5 $as_echo "$as_me: WARNING: Could not determine size of COMPLEX*16" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of COMPLEX*16 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:64858: ./conftest" >&5 ./conftest 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:64865: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_COMPLEXp16=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of COMPLEX*16" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_COMPLEXp16" >&5 $as_echo "$ompi_cv_fortran_sizeof_COMPLEXp16" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_COMPLEXp16 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran COMPLEX*16 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran COMPLEX*16 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran COMPLEX*16" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran COMPLEX*16" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_COMPLEX*16" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to COMPLEX*16" >&5 $as_echo_n "checking for C type corresponding to COMPLEX*16... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float__Complex" = "$oft_target_size" ; then oft_real_type="float _Complex" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double__Complex" = "$oft_target_size" ; then oft_real_type="double _Complex" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double__Complex" = "$oft_target_size" ; then oft_real_type="long double _Complex" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran COMPLEX*16" >&5 $as_echo_n "checking alignment of Fortran COMPLEX*16... " >&6; } if ${ompi_cv_fortran_alignment_COMPLEXp16+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:65084: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:65091: \$? = $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:65101: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:65108: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX*16" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of COMPLEX*16 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:65139: ./conftest" >&5 ./conftest 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:65146: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_COMPLEXp16=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX*16" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_COMPLEXp16" >&5 $as_echo "$ompi_cv_fortran_alignment_COMPLEXp16" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_COMPLEXp16 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=C ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of COMPLEX*16" >&5 $as_echo_n "checking for corresponding KIND value of COMPLEX*16... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler COMPLEX*16 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler COMPLEX*16 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_COMPLEX16 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_COMPLEX16 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_COMPLEX16 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_COMPLEX16 $ofc_type_kind _ACEOF if test "float _Complex, double _Complex, long double _Complex" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_complex16_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_COMPLEX16_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_COMPLEX16=$ofc_type_kind OMPI_HAVE_FORTRAN_COMPLEX16=$ofc_have_type OMPI_SIZEOF_FORTRAN_COMPLEX16=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_COMPLEX16=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=32 ofc_define_type=no ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX*32" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX*32... " >&6; } if ${ompi_cv_fortran_have_COMPLEXp32+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main COMPLEX*32 :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_COMPLEXp32=yes else ompi_cv_fortran_have_COMPLEXp32=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_COMPLEXp32" >&5 $as_echo "$ompi_cv_fortran_have_COMPLEXp32" >&6; } if test "x$ompi_cv_fortran_have_COMPLEXp32" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports COMPLEX*32" >&5 $as_echo_n "checking if Fortran compiler supports COMPLEX*32... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran COMPLEX*32" >&5 $as_echo_n "checking size of Fortran COMPLEX*32... " >&6; } if ${ompi_cv_fortran_sizeof_COMPLEXp32+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:65672: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:65679: \$? = $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:65689: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:65696: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:65717: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of COMPLEX*32" >&5 $as_echo "$as_me: WARNING: Could not determine size of COMPLEX*32" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of COMPLEX*32 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:65740: ./conftest" >&5 ./conftest 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:65747: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_COMPLEXp32=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of COMPLEX*32" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_COMPLEXp32" >&5 $as_echo "$ompi_cv_fortran_sizeof_COMPLEXp32" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_COMPLEXp32 if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran COMPLEX*32 does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran COMPLEX*32 does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran COMPLEX*32" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran COMPLEX*32" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= as_type_var=`$as_echo "opal_cv_find_type_COMPLEX*32" | $as_tr_sh` oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to COMPLEX*32" >&5 $as_echo_n "checking for C type corresponding to COMPLEX*32... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float__Complex" = "$oft_target_size" ; then oft_real_type="float _Complex" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double__Complex" = "$oft_target_size" ; then oft_real_type="double _Complex" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double__Complex" = "$oft_target_size" ; then oft_real_type="long double _Complex" fi fi fi if test -z "$oft_real_type"; then : eval "$as_type_var=\"not found\"" else eval "$as_type_var=\"\$oft_real_type\"" fi fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if eval test \"x\$"$as_type_var"\" = x"\"not found\""; then : ofc_c_type= else eval ofc_c_type=\$$as_type_var fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran COMPLEX*32" >&5 $as_echo_n "checking alignment of Fortran COMPLEX*32... " >&6; } if ${ompi_cv_fortran_alignment_COMPLEXp32+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:65966: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:65973: \$? = $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:65983: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:65990: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX*32" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of COMPLEX*32 when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:66021: ./conftest" >&5 ./conftest 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:66028: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_COMPLEXp32=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of COMPLEX*32" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_COMPLEXp32" >&5 $as_echo "$ompi_cv_fortran_alignment_COMPLEXp32" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_COMPLEXp32 # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=C ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of COMPLEX*32" >&5 $as_echo_n "checking for corresponding KIND value of COMPLEX*32... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler COMPLEX*32 and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler COMPLEX*32 and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_COMPLEX32 $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_COMPLEX32 $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_COMPLEX32 $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_COMPLEX32 $ofc_type_kind _ACEOF if test "float _Complex, double _Complex, long double _Complex" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_complex32_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_COMPLEX32_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_COMPLEX32=$ofc_type_kind OMPI_HAVE_FORTRAN_COMPLEX32=$ofc_have_type OMPI_SIZEOF_FORTRAN_COMPLEX32=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_COMPLEX32=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 # Double precision complex types are not standard, but many # compilers support it. Code should be wrapped with #ifdef # OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX # Is the private index set? If not, set it. if test "x$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 ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; 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=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ofc_expected_size=-1 ofc_define_type=no ofc_have_type=0 ofc_type_size=$ac_cv_sizeof_int ofc_type_alignment=$ac_cv_sizeof_int ofc_c_type=ompi_fortran_bogus_type_t ofc_type_kind=0 # Only check if we actually want the Fortran bindings / have a # Fortran compiler. This allows us to call this macro, even if # there is no Fortran compiler. If we have no Fortran compiler, # then just set a bunch of defaults. if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html # Determine Fortran datatype size. # First arg is type, 2nd arg is config var to define { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports DOUBLE COMPLEX" >&5 $as_echo_n "checking if Fortran compiler supports DOUBLE COMPLEX... " >&6; } if ${ompi_cv_fortran_have_DOUBLE_COMPLEX+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main DOUBLE COMPLEX :: bogus_variable end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_DOUBLE_COMPLEX=yes else ompi_cv_fortran_have_DOUBLE_COMPLEX=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_DOUBLE_COMPLEX" >&5 $as_echo "$ompi_cv_fortran_have_DOUBLE_COMPLEX" >&6; } if test "x$ompi_cv_fortran_have_DOUBLE_COMPLEX" = xyes; then : ofc_have_type=1 else ofc_have_type=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports DOUBLE COMPLEX" >&5 $as_echo_n "checking if Fortran compiler supports DOUBLE COMPLEX... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 $as_echo "skipped" >&6; } fi if test "$ofc_have_type" = "1"; then # What is the size of this type? # NOTE: Some Fortran compilers actually will return that a # type exists even if it doesn't support it -- the compiler # will automatically convert the unsupported type to a type # that it *does* support. For example, if you try to use # INTEGER*16 and the compiler doesn't support it, it may well # automatically convert it to INTEGER*8 for you (!). So we # have to check the actual size of the type once we determine # that the compiler doesn't error if we try to use it # (i.e,. the compiler *might* support that type). If the size # doesn't match the expected size, then the compiler doesn't # really support it. # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran DOUBLE COMPLEX" >&5 $as_echo_n "checking size of Fortran DOUBLE COMPLEX... " >&6; } if ${ompi_cv_fortran_sizeof_DOUBLE_COMPLEX+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:66557: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:66564: \$? = $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:66574: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:66581: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:66602: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of DOUBLE COMPLEX" >&5 $as_echo "$as_me: WARNING: Could not determine size of DOUBLE COMPLEX" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of DOUBLE COMPLEX when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:66625: ./conftest" >&5 ./conftest 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:66632: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_sizeof_DOUBLE_COMPLEX=`cat conftestval` else unset opal_status as_fn_error $? "Could not determine size of DOUBLE COMPLEX" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_sizeof_DOUBLE_COMPLEX" >&5 $as_echo "$ompi_cv_fortran_sizeof_DOUBLE_COMPLEX" >&6; } ofc_type_size=$ompi_cv_fortran_sizeof_DOUBLE_COMPLEX if test "$ofc_expected_size" != "-1" && test "$ofc_type_size" != "$ofc_expected_size"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fortran DOUBLE COMPLEX does not have expected size!" >&5 $as_echo "$as_me: WARNING: *** Fortran DOUBLE COMPLEX does not have expected size!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 $as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling MPI support for Fortran DOUBLE COMPLEX" >&5 $as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran DOUBLE COMPLEX" >&2;} ofc_have_type=0 else # Look for a corresponding C type (will abort by itself if the # type isn't found and we need it) ofc_c_type= oft_abort_on_fail="no" oft_target_size="$ofc_type_size" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to DOUBLE COMPLEX" >&5 $as_echo_n "checking for C type corresponding to DOUBLE COMPLEX... " >&6; } if ${opal_cv_find_type_DOUBLE_COMPLEX+:} false; then : $as_echo_n "(cached) " >&6 else # Loop over all the types handed to us oft_real_type= if test "$oft_target_size" != ""; then : if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_float__Complex" = "$oft_target_size" ; then oft_real_type="float _Complex" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_double__Complex" = "$oft_target_size" ; then oft_real_type="double _Complex" fi fi if test -z "$oft_real_type"; then if test "$ac_cv_sizeof_long_double__Complex" = "$oft_target_size" ; then oft_real_type="long double _Complex" fi fi fi if test -z "$oft_real_type"; then : opal_cv_find_type_DOUBLE_COMPLEX="not found" else opal_cv_find_type_DOUBLE_COMPLEX="$oft_real_type" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_cv_find_type_DOUBLE_COMPLEX" >&5 $as_echo "$opal_cv_find_type_DOUBLE_COMPLEX" >&6; } if test "x$opal_cv_find_type_DOUBLE_COMPLEX" = x"not found"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Did not find corresponding C type" >&5 $as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} if test "$oft_abort_on_fail" != "no"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi if test "x$opal_cv_find_type_DOUBLE_COMPLEX" = x"not found"; then : ofc_c_type= else ofc_c_type=$opal_cv_find_type_DOUBLE_COMPLEX fi unset oft_real_type oft_target_size if test -z "$ofc_c_type" ; then ofc_have_type=0 fi # Get the alignment of the type if test "$ofc_have_type" = "1"; then unset happy # Is the private index set? If not, set it. if test "x$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 happy ompi_conftest_h; 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=\"happy ompi_conftest_h\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran DOUBLE COMPLEX" >&5 $as_echo_n "checking alignment of Fortran DOUBLE COMPLEX... " >&6; } if ${ompi_cv_fortran_alignment_DOUBLE_COMPLEX+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo align | $GREP _ >/dev/null 2>&1 ; then ompi_ac_align_fn=align__ else ompi_ac_align_fn=align_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_align_fn=align_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_align_fn=align elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_align_fn=ALIGN else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module. Make sure it's .f, not .f90. cat > conftestf.f < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) { unsigned long aw, ax, ay, az; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); aw = (unsigned long) w; ax = (unsigned long) x; ay = (unsigned long) y; az = (unsigned long) z; if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); else fprintf(f, "%d\n", 1); fclose(f); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:66849: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:66856: \$? = $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:66866: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:66873: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of DOUBLE COMPLEX" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Can not determine alignment of DOUBLE COMPLEX when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:66904: ./conftest" >&5 ./conftest 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:66911: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_alignment_DOUBLE_COMPLEX=`cat conftestval` else unset opal_status { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 $as_echo "Error!" >&6; } as_fn_error $? "Could not determine alignment of DOUBLE COMPLEX" "$LINENO" 5 fi fi rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_alignment_DOUBLE_COMPLEX" >&5 $as_echo "$ompi_cv_fortran_alignment_DOUBLE_COMPLEX" >&6; } ofc_type_alignment=$ompi_cv_fortran_alignment_DOUBLE_COMPLEX # 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 # Add it to the relevant list of types found if test "$ofc_expected_size" != "-1"; then ofc_letter=D ofc_str="OMPI_FORTRAN_${ofc_letter}KINDS=\"\$OMPI_FORTRAN_${ofc_letter}KINDS $ofc_type_size \"" eval $ofc_str fi fi # Get the kind of the type. We do this by looking at the # Fortran type's corresponding C type (which we figured # out above). Then we look a the official BIND(C) KIND # type for that type. The official BIND(C) types were # taken from table 15.2 of the Fortran 2008 standard, # published on 6 October as ISO/IEC 1539-1:2010 (this is # not a free document). A copy of this table is in the # file ompi/mpi/fortran/c_to_integer_kind_mapping.pdf. # NOTE: Some of the values of these C_* constants *may be # negative* if the compiler doesn't support them. We have # already verified that both the Fortran and the C types # both exist. However, the compiler may still have -1 for # the C_ constants if the C type is not the same # format as its corresponding Fortran type (e.g., Absoft's # "REAL*16" and "long double" are the same size, but not # the same format -- so the compiler is allowed to define # C_LONG_DOUBLE to -1). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for corresponding KIND value of DOUBLE COMPLEX" >&5 $as_echo_n "checking for corresponding KIND value of DOUBLE COMPLEX... " >&6; } case "$ofc_c_type" in char) ofc_type_kind=C_SIGNED_CHAR ;; double) ofc_type_kind=C_DOUBLE ;; float) ofc_type_kind=C_FLOAT ;; int) ofc_type_kind=C_INT ;; int16_t) ofc_type_kind=C_INT16_T ;; int32_t) ofc_type_kind=C_INT32_T ;; int64_t) ofc_type_kind=C_INT64_T ;; int8_t) ofc_type_kind=C_INT8_T ;; long) ofc_type_kind=C_LONG ;; long*double) ofc_type_kind=C_LONG_DOUBLE ;; long*long) ofc_type_kind=C_LONG_LONG ;; short) ofc_type_kind=C_SHORT ;; float*_Complex) ofc_type_kind=C_FLOAT_COMPLEX ;; double*_Complex) ofc_type_kind=C_DOUBLE_COMPLEX ;; long*double*_Complex) ofc_type_kind=C_LONG_DOUBLE_COMPLEX ;; *) # Skip types like "DOUBLE PRECISION" ;; esac if test "$ofc_type_kind" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ofc_type_kind" >&5 $as_echo "$ofc_type_kind" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } fi # See if the value is -1. If so, then just say we don't # have a match. If the compiler doesn't support # ISO_C_BINDING, then we'll just fall back to a default # kind and hope for the best. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_kind_value_var=`$as_echo "ompi_cv_fortran_kind_value_$ofc_type_kind" | $as_tr_sh` rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran $ofc_type_kind" >&5 $as_echo_n "checking KIND value of Fortran $ofc_type_kind... " >&6; } if eval \${$as_kind_value_var+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) $ofc_type_kind close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of $ofc_type_kind" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of $ofc_type_kind" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of $ofc_type_kind when cross-compiling" "$LINENO" 5 fi eval "$as_kind_value_var=\$value" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi eval ac_res=\$$as_kind_value_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval ofc_type_kind_value=\$$as_kind_value_var if test $ofc_type_kind_value -le 0; then : ofc_have_type=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler DOUBLE COMPLEX and $ofc_c_type mismatch; MPI datatype unsupported" >&5 $as_echo "$as_me: WARNING: Compiler DOUBLE COMPLEX and $ofc_c_type mismatch; MPI datatype unsupported" >&2;} fi fi fi # We always need these defines -- even if we don't have a given # type, there are some places in the code where we have to have # *something*. Note that the bpatsubst's are the same as used # above (see comment above), but we added a translit to make them # uppercase. # If we got a pretty name, use that as the basis. If not, use the # first part of the provided fortran type (e.g., # "logical(selected_int_kind(2))" -> logical1") # Finally, note that it is necessary to use the Big Long Ugly m4 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put # the result of the BLUm4E in a shell variable and use that in # AC_DEFINE_UNQUOTED), autoheader won't put them in the # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). cat >>confdefs.h <<_ACEOF #define OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX $ofc_have_type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX $ofc_type_size _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_ALIGNMENT_FORTRAN_DOUBLE_COMPLEX $ofc_type_alignment _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_KIND_FORTRAN_DOUBLE_COMPLEX $ofc_type_kind _ACEOF if test "float _Complex, double _Complex, long double _Complex" != "" && test "$ofc_define_type" = "yes"; then cat >>confdefs.h <<_ACEOF #define ompi_fortran_double_complex_t $ofc_c_type _ACEOF fi # Save some in shell variables for later use (e.g., need # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_FORTRAN_GET_HANDLE_MAX) OMPI_FORTRAN_DOUBLE_COMPLEX_C_TYPE=$ofc_c_type OMPI_KIND_FORTRAN_DOUBLE_COMPLEX=$ofc_type_kind OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX=$ofc_have_type OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX=$ofc_type_size OMPI_ALIGNMENT_FORTRAN_DOUBLE_COMPLEX=$ofc_type_alignment # Wow, this is sick. But it works! :-) # Clean up # 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 # Regardless of whether we have fortran bindings, or even a # fortran compiler, get the max value for a fortran MPI handle # (this macro handles the case where we don't have a fortran # compiler). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max Fortran MPI handle index" >&5 $as_echo_n "checking for max Fortran MPI handle index... " >&6; } if ${ompi_cv_fortran_handle_max+:} false; then : $as_echo_n "(cached) " >&6 else # Find max fortran INTEGER value. Set to sentinel value if we don't # have a Fortran compiler (e.g., if --disable-fortran was given). if test $ompi_fortran_happy -eq 0; then ompi_fint_max=0 else # This is more complicated than it really should be. But some # expr implementations (OpenBSD) have an expr with a max value of # 2^31 - 1, and we sometimes want to compute the max value of a # type as big or bigger than that... opal_num_bits=`expr $OMPI_SIZEOF_FORTRAN_INTEGER \* 8 - 1` newval=1 value=1 overflow=0 while test $opal_num_bits -ne 0 ; do newval=`expr $value \* 2` if test 0 -eq `expr $newval \< 0` ; then # if the new value is not negative, next iteration... value=$newval opal_num_bits=`expr $opal_num_bits - 1` # if this was the last iteration, subtract 1 (as signed # max positive is 2^num_bits - 1). Do this here instead # of outside of the while loop because we might have # already subtracted 1 by then if we're trying to find the # max value of the same datatype expr uses as it's # internal representation (ie, if we hit the else # below...) if test 0 -eq $opal_num_bits ; then value=`expr $value - 1` fi else # if the new value is negative, we've over flowed. First, # try adding value - 1 instead of value (see if we can get # to positive max of expr) newval=`expr $value - 1 + $value` if test 0 -eq `expr $newval \< 0` ; then value=$newval # Still positive, this is as high as we can go. If # opal_num_bits is 1, we didn't actually overflow. # Otherwise, we overflowed. if test 1 -ne $opal_num_bits ; then overflow=1 fi else # still negative. Time to give up. overflow=1 fi opal_num_bits=0 fi done ompi_fint_max=$value if test $overflow -ne 0; then : fi fi # Get INT_MAX. Compute a SWAG if we are cross compiling or something # goes wrong. rm -f conftest.out >/dev/null 2>&1 if test "$cross_compiling" = yes; then : #cross compiling is fun. compute INT_MAX same as INTEGER max # This is more complicated than it really should be. But some # expr implementations (OpenBSD) have an expr with a max value of # 2^31 - 1, and we sometimes want to compute the max value of a # type as big or bigger than that... opal_num_bits=`expr $ac_cv_sizeof_int \* 8 - 1` newval=1 value=1 overflow=0 while test $opal_num_bits -ne 0 ; do newval=`expr $value \* 2` if test 0 -eq `expr $newval \< 0` ; then # if the new value is not negative, next iteration... value=$newval opal_num_bits=`expr $opal_num_bits - 1` # if this was the last iteration, subtract 1 (as signed # max positive is 2^num_bits - 1). Do this here instead # of outside of the while loop because we might have # already subtracted 1 by then if we're trying to find the # max value of the same datatype expr uses as it's # internal representation (ie, if we hit the else # below...) if test 0 -eq $opal_num_bits ; then value=`expr $value - 1` fi else # if the new value is negative, we've over flowed. First, # try adding value - 1 instead of value (see if we can get # to positive max of expr) newval=`expr $value - 1 + $value` if test 0 -eq `expr $newval \< 0` ; then value=$newval # Still positive, this is as high as we can go. If # opal_num_bits is 1, we didn't actually overflow. # Otherwise, we overflowed. if test 1 -ne $opal_num_bits ; then overflow=1 fi else # still negative. Time to give up. overflow=1 fi opal_num_bits=0 fi done ompi_cint_max=$value if test $overflow -ne 0; then : fi else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { FILE *fp = fopen("conftest.out", "w"); long cint = INT_MAX; fprintf(fp, "%ld", cint); fclose(fp); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ompi_cint_max=`cat conftest.out` else ompi_cint_max=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi # Use string comparisons with "test"; see comment above for # rationale. if test "$ompi_cint_max" = "0" ; then # wow - something went really wrong. Be conservative value=32767 elif test "$ompi_fint_max" = "0" ; then # we aren't compiling Fortran - just set it to C INT_MAX value=$ompi_cint_max else # Take the lesser of C INT_MAX and Fortran INTEGER max. # The resulting value will then be storable in either # type. Use expr (instead of "test -lt"), because it can # handle 8-byte integer values. value=$ompi_fint_max if test "`expr $ompi_cint_max \< $value`" = "1"; then value=$ompi_cint_max fi fi ompi_cv_fortran_handle_max=$value rm -f conftest.out > /dev/null 2>&1 unset value fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_handle_max" >&5 $as_echo "$ompi_cv_fortran_handle_max" >&6; } ompi_fortran_handle_max=$ompi_cv_fortran_handle_max # sanity check; OMPI gets very unhappy if this value is negative... if test 0 -ne `expr $ompi_fortran_handle_max \< 0` ; then as_fn_error $? "Detected negative max handle size." "$LINENO" 5 fi cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HANDLE_MAX $ompi_fortran_handle_max _ACEOF # Check for Fortran compilers value of TRUE and for the correct # assumption on LOGICAL for conversion into what C considers to be # a true value. # invalidate cache if result came from a run where FORTRAN was disabled if test "$ompi_cv_fortran_true_value" = "0" ; then unset ompi_cv_fortran_true_value fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value for .TRUE. logical type" >&5 $as_echo_n "checking Fortran value for .TRUE. logical type... " >&6; } if ${ompi_cv_fortran_true_value+:} false; then : $as_echo_n "(cached) " >&6 else if test "" = "none" || \ test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0 ; then value=77 else # # C module # We really need the confdefs.h Header file for # the ompi_fortran_logical_t definition # if test \! -f confdefs.h ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5 $as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Cannot find confdefs.h file for config test" >&5 $as_echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 $as_echo "$as_me: WARNING: *** See config.log for details." >&2;} as_fn_error $? "*** Cannot continue." "$LINENO" 5 fi cat > conftest.c < #include #include "confdefs.h" #ifdef __cplusplus extern "C" { #endif void ompi_print_f(ompi_fortran_logical_t * logical) { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); if( SIZEOF_INT >= sizeof(ompi_fortran_logical_t) ) { fprintf(f, "%d\n", (int)*logical); } else if (SIZEOF_LONG >= sizeof(ompi_fortran_logical_t) ) { fprintf(f, "%ld\n", (long) *logical); #ifdef HAVE_LONG_LONG } else if (SIZEOF_LONG_LONG >= sizeof(ompi_fortran_logical_t) ) { fprintf(f, "%lld\n", (long long) *logical); #endif } else { exit(1); } } void ompi_print(ompi_fortran_logical_t *logical) { ompi_print_f(logical); } void ompi_print_(ompi_fortran_logical_t *logical) { ompi_print_f(logical); } void ompi_print__(ompi_fortran_logical_t *logical) { ompi_print_f(logical); } void OMPI_PRINT(ompi_fortran_logical_t *logical) { ompi_print_f(logical); } #ifdef __cplusplus } #endif EOF cat > conftestf.f <&5 $CC $CFLAGS -I. -c conftest.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:67543: \$? = $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:67553: $FC $FCFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS" >&5 $FC $FCFLAGS -o conftest conftest.o conftestf.f $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:67560: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy=1 else unset opal_status happy=0 fi else unset opal_status happy=0 fi if test $happy -eq 0 && test $ompi_fortran_happy -eq 1; then : as_fn_error $? "Could not compile Fortran .TRUE. test. Aborting." "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine value of .TRUE. when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:67588: ./conftest" >&5 ./conftest 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:67595: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status value=`sed 's/ *//' conftestval` else unset opal_status as_fn_error $? "Could not determine value of Fotran .TRUE.. Aborting." "$LINENO" 5 fi fi fi ompi_cv_fortran_true_value=$value unset value fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_true_value" >&5 $as_echo "$ompi_cv_fortran_true_value" >&6; } ompi_fortran_true_value=$ompi_cv_fortran_true_value cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_VALUE_TRUE $ompi_fortran_true_value _ACEOF unset happy ompi_print_logical_fn rm -rf conftest* { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct handling of Fortran logical arrays" >&5 $as_echo_n "checking for correct handling of Fortran logical arrays... " >&6; } if ${ompi_cv_fortran_logical_array_correct+:} false; then : $as_echo_n "(cached) " >&6 else if test "" = "none" || \ test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else # Fortran module cat > conftestf.f <&5 $as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Cannot find confdefs.h file for config test" >&5 $as_echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5 $as_echo "$as_me: WARNING: *** See config.log for details." >&2;} as_fn_error $? "*** Cannot continue." "$LINENO" 5 fi cat > conftest.c < #include #include "confdefs.h" #ifdef __cplusplus extern "C" { #endif void ompi_check_f(ompi_fortran_logical_t * logical) { int result = 0; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); if (logical[0] == 0 && logical[1] == $ompi_cv_fortran_true_value) result = 1; fprintf(f, "%d\n", result); } void ompi_check(ompi_fortran_logical_t * logical) { ompi_check_f(logical); } void ompi_check_(ompi_fortran_logical_t * logical) { ompi_check_f(logical); } void ompi_check__(ompi_fortran_logical_t * logical) { ompi_check_f(logical); } void OMPI_CHECK(ompi_fortran_logical_t * logical) { ompi_check_f(logical); } #ifdef __cplusplus } #endif EOF # Try the compilation and run. Can't use AC_TRY_RUN # because it's two module files. # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:67706: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:67713: \$? = $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:67723: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:67730: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy=1 else unset opal_status happy=0 fi else unset opal_status happy=0 fi if test "$happy" = "0" ; then as_fn_error $? "Error determining if arrays of logical values work properly." "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : # assume we're ok value=yes else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:67757: ./conftest" >&5 ./conftest 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:67764: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status if test "`cat conftestval`" = "1" ; then value=yes else value=no fi else unset opal_status value=no fi fi fi ompi_cv_fortran_logical_array_correct=$value fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_logical_array_correct" >&5 $as_echo "$ompi_cv_fortran_logical_array_correct" >&6; } ompi_fortran_logical_array_correct=$ompi_cv_fortran_logical_array_correct if test "$ompi_fortran_logical_array_correct" = "no" ; then as_fn_error $? "Error determining if arrays of logical values work properly." "$LINENO" 5 fi unset happy ompi_check_logical_fn rm -rf conftest* # Find out how many array ranks this compiler supports. # 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 f_max_rank f_fail f_rank f_i f_dim; 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=\"f_max_rank f_fail f_rank f_i f_dim\"" 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 max supported Fortran array rank" >&5 $as_echo_n "checking max supported Fortran array rank... " >&6; } if ${ompi_cv_fortran_max_array_rank+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu f_max_rank=0 f_fail=0 # Realistically, this will only be 7 or 15. But what the heck # -- try them all. Note that we don't test above 15, because # that's the max value from the F2008 spec (and some compilers # will let you go above rank=16, e.g., Intel ifort). for f_rank in 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do if test $f_fail -eq 0; then f_i=1 f_dim=2 while test `expr $f_i + 1` -le $f_rank; do f_dim="$f_dim,2" f_i=`expr $f_i + 1` done # 1 is the message # 2 is whether to put a prefix or not if test -n ""; then echo "configure:67867: testing Fortran dimension $f_rank / $f_dim" >&5 else echo testing Fortran dimension $f_rank / $f_dim >&5 fi cat > conftest.$ac_ext <<_ACEOF PROGRAM test_program INTEGER, DIMENSION($f_dim) :: var var($f_dim) = 3 END PROGRAM test_program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : f_max_rank=$f_rank else f_fail=1 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi done ompi_cv_fortran_max_array_rank=$f_max_rank ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_max_array_rank" >&5 $as_echo "$ompi_cv_fortran_max_array_rank" >&6; } OMPI_FORTRAN_MAX_ARRAY_RANK=$ompi_cv_fortran_max_array_rank cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_MAX_ARRAY_RANK $OMPI_FORTRAN_MAX_ARRAY_RANK _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 # How big should MPI_STATUS_SIZE be? (i.e., the size of # MPI_STATUS, expressed in units of Fortran INTEGERs). The C # equivalent of MPI_Status contains 4 C ints and a size_t. OMPI_FORTRAN_STATUS_SIZE=0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of MPI_STATUS_SIZE" >&5 $as_echo_n "checking for the value of MPI_STATUS_SIZE... " >&6; } bytes=`expr 4 \* $ac_cv_sizeof_int + $ac_cv_sizeof_size_t` num_integers=`expr $bytes / $ac_cv_sizeof_int` sanity=`expr $num_integers \* $ac_cv_sizeof_int` if test "$sanity" != "$bytes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown!" >&5 $as_echo "unknown!" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Size of C int: $ac_cv_sizeof_int" >&5 $as_echo "$as_me: WARNING: WARNING: Size of C int: $ac_cv_sizeof_int" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Size of C size_t: $ac_cv_sizeof_size_t" >&5 $as_echo "$as_me: WARNING: WARNING: Size of C size_t: $ac_cv_sizeof_size_t" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Size of Fortran INTEGER: $OMPI_SIZEOF_FORTRAN_INTEGER" >&5 $as_echo "$as_me: WARNING: WARNING: Size of Fortran INTEGER: $OMPI_SIZEOF_FORTRAN_INTEGER" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not make this work out evenly...!" >&5 $as_echo "$as_me: WARNING: Could not make this work out evenly...!" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi OMPI_FORTRAN_STATUS_SIZE=$num_integers { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_FORTRAN_STATUS_SIZE Fortran INTEGERs" >&5 $as_echo "$OMPI_FORTRAN_STATUS_SIZE Fortran INTEGERs" >&6; } # Setup for the compilers that don't support ignore TKR functionality # 1 is the variable name to be uniq-ized opal_name=OMPI_FORTRAN_IKINDS # Go through each item in the variable and only keep the unique ones opal_count=0 for val in ${OMPI_FORTRAN_IKINDS}; 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 # 1 is the variable name to be uniq-ized opal_name=OMPI_FORTRAN_RKINDS # Go through each item in the variable and only keep the unique ones opal_count=0 for val in ${OMPI_FORTRAN_RKINDS}; 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 # 1 is the variable name to be uniq-ized opal_name=OMPI_FORTRAN_CKINDS # Go through each item in the variable and only keep the unique ones opal_count=0 for val in ${OMPI_FORTRAN_CKINDS}; 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 # We can't use C_INTxx_T KIND values in mpif.h because many # existing MPI Fortran applications are of the form: # # program main # implicit none # include 'mpif.h' # # ...and you can't have a "use..." statement before that (to get # the Fortran/C interop C_INTxx_T KIND values). So figure out # those KIND values here and just substitue them in via # AC_DEFINE's. Kinda gross, but there you are. :-\ # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran C_INT16_T" >&5 $as_echo_n "checking KIND value of Fortran C_INT16_T... " >&6; } if ${ompi_cv_fortran_kind_value_C_INT16_T+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) C_INT16_T close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(4)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(4)... " >&6; } if ${ompi_cv_fortran_int_kind_4+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(4) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_4=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_4" >&5 $as_echo "$ompi_cv_fortran_int_kind_4" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_4 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of C_INT16_T" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of C_INT16_T" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of C_INT16_T when cross-compiling" "$LINENO" 5 fi ompi_cv_fortran_kind_value_C_INT16_T=$value ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_kind_value_C_INT16_T" >&5 $as_echo "$ompi_cv_fortran_kind_value_C_INT16_T" >&6; } OMPI_FORTRAN_C_INT16_T_KIND=$ompi_cv_fortran_kind_value_C_INT16_T # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran C_INT32_T" >&5 $as_echo_n "checking KIND value of Fortran C_INT32_T... " >&6; } if ${ompi_cv_fortran_kind_value_C_INT32_T+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) C_INT32_T close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(9)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(9)... " >&6; } if ${ompi_cv_fortran_int_kind_9+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(9) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_9=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_9" >&5 $as_echo "$ompi_cv_fortran_int_kind_9" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_9 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of C_INT32_T" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of C_INT32_T" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of C_INT32_T when cross-compiling" "$LINENO" 5 fi ompi_cv_fortran_kind_value_C_INT32_T=$value ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_kind_value_C_INT32_T" >&5 $as_echo "$ompi_cv_fortran_kind_value_C_INT32_T" >&6; } OMPI_FORTRAN_C_INT32_T_KIND=$ompi_cv_fortran_kind_value_C_INT32_T # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html rm -f conftest.out { $as_echo "$as_me:${as_lineno-$LINENO}: checking KIND value of Fortran C_INT64_T" >&5 $as_echo_n "checking KIND value of Fortran C_INT64_T... " >&6; } if ${ompi_cv_fortran_kind_value_C_INT64_T+:} false; then : $as_echo_n "(cached) " >&6 else if test $OMPI_TRY_FORTRAN_BINDINGS -eq $OMPI_FORTRAN_NO_BINDINGS || \ test $ompi_fortran_happy -eq 0; then value=skipped else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu value= if test "$cross_compiling" = yes; then : value=cross else cat > conftest.$ac_ext <<_ACEOF program main use, intrinsic :: ISO_C_BINDING open(unit = 7, file = "conftest.out") write(7, *) C_INT64_T close(7) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : value=`cat conftest.out | awk '{print $1}'` else value=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi # If the compiler is ancient enough to not support the # ISO_C_BINDING stuff, then we have to fall back to older # tests. Yuck. if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ISO_C_BINDING -- fallback" >&5 $as_echo "no ISO_C_BINDING -- fallback" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran value of selected_int_kind(18)" >&5 $as_echo_n "checking Fortran value of selected_int_kind(18)... " >&6; } if ${ompi_cv_fortran_int_kind_18+:} false; then : $as_echo_n "(cached) " >&6 else outval=no if test $OMPI_TRY_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$cross_compiling" = yes; then : outval=cross else cat > conftest.$ac_ext <<_ACEOF program main open(8, file="conftest.out") write(8, fmt="(I5)") selected_int_kind(18) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : outval=`cat conftest.out | awk '{print $1}'` else outval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi ompi_cv_fortran_int_kind_18=$outval unset outval fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_int_kind_18" >&5 $as_echo "$ompi_cv_fortran_int_kind_18" >&6; } # All analysis of $value is done in the upper-level / calling # macro value=$ompi_cv_fortran_int_kind_18 fi if test "$value" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine KIND value of C_INT64_T" >&5 $as_echo "$as_me: WARNING: Could not determine KIND value of C_INT64_T" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for more details" >&5 $as_echo "$as_me: WARNING: See config.log for more details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$value" = "cross"; then : as_fn_error $? "Can not determine KIND value of C_INT64_T when cross-compiling" "$LINENO" 5 fi ompi_cv_fortran_kind_value_C_INT64_T=$value ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset value fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_kind_value_C_INT64_T" >&5 $as_echo "$ompi_cv_fortran_kind_value_C_INT64_T" >&6; } OMPI_FORTRAN_C_INT64_T_KIND=$ompi_cv_fortran_kind_value_C_INT64_T #-------------------------------------------------------- # Fortran mpif.h MPI bindings #-------------------------------------------------------- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building Fortran mpif.h bindings" >&5 $as_echo_n "checking if building Fortran mpif.h bindings... " >&6; } if test $ompi_fortran_happy -eq 1; then : OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_MPIFH_BINDINGS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_NO_BINDINGS { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # "INTERFACE" is needed for MPI_SIZEOF if test $ompi_fortran_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports INTERFACE" >&5 $as_echo_n "checking if Fortran compiler supports INTERFACE... " >&6; } if ${ompi_cv_fortran_interface+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF MODULE my_module INTERFACE MPI_Foo SUBROUTINE inky(a) DOUBLE PRECISION A END SUBROUTINE inky SUBROUTINE blinky(a) INTEGER A END SUBROUTINE blinky END INTERFACE MPI_Foo END MODULE my_module _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_interface=yes else ompi_cv_fortran_interface=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext touch conftest_foo.mod rm -rf *.mod 2>/dev/null ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_interface" >&5 $as_echo "$ompi_cv_fortran_interface" >&6; } if test "x$ompi_cv_fortran_interface" = xyes; then : OMPI_FORTRAN_HAVE_INTERFACE=1 else OMPI_FORTRAN_HAVE_INTERFACE=0 fi fi # The iso_fortran_env module is needed for MPI_SIZEOF if test $ompi_fortran_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports ISO_FORTRAN_ENV" >&5 $as_echo_n "checking if Fortran compiler supports ISO_FORTRAN_ENV... " >&6; } if ${ompi_cv_fortran_have_iso_fortran_env+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program check_for_iso_fortran_env use, intrinsic :: iso_fortran_env real(real32) :: var var = 12.34 end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_iso_fortran_env=yes else ompi_cv_fortran_have_iso_fortran_env=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_iso_fortran_env" >&5 $as_echo "$ompi_cv_fortran_have_iso_fortran_env" >&6; } if test "x$ompi_cv_fortran_have_iso_fortran_env" = xyes; then : OMPI_FORTRAN_HAVE_ISO_FORTRAN_ENV=1 else OMPI_FORTRAN_HAVE_ISO_FORTRAN_ENV=0 fi fi # Ensure that the fortran compiler supports STORAGE_SIZE for # enough relevant types. if test $ompi_fortran_happy -eq 1; then : # Re PR: https://github.com/open-mpi/ompi/pull/3822 # We explored correcting the following syntax to compile with gfortran 4.8 # - size = storage_size(x) / 8 # + size = storage_size(x(1)) / 8 # That allowed gfortran 4.8 to pass this configure test, but fail to # correctly handle mpi_sizeof due to the weak test for INTERFACE in # ompi_fortran_check_interface.m4. Until we can strengthen that configure # check we reverted the commit from PR #3822 to keep the old logic here # so that gfortran 4.8 will disqualify itself correctly for mpi_sizeof() # support. # { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports STORAGE_SIZE for relevant types" >&5 $as_echo_n "checking if Fortran compiler supports STORAGE_SIZE for relevant types... " >&6; } if ${ompi_cv_fortran_have_storage_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program check_for_storage_size USE, INTRINSIC :: iso_fortran_env, ONLY: REAL32, INT32 integer size complex(real32) :: c32 complex(real32), dimension(5) :: c32_array real(real32) :: r32 real(real32), dimension(5) :: r32_array integer(int32) :: i32 integer(int32), dimension(5) :: i32_array call storage_size_complex32_scalar(c32, size) call storage_size_complex32_r1(c32_array, size) call storage_size_int32_scalar(i32, size) call storage_size_int32_r1(i32_array, size) call storage_size_real32_scalar(r32, size) call storage_size_real32_r1(r32_array, size) end program SUBROUTINE storage_size_complex32_scalar(x, size) USE, INTRINSIC :: iso_fortran_env, ONLY: REAL32 COMPLEX(REAL32) ::x INTEGER, INTENT(OUT) :: size size = storage_size(x) / 8 END SUBROUTINE storage_size_complex32_scalar SUBROUTINE storage_size_complex32_r1(x, size) USE, INTRINSIC :: iso_fortran_env, ONLY: REAL32 COMPLEX(REAL32), DIMENSION(*)::x INTEGER, INTENT(OUT) :: size size = storage_size(x) / 8 END SUBROUTINE storage_size_complex32_r1 SUBROUTINE storage_size_int32_scalar(x, size) USE, INTRINSIC :: iso_fortran_env, ONLY: INT32 INTEGER(INT32) ::x INTEGER, INTENT(OUT) :: size size = storage_size(x) / 8 END SUBROUTINE storage_size_int32_scalar SUBROUTINE storage_size_int32_r1(x, size) USE, INTRINSIC :: iso_fortran_env, ONLY: INT32 INTEGER(INT32), DIMENSION(*)::x INTEGER, INTENT(OUT) :: size size = storage_size(x) / 8 END SUBROUTINE storage_size_int32_r1 SUBROUTINE storage_size_real32_scalar(x, size) USE, INTRINSIC :: iso_fortran_env, ONLY: REAL32 REAL(REAL32) ::x INTEGER, INTENT(OUT) :: size size = storage_size(x) / 8 END SUBROUTINE storage_size_real32_scalar SUBROUTINE storage_size_real32_r1(x, size) USE, INTRINSIC :: iso_fortran_env, ONLY: REAL32 REAL(REAL32), DIMENSION(*)::x INTEGER, INTENT(OUT) :: size size = storage_size(x) / 8 END SUBROUTINE storage_size_real32_r1 _ACEOF if ac_fn_fc_try_link "$LINENO"; then : ompi_cv_fortran_have_storage_size=yes else ompi_cv_fortran_have_storage_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_storage_size" >&5 $as_echo "$ompi_cv_fortran_have_storage_size" >&6; } if test "x$ompi_cv_fortran_have_storage_size" = xyes; then : OMPI_FORTRAN_HAVE_STORAGE_SIZE=1 else OMPI_FORTRAN_HAVE_STORAGE_SIZE=0 fi fi # We need INTERFACE, ISO_FORTRAN_ENV, and STORAGE_SIZE() support # to build MPI_SIZEOF support if test $ompi_fortran_happy -eq 1 && \ test $OMPI_FORTRAN_HAVE_INTERFACE -eq 1 && \ test $OMPI_FORTRAN_HAVE_ISO_FORTRAN_ENV -eq 1 && \ test $OMPI_FORTRAN_HAVE_STORAGE_SIZE -eq 1; then : OMPI_FORTRAN_BUILD_SIZEOF=1 else OMPI_FORTRAN_BUILD_SIZEOF=0 fi #-------------------------------------------- # Fortran use mpi or use mpi_f08 MPI bindings #-------------------------------------------- if test $ompi_fortran_happy -eq 1 && \ test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPI_BINDINGS; then : # Look for the fortran module compiler flag OMPI_FC_MODULE_FLAG= { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler module include flag" >&5 $as_echo_n "checking for Fortran compiler module include flag... " >&6; } if ${ompi_cv_fortran_module_include_flag+:} false; then : $as_echo_n "(cached) " >&6 else ofi_possible_flags="-I -p -M" mkdir conftest.$$ cd conftest.$$ # Try to compile a Fortran module mkdir subdir cd subdir cat > conftest-module.f90 <&5 $FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $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:68899: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status else unset opal_status cd .. rm -rf conftest.$$ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Whoops!" >&5 $as_echo "Whoops!" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Cannot seem to compile a Fortran module" >&5 $as_echo "$as_me: WARNING: *** Cannot seem to compile a Fortran module" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi cd .. # # Now try to compile a simple program usinng that module, iterating # through the possible flags that the compiler might use # cat > conftest.f90 <&5 $FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $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:68943: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_module_include_flag=$flag ofi_module_flag="$flag" else unset opal_status # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:68957: $FC $FCFLAGS $FCFLAGS_f90 conftest.f90 subdir/conftest-module.o \ ${flag}subdir $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftest.f90 subdir/conftest-module.o \ ${flag}subdir $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:68966: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_cv_fortran_module_include_flag=$flag ofi_module_flag="$flag" else unset opal_status fi fi fi done cd .. rm -rf conftest.$$ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_module_include_flag" >&5 $as_echo "$ompi_cv_fortran_module_include_flag" >&6; } OMPI_FC_MODULE_FLAG=$ompi_cv_fortran_module_include_flag if test "$OMPI_FC_MODULE_FLAG" != ""; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not determine the fortran compiler flag to indicate where modules reside" >&5 $as_echo "$as_me: WARNING: *** Could not determine the fortran compiler flag to indicate where modules reside" >&2;} as_fn_error $? "*** Cannot continue" "$LINENO" 5 fi # Look for ignore TKR syntax # 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 result happy type predecl; 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=\"result happy type predecl\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` OMPI_FORTRAN_IGNORE_TKR_PREDECL= OMPI_FORTRAN_IGNORE_TKR_TYPE= # Note that we can only cache 1 value at a time, but this test # needs to check for 2 things: the ignore TKR predecl and the # type. So we encode them into a string of the form # <1|0>::. Ugh. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran compiler ignore TKR syntax" >&5 $as_echo_n "checking Fortran compiler ignore TKR syntax... " >&6; } if ${ompi_cv_fortran_ignore_tkr_data+:} false; then : $as_echo_n "(cached) " >&6 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 happy ompi_fortran_ignore_tkr_predecl ompi_fortran_ignore_tkr_type; 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=\"happy ompi_fortran_ignore_tkr_predecl ompi_fortran_ignore_tkr_type\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # If we were called here, it means that the value was not cached, # so we need to check several different things. Since CACHE_CHECK # puts up a MSG_CHECKING, we need to terminate it with a bogus # answer before doing the individual checks. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not cached; checking variants" >&5 $as_echo "not cached; checking variants" >&6; } # Default values ompi_fortran_ignore_tkr_predecl=! ompi_fortran_ignore_tkr_type=real # Vendor-neutral, TYPE(*) syntax # 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 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=\"msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler support of TYPE(*), DIMENSION(*)" >&5 $as_echo_n "checking for Fortran compiler support of TYPE(*), DIMENSION(*)... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main ! ! Autoconf puts "program main" at the top interface subroutine force_assumed_shape(a, count) integer :: count complex, dimension(:,:) :: a end subroutine force_assumed_shape end interface interface subroutine foo(buffer, count) ! buffer type(*), intent(in) :: buffer integer, intent(in) :: count end subroutine foo end interface ! Simple interface with an un-typed first argument (e.g., a choice buffer) integer :: count real :: buffer1(3) character :: buffer2 complex :: buffer3(4,4) complex, pointer, dimension(:,:) :: ptr target :: buffer3 integer :: buffer4 ptr => buffer3 ! Set some known values (somewhat irrelevant for this test, but just be ! sure that the values are initialized) a = 17 buffer1(1) = 4.5 buffer1(2) = 6.7 buffer1(3) = 8.9 buffer2 = 'a' ! Call with one type for the first argument call foo(buffer1, count) ! Call with a different type for the first argument call foo(buffer2, count) ! Force us through an assumed shape call force_assumed_shape(buffer3, count) ! Force a pointer call through an assumed shape (!) ptr => buffer3 ! Also try with a simple scalar integer ! (Intel 2016 compiler suite only partially supports GCC pragmas; ! they work with all the above buffer types, but fail with a ! simple scalar integer) call foo(buffer4, count) end program subroutine force_assumed_shape(a, count) integer :: count real, dimension(:,:) :: a call foo(a, count) end subroutine force_assumed_shape ! Autoconf puts "end" after the last line subroutine bogus end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : msg=yes ompi_fortran_ignore_tkr_predecl="!" ompi_fortran_ignore_tkr_type="type(*)" happy=1 else msg=no happy=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&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 # 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 # GCC compilers if test $happy -eq 0; 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 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=\"msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler support of !GCC\$ ATTRIBUTES NO_ARG_CHECK" >&5 $as_echo_n "checking for Fortran compiler support of !GCC\$ ATTRIBUTES NO_ARG_CHECK... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main ! ! Autoconf puts "program main" at the top interface subroutine force_assumed_shape(a, count) integer :: count complex, dimension(:,:) :: a end subroutine force_assumed_shape end interface interface subroutine foo(buffer, count) !GCC\$ ATTRIBUTES NO_ARG_CHECK :: buffer type(*), dimension(*), intent(in) :: buffer integer, intent(in) :: count end subroutine foo end interface ! Simple interface with an un-typed first argument (e.g., a choice buffer) integer :: count real :: buffer1(3) character :: buffer2 complex :: buffer3(4,4) complex, pointer, dimension(:,:) :: ptr target :: buffer3 integer :: buffer4 ptr => buffer3 ! Set some known values (somewhat irrelevant for this test, but just be ! sure that the values are initialized) a = 17 buffer1(1) = 4.5 buffer1(2) = 6.7 buffer1(3) = 8.9 buffer2 = 'a' ! Call with one type for the first argument call foo(buffer1, count) ! Call with a different type for the first argument call foo(buffer2, count) ! Force us through an assumed shape call force_assumed_shape(buffer3, count) ! Force a pointer call through an assumed shape (!) ptr => buffer3 ! Also try with a simple scalar integer ! (Intel 2016 compiler suite only partially supports GCC pragmas; ! they work with all the above buffer types, but fail with a ! simple scalar integer) call foo(buffer4, count) end program subroutine force_assumed_shape(a, count) integer :: count real, dimension(:,:) :: a call foo(a, count) end subroutine force_assumed_shape ! Autoconf puts "end" after the last line subroutine bogus end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : msg=yes ompi_fortran_ignore_tkr_predecl="!GCC\$ ATTRIBUTES NO_ARG_CHECK ::" ompi_fortran_ignore_tkr_type="type(*), dimension(*)" happy=1 else msg=no happy=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&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 # 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 # Intel compilers if test $happy -eq 0; 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 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=\"msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler support of !DEC\$ ATTRIBUTES NO_ARG_CHECK" >&5 $as_echo_n "checking for Fortran compiler support of !DEC\$ ATTRIBUTES NO_ARG_CHECK... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main ! ! Autoconf puts "program main" at the top interface subroutine force_assumed_shape(a, count) integer :: count complex, dimension(:,:) :: a end subroutine force_assumed_shape end interface interface subroutine foo(buffer, count) !DEC\$ ATTRIBUTES NO_ARG_CHECK :: buffer real, dimension(*), intent(in) :: buffer integer, intent(in) :: count end subroutine foo end interface ! Simple interface with an un-typed first argument (e.g., a choice buffer) integer :: count real :: buffer1(3) character :: buffer2 complex :: buffer3(4,4) complex, pointer, dimension(:,:) :: ptr target :: buffer3 integer :: buffer4 ptr => buffer3 ! Set some known values (somewhat irrelevant for this test, but just be ! sure that the values are initialized) a = 17 buffer1(1) = 4.5 buffer1(2) = 6.7 buffer1(3) = 8.9 buffer2 = 'a' ! Call with one type for the first argument call foo(buffer1, count) ! Call with a different type for the first argument call foo(buffer2, count) ! Force us through an assumed shape call force_assumed_shape(buffer3, count) ! Force a pointer call through an assumed shape (!) ptr => buffer3 ! Also try with a simple scalar integer ! (Intel 2016 compiler suite only partially supports GCC pragmas; ! they work with all the above buffer types, but fail with a ! simple scalar integer) call foo(buffer4, count) end program subroutine force_assumed_shape(a, count) integer :: count real, dimension(:,:) :: a call foo(a, count) end subroutine force_assumed_shape ! Autoconf puts "end" after the last line subroutine bogus end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : msg=yes ompi_fortran_ignore_tkr_predecl="!DEC\$ ATTRIBUTES NO_ARG_CHECK ::" ompi_fortran_ignore_tkr_type="real, dimension(*)" happy=1 else msg=no happy=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&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 # 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 # Solaris Studio compilers # Note that due to a compiler bug, we have been advised by Oracle to # use the "character(*)" type if test $happy -eq 0; 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 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=\"msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler support of !\$PRAGMA IGNORE_TKR" >&5 $as_echo_n "checking for Fortran compiler support of !\$PRAGMA IGNORE_TKR... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main ! ! Autoconf puts "program main" at the top interface subroutine force_assumed_shape(a, count) integer :: count complex, dimension(:,:) :: a end subroutine force_assumed_shape end interface interface subroutine foo(buffer, count) !\$PRAGMA IGNORE_TKR buffer character(*), intent(in) :: buffer integer, intent(in) :: count end subroutine foo end interface ! Simple interface with an un-typed first argument (e.g., a choice buffer) integer :: count real :: buffer1(3) character :: buffer2 complex :: buffer3(4,4) complex, pointer, dimension(:,:) :: ptr target :: buffer3 integer :: buffer4 ptr => buffer3 ! Set some known values (somewhat irrelevant for this test, but just be ! sure that the values are initialized) a = 17 buffer1(1) = 4.5 buffer1(2) = 6.7 buffer1(3) = 8.9 buffer2 = 'a' ! Call with one type for the first argument call foo(buffer1, count) ! Call with a different type for the first argument call foo(buffer2, count) ! Force us through an assumed shape call force_assumed_shape(buffer3, count) ! Force a pointer call through an assumed shape (!) ptr => buffer3 ! Also try with a simple scalar integer ! (Intel 2016 compiler suite only partially supports GCC pragmas; ! they work with all the above buffer types, but fail with a ! simple scalar integer) call foo(buffer4, count) end program subroutine force_assumed_shape(a, count) integer :: count real, dimension(:,:) :: a call foo(a, count) end subroutine force_assumed_shape ! Autoconf puts "end" after the last line subroutine bogus end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : msg=yes ompi_fortran_ignore_tkr_predecl="!\$PRAGMA IGNORE_TKR" ompi_fortran_ignore_tkr_type="character(*)" happy=1 else msg=no happy=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&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 # 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 # Cray compilers if test $happy -eq 0; 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 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=\"msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler support of !DIR\$ IGNORE_TKR" >&5 $as_echo_n "checking for Fortran compiler support of !DIR\$ IGNORE_TKR... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main ! ! Autoconf puts "program main" at the top interface subroutine force_assumed_shape(a, count) integer :: count complex, dimension(:,:) :: a end subroutine force_assumed_shape end interface interface subroutine foo(buffer, count) !DIR\$ IGNORE_TKR buffer real, dimension(*), intent(in) :: buffer integer, intent(in) :: count end subroutine foo end interface ! Simple interface with an un-typed first argument (e.g., a choice buffer) integer :: count real :: buffer1(3) character :: buffer2 complex :: buffer3(4,4) complex, pointer, dimension(:,:) :: ptr target :: buffer3 integer :: buffer4 ptr => buffer3 ! Set some known values (somewhat irrelevant for this test, but just be ! sure that the values are initialized) a = 17 buffer1(1) = 4.5 buffer1(2) = 6.7 buffer1(3) = 8.9 buffer2 = 'a' ! Call with one type for the first argument call foo(buffer1, count) ! Call with a different type for the first argument call foo(buffer2, count) ! Force us through an assumed shape call force_assumed_shape(buffer3, count) ! Force a pointer call through an assumed shape (!) ptr => buffer3 ! Also try with a simple scalar integer ! (Intel 2016 compiler suite only partially supports GCC pragmas; ! they work with all the above buffer types, but fail with a ! simple scalar integer) call foo(buffer4, count) end program subroutine force_assumed_shape(a, count) integer :: count real, dimension(:,:) :: a call foo(a, count) end subroutine force_assumed_shape ! Autoconf puts "end" after the last line subroutine bogus end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : msg=yes ompi_fortran_ignore_tkr_predecl="!DIR\$ IGNORE_TKR" ompi_fortran_ignore_tkr_type="real, dimension(*)" happy=1 else msg=no happy=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&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 # 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 # IBM compilers if test $happy -eq 0; 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 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=\"msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler support of !IBM* IGNORE_TKR" >&5 $as_echo_n "checking for Fortran compiler support of !IBM* IGNORE_TKR... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main ! ! Autoconf puts "program main" at the top interface subroutine force_assumed_shape(a, count) integer :: count complex, dimension(:,:) :: a end subroutine force_assumed_shape end interface interface subroutine foo(buffer, count) !IBM* IGNORE_TKR buffer real, dimension(*), intent(in) :: buffer integer, intent(in) :: count end subroutine foo end interface ! Simple interface with an un-typed first argument (e.g., a choice buffer) integer :: count real :: buffer1(3) character :: buffer2 complex :: buffer3(4,4) complex, pointer, dimension(:,:) :: ptr target :: buffer3 integer :: buffer4 ptr => buffer3 ! Set some known values (somewhat irrelevant for this test, but just be ! sure that the values are initialized) a = 17 buffer1(1) = 4.5 buffer1(2) = 6.7 buffer1(3) = 8.9 buffer2 = 'a' ! Call with one type for the first argument call foo(buffer1, count) ! Call with a different type for the first argument call foo(buffer2, count) ! Force us through an assumed shape call force_assumed_shape(buffer3, count) ! Force a pointer call through an assumed shape (!) ptr => buffer3 ! Also try with a simple scalar integer ! (Intel 2016 compiler suite only partially supports GCC pragmas; ! they work with all the above buffer types, but fail with a ! simple scalar integer) call foo(buffer4, count) end program subroutine force_assumed_shape(a, count) integer :: count real, dimension(:,:) :: a call foo(a, count) end subroutine force_assumed_shape ! Autoconf puts "end" after the last line subroutine bogus end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : msg=yes ompi_fortran_ignore_tkr_predecl="!IBM* IGNORE_TKR" ompi_fortran_ignore_tkr_type="real, dimension(*)" happy=1 else msg=no happy=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&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 # 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 ompi_cv_fortran_ignore_tkr_data=${happy}:${ompi_fortran_ignore_tkr_type}:${ompi_fortran_ignore_tkr_predecl} # Now put the original CACHE_CHECK MSG_CHECKING back so that it can # output the MSG_RESULT. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran compiler ignore TKR syntax" >&5 $as_echo_n "checking Fortran compiler ignore TKR syntax... " >&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 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_ignore_tkr_data" >&5 $as_echo "$ompi_cv_fortran_ignore_tkr_data" >&6; } result=$ompi_cv_fortran_ignore_tkr_data # Parse the result happy=`echo $result | cut -d: -f1` type=`echo $result | cut -d: -f2` predecl=`echo $result | cut -d: -f3-` if test $happy -eq 1; then : OMPI_FORTRAN_IGNORE_TKR_PREDECL=$predecl OMPI_FORTRAN_IGNORE_TKR_TYPE=$type OMPI_FORTRAN_HAVE_IGNORE_TKR=1 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 we got here, we can build the mpi module if it was requested. # Decide whether to build the ignore TKR version or the # non-ignore-TKR/legacy version. if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPI_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS if test $OMPI_FORTRAN_HAVE_IGNORE_TKR -eq 1; then : OMPI_FORTRAN_USEMPI_DIR=mpi/fortran/use-mpi-ignore-tkr OMPI_FORTRAN_USEMPI_LIB=-l${with_libmpi_name}_usempi_ignore_tkr else OMPI_FORTRAN_USEMPI_DIR=mpi/fortran/use-mpi-tkr OMPI_FORTRAN_USEMPI_LIB=-l${with_libmpi_name}_usempi fi fi OMPI_FORTRAN_HAVE_ISO_C_BINDING=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPI_BINDINGS && \ test $ompi_fortran_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports ISO_C_BINDING" >&5 $as_echo_n "checking if Fortran compiler supports ISO_C_BINDING... " >&6; } if ${ompi_cv_fortran_have_iso_c_binding+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program check_for_iso_c_binding use, intrinsic :: iso_c_binding type CType integer(C_INT) :: i end type end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_iso_c_binding=yes else ompi_cv_fortran_have_iso_c_binding=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_iso_c_binding" >&5 $as_echo "$ompi_cv_fortran_have_iso_c_binding" >&6; } if test "x$ompi_cv_fortran_have_iso_c_binding" = xyes; then : OMPI_FORTRAN_HAVE_ISO_C_BINDING=1 else OMPI_FORTRAN_HAVE_ISO_C_BINDING=0 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building Fortran 'use mpi' bindings" >&5 $as_echo_n "checking if building Fortran 'use mpi' bindings... " >&6; } if test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPI_BINDINGS; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_MPIFH_BINDINGS { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi #--------------------------------- # Fortran use mpi_f08 MPI bindings #--------------------------------- # If we got all the stuff from above, then also look for the new # F08 syntax that we can use for the use_mpif08 module. # We need to have ignore TKR functionality to build the mpi_f08 # module if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_FORTRAN_HAVE_IGNORE_TKR -eq 1; then : OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPIF08_BINDINGS OMPI_FORTRAN_F08_PREDECL=$OMPI_FORTRAN_IGNORE_TKR_PREDECL OMPI_FORTRAN_F08_TYPE=$OMPI_FORTRAN_IGNORE_TKR_TYPE fi # The mpi_f08 module in this version of Open MPI does not properly # handle if sizeof(INTEGER) != sizeof(int) with the mpi_f08 # bindings. As of July 2020, this issue is fixed on main / what # will eventually become Open MPI v5.0.x, but the fix causes an # ABI break. Hence, we're not going to fix it here on this # release branch. # # This is a bit of a quandry, however, because up until v4.0.4, we # built the Open MPI F08 bindings by default (if the compiler # supported them), even in this problematic scenario. Meaning: a # user could use the exact same compilers + configure command line # between v4.0.4 and v4.0.5 and suddenly -- probably unexpectedly # -- not get F08 bindings. That seems a little weird. # # Instead, if we're in the "bad" scenario (sizeof(int) != # sizeof(INTEGER)), if the user didn't explicitly disable the # mpi_f08 module, we'll print a Giant Error Message (GEM) and tell # them what their options are. This may be slightly annoying for # the user, but it at least it won't violate the Law of Least # Surprise. # # Note that mpif.h and mpi module are still ok in the sizeof(int) # != sizeof(INTEGER) scenario; this isssue *only* affects the use # of mpi_f08's TYPE(MPI_Status). # # The following URLs shed some light on this decision: # # - https://github.com/open-mpi/ompi/pull/7921 -- in particular, # the comment at # https://github.com/open-mpi/ompi/pull/7921#issuecomment-656418618 # - https://github.com/open-mpi/ompi/pull/7922 -- in particlar, # the comment at # https://github.com/open-mpi/ompi/pull/7922#issuecomment-656788803 # { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sizeof(C int) == sizeof(Fortran INTEGER)" >&5 $as_echo_n "checking if sizeof(C int) == sizeof(Fortran INTEGER)... " >&6; } if test $ac_cv_sizeof_int -eq $OMPI_SIZEOF_FORTRAN_INTEGER; 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 $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : c=$ac_cv_sizeof_int f=$OMPI_SIZEOF_FORTRAN_INTEGER cat <&5 $as_echo_n "checking if Fortran compiler supports SUBROUTINE BIND(C)... " >&6; } if ${ompi_cv_fortran_have_bind_c_sub+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program check_for_bind_c_sub use, intrinsic :: iso_c_binding interface subroutine foo(i) bind(c) integer :: i end subroutine foo end interface end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_bind_c_sub=yes else ompi_cv_fortran_have_bind_c_sub=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_bind_c_sub" >&5 $as_echo "$ompi_cv_fortran_have_bind_c_sub" >&6; } if test "x$ompi_cv_fortran_have_bind_c_sub" = xyes; then : OMPI_FORTRAN_HAVE_BIND_C_SUB=1 else OMPI_FORTRAN_HAVE_BIND_C_SUB=0 OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS fi fi OMPI_FORTRAN_HAVE_BIND_C_TYPE=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # If we don't have TYPE, BIND(C), we won't build mpi_f08 at all { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports TYPE, BIND(C)" >&5 $as_echo_n "checking if Fortran compiler supports TYPE, BIND(C)... " >&6; } if ${ompi_cv_fortran_have_bind_c_type+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF module bindc_test use, intrinsic :: iso_c_binding type, bind(c) :: foo integer :: value end type foo end module _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_bind_c_type=yes else ompi_cv_fortran_have_bind_c_type=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_bind_c_type" >&5 $as_echo "$ompi_cv_fortran_have_bind_c_type" >&6; } if test "x$ompi_cv_fortran_have_bind_c_type" = xyes; then : OMPI_FORTRAN_HAVE_BIND_C_TYPE=1 else OMPI_FORTRAN_HAVE_BIND_C_TYPE=0 OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS fi fi # Per discussion on the devel list starting here: # http://www.open-mpi.org/community/lists/devel/2014/01/13799.php # we need a new litmus test to disqualify older Fortran compilers # (e.g., Pathscale 4.0.12) that *seem* to support all the Right # Things, but a) do not support BIND(C, name="super_long_name") or # b) run into an internal error when compiling our mpi_f08 module. # Testing for b) is sketchy at best. But OMPI has some BIND(C) # names that are >32 characters, and the same compilers that # exhibit b) also seem to not support BIND(C) names that are >32 # characters (i.e., a)). Hence, the following BIND(C) test checks # to ensure that BIND(C, name="foo") works, where "foo" is # actually a name >32 characters. OMPI_FORTRAN_HAVE_BIND_C_TYPE_NAME=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # If we don't have TYPE, BIND(C, name="foo"), we won't build mpi_f08 at all # See comment in ompi_setup_mpi_fortran.m4: it is important that # the bind(c) name in this text is longer than 32 characters. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports TYPE(type), BIND(C, NAME=\"name\")" >&5 $as_echo_n "checking if Fortran compiler supports TYPE(type), BIND(C, NAME=\"name\")... " >&6; } if ${ompi_cv_fortran_have_bind_c_type_name+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF module bindc_test use, intrinsic :: iso_c_binding type, bind(c) :: foo integer :: value end type foo type(foo), bind(c, name="really_long_name_longer_than_32_chars") :: bar end module _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_have_bind_c_type_name=yes else ompi_cv_fortran_have_bind_c_type_name=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_have_bind_c_type_name" >&5 $as_echo "$ompi_cv_fortran_have_bind_c_type_name" >&6; } if test "x$ompi_cv_fortran_have_bind_c_type_name" = xyes; then : # If we got here, we have all the required forms of # BIND(C), so set the top-level _BIND_C variable to 1. OMPI_FORTRAN_HAVE_BIND_C=1 OMPI_FORTRAN_HAVE_BIND_C_TYPE_NAME=1 else OMPI_FORTRAN_HAVE_BIND_C_TYPE_NAME=0 OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS fi fi # Per https://svn.open-mpi.org/trac/ompi/ticket/4590, if the # Fortran compiler doesn't support PROCEDURE in the way we # want/need, disable the mpi_f08 module. OMPI_FORTRAN_HAVE_PROCEDURE=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # Does the compiler support "procedure" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports PROCEDURE" >&5 $as_echo_n "checking if Fortran compiler supports PROCEDURE... " >&6; } if ${ompi_cv_fortran_procedure+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF MODULE proc_mod INTERFACE SUBROUTINE MPI_User_function END SUBROUTINE END INTERFACE END MODULE proc_mod PROGRAM test_proc INTERFACE SUBROUTINE binky(user_fn) USE proc_mod PROCEDURE(MPI_User_function) :: user_fn END SUBROUTINE END INTERFACE END PROGRAM _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_procedure=yes else ompi_cv_fortran_procedure=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext touch conftest_foo.mod rm -rf *.mod 2>/dev/null ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_procedure" >&5 $as_echo "$ompi_cv_fortran_procedure" >&6; } if test "x$ompi_cv_fortran_procedure" = xyes; then : OMPI_FORTRAN_HAVE_PROCEDURE=1 else OMPI_FORTRAN_HAVE_PROCEDURE=0 OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS fi fi # Per https://github.com/open-mpi/ompi/issues/857, if the Fortran # compiler doesn't properly support "USE ... ONLY" notation, # disable the mpi_f08 module. OMPI_FORTRAN_HAVE_USE_ONLY=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # Does the compiler support "USE ... ONLY" # 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 FCFLAGS_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=\"FCFLAGS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` FCFLAGS_save=$FCFLAGS FCFLAGS="-I. $FCFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports USE...ONLY" >&5 $as_echo_n "checking if Fortran compiler supports USE...ONLY... " >&6; } if ${ompi_cv_fortran_use_only+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > aaa.f90 << EOF MODULE aaa INTEGER :: CMON(1) COMMON/CMMON/CMON INTEGER :: global_aaa END MODULE aaa EOF cat > bbb.f90 << EOF MODULE bbb integer, bind(C, name="cmmon_") :: CMON INTEGER :: global_bbb END MODULE bbb EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:70590: $FC $FCFLAGS -c aaa.f90" >&5 $FC $FCFLAGS -c aaa.f90 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:70597: \$? = $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:70607: $FC $FCFLAGS -c bbb.f90" >&5 $FC $FCFLAGS -c bbb.f90 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:70614: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status cat > conftest.$ac_ext <<_ACEOF PROGRAM test USE aaa, ONLY : global_aaa USE bbb, ONLY : global_bbb implicit none END PROGRAM _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_use_only=yes else ompi_cv_fortran_use_only=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else unset opal_status ompi_cv_fortran_use_only=no fi else unset opal_status ompi_cv_fortran_use_only=no fi rm -rf aaa.f90 aaa.o bbb.f90 bbb.o *.mod 2>/dev/null ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_use_only" >&5 $as_echo "$ompi_cv_fortran_use_only" >&6; } if test "x$ompi_cv_fortran_use_only" = xyes; then : OMPI_FORTRAN_HAVE_USE_ONLY=1 else OMPI_FORTRAN_HAVE_USE_ONLY=0 OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS fi FCFLAGS=$FCFLAGS_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 OMPI_FORTRAN_HAVE_OPTIONAL_ARGS=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # Does the compiler have optional arguments? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports optional arguments" >&5 $as_echo_n "checking if Fortran compiler supports optional arguments... " >&6; } if ${ompi_cv_fortran_optional+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program check_for_optional use, intrinsic :: iso_c_binding interface subroutine check_op(i, ierror) integer, intent(in), value :: i integer, intent(out), optional :: ierror end subroutine check_op end interface integer :: ierror call check_op(0) call check_op(1, ierror) end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_optional=yes else ompi_cv_fortran_optional=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_optional" >&5 $as_echo "$ompi_cv_fortran_optional" >&6; } if test "x$ompi_cv_fortran_optional" = xyes; then : OMPI_FORTRAN_HAVE_OPTIONAL_ARGS=1 else OMPI_FORTRAN_HAVE_OPTIONAL_ARGS=0 OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS fi fi OMPI_FORTRAN_HAVE_C_FUNLOC=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # Does the compiler supports c_funloc per # TS 29113 subclause 8.1 ? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports C_FUNLOC/TS 29113" >&5 $as_echo_n "checking if Fortran compiler supports C_FUNLOC/TS 29113... " >&6; } if ${ompi_cv_fortran_c_funloc+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main abstract interface subroutine MPI_Comm_errhandler_function(comm, error_code) implicit none integer :: comm, error_code end subroutine end interface contains subroutine mysub(fn) use, intrinsic :: iso_c_binding, only : c_funloc, c_funptr procedure(MPI_Comm_errhandler_function) :: comm_errhandler_fn type(c_funptr) :: comm_errhandler_fn_c comm_errhandler_fn_c = c_funloc(comm_errhandler_fn) end subroutine mysub end program _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_c_funloc=yes else ompi_cv_fortran_c_funloc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_c_funloc" >&5 $as_echo "$ompi_cv_fortran_c_funloc" >&6; } if test "x$ompi_cv_fortran_c_funloc" = xyes; then : OMPI_FORTRAN_HAVE_C_FUNLOC=1 else OMPI_FORTRAN_HAVE_C_FUNLOC=0 OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS fi fi OMPI_FORTRAN_HAVE_PRIVATE=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # Does the compiler support "private" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports PRIVATE" >&5 $as_echo_n "checking if Fortran compiler supports PRIVATE... " >&6; } if ${ompi_cv_fortran_private+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF module test_for_private type :: derived_with_private integer :: this_is_a_public_integer integer, private :: this_is_a_private_integer end type derived_with_private end module test_for_private _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_private=yes else ompi_cv_fortran_private=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext touch conftest_foo.mod rm -rf *.mod 2>/dev/null ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_private" >&5 $as_echo "$ompi_cv_fortran_private" >&6; } if test "x$ompi_cv_fortran_private" = xyes; then : OMPI_FORTRAN_HAVE_PRIVATE=1 else OMPI_FORTRAN_HAVE_PRIVATE=0 fi fi OMPI_FORTRAN_HAVE_PROTECTED=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # Does the compiler support "protected" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports PROTECTED" >&5 $as_echo_n "checking if Fortran compiler supports PROTECTED... " >&6; } if ${ompi_cv_fortran_protected+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF module test_for_protected integer, protected :: bogus end module test_for_protected _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_protected=yes else ompi_cv_fortran_protected=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext touch conftest_foo.mod rm -rf *.mod 2>/dev/null ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_protected" >&5 $as_echo "$ompi_cv_fortran_protected" >&6; } if test "x$ompi_cv_fortran_protected" = xyes; then : OMPI_FORTRAN_HAVE_PROTECTED=1 else OMPI_FORTRAN_HAVE_PROTECTED=0 fi fi OMPI_FORTRAN_HAVE_ABSTRACT=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # Does the compiler support "abstract" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports ABSTRACT" >&5 $as_echo_n "checking if Fortran compiler supports ABSTRACT... " >&6; } if ${ompi_cv_fortran_abstract+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF MODULE abstract_mod ABSTRACT INTERFACE SUBROUTINE binky END SUBROUTINE END INTERFACE END MODULE abstract_mod _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_abstract=yes else ompi_cv_fortran_abstract=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext touch conftest_foo.mod rm -rf *.mod 2>/dev/null ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_abstract" >&5 $as_echo "$ompi_cv_fortran_abstract" >&6; } if test "x$ompi_cv_fortran_abstract" = xyes; then : OMPI_FORTRAN_HAVE_ABSTRACT=1 else OMPI_FORTRAN_HAVE_ABSTRACT=0 fi fi OMPI_FORTRAN_HAVE_ASYNCHRONOUS=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # Does the compiler support "asynchronous" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports ASYNCHRONOUS" >&5 $as_echo_n "checking if Fortran compiler supports ASYNCHRONOUS... " >&6; } if ${ompi_cv_fortran_asynchronous+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF MODULE asynch_mod INTERFACE SUBROUTINE binky(buf) REAL, DIMENSION(*), ASYNCHRONOUS :: buf END SUBROUTINE END INTERFACE END MODULE asynch_mod _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ompi_cv_fortran_asynchronous=yes else ompi_cv_fortran_asynchronous=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext touch conftest_foo.mod rm -rf *.mod 2>/dev/null ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_asynchronous" >&5 $as_echo "$ompi_cv_fortran_asynchronous" >&6; } if test "x$ompi_cv_fortran_asynchronous" = xyes; then : OMPI_FORTRAN_HAVE_ASYNCHRONOUS=1 else OMPI_FORTRAN_HAVE_ASYNCHRONOUS=0 fi fi OMPI_FORTRAN_F08_HANDLE_SIZE=4 OMPI_FORTRAN_F08_HANDLE_ALIGNMENT=4 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # How big are derived types with a single INTEGER? # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_type_var=`$as_echo "ompi_cv_fortran_sizeof_type(test_mpi_handle)" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran type(test_mpi_handle)" >&5 $as_echo_n "checking size of Fortran type(test_mpi_handle)... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else if test "$ompi_cv_fortran_external_symbol" = "double underscore" ; then # so the general rule is that if there is an _ in the function # name, then there are two trailing underscores. Otherwise, # there is only one trailing underscore. Any idea how to do # that with m4_translit? if echo size | $GREP _ >/dev/null 2>&1 ; then ompi_ac_size_fn=size__ else ompi_ac_size_fn=size_ fi elif test "$ompi_cv_fortran_external_symbol" = "single underscore" ; then ompi_ac_size_fn=size_ elif test "$ompi_cv_fortran_external_symbol" = "mixed case" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "no underscore" ; then ompi_ac_size_fn=size elif test "$ompi_cv_fortran_external_symbol" = "upper case" ; then ompi_ac_size_fn=SIZE else as_fn_error $? "unknown naming convention: $ompi_cv_fortran_external_symbol" "$LINENO" 5 fi # Fortran module cat > conftestf.f90 < conftest.c < #include $ompi_conftest_h #ifdef __cplusplus extern "C" { #endif void $ompi_ac_size_fn(char *a, char *b) { int diff = (int) (b - a); FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); } #ifdef __cplusplus } #endif EOF # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:71094: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:71101: \$? = $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:71111: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 opal_status=$? # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:71118: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status happy="yes" else unset opal_status happy="no" fi else unset opal_status happy="no" fi if test "$happy" = "no" ; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:71139: here is the Fortran program:" >&5 else echo here is the Fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f90" && test -f "conftestf.f90"; then cat conftestf.f90 >&5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine size of type(test_mpi_handle)" >&5 $as_echo "$as_me: WARNING: Could not determine size of type(test_mpi_handle)" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for details" >&5 $as_echo "$as_me: WARNING: See config.log for details" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine size of type(test_mpi_handle) when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:71162: ./conftest" >&5 ./conftest 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:71169: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status eval "$as_type_var=\`cat conftestval\`" else unset opal_status as_fn_error $? "Could not determine size of type(test_mpi_handle)" "$LINENO" 5 fi fi unset happy ompi_conftest_h rm -rf conftest* fi eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval OMPI_FORTRAN_F08_HANDLE_SIZE=\$$as_type_var # Use of m4_translit suggested by Eric Blake: # http://lists.gnu.org/archive/html/bug-autoconf/2010-10/msg00016.html as_type_var=`$as_echo "ompi_cv_fortran_alignment_type(test_mpi_handle)" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of Fortran type(test_mpi_handle)" >&5 $as_echo_n "checking alignment of Fortran type(test_mpi_handle)... " >&6; } if eval \${$as_type_var+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF module alignment_mod type, BIND(C) :: test_mpi_handle integer :: MPI_VAL end type test_mpi_handle type(test_mpi_handle) :: t1 type(test_mpi_handle) :: t2 end module program falignment use alignment_mod OPEN(UNIT=10, FILE="conftestval") if (LOC(t1) > LOC(t2)) then write (10,'(I5)') LOC(t1)-LOC(t2) else write (10,'(I5)') LOC(t2)-LOC(t1) endif CLOSE(10) end program _ACEOF if ac_fn_fc_try_link "$LINENO"; then : if test "$cross_compiling" = "yes"; then : as_fn_error $? "Can not determine alignment of type(test_mpi_handle) when cross-compiling" "$LINENO" 5 else # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:71236: ./conftest" >&5 ./conftest 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:71243: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status eval "$as_type_var=\`cat conftestval\`" else unset opal_status as_fn_error $? "Could not determine alignment of type(test_mpi_handle)" "$LINENO" 5 fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine alignment of type(test_mpi_handle)" >&5 $as_echo "$as_me: WARNING: Could not determine alignment of type(test_mpi_handle)" >&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 conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext rm -rf conftest* *.mod 2> /dev/null 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 eval ac_res=\$$as_type_var { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval OMPI_FORTRAN_F08_HANDLE_ALIGNMENT=\$$as_type_var fi OMPI_FORTRAN_NEED_WRAPPER_ROUTINES=1 OMPI_FORTRAN_F08_PREDECL='!' OMPI_FORTRAN_F08_TYPE=real OMPI_FORTRAN_HAVE_F08_ASSUMED_RANK=0 if test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : # Look for Fortran 2008 assumed rank syntax { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran compiler F08 assumed rank syntax" >&5 $as_echo_n "checking Fortran compiler F08 assumed rank syntax... " >&6; } if ${ompi_cv_fortran_f08_assumed_rank+:} false; then : $as_echo_n "(cached) " >&6 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 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=\"happy\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # If we were called here, it means that the value was not cached, # so we need to check several different things. Since CACHE_CHECK # puts up a MSG_CHECKING, we need to terminate it with a bogus # answer before doing the individual checks. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not cached; checking" >&5 $as_echo "not cached; checking" >&6; } # Check for the F08 type(*),dimension(..) syntax # 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 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=\"msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler support of TYPE(*), DIMENSION(..)" >&5 $as_echo_n "checking for Fortran compiler support of TYPE(*), DIMENSION(..)... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main ! ! Autoconf puts "program main" at the top interface subroutine force_assumed_shape(a, count) integer :: count complex, dimension(:,:) :: a end subroutine force_assumed_shape end interface interface subroutine foo(buffer, count) ! buffer TYPE(*), DIMENSION(..), intent(in) :: buffer integer, intent(in) :: count end subroutine foo end interface ! Simple interface with an un-typed first argument (e.g., a choice buffer) integer :: count real :: buffer1(3) character :: buffer2 complex :: buffer3(4,4) complex, pointer, dimension(:,:) :: ptr target :: buffer3 integer :: buffer4 ptr => buffer3 ! Set some known values (somewhat irrelevant for this test, but just be ! sure that the values are initialized) a = 17 buffer1(1) = 4.5 buffer1(2) = 6.7 buffer1(3) = 8.9 buffer2 = 'a' ! Call with one type for the first argument call foo(buffer1, count) ! Call with a different type for the first argument call foo(buffer2, count) ! Force us through an assumed shape call force_assumed_shape(buffer3, count) ! Force a pointer call through an assumed shape (!) ptr => buffer3 ! Also try with a simple scalar integer ! (Intel 2016 compiler suite only partially supports GCC pragmas; ! they work with all the above buffer types, but fail with a ! simple scalar integer) call foo(buffer4, count) end program subroutine force_assumed_shape(a, count) integer :: count real, dimension(:,:) :: a call foo(a, count) end subroutine force_assumed_shape ! Autoconf puts "end" after the last line subroutine bogus end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : msg=yes ompi_fortran_ignore_tkr_predecl="!" ompi_fortran_ignore_tkr_type="TYPE(*), DIMENSION(..)" happy=yes else msg=no happy=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&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 # 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 ompi_cv_fortran_f08_assumed_rank=$happy; # Now put the original CACHE_CHECK MSG_CHECKING back so that it can # output the MSG_RESULT. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran compiler F08 assumed rank syntax" >&5 $as_echo_n "checking Fortran compiler F08 assumed rank syntax... " >&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 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_fortran_f08_assumed_rank" >&5 $as_echo "$ompi_cv_fortran_f08_assumed_rank" >&6; } if test "x$ompi_cv_fortran_f08_assumed_rank" = xyes; then : # If we have assumed rank, we can build the use # mpi_f08 module "better" OMPI_FORTRAN_F08_PREDECL='!' OMPI_FORTRAN_F08_TYPE='type(*), dimension(..)' OMPI_FORTRAN_HAVE_F08_ASSUMED_RANK=1 fi # Which mpi_f08 implementation are we using? # a) compiler supports BIND(C) and optional arguments # ("good" compilers) # b) compiler that does not support the items listed # in b) ("bad" compilers) { $as_echo "$as_me:${as_lineno-$LINENO}: checking which mpi_f08 implementation to build" >&5 $as_echo_n "checking which mpi_f08 implementation to build... " >&6; } if test $OMPI_FORTRAN_HAVE_OPTIONAL_ARGS -eq 1; then : # Case a) "good compiler" OMPI_FORTRAN_NEED_WRAPPER_ROUTINES=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"good\" compiler, no array subsections" >&5 $as_echo "\"good\" compiler, no array subsections" >&6; } else # Case b) "bad compiler" OMPI_FORTRAN_NEED_WRAPPER_ROUTINES=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"bad\" compiler, no array subsections" >&5 $as_echo "\"bad\" compiler, no array subsections" >&6; } fi fi # Note: the current implementation *only* has wrappers; # there is no optimized implementation for a "good" # compiler. I'm leaving the above logic in place for # if we ever do the optimized/no-wrapper # implementation, but for now, I'm just hard-wiring # OMPI_FORTRAN_NEED_WRAPPER_ROUTINES to 1 when we're # building the F08 wrappers. if test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : OMPI_FORTRAN_NEED_WRAPPER_ROUTINES=1 else OMPI_FORTRAN_NEED_WRAPPER_ROUTINES=0 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building Fortran 'use mpi_f08' bindings" >&5 $as_echo_n "checking if building Fortran 'use mpi_f08' bindings... " >&6; } if test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then : OMPI_FORTRAN_USEMPIF08_LIB=-l${with_libmpi_name}_usempif08 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else OMPI_TRY_FORTRAN_BINDIGS=$OMPI_FORTRAN_USEMPI_BINDINGS { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # If Fortran bindings is requested, make sure at least one can be built if test $OMPI_MIN_REQUIRED_FORTRAN_BINDINGS -gt $OMPI_BUILD_FORTRAN_BINDINGS; then : as_fn_error $? "Cannot build requested Fortran bindings, aborting" "$LINENO" 5 fi # ------------------- # mpif.h final setup # ------------------- # A preprocessor header file just for Fortran. We cannot use AC # CONFIG_HEADER because it adds a /* */-style comment at the top, # and this header file must be usable in .F90 files. :-( ac_config_files="$ac_config_files ompi/mpi/fortran/configure-fortran-output.h" # Values for wrapper compilers OMPI_FC=$FC set dummy $OMPI_FC OMPI_FC_ARGV0=$2 if test -n "$OMPI_FC_ARGV0"; then : BASEFC="`basename $OMPI_FC_ARGV0`" # 1 is the variable name to do "which" on # 2 is the variable name to assign the return value to # Is the private index set? If not, set it. if test "x$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_FC_ARGV0 IFS_SAVE=$IFS IFS="$PATH_SEPARATOR" for opal_dir in $PATH; do if test -x "$opal_dir/$opal_prog"; then OMPI_FC_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 else OMPI_FC=none BASEFC=none OMPI_FC_ABSOLUTE=none fi cat >>confdefs.h <<_ACEOF #define OMPI_FC "$OMPI_FC" _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FC_ABSOLUTE "$OMPI_FC_ABSOLUTE" _ACEOF # These go into ompi/info/param.c cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_BUILD_SIZEOF $OMPI_FORTRAN_BUILD_SIZEOF _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_INTERFACE $OMPI_FORTRAN_HAVE_INTERFACE _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_ISO_FORTRAN_ENV $OMPI_FORTRAN_HAVE_ISO_FORTRAN_ENV _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_STORAGE_SIZE $OMPI_FORTRAN_HAVE_STORAGE_SIZE _ACEOF # This conditional is used to determine whether we compile the # various .f90 files that contain MPI_SIZEOF implementations. if test $OMPI_FORTRAN_BUILD_SIZEOF -eq 1; then BUILD_FORTRAN_SIZEOF_TRUE= BUILD_FORTRAN_SIZEOF_FALSE='#' else BUILD_FORTRAN_SIZEOF_TRUE='#' BUILD_FORTRAN_SIZEOF_FALSE= fi # There are 2 layers to the MPI mpif.h layer. The only extra thing # that determine mpif.h bindings is that fortran can be disabled # by user. In such cases, we need to not build the target at all. # One layer generates MPI_ bindings. The other layer # generates PMPI_ bindings. The following conditions # determine whether each (or both) these layers are built. # # Superceeding clause: # - Fortran bindings should be enabled, else everything is # disabled # 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 -eq 1 && \ test $OMPI_BUILD_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER_TRUE= BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER_FALSE='#' else BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER_TRUE='#' BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER_FALSE= fi if test $OMPI_BUILD_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER_TRUE= BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER_FALSE='#' else BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER_TRUE='#' BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER_FALSE= fi if test $OMPI_BUILD_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then OMPI_BUILD_FORTRAN_MPIFH_BINDINGS_TRUE= OMPI_BUILD_FORTRAN_MPIFH_BINDINGS_FALSE='#' else OMPI_BUILD_FORTRAN_MPIFH_BINDINGS_TRUE='#' OMPI_BUILD_FORTRAN_MPIFH_BINDINGS_FALSE= fi # ------------------- # use mpi final setup # ------------------- # This goes into ompi/Makefile.am # This goes into mpifort-wrapper-data.txt # These go into mpi-ignore-tkr-interfaces.h / mpi-ignore-tkr-file-interfaces.h # These go into ompi/info/param.c cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_IGNORE_TKR_PREDECL "$OMPI_FORTRAN_IGNORE_TKR_PREDECL" _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_IGNORE_TKR_TYPE $type _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_IGNORE_TKR $OMPI_FORTRAN_HAVE_IGNORE_TKR _ACEOF # Somewhat redundant because ompi/Makefile.am won't traverse into # the unused "use mpi" directory, but we might as well have the # ompi/mpi/fortran/use-mpi*/Makefile.ams be safe, too. # True if we're building either "use mpi" bindings if test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPI_BINDINGS || \ test $OMPI_FORTRAN_HAVE_IGNORE_TKR -eq 1; then OMPI_BUILD_FORTRAN_USEMPI_BINDINGS_TRUE= OMPI_BUILD_FORTRAN_USEMPI_BINDINGS_FALSE='#' else OMPI_BUILD_FORTRAN_USEMPI_BINDINGS_TRUE='#' OMPI_BUILD_FORTRAN_USEMPI_BINDINGS_FALSE= fi # True if we're building the old TKR-style bindings if test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPI_BINDINGS && \ test $OMPI_FORTRAN_HAVE_IGNORE_TKR -eq 0; then OMPI_BUILD_FORTRAN_USEMPI_TKR_BINDINGS_TRUE= OMPI_BUILD_FORTRAN_USEMPI_TKR_BINDINGS_FALSE='#' else OMPI_BUILD_FORTRAN_USEMPI_TKR_BINDINGS_TRUE='#' OMPI_BUILD_FORTRAN_USEMPI_TKR_BINDINGS_FALSE= fi # True if we're building the new ignore-TKR-style bindings if test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPI_BINDINGS && \ test $OMPI_FORTRAN_HAVE_IGNORE_TKR -eq 1; then OMPI_BUILD_FORTRAN_USEMPI_IGNORE_TKR_BINDINGS_TRUE= OMPI_BUILD_FORTRAN_USEMPI_IGNORE_TKR_BINDINGS_FALSE='#' else OMPI_BUILD_FORTRAN_USEMPI_IGNORE_TKR_BINDINGS_TRUE='#' OMPI_BUILD_FORTRAN_USEMPI_IGNORE_TKR_BINDINGS_FALSE= fi # ------------------- # use mpi_f08 final setup # ------------------- # This goes into mpifort-wrapper-data.txt # These go into interfaces/mpi-f08-interfaces-[no]bind.h (and # mpi-f*-interfaces*.h files) # This is used to generate weak symbols (or not) in # ompi/mpi/fortran/mpif-h/_f.c, and # ompi/mpi/fortran/configure-fortran-output.h. cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_NEED_WRAPPER_ROUTINES $OMPI_FORTRAN_NEED_WRAPPER_ROUTINES _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_F08_HANDLE_SIZE $OMPI_FORTRAN_F08_HANDLE_SIZE _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_F08_HANDLE_ALIGNMENT $OMPI_FORTRAN_F08_HANDLE_ALIGNMENT _ACEOF # These go into ompi/info/param.c cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_F08_ASSUMED_RANK $OMPI_FORTRAN_HAVE_F08_ASSUMED_RANK _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_BIND_C $OMPI_FORTRAN_HAVE_BIND_C _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_ISO_C_BINDING $OMPI_FORTRAN_HAVE_ISO_C_BINDING _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_BIND_C_SUB $OMPI_FORTRAN_HAVE_BIND_C_SUB _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_BIND_C_TYPE $OMPI_FORTRAN_HAVE_BIND_C_TYPE _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_BIND_C_TYPE_NAME $OMPI_FORTRAN_HAVE_BIND_C_TYPE_NAME _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_OPTIONAL_ARGS $OMPI_FORTRAN_HAVE_OPTIONAL_ARGS _ACEOF # For configure-fortran-output.h, mpi-f08-types.F90 (and ompi_info) cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_PRIVATE $OMPI_FORTRAN_HAVE_PRIVATE _ACEOF # For ompi_info only cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_PROTECTED $OMPI_FORTRAN_HAVE_PROTECTED _ACEOF # For configure-fortran-output.h, mpi-f08-interfaces-callbacks.F90 # (and ompi_info) cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_ABSTRACT $OMPI_FORTRAN_HAVE_ABSTRACT _ACEOF # For configure-fortran-output.h, various files in # ompi/mpi/fortran/use-mpi-f08/*.F90 and *.h files (and ompi_info) cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_ASYNCHRONOUS $OMPI_FORTRAN_HAVE_ASYNCHRONOUS _ACEOF # For configure-fortran-output.h, various files in # ompi/mpi/fortran/use-mpi-f08/*.F90 and *.h files (and ompi_info) cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_PROCEDURE $OMPI_FORTRAN_HAVE_PROCEDURE _ACEOF # For configure-fortran-output.h, various files in # ompi/mpi/fortran/use-mpi-f08/*.F90 and *.h files (and ompi_info) cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_USE_ONLY $OMPI_FORTRAN_HAVE_USE_ONLY _ACEOF # For configure-fortran-output.h, various files in # ompi/mpi/fortran/use-mpi-f08/*.F90 and *.h files (and ompi_info) cat >>confdefs.h <<_ACEOF #define OMPI_FORTRAN_HAVE_C_FUNLOC $OMPI_FORTRAN_HAVE_C_FUNLOC _ACEOF # For configure-fortran-output.h # Somewhat redundant because ompi/Makefile.am won't traverse into # ompi/mpi/fortran/use-mpi-f08 if it's not to be built, but we # might as well have ompi/mpi/fortran/use-mpi-f08/Makefile.am be # safe, too. if test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS_TRUE= OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS_FALSE='#' else OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS_TRUE='#' OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS_FALSE= fi cat >>confdefs.h <<_ACEOF #define OMPI_BUILD_FORTRAN_BINDINGS $OMPI_BUILD_FORTRAN_BINDINGS _ACEOF # Used in Makefile.ompi-rules if test $OMPI_BUILD_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS; then MAN_PAGE_BUILD_MPIFH_BINDINGS_TRUE= MAN_PAGE_BUILD_MPIFH_BINDINGS_FALSE='#' else MAN_PAGE_BUILD_MPIFH_BINDINGS_TRUE='#' MAN_PAGE_BUILD_MPIFH_BINDINGS_FALSE= fi if test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS; then MAN_PAGE_BUILD_USEMPIF08_BINDINGS_TRUE= MAN_PAGE_BUILD_USEMPIF08_BINDINGS_FALSE='#' else MAN_PAGE_BUILD_USEMPIF08_BINDINGS_TRUE='#' MAN_PAGE_BUILD_USEMPIF08_BINDINGS_FALSE= fi if test "$enable_oshmem" = "yes" && \ test "$ompi_fortran_happy" = "1" && \ test "$OMPI_TRY_FORTRAN_BINDINGS" -gt "$OMPI_FORTRAN_NO_BINDINGS" && \ test "$enable_oshmem_fortran" != "no"; then OSHMEM_BUILD_FORTRAN_BINDINGS_TRUE= OSHMEM_BUILD_FORTRAN_BINDINGS_FALSE='#' else OSHMEM_BUILD_FORTRAN_BINDINGS_TRUE='#' OSHMEM_BUILD_FORTRAN_BINDINGS_FALSE= fi # checkpoint results cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache ################################## # Header files ################################## opal_show_title "Header file tests" for ac_header in alloca.h aio.h arpa/inet.h dirent.h \ dlfcn.h endian.h execinfo.h err.h fcntl.h grp.h libgen.h \ libutil.h memory.h netdb.h netinet/in.h netinet/tcp.h \ poll.h pthread.h pty.h pwd.h sched.h \ strings.h stropts.h linux/ethtool.h linux/sockios.h \ sys/fcntl.h sys/ipc.h sys/shm.h \ sys/ioctl.h sys/mman.h sys/param.h sys/queue.h \ sys/resource.h sys/select.h sys/socket.h sys/sockio.h \ sys/stat.h sys/statfs.h sys/statvfs.h sys/time.h sys/tree.h \ sys/types.h sys/uio.h sys/un.h net/uio.h sys/utsname.h sys/vfs.h sys/wait.h syslog.h \ termios.h ulimit.h unistd.h util.h utmp.h malloc.h \ ifaddrs.h crt_externs.h regex.h mntent.h paths.h \ ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h db.h ndbm.h zlib.h ieee754.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 for ac_header in sys/mount.h do : ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default #if HAVE_SYS_PARAM_H #include #endif " if test "x$ac_cv_header_sys_mount_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_MOUNT_H 1 _ACEOF fi done for ac_header in sys/sysctl.h do : ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default #if HAVE_SYS_PARAM_H #include #endif " if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_SYSCTL_H 1 _ACEOF fi done # Needed to work around Darwin requiring sys/socket.h for # net/if.h for ac_header in net/if.h do : ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_SYS_SOCKET_H # include #endif " if test "x$ac_cv_header_net_if_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NET_IF_H 1 _ACEOF fi done # checkpoint results cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache ################################## # Types ################################## opal_show_title "Type tests" ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_NET_IF_H #include #endif " if test "x$ac_cv_type_socklen_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SOCKLEN_T 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_NET_IF_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 fi ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_NET_IF_H #include #endif " if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_SOCKADDR_IN6 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_NET_IF_H #include #endif " if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_SOCKADDR_STORAGE 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "struct ifreq" "ac_cv_type_struct_ifreq" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_NET_IF_H #include #endif " if test "x$ac_cv_type_struct_ifreq" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_IFREQ 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "struct ethtool_cmd" "ac_cv_type_struct_ethtool_cmd" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_NET_IF_H #include #endif " if test "x$ac_cv_type_struct_ethtool_cmd" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_ETHTOOL_CMD 1 _ACEOF fi ac_fn_c_check_decl "$LINENO" "ethtool_cmd_speed" "ac_cv_have_decl_ethtool_cmd_speed" "$ac_includes_default #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_LINUX_SOCKIOS_H #include #endif " if test "x$ac_cv_have_decl_ethtool_cmd_speed" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_ETHTOOL_CMD_SPEED $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "SIOCETHTOOL" "ac_cv_have_decl_SIOCETHTOOL" "$ac_includes_default #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_LINUX_SOCKIOS_H #include #endif " if test "x$ac_cv_have_decl_SIOCETHTOOL" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_SIOCETHTOOL $ac_have_decl _ACEOF ac_fn_c_check_member "$LINENO" "struct ethtool_cmd" "speed_hi" "ac_cv_member_struct_ethtool_cmd_speed_hi" "$ac_includes_default #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_LINUX_SOCKIOS_H #include #endif " if test "x$ac_cv_member_struct_ethtool_cmd_speed_hi" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_ETHTOOL_CMD_SPEED_HI 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "struct ethtool_cmd" "speed_hi" "ac_cv_member_struct_ethtool_cmd_speed_hi" "$ac_includes_default #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_LINUX_SOCKIOS_H #include #endif " if test "x$ac_cv_member_struct_ethtool_cmd_speed_hi" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_ETHTOOL_CMD_SPEED_HI 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "struct ethtool_cmd" "speed_hi" "ac_cv_member_struct_ethtool_cmd_speed_hi" "$ac_includes_default #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_LINUX_SOCKIOS_H #include #endif " if test "x$ac_cv_member_struct_ethtool_cmd_speed_hi" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_ETHTOOL_CMD_SPEED_HI 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "struct ethtool_cmd" "speed_hi" "ac_cv_member_struct_ethtool_cmd_speed_hi" "$ac_includes_default #ifdef HAVE_LINUX_ETHTOOL_H #include #endif #ifdef HAVE_LINUX_SOCKIOS_H #include #endif " if test "x$ac_cv_member_struct_ethtool_cmd_speed_hi" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_ETHTOOL_CMD_SPEED_HI 1 _ACEOF fi ac_fn_c_check_decl "$LINENO" "AF_UNSPEC" "ac_cv_have_decl_AF_UNSPEC" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif " if test "x$ac_cv_have_decl_AF_UNSPEC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_AF_UNSPEC $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "PF_UNSPEC" "ac_cv_have_decl_PF_UNSPEC" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif " if test "x$ac_cv_have_decl_PF_UNSPEC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PF_UNSPEC $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "AF_INET6" "ac_cv_have_decl_AF_INET6" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif " if test "x$ac_cv_have_decl_AF_INET6" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_AF_INET6 $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "PF_INET6" "ac_cv_have_decl_PF_INET6" "$ac_includes_default #if HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif " if test "x$ac_cv_have_decl_PF_INET6" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PF_INET6 $ac_have_decl _ACEOF # SA_RESTART in signal.h # 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 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=\"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 if SA_RESTART defined in signal.h" >&5 $as_echo_n "checking if SA_RESTART defined in signal.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef SA_RESTART yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "yes" >/dev/null 2>&1; then : MSG=yes VALUE=1 else MSG=no VALUE=0 fi rm -f conftest* cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SA_RESTART $VALUE _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5 $as_echo "$MSG" >&6; } # 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 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include #if HAVE_SYS_SOCKET_H #include #endif " if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" " #include #include " if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_DIRENT_D_TYPE 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include " if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SIGINFO_T_SI_FD 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include " if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SIGINFO_T_SI_BAND 1 _ACEOF fi # # Checks for struct member names in struct statfs # ac_fn_c_check_member "$LINENO" "struct statfs" "f_type" "ac_cv_member_struct_statfs_f_type" " $ac_includes_default #ifdef HAVE_SYS_VFS_H #include #endif #ifdef HAVE_SYS_STATFS_H #include #endif " if test "x$ac_cv_member_struct_statfs_f_type" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STATFS_F_TYPE 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" " $ac_includes_default #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_MOUNT_H #include #endif #ifdef HAVE_SYS_VFS_H #include #endif #ifdef HAVE_SYS_STATFS_H #include #endif " if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1 _ACEOF fi # # Checks for struct member names in struct statvfs # ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" " $ac_includes_default #ifdef HAVE_SYS_STATVFS_H #include #endif " if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STATVFS_F_BASETYPE 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" " $ac_includes_default #ifdef HAVE_SYS_STATVFS_H #include #endif " if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1 _ACEOF fi # # Find corresponding types for MPI_Aint, MPI_Count, and MPI_Offset. # And if relevant, find the corresponding MPI_ADDRESS_KIND, # MPI_COUNT_KIND, and MPI_OFFSET_KIND. # # MPI_Aint type is ptrdiff_t; just use that. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of MPI_Aint" >&5 $as_echo_n "checking for type of MPI_Aint... " >&6; } MPI_AINT_TYPE=ptrdiff_t # Get the size of this type; we'll need it to figure out Fortran's # MPI_ADDRESS_KIND, later MPI_AINT_SIZE=$ac_cv_sizeof_ptrdiff_t cat >>confdefs.h <<_ACEOF #define OMPI_MPI_AINT_TYPE $MPI_AINT_TYPE _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_AINT_TYPE (size: $MPI_AINT_SIZE)" >&5 $as_echo "$MPI_AINT_TYPE (size: $MPI_AINT_SIZE)" >&6; } # Find the type of MPI_Count. Per MPI-3.0 2.5.8, it needs to be # as least as large as an int, MPI_Aint, and MPI_Offset (we'll # define MPI_Offset later to be the same as an MPI_Count). # Note, however, that per # https://svn.open-mpi.org/trac/ompi/ticket/4205, MPI_Count cannot # be larger than a size_t (e.g., if you're compiling in 32 bit # more on a 64 bit platform, long long will be 8 bytes, but size_t # will only be 4 bytes). The entire BTL, PML, and convertor # infrastructure rely on sizeof(MPI_Count) being <= # sizeof(size_t). So artificially limit the size of MPI_Count, if # necessary. # Also note: do not search for int64_t or int32_t, because using # these types mean that we would need to include in # mpi.h, which we probably shouldn't do. # Finally, note that MPI_Count has an impact on the extent of a # datatype, extent defined by the MPI standard as an MPI_Aint. # This MPI_Aint is also the largest different between two memory # pointers -- the well-known ptrdiff_t. There *are* systems where # the address space is 32 bit but the filesystem space is 64 bit # (e.g., BlueGene), and therefore MPI_Aint is 32 bit and # MPI_Offset (and therefore MPI_Count) is 64 bit. Open MPI # doesn't currently support this configuration -- re-tooling in # the convertor/PML/BML/BTL will be necessary before that can work # properly. # Keep in mind, however, that while ptrdiff_t and size_t represent # similar concepts (length or displacement in memory), one is # slightly larger than the other (one is unsigned and the other # signed) and there is no requirement for them to be of the same # width. On systems with non-monolithic memory space, the scheme # we use below may not work. On systems with non-monolithic # memory space, the scheme we use below may not work. ...but such # systems are pretty rare today. MPI_COUNT_TYPE=unknonwn { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of MPI_Count" >&5 $as_echo_n "checking for type of MPI_Count... " >&6; } if test $ac_cv_type_long_long = yes && \ test $ac_cv_sizeof_long_long -le $ac_cv_sizeof_size_t && \ test $ac_cv_sizeof_long_long -ge $MPI_AINT_SIZE; then MPI_COUNT_TYPE="long long" MPI_COUNT_DATATYPE=MPI_LONG_LONG MPI_COUNT_SIZE=$ac_cv_sizeof_long_long elif test $ac_cv_sizeof_long -le $ac_cv_sizeof_size_t && \ test $ac_cv_sizeof_long -ge $MPI_AINT_SIZE; then MPI_COUNT_TYPE=long MPI_COUNT_DATATYPE=MPI_LONG MPI_COUNT_SIZE=$ac_cv_sizeof_long elif test $ac_cv_sizeof_int -le $ac_cv_sizeof_size_t && \ test $ac_cv_sizeof_int -ge $MPI_AINT_SIZE; then MPI_COUNT_TYPE=int MPI_COUNT_DATATYPE=MPI_INT MPI_COUNT_SIZE=$ac_cv_sizeof_int fi if test "$MPI_COUNT_TYPE" = "unknown"; 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: *** Unable to find a good type for MPI_Count" >&5 $as_echo "$as_me: WARNING: *** Unable to find a good type for MPI_Count" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test $MPI_COUNT_SIZE -eq 8 ; then MPI_COUNT_MAX="0x7fffffffffffffffll" elif test $MPI_COUNT_SIZE -eq 4 ; then MPI_COUNT_MAX="0x7fffffffl" elif test $MPI_COUNT_SIZE -eq 2 ; then MPI_COUNT_MAX="0x7fff" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_COUNT_TYPE (size: $MPI_COUNT_SIZE)" >&5 $as_echo "$MPI_COUNT_TYPE (size: $MPI_COUNT_SIZE)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Configure cannot handle this size -- contact Open MPI developers" >&5 $as_echo "$as_me: WARNING: *** Configure cannot handle this size -- contact Open MPI developers" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi cat >>confdefs.h <<_ACEOF #define OMPI_MPI_COUNT_SIZE $MPI_COUNT_SIZE _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_MPI_COUNT_TYPE $MPI_COUNT_TYPE _ACEOF cat >>confdefs.h <<_ACEOF #define MPI_COUNT_MAX $MPI_COUNT_MAX _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_COUNT_TYPE (size: $MPI_COUNT_SIZE)" >&5 $as_echo "$MPI_COUNT_TYPE (size: $MPI_COUNT_SIZE)" >&6; } # Just make MPI_Offset be the same as MPI_Count { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of MPI_Offset" >&5 $as_echo_n "checking for type of MPI_Offset... " >&6; } MPI_OFFSET_TYPE=$MPI_COUNT_TYPE cat >>confdefs.h <<_ACEOF #define OMPI_MPI_OFFSET_TYPE $MPI_OFFSET_TYPE _ACEOF MPI_OFFSET_SIZE=$MPI_COUNT_SIZE cat >>confdefs.h <<_ACEOF #define OMPI_MPI_OFFSET_SIZE $MPI_OFFSET_SIZE _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_COUNT_TYPE (size: $MPI_OFFSET_SIZE)" >&5 $as_echo "$MPI_COUNT_TYPE (size: $MPI_OFFSET_SIZE)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an MPI datatype for MPI_Offset" >&5 $as_echo_n "checking for an MPI datatype for MPI_Offset... " >&6; } MPI_OFFSET_DATATYPE=$MPI_COUNT_DATATYPE cat >>confdefs.h <<_ACEOF #define OMPI_OFFSET_DATATYPE $MPI_OFFSET_DATATYPE _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_OFFSET_DATATYPE" >&5 $as_echo "$MPI_OFFSET_DATATYPE" >&6; } if test "$ompi_fortran_happy" = "1" && \ test "$OMPI_TRY_FORTRAN_BINDINGS" -gt "$OMPI_FORTRAN_NO_BINDINGS"; then # Get the kind value for Fortran MPI_INTEGER_KIND (corresponding # to whatever is the same size as a F77 INTEGER -- for the # most-likely-will-never-occur case where F77 INTEGER is smaller # than an F90 INTEGER; see MPI-2 4.12.6.5. As with OMPI # FORTRAN_CHECK, use the official BIND(C) KIND names (see comment # in fortran_check.m4). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_INTEGER_KIND" >&5 $as_echo_n "checking for MPI_INTEGER_KIND... " >&6; } if test $OMPI_SIZEOF_FORTRAN_INTEGER -eq 2; then OMPI_MPI_INTEGER_KIND=$OMPI_FORTRAN_C_INT16_T_KIND elif test $OMPI_SIZEOF_FORTRAN_INTEGER -eq 4; then OMPI_MPI_INTEGER_KIND=$OMPI_FORTRAN_C_INT32_T_KIND elif test $OMPI_SIZEOF_FORTRAN_INTEGER -eq 8; then OMPI_MPI_INTEGER_KIND=$OMPI_FORTRAN_C_INT64_T_KIND elif test $OMPI_SIZEOF_FORTRAN_INTEGER -eq 16; then as_fn_error $? "Cannot support Fortran MPI_INTEGER_KIND!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_MPI_INTEGER_KIND" >&5 $as_echo "$OMPI_MPI_INTEGER_KIND" >&6; } # Get the kind value for Fortran MPI_ADDRESS_KIND (corresponding # to whatever is big enough to hold MPI_Aint). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_ADDRESS_KIND" >&5 $as_echo_n "checking for MPI_ADDRESS_KIND... " >&6; } if test $MPI_AINT_SIZE -eq 2 ; then OMPI_MPI_ADDRESS_KIND=$OMPI_FORTRAN_C_INT16_T_KIND elif test $MPI_AINT_SIZE -eq 4 ; then OMPI_MPI_ADDRESS_KIND=$OMPI_FORTRAN_C_INT32_T_KIND elif test $MPI_AINT_SIZE -eq 8 ; then OMPI_MPI_ADDRESS_KIND=$OMPI_FORTRAN_C_INT64_T_KIND elif test $MPI_AINT_SIZE -eq 16 ; then as_fn_error $? "Cannot support Fortran MPI_ADDRESS_KIND!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_MPI_ADDRESS_KIND" >&5 $as_echo "$OMPI_MPI_ADDRESS_KIND" >&6; } # Get the kind value for Fortran MPI_COUNT_KIND (corresponding to # whatever is big enough to hold an MPI_Count) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_COUNT_KIND" >&5 $as_echo_n "checking for MPI_COUNT_KIND... " >&6; } if test $MPI_COUNT_SIZE -eq 2 ; then OMPI_MPI_COUNT_KIND=$OMPI_FORTRAN_C_INT16_T_KIND elif test $MPI_COUNT_SIZE -eq 4 ; then OMPI_MPI_COUNT_KIND=$OMPI_FORTRAN_C_INT32_T_KIND elif test $MPI_COUNT_SIZE -eq 8 ; then OMPI_MPI_COUNT_KIND=$OMPI_FORTRAN_C_INT64_T_KIND elif test $MPI_COUNT_SIZE -eq 16 ; then as_fn_error $? "Cannot support Fortran MPI_COUNT_KIND!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_MPI_COUNT_KIND" >&5 $as_echo "$OMPI_MPI_COUNT_KIND" >&6; } # Get the kind value for Fortran MPI_OFFSET_KIND (corresponding to # whatever is big enough to hold an MPI_Offset) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_OFFSET_KIND" >&5 $as_echo_n "checking for MPI_OFFSET_KIND... " >&6; } if test $MPI_OFFSET_SIZE -eq 2 ; then OMPI_MPI_OFFSET_KIND=$OMPI_FORTRAN_C_INT16_T_KIND elif test $MPI_OFFSET_SIZE -eq 4 ; then OMPI_MPI_OFFSET_KIND=$OMPI_FORTRAN_C_INT32_T_KIND elif test $MPI_OFFSET_SIZE -eq 8 ; then OMPI_MPI_OFFSET_KIND=$OMPI_FORTRAN_C_INT64_T_KIND elif test $MPI_OFFSET_SIZE -eq 16 ; then as_fn_error $? "Cannot support Fortran MPI_OFFSET_KIND!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_MPI_OFFSET_KIND" >&5 $as_echo "$OMPI_MPI_OFFSET_KIND" >&6; } fi # checkpoint results cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache ################################## # Linker characteristics ################################## { $as_echo "$as_me:${as_lineno-$LINENO}: checking the linker for support for the -fini option" >&5 $as_echo_n "checking the linker for support for the -fini option... " >&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 LDFLAGS_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=\"LDFLAGS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LDFLAGS_save=$LDFLAGS LDFLAGS="$LDFLAGS_save -Wl,-fini -Wl,finalize" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ void finalize (void) {} int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_ld_have_fini=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_ld_have_fini=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$LDFLAGS_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 ################################## # Libraries ################################## opal_show_title "Library and Function tests" # Darwin doesn't need -lutil, as it's something other than this -lutil. # 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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 $as_echo_n "checking for library containing openpty... " >&6; } if ${ac_cv_search_openpty+:} 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 openpty (); int main () { return openpty (); ; return 0; } _ACEOF for ac_lib in '' util; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_openpty=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_openpty+:} false; then : break fi done if ${ac_cv_search_openpty+:} false; then : else ac_cv_search_openpty=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 $as_echo "$ac_cv_search_openpty" >&6; } ac_res=$ac_cv_search_openpty if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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_libs}; 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_libs"; then : wrapper_extra_libs=$arg else wrapper_extra_libs="$wrapper_extra_libs $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 opal_have_openpty=1 else opal_have_openpty=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_OPENPTY $opal_have_openpty _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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 $as_echo_n "checking for library containing gethostbyname... " >&6; } if ${ac_cv_search_gethostbyname+:} 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 gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF for ac_lib in '' nsl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gethostbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gethostbyname+:} false; then : break fi done if ${ac_cv_search_gethostbyname+:} false; then : else ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 $as_echo "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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_libs}; 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_libs"; then : wrapper_extra_libs=$arg else wrapper_extra_libs="$wrapper_extra_libs $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 opal_have_gethostbyname=1 else opal_have_gethostbyname=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_GETHOSTBYNAME $opal_have_gethostbyname _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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 $as_echo_n "checking for library containing socket... " >&6; } if ${ac_cv_search_socket+:} 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 socket (); int main () { return socket (); ; return 0; } _ACEOF for ac_lib in '' socket; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_socket=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_socket+:} false; then : break fi done if ${ac_cv_search_socket+:} false; then : else ac_cv_search_socket=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 $as_echo "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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_libs}; 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_libs"; then : wrapper_extra_libs=$arg else wrapper_extra_libs="$wrapper_extra_libs $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 opal_have_socket=1 else opal_have_socket=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SOCKET $opal_have_socket _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 # Solaris has sched_yield in -lrt, usually in libc # 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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 $as_echo_n "checking for library containing sched_yield... " >&6; } if ${ac_cv_search_sched_yield+:} 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 sched_yield (); int main () { return sched_yield (); ; return 0; } _ACEOF for ac_lib in '' rt; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_sched_yield=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_sched_yield+:} false; then : break fi done if ${ac_cv_search_sched_yield+:} false; then : else ac_cv_search_sched_yield=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 $as_echo "$ac_cv_search_sched_yield" >&6; } ac_res=$ac_cv_search_sched_yield if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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_libs}; 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_libs"; then : wrapper_extra_libs=$arg else wrapper_extra_libs="$wrapper_extra_libs $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 opal_have_sched_yield=1 else opal_have_sched_yield=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SCHED_YIELD $opal_have_sched_yield _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 # IRIX and CentOS have dirname in -lgen, usually in libc # 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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dirname" >&5 $as_echo_n "checking for library containing dirname... " >&6; } if ${ac_cv_search_dirname+:} 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 dirname (); int main () { return dirname (); ; return 0; } _ACEOF for ac_lib in '' gen; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dirname=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dirname+:} false; then : break fi done if ${ac_cv_search_dirname+:} false; then : else ac_cv_search_dirname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dirname" >&5 $as_echo "$ac_cv_search_dirname" >&6; } ac_res=$ac_cv_search_dirname if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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_libs}; 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_libs"; then : wrapper_extra_libs=$arg else wrapper_extra_libs="$wrapper_extra_libs $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 opal_have_dirname=1 else opal_have_dirname=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_DIRNAME $opal_have_dirname _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 # Darwin doesn't need -lm, as it's a symlink to libSystem.dylib # 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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5 $as_echo_n "checking for library containing ceil... " >&6; } if ${ac_cv_search_ceil+:} 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 ceil (); int main () { return ceil (); ; return 0; } _ACEOF for ac_lib in '' m; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ceil=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ceil+:} false; then : break fi done if ${ac_cv_search_ceil+:} false; then : else ac_cv_search_ceil=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5 $as_echo "$ac_cv_search_ceil" >&6; } ac_res=$ac_cv_search_ceil if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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_libs}; 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_libs"; then : wrapper_extra_libs=$arg else wrapper_extra_libs="$wrapper_extra_libs $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 opal_have_ceil=1 else opal_have_ceil=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CEIL $opal_have_ceil _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 # -lrt might be needed for clock_gettime # 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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 $as_echo_n "checking for library containing clock_gettime... " >&6; } if ${ac_cv_search_clock_gettime+:} 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 clock_gettime (); int main () { return clock_gettime (); ; return 0; } _ACEOF for ac_lib in '' rt; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_clock_gettime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_clock_gettime+:} false; then : break fi done if ${ac_cv_search_clock_gettime+:} false; then : else ac_cv_search_clock_gettime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 $as_echo "$ac_cv_search_clock_gettime" >&6; } ac_res=$ac_cv_search_clock_gettime if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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_libs}; 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_libs"; then : wrapper_extra_libs=$arg else wrapper_extra_libs="$wrapper_extra_libs $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 opal_have_clock_gettime=1 else opal_have_clock_gettime=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CLOCK_GETTIME $opal_have_clock_gettime _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 for ac_func in asprintf snprintf vasprintf vsnprintf openpty isatty getpwuid fork waitpid execve pipe ptsname setsid mmap tcgetpgrp posix_memalign strsignal sysconf syslog vsyslog regcmp regexec regfree _NSGetEnviron socketpair strncpy_s usleep mkfifo dbopen dbm_open statfs statvfs setpgid setenv __malloc_initialize_hook __clear_cache do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Sanity check: ensure that we got at least one of statfs or statvfs. if test $ac_cv_func_statfs = no && test $ac_cv_func_statvfs = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither statfs() and statvfs() were found" >&5 $as_echo "$as_me: WARNING: neither statfs() and statvfs() were found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # On some hosts, htonl is a define, so the AC_CHECK_FUNC will get # confused. On others, it's in the standard library, but stubbed with # the magic glibc foo as not implemented. and on other systems, it's # just not there. This covers all cases. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl define" >&5 $as_echo_n "checking for htonl define... " >&6; } if ${ompi_cv_htonl_define+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_ARPA_INET_H #include #endif int main () { #ifndef ntohl #error "ntohl not defined" #endif ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ompi_cv_htonl_define=yes else ompi_cv_htonl_define=no fi rm -f conftest.err conftest.i conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_htonl_define" >&5 $as_echo "$ompi_cv_htonl_define" >&6; } ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl" if test "x$ac_cv_func_htonl" = xyes; then : ompi_have_htonl=yes else ompi_have_htonl=no fi if test "$ompi_cv_htonl_define" = "yes" || test "$ompi_have_htonl" = "yes"; then : cat >>confdefs.h <<_ACEOF #define HAVE_UNIX_BYTESWAP 1 _ACEOF fi # # Make sure we can copy va_lists (need check declared, not linkable) # ac_fn_c_check_decl "$LINENO" "va_copy" "ac_cv_have_decl_va_copy" "#include " if test "x$ac_cv_have_decl_va_copy" = xyes; then : OPAL_HAVE_VA_COPY=1 else OPAL_HAVE_VA_COPY=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_VA_COPY $OPAL_HAVE_VA_COPY _ACEOF ac_fn_c_check_decl "$LINENO" "__va_copy" "ac_cv_have_decl___va_copy" "#include " if test "x$ac_cv_have_decl___va_copy" = xyes; then : OPAL_HAVE_UNDERSCORE_VA_COPY=1 else OPAL_HAVE_UNDERSCORE_VA_COPY=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_UNDERSCORE_VA_COPY $OPAL_HAVE_UNDERSCORE_VA_COPY _ACEOF ac_fn_c_check_decl "$LINENO" "__func__" "ac_cv_have_decl___func__" "$ac_includes_default" if test "x$ac_cv_have_decl___func__" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL___FUNC__ $ac_have_decl _ACEOF # checkpoint results cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache ################################## # System-specific tests ################################## opal_show_title "System-specific tests" # Do we have _SC_NPROCESSORS_ONLN? (only going to pass if we also have # and sysconf(), which is ok) OS X 10.4 has and # sysconf(), but does not have _SC_NPROCESSORS_ONLN. Doh! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROCESSORS_ONLN" >&5 $as_echo_n "checking for _SC_NPROCESSORS_ONLN... " >&6; } if ${ompi_cv_have__SC_NPROCESSORS_ONLN+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #include int main () { int i = _SC_NPROCESSORS_ONLN; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_cv_have__SC_NPROCESSORS_ONLN="yes" else ompi_cv_have__SC_NPROCESSORS_ONLN="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_have__SC_NPROCESSORS_ONLN" >&5 $as_echo "$ompi_cv_have__SC_NPROCESSORS_ONLN" >&6; } if test "$ompi_cv_have__SC_NPROCESSORS_ONLN" = "yes"; then : result=1 else result=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE__SC_NPROCESSORS_ONLN $result _ACEOF # all: endian { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if ${ac_cv_c_bigendian+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac # Check whether --with-broken-qsort was given. if test "${with_broken_qsort+set}" = set; then : withval=$with_broken_qsort; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken qsort" >&5 $as_echo_n "checking for broken qsort... " >&6; } if test "$with_broken_qsort" = "yes"; then result="yes" define_result=1 else result="no" define_result=0 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 $as_echo "$result" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_BROKEN_QSORT $define_result _ACEOF # all: SYSV semaphores # all: SYSV shared memory # all: size of FD_SET # all: sizeof struct stat members # all: type of getsockopt optlen # all: type of recvfrom optlen # # Check out what thread support we have # # # Arguments: none # # Dependencies: None # # Modifies: # none - see called tests # # configure threads # # # Check we have POSIX threads # opal_pthread_c_success=0 opal_pthread_fortran_success=0 opal_pthread_cxx_success=0 orig_CFLAGS="$CFLAGS" orig_FCFLAGS="$FCFLAGS" orig_CXXFLAGS="$CXXFLAGS" orig_CPPFLAGS="$CPPFLAGS" orig_CXXCPPFLAGS="$CXXCPPFLAGS" orig_LDFLAGS="$LDFLAGS" orig_LIBS="$LIBS" PTHREAD_CFLAGS= PTHREAD_FCFLAGS= PTHREAD_CXXFLAGS= PTHREAD_CPPFLAGS= PTHREAD_CXXCPPFLAGS= PTHREAD_LDFLAGS= PTHREAD_LIBS= # Try with the basics, mam. # BEGIN: OPAL_INTL_POSIX_THREADS_PLAIN # # Check if can compile without any special flags # we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in # case. Some systems (OS X, for example) generally don't need # the defines, but then will on one system header here or there # why take chances? # # Only run C++ and Fortran if those compilers already configured # # C compiler # if test "$opal_pthread_c_success" = "0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work as is" >&5 $as_echo_n "checking if C compiler and POSIX threads work as is... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK # # Make sure that we can run a small application in C or C++, which # ever is the current language. Do make sure that C or C++ is the # current language. # # As long as this is not being run.... # pthread_t may be anything from an int to a struct -- init with self-tid. # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } int main(int argc, char* argv[]) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_pthread_c_success=1 else opal_pthread_c_success=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # END: OPAL_INTL_PTHREAD_TRY_LINK ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$opal_pthread_c_success" = "1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi # # C++ compiler # if test "$opal_pthread_cxx_success" = "0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler and POSIX threads work as is" >&5 $as_echo_n "checking if C++ compiler and POSIX threads work as is... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK # # Make sure that we can run a small application in C or C++, which # ever is the current language. Do make sure that C or C++ is the # current language. # # As long as this is not being run.... # pthread_t may be anything from an int to a struct -- init with self-tid. # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } int main(int argc, char* argv[]) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : opal_pthread_cxx_success=1 else opal_pthread_cxx_success=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # END: OPAL_INTL_PTHREAD_TRY_LINK ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$opal_pthread_cxx_success" = "1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi # # Fortran compiler # if test "$opal_pthread_fortran_success" = "0" && \ test "$OMPI_TRY_FORTRAN_BINDINGS" -gt "$OMPI_FORTRAN_NO_BINDINGS" && \ test $ompi_fortran_happy -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler and POSIX threads work as is" >&5 $as_echo_n "checking if Fortran compiler and POSIX threads work as is... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK_FORTRAN # # Make sure that we can run a small application in Fortran, with # pthreads living in a C object file # Fortran module cat > conftestf.f < conftest.c < #include #include $opal_conftest_h #ifdef __cplusplus extern "C" { #endif int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void pthreadtest_f(void); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } void pthreadtest_f(void) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); } void pthreadtest(void) { pthreadtest_f(); } void pthreadtest_(void) { pthreadtest_f(); } void pthreadtest__(void) { pthreadtest_f(); } void PTHREADTEST(void) { pthreadtest_f(); } #ifdef __cplusplus } #endif EOF # Try the compile # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:75619: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:75626: \$? = $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:75636: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:75643: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status HAPPY=1 else unset opal_status HAPPY=0 fi else unset opal_status HAPPY=0 fi if test "$HAPPY" = "1"; then opal_pthread_fortran_success=1 else # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:75666: here is the C program:" >&5 else echo here is the C program: >&5 fi # 1 is the filename if test -n "conftest.c" && test -f "conftest.c"; then cat conftest.c >&5 fi if test -f conftest.h; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:75680: here is contest.h:" >&5 else echo here is contest.h: >&5 fi # 1 is the filename if test -n "conftest.h" && test -f "conftest.h"; then cat conftest.h >&5 fi fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:75694: here is the fortran program:" >&5 else echo here is the fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f" && test -f "conftestf.f"; then cat conftestf.f >&5 fi opal_pthread_fortran_success=0 fi unset HAPPY opal_conftest_h rm -rf conftest* # END: OPAL_INTL_PTHREAD_TRY_LINK_FORTRAN 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_pthread_fortran_success" = "1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi # End: OPAL_INTL_POSIX_THREADS_PLAIN # Try the super-special compiler flags. # Begin: OPAL_INTL_POSIX_THREADS_SPECIAL_FLAGS # # If above didn't work, try some super-special compiler flags # that get evaluated to the "right" things. # # -Kthread: # -kthread: FreeBSD kernel threads # -pthread: Modern GCC (most all platforms) # -pthreads: GCC on solaris # -mthreads: # -mt: Solaris native compilers / HP-UX aCC # # Put -mt before -mthreads because HP-UX aCC will properly compile # with -mthreads (reading as -mt), but emit a warning about unknown # flags hreads. Stupid compilers. case "${host_cpu}-${host_os}" in *solaris*) pflags="-pthread -pthreads -mt" ;; *) pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads" ;; esac # Only run C++ and Fortran if those compilers already configured # # C compiler # if test "$opal_pthread_c_success" = "0"; then for pf in $pflags; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work with $pf" >&5 $as_echo_n "checking if C compiler and POSIX threads work with $pf... " >&6; } CFLAGS="$orig_CFLAGS $pf" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK # # Make sure that we can run a small application in C or C++, which # ever is the current language. Do make sure that C or C++ is the # current language. # # As long as this is not being run.... # pthread_t may be anything from an int to a struct -- init with self-tid. # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } int main(int argc, char* argv[]) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_pthread_c_success=1 else opal_pthread_c_success=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # END: OPAL_INTL_PTHREAD_TRY_LINK ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$opal_pthread_c_success" = "1"; then PTHREAD_CFLAGS="$pf" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } break else PTHREAD_CFLAGS= CFLAGS="$orig_CFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi done fi # # C++ compiler # if test "$opal_pthread_cxx_success" = "0"; then for pf in $pflags; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler and POSIX threads work with $pf" >&5 $as_echo_n "checking if C++ compiler and POSIX threads work with $pf... " >&6; } CXXFLAGS="$orig_CXXFLAGS $pf" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK # # Make sure that we can run a small application in C or C++, which # ever is the current language. Do make sure that C or C++ is the # current language. # # As long as this is not being run.... # pthread_t may be anything from an int to a struct -- init with self-tid. # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } int main(int argc, char* argv[]) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : opal_pthread_cxx_success=1 else opal_pthread_cxx_success=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # END: OPAL_INTL_PTHREAD_TRY_LINK ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$opal_pthread_cxx_success" = "1"; then PTHREAD_CXXFLAGS="$pf" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } break else PTHREAD_CXXFLAGS= CXXFLAGS="$orig_CXXFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi done fi # # Fortran compiler # if test "$opal_pthread_fortran_success" = "0" && \ test "$OMPI_TRY_FORTRAN_BINDINGS" -gt "$OMPI_FORTRAN_NO_BINDINGS" && \ test $ompi_fortran_happy -eq 1; then for pf in $pflags; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler and POSIX threads work with $pf" >&5 $as_echo_n "checking if Fortran compiler and POSIX threads work with $pf... " >&6; } FCFLAGS="$orig_FCFLAGS $pf" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK_FORTRAN # # Make sure that we can run a small application in Fortran, with # pthreads living in a C object file # Fortran module cat > conftestf.f < conftest.c < #include #include $opal_conftest_h #ifdef __cplusplus extern "C" { #endif int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void pthreadtest_f(void); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } void pthreadtest_f(void) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); } void pthreadtest(void) { pthreadtest_f(); } void pthreadtest_(void) { pthreadtest_f(); } void pthreadtest__(void) { pthreadtest_f(); } void PTHREADTEST(void) { pthreadtest_f(); } #ifdef __cplusplus } #endif EOF # Try the compile # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:76015: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:76022: \$? = $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:76032: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:76039: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status HAPPY=1 else unset opal_status HAPPY=0 fi else unset opal_status HAPPY=0 fi if test "$HAPPY" = "1"; then opal_pthread_fortran_success=1 else # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:76062: here is the C program:" >&5 else echo here is the C program: >&5 fi # 1 is the filename if test -n "conftest.c" && test -f "conftest.c"; then cat conftest.c >&5 fi if test -f conftest.h; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:76076: here is contest.h:" >&5 else echo here is contest.h: >&5 fi # 1 is the filename if test -n "conftest.h" && test -f "conftest.h"; then cat conftest.h >&5 fi fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:76090: here is the fortran program:" >&5 else echo here is the fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f" && test -f "conftestf.f"; then cat conftestf.f >&5 fi opal_pthread_fortran_success=0 fi unset HAPPY opal_conftest_h rm -rf conftest* # END: OPAL_INTL_PTHREAD_TRY_LINK_FORTRAN 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_pthread_fortran_success" = "1"; then PTHREAD_FCFLAGS="$pf" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } break else PTHREAD_FCFLAGS= FCFLAGS="$orig_FCFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi done fi # End: OPAL_INTL_POSIX_THREADS_SPECIAL_FLAGS # Try the normal linking methods (that's no fun) # Begin: OPAL_INTL_POSIX_THREADS_LIBS # # if we can't find a super-special compiler flags, try some libraries. # we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in case. Some # systems (OS X, for example) generally don't need the defines, but # then will on one system header here or there why take chances? # # libpthreads: AIX - must check before libpthread # liblthread: LinuxThreads on FreeBSD # libpthread: The usual place (like we can define usual!) plibs="-lpthreads -llthread -lpthread" # Only run C++ and Fortran if those compilers already configured # # C compiler # if test "$opal_pthread_c_success" = "0"; then for pl in $plibs; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work with $pl" >&5 $as_echo_n "checking if C compiler and POSIX threads work with $pl... " >&6; } case "${host_cpu}-${host-_os}" in *-aix* | *-freebsd*) if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then PTHREAD_CPPFLAGS="-D_THREAD_SAFE" CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" fi ;; *) if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then PTHREAD_CPPFLAGS="-D_REENTRANT" CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" fi ;; esac LIBS="$orig_LIBS $pl" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK # # Make sure that we can run a small application in C or C++, which # ever is the current language. Do make sure that C or C++ is the # current language. # # As long as this is not being run.... # pthread_t may be anything from an int to a struct -- init with self-tid. # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } int main(int argc, char* argv[]) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : opal_pthread_c_success=1 else opal_pthread_c_success=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # END: OPAL_INTL_PTHREAD_TRY_LINK ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$opal_pthread_c_success" = "1"; then PTHREAD_LIBS="$pl" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else PTHREAD_CPPFLAGS= CPPFLAGS="$orig_CPPFLAGS" LIBS="$orig_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi done fi # # C++ compiler # if test "$opal_pthread_cxx_success" = "0"; then if test ! "$opal_pthread_c_success" = "0" && test ! "$PTHREAD_LIBS" = "" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS" >&5 $as_echo_n "checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS... " >&6; } case "${host_cpu}-${host-_os}" in *-aix* | *-freebsd*) if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then PTHREAD_CXXCPPFLAGS="-D_THREAD_SAFE" CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" fi ;; *) if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then PTHREAD_CXXCPPFLAGS="-D_REENTRANT" CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" fi ;; esac LIBS="$orig_LIBS $PTHREAD_LIBS" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK # # Make sure that we can run a small application in C or C++, which # ever is the current language. Do make sure that C or C++ is the # current language. # # As long as this is not being run.... # pthread_t may be anything from an int to a struct -- init with self-tid. # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } int main(int argc, char* argv[]) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : opal_pthread_cxx_success=1 else opal_pthread_cxx_success=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # END: OPAL_INTL_PTHREAD_TRY_LINK ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$opal_pthread_cxx_success" = "1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else CXXCPPFLAGS="$orig_CXXCPPFLAGS" LIBS="$orig_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Can not find working threads configuration. aborting" "$LINENO" 5 fi else for pl in $plibs; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler and POSIX threads work with $pl" >&5 $as_echo_n "checking if C++ compiler and POSIX threads work with $pl... " >&6; } case "${host_cpu}-${host-_os}" in *-aix* | *-freebsd*) if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then PTHREAD_CXXCPPFLAGS="-D_THREAD_SAFE" CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" fi ;; *) if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then PTHREAD_CXXCPPFLAGS="-D_REENTRANT" CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" fi ;; esac LIBS="$orig_LIBS $pl" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK # # Make sure that we can run a small application in C or C++, which # ever is the current language. Do make sure that C or C++ is the # current language. # # As long as this is not being run.... # pthread_t may be anything from an int to a struct -- init with self-tid. # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } int main(int argc, char* argv[]) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : opal_pthread_cxx_success=1 else opal_pthread_cxx_success=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # END: OPAL_INTL_PTHREAD_TRY_LINK ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$opal_pthread_cxx_success" = "1"; then PTHREAD_LIBS="$pl" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else PTHREAD_CXXCPPFLAGS= CXXCPPFLAGS="$orig_CXXCPPFLAGS" LIBS="$orig_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi done fi fi # # Fortran compiler # if test "$opal_pthread_fortran_success" = "0" && \ test "$OMPI_TRY_FORTRAN_BINDINGS" -gt "$OMPI_FORTRAN_NO_BINDINGS" && \ test $ompi_fortran_happy -eq 1; then if test ! "$opal_pthread_c_success" = "0" && test ! "$PTHREAD_LIBS" = "" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler and POSIX threads work with $PTHREAD_LIBS" >&5 $as_echo_n "checking if Fortran compiler and POSIX threads work with $PTHREAD_LIBS... " >&6; } LIBS="$orig_LIBS $PTHREAD_LIBS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK_FORTRAN # # Make sure that we can run a small application in Fortran, with # pthreads living in a C object file # Fortran module cat > conftestf.f < conftest.c < #include #include $opal_conftest_h #ifdef __cplusplus extern "C" { #endif int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void pthreadtest_f(void); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } void pthreadtest_f(void) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); } void pthreadtest(void) { pthreadtest_f(); } void pthreadtest_(void) { pthreadtest_f(); } void pthreadtest__(void) { pthreadtest_f(); } void PTHREADTEST(void) { pthreadtest_f(); } #ifdef __cplusplus } #endif EOF # Try the compile # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:76521: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:76528: \$? = $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:76538: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:76545: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status HAPPY=1 else unset opal_status HAPPY=0 fi else unset opal_status HAPPY=0 fi if test "$HAPPY" = "1"; then opal_pthread_fortran_success=1 else # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:76568: here is the C program:" >&5 else echo here is the C program: >&5 fi # 1 is the filename if test -n "conftest.c" && test -f "conftest.c"; then cat conftest.c >&5 fi if test -f conftest.h; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:76582: here is contest.h:" >&5 else echo here is contest.h: >&5 fi # 1 is the filename if test -n "conftest.h" && test -f "conftest.h"; then cat conftest.h >&5 fi fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:76596: here is the fortran program:" >&5 else echo here is the fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f" && test -f "conftestf.f"; then cat conftestf.f >&5 fi opal_pthread_fortran_success=0 fi unset HAPPY opal_conftest_h rm -rf conftest* # END: OPAL_INTL_PTHREAD_TRY_LINK_FORTRAN 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_pthread_fortran_success" = "1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else LIBS="$orig_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Can not find working threads configuration. aborting" "$LINENO" 5 fi else for pl in $plibs; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler and POSIX threads work with $pl" >&5 $as_echo_n "checking if Fortran compiler and POSIX threads work with $pl... " >&6; } LIBS="$orig_LIBS $pl" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # BEGIN: OPAL_INTL_PTHREAD_TRY_LINK_FORTRAN # # Make sure that we can run a small application in Fortran, with # pthreads living in a C object file # Fortran module cat > conftestf.f < conftest.c < #include #include $opal_conftest_h #ifdef __cplusplus extern "C" { #endif int i = 3; pthread_t me, newthread; void cleanup_routine(void *foo); void *thread_main(void *foo); void pthreadtest_f(void); void cleanup_routine(void *foo) { i = 4; } void *thread_main(void *foo) { i = 2; return (void*) &i; } void pthreadtest_f(void) { pthread_attr_t attr; me = pthread_self(); pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0); pthread_join(newthread, 0); pthread_cleanup_pop(0); } void pthreadtest(void) { pthreadtest_f(); } void pthreadtest_(void) { pthreadtest_f(); } void pthreadtest__(void) { pthreadtest_f(); } void PTHREADTEST(void) { pthreadtest_f(); } #ifdef __cplusplus } #endif EOF # Try the compile # 1 is the command # 2 is actions to do if success # 3 is actions to do if fail echo "configure:76711: $CC $CFLAGS -I. -c conftest.c" >&5 $CC $CFLAGS -I. -c conftest.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:76718: \$? = $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:76728: $FC $FCFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 $FC $FCFLAGS conftestf.f conftest.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:76735: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status HAPPY=1 else unset opal_status HAPPY=0 fi else unset opal_status HAPPY=0 fi if test "$HAPPY" = "1"; then opal_pthread_fortran_success=1 else # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:76758: here is the C program:" >&5 else echo here is the C program: >&5 fi # 1 is the filename if test -n "conftest.c" && test -f "conftest.c"; then cat conftest.c >&5 fi if test -f conftest.h; then # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:76772: here is contest.h:" >&5 else echo here is contest.h: >&5 fi # 1 is the filename if test -n "conftest.h" && test -f "conftest.h"; then cat conftest.h >&5 fi fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:76786: here is the fortran program:" >&5 else echo here is the fortran program: >&5 fi # 1 is the filename if test -n "conftestf.f" && test -f "conftestf.f"; then cat conftestf.f >&5 fi opal_pthread_fortran_success=0 fi unset HAPPY opal_conftest_h rm -rf conftest* # END: OPAL_INTL_PTHREAD_TRY_LINK_FORTRAN 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_pthread_fortran_success" = "1"; then PTHREAD_LIBS="$pl" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } break else LIBS="$orig_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi done fi fi # End: OPAL_INTL_POSIX_THREADS_LIBS # # check to see if we can create shared memory mutexes and conditions # for ac_func in pthread_mutexattr_setpshared pthread_condattr_setpshared do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # # check to see if we can set error checking mutexes # # LinuxThreads { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK_NP); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : result="yes" defval=1 else result="no" defval=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 $as_echo "$result" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP $defval _ACEOF # Mac OS X { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK" >&5 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : result="yes" defval=1 else result="no" defval=0 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 $as_echo "$result" >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_PTHREAD_MUTEX_ERRORCHECK $defval _ACEOF CFLAGS="$orig_CFLAGS" FCFLAGS="$orig_FCFLAGS" CXXFLAGS="$orig_CXXFLAGS" CPPFLAGS="$orig_CPPFLAGS" CXXCPPFLAGS="$orig_CXXCPPFLAGS" LDFLAGS="$orig_LDFLAGS" LIBS="$orig_LIBS" if test "$OMPI_TRY_FORTRAN_BINDINGS" = "$OMPI_FORTRAN_NO_BINDINGS" || \ test $ompi_fortran_happy -ne 1; then opal_pthread_fortran_success=1 fi if test "$opal_pthread_c_success" = "1" && \ test "$opal_pthread_cxx_success" = "1" && \ test "$opal_pthread_fortran_success" = "1"; then internal_useless=1 HAVE_POSIX_THREADS=1 else internal_useless=1 HAVE_POSIX_THREADS=0 fi unset opal_pthread_c_success opal_pthread_fortran_success opal_pthread_cxx_success unset internal_useless { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX threads package" >&5 $as_echo_n "checking for working POSIX threads package... " >&6; } if test "$HAVE_POSIX_THREADS" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi export HAVE_POSIX_THREADS # # Ask what threading we want (allow posix right now) # if test "$HAVE_POSIX_THREADS" = "0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** POSIX threads are not\"" >&5 $as_echo "$as_me: WARNING: \"*** POSIX threads are not\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** available on your system \"" >&5 $as_echo "$as_me: WARNING: \"*** available on your system \"" >&2;} as_fn_error $? "\"*** Can not continue\"" "$LINENO" 5 fi THREAD_CFLAGS="$PTHREAD_CFLAGS" THREAD_FCFLAGS="$PTHREAD_FCFLAGS" THREAD_CXXFLAGS="$PTHREAD_CXXFLAGS" THREAD_CPPFLAGS="$PTHREAD_CPPFLAGS" THREAD_CXXCPPFLAGS="$PTHREAD_CXXCPPFLAGS" THREAD_LDFLAGS="$PTHREAD_LDFLAGS" THREAD_LIBS="$PTHREAD_LIBS" # # Arguments: none # # Dependencies: None # # Sets: # OPAL_THREADS_HAVE_DIFFERENT_PIDS (variable) # # Test for Linux-like threads in the system. OPAL no longer supports # systems with different PIDs for threads in the same process, so error # out if we detect that case. # { $as_echo "$as_me:${as_lineno-$LINENO}: checking if threads have different pids (pthreads on linux)" >&5 $as_echo_n "checking if threads have different pids (pthreads on linux)... " >&6; } # 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 CPPFLAGS_save LDFLAGS_save LIBS_save 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=\"CFLAGS_save CPPFLAGS_save LDFLAGS_save LIBS_save MSG\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` CFLAGS_save="$CFLAGS" CFLAGS="$CFLAGS $THREAD_CFLAGS" CPPFLAGS_save="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" LDFLAGS_save="$LDFLAGS" LDFLAGS="$LDFLAGS $THREAD_LDFLAGS" LIBS_save="$LIBS" LIBS="$LIBS $THREAD_LIBS" if test "$cross_compiling" = yes; then : # If we're cross compiling, we can't do another AC_* function here because # it we haven't displayed the result from the last one yet. So defer # another test until below. OPAL_THREADS_HAVE_DIFFERENT_PIDS= MSG="cross compiling (need another test)" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include void *checkpid(void *arg); int main() { pthread_t thr; int pid, *retval; pid = getpid(); pthread_create(&thr, NULL, checkpid, &pid); pthread_join(thr, (void **) &retval); exit(*retval); } static int ret; void *checkpid(void *arg) { int ppid = *((int *) arg); if (ppid == getpid()) ret = 0; else ret = 1; pthread_exit((void *) &ret); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : MSG=no OPAL_THREADS_HAVE_DIFFERENT_PIDS=0 else MSG=yes OPAL_THREADS_HAVE_DIFFERENT_PIDS=1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$CFLAGS_save" CPPFLAGS="$CPPFLAGS_save" LDFLAGS="$LDFLAGS_save" LIBS="$LIBS_save" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5 $as_echo "$MSG" >&6; } if test "x$OPAL_THREADS_HAVE_DIFFERENT_PIDS" = "x"; then : # If we are cross-compiling, look for the symbol # __linuxthreads_create_event, which seems to only exist in the # Linux Threads-based pthreads implementation (i.e., the one # that has different PIDs for each thread). We *could* switch # on $host here and only test *linux* hosts, but this test is # pretty unique, so why bother? Note that AC_CHECK_FUNC works # properly in cross-compiling environments in recent-enough # versions of Autoconf (which is one of the reasons we mandate # recent versions in autogen!). ac_fn_c_check_func "$LINENO" "__linuxthreads_create_event" "ac_cv_func___linuxthreads_create_event" if test "x$ac_cv_func___linuxthreads_create_event" = xyes; then : OPAL_THREADS_HAVE_DIFFERENT_PIDS=1 fi fi if test "$OPAL_THREADS_HAVE_DIFFERENT_PIDS" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This version of Open MPI only supports environments where" >&5 $as_echo "$as_me: WARNING: This version of Open MPI only supports environments where" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: threads have the same PID. Please use an older version of" >&5 $as_echo "$as_me: WARNING: threads have the same PID. Please use an older version of" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI if you need support on systems with different" >&5 $as_echo "$as_me: WARNING: Open MPI if you need support on systems with different" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIDs for threads in the same process. Open MPI 1.4.x" >&5 $as_echo "$as_me: WARNING: PIDs for threads in the same process. Open MPI 1.4.x" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supports such systems, as does at least some versions the" >&5 $as_echo "$as_me: WARNING: supports such systems, as does at least some versions the" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI 1.5.x series." >&5 $as_echo "$as_me: WARNING: Open MPI 1.5.x series." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # # if pthreads is not available, then the system does not have an insane threads # model # # 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_ENABLE_MULTI_THREADS 1 _ACEOF CFLAGS="$CFLAGS $THREAD_CFLAGS" CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" CXXFLAGS="$CXXFLAGS $THREAD_CXXFLAGS" CXXCPPFLAGS="$CXXCPPFLAGS $THREAD_CXXCPPFLAGS" LDFLAGS="$LDFLAGS $THREAD_LDFLAGS" LIBS="$LIBS $THREAD_LIBS" # 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 $THREAD_CFLAGS; 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 $THREAD_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 $THREAD_FCFLAGS; 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 # 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 $THREAD_LDFLAGS; 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 # no need to update WRAPPER_EXTRA_LIBS - we'll get it from LT later # # What is the local equivalent of "ln -s" # { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${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" # # We need as and lex # # By default we simply use the C compiler to build assembly code. test "${CCAS+set}" = set || CCAS=$CC test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS depcc="$CCAS" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${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 for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LEX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LEX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LEX=$ac_cv_prog_LEX if test -n "$LEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 $as_echo "$LEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$LEX" && break done test -n "$LEX" || LEX=":" if test "x$LEX" != "x:"; then cat >conftest.l <<_ACEOF %% a { ECHO; } b { REJECT; } c { yymore (); } d { yyless (1); } e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ yyless ((input () != 0)); } f { unput (yytext[0]); } . { BEGIN INITIAL; } %% #ifdef YYTEXT_POINTER extern char *yytext; #endif int main (void) { return ! yylex () + ! yywrap (); } _ACEOF { { ac_try="$LEX conftest.l" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$LEX conftest.l") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 $as_echo_n "checking lex output file root... " >&6; } if ${ac_cv_prog_lex_root+:} false; then : $as_echo_n "(cached) " >&6 else if test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yy elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 $as_echo "$ac_cv_prog_lex_root" >&6; } LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root if test -z "${LEXLIB+set}"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 $as_echo_n "checking lex library... " >&6; } if ${ac_cv_lib_lex+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_LIBS=$LIBS ac_cv_lib_lex='none needed' for ac_lib in '' -lfl -ll; do LIBS="$ac_lib $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_lex=$ac_lib fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext test "$ac_cv_lib_lex" != 'none needed' && break done LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 $as_echo "$ac_cv_lib_lex" >&6; } test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 $as_echo_n "checking whether yytext is a pointer... " >&6; } if ${ac_cv_prog_lex_yytext_pointer+:} false; then : $as_echo_n "(cached) " >&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since # not all implementations provide the %pointer and %array declarations. ac_cv_prog_lex_yytext_pointer=no ac_save_LIBS=$LIBS LIBS="$LEXLIB $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define YYTEXT_POINTER 1 `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_prog_lex_yytext_pointer=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } if test $ac_cv_prog_lex_yytext_pointer = yes; then $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi if test "$LEX" = :; then LEX=${am_missing_run}flex fi # If we don't have Flex and we don't have a generated .c file # (distribution tarballs will have the .c file included, but git # clones will not), then error. Must have Flex -- other versions of # Lex are not workable (all things being equal, since this is *only* # required for developers, we decided that it really was not worth it # to be portable between different versions of lex ;-). if test -z "$LEX" || \ test -n "`echo $LEX | $GREP missing`" || \ test "`basename $LEX`" != "flex"; then if test ! -f "$srcdir/opal/util/show_help_lex.c"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find Flex on your system." >&5 $as_echo "$as_me: WARNING: *** Could not find Flex on your system." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Flex is required for developer builds of Open MPI." >&5 $as_echo "$as_me: WARNING: *** Flex is required for developer builds of Open MPI." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Other versions of Lex are not supported." >&5 $as_echo "$as_me: WARNING: *** Other versions of Lex are not supported." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** YOU DO NOT NEED FLEX WHEN BUILDING DISTRIBUTION TARBALLS!" >&5 $as_echo "$as_me: WARNING: *** YOU DO NOT NEED FLEX WHEN BUILDING DISTRIBUTION TARBALLS!" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # # Look for ps command and arguments for orte-clean # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flavor of ps to use" >&5 $as_echo_n "checking for flavor of ps to use... " >&6; } PS_FLAVOR="unknown" ps -A -o fname > /dev/null 2>&1 if test "$?" = "0"; then PS_FLAVOR="ps -A -o fname,pid,uid" else ps -A -o command > /dev/null 2>&1 if test "$?" = "0"; then PS_FLAVOR="ps -A -o command,pid,uid" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_FLAVOR" >&5 $as_echo "$PS_FLAVOR" >&6; } cat >>confdefs.h <<_ACEOF #define ORTE_CLEAN_PS_CMD "$PS_FLAVOR" _ACEOF # # File system case sensitivity # # # Arguments: none # # Dependencies: None # # See if we are on a case sensitive filesystem. Some filesystems # (like HFS+ on MacOS X and MS Windows) are not case sensitive - opalcc # and opalCC are the same file. # # Sets prefix_OS_HAVE_CASE_SENSITIVE_FS to 1 if filesystem is case # sensitive (ie, mpicc and mpiCC will be different files) or 0 if # filesystem is not case sensitive (ie, mpicc and mpiCC will be # the same file). # # have_cs_fs=1 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build filesystem is case sensitive" >&5 $as_echo_n "checking if build filesystem is case sensitive... " >&6; } cat > conf_fs_test.$$ < CONF_FS_TEST.$$ <&5 $as_echo "yes" >&6; } else have_cs_fs=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f conf_fs_test.$$ CONF_FS_TEST.$$ # # Now see what the user wants to do... # { $as_echo "$as_me:${as_lineno-$LINENO}: checking if configuring for case sensitive filesystem" >&5 $as_echo_n "checking if configuring for case sensitive filesystem... " >&6; } # Check whether --with-cs_fs was given. if test "${with_cs_fs+set}" = set; then : withval=$with_cs_fs; fi if test "$with_cs_fs" = "yes"; then OPAL_WANT_CS_FS=1 elif test -z "$with_cs_fs"; then OPAL_WANT_CS_FS=$have_cs_fs else OPAL_WANT_CS_FS=0 fi if test "$OPAL_WANT_CS_FS" = "1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$OPAL_WANT_CS_FS" = "1"; then CASE_SENSITIVE_FS_TRUE= CASE_SENSITIVE_FS_FALSE='#' else CASE_SENSITIVE_FS_TRUE='#' CASE_SENSITIVE_FS_FALSE= fi if test "$OPAL_WANT_CS_FS" = "0"; then cat <? (e.g., Solaris does not) # ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " $ac_includes_default #if HAVE_SYS_RESOURCE_H #include #endif " if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_RLIMIT_NPROC $ac_have_decl _ACEOF # # Do we have RLIMIT_MEMLOCK in ? (e.g., Solaris does not) # ac_fn_c_check_decl "$LINENO" "RLIMIT_MEMLOCK" "ac_cv_have_decl_RLIMIT_MEMLOCK" " $ac_includes_default #if HAVE_SYS_RESOURCE_H #include #endif " if test "x$ac_cv_have_decl_RLIMIT_MEMLOCK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_RLIMIT_MEMLOCK $ac_have_decl _ACEOF # # Do we have RLIMIT_NOFILE in ? (e.g., Solaris does not) # ac_fn_c_check_decl "$LINENO" "RLIMIT_NOFILE" "ac_cv_have_decl_RLIMIT_NOFILE" " $ac_includes_default #if HAVE_SYS_RESOURCE_H #include #endif " if test "x$ac_cv_have_decl_RLIMIT_NOFILE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_RLIMIT_NOFILE $ac_have_decl _ACEOF # # Do we have RLIMIT_MEMLOCK in ? (e.g., Solaris does not) # ac_fn_c_check_decl "$LINENO" "RLIMIT_FSIZE" "ac_cv_have_decl_RLIMIT_FSIZE" " $ac_includes_default #if HAVE_SYS_RESOURCE_H #include #endif " if test "x$ac_cv_have_decl_RLIMIT_FSIZE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_RLIMIT_FSIZE $ac_have_decl _ACEOF # # Do we have RLIMIT_CORE in ? (e.g., Solaris does not) # ac_fn_c_check_decl "$LINENO" "RLIMIT_CORE" "ac_cv_have_decl_RLIMIT_CORE" " $ac_includes_default #if HAVE_SYS_RESOURCE_H #include #endif " if test "x$ac_cv_have_decl_RLIMIT_CORE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_RLIMIT_CORE $ac_have_decl _ACEOF # # Do we have RLIMIT_STACK in ? (e.g., Solaris does not) # ac_fn_c_check_decl "$LINENO" "RLIMIT_STACK" "ac_cv_have_decl_RLIMIT_STACK" " $ac_includes_default #if HAVE_SYS_RESOURCE_H #include #endif " if test "x$ac_cv_have_decl_RLIMIT_STACK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_RLIMIT_STACK $ac_have_decl _ACEOF # # Do we have RLIMIT_AS in ? (e.g., Solaris does not) # ac_fn_c_check_decl "$LINENO" "RLIMIT_AS" "ac_cv_have_decl_RLIMIT_AS" " $ac_includes_default #if HAVE_SYS_RESOURCE_H #include #endif " if test "x$ac_cv_have_decl_RLIMIT_AS" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_RLIMIT_AS $ac_have_decl _ACEOF # checkpoint results cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache ########################################################### # Fault Tolerance # # The FT code in the OMPI trunk is currently broken. We don't # have an active maintainer for it at this time, and it isn't # clear if/when we will return to it. We have therefore removed # the configure options supporting it until such time as it # can be fixed. # # However, we recognize that there are researchers who use this # option on their independent branches. In such cases, simply # uncomment the line below to render the FT configure options # visible again # ########################################################### ########################################################### # The following line is always required as it contains the # AC_DEFINE and AM_CONDITIONAL calls that set variables used # throughout the build system. If the above line is commented # out, then those variables will be set to "off". Otherwise, # they are controlled by the options if test "$opal_setup_ft_options" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want fault tolerance" >&5 $as_echo_n "checking if want fault tolerance... " >&6; } fi if test "x$with_ft" != "x" || test "$opal_want_ft" = "1"; then opal_want_ft=1 opal_want_ft_cr=0 opal_want_ft_type=none as_save_IFS=$IFS IFS="," for opt in $with_ft; do IFS=$as_save_IFS # Default value if test "$opt" = "" || test "$opt" = "yes"; then opal_want_ft_cr=1 elif test "$opt" = "LAM"; then opal_want_ft_cr=1 elif test "$opt" = "lam"; then opal_want_ft_cr=1 elif test "$opt" = "CR"; then opal_want_ft_cr=1 elif test "$opt" = "cr"; then opal_want_ft_cr=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unrecognized FT TYPE: $opt" >&5 $as_echo "Unrecognized FT TYPE: $opt" >&6; } as_fn_error $? "Cannot continue" "$LINENO" 5 fi done if test "$opal_want_ft_cr" = 1; then opal_want_ft_type="cr" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabled $opal_want_ft_type (Specified $with_ft)" >&5 $as_echo "Enabled $opal_want_ft_type (Specified $with_ft)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **************************************************" >&5 $as_echo "$as_me: WARNING: **************************************************" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&5 $as_echo "$as_me: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** a research quality implementation, and care *" >&5 $as_echo "$as_me: WARNING: *** a research quality implementation, and care *" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** should be used when choosing to enable it. *" >&5 $as_echo "$as_me: WARNING: *** should be used when choosing to enable it. *" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **************************************************" >&5 $as_echo "$as_me: WARNING: **************************************************" >&2;} else opal_want_ft=0 opal_want_ft_cr=0 if test "$opal_setup_ft_options" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled fault tolerance" >&5 $as_echo "Disabled fault tolerance" >&6; } fi fi cat >>confdefs.h <<_ACEOF #define OPAL_ENABLE_FT $opal_want_ft _ACEOF cat >>confdefs.h <<_ACEOF #define OPAL_ENABLE_FT_CR $opal_want_ft_cr _ACEOF if test "$opal_want_ft" = "1"; then WANT_FT_TRUE= WANT_FT_FALSE='#' else WANT_FT_TRUE='#' WANT_FT_FALSE= fi if test "$opal_want_ft_cr" = "1"; then WANT_FT_CR_TRUE= WANT_FT_CR_FALSE='#' else WANT_FT_CR_TRUE='#' WANT_FT_CR_FALSE= fi if test "$opal_setup_ft_options" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want checkpoint/restart enabled debugging option" >&5 $as_echo_n "checking if want checkpoint/restart enabled debugging option... " >&6; } fi if test "$opal_want_ft" = "0"; then opal_want_prd=0 if test "$opal_setup_ft_options" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled (fault tolerance disabled --without-ft)" >&5 $as_echo "Disabled (fault tolerance disabled --without-ft)" >&6; } fi elif test "$enable_crdebug" = "yes"; then opal_want_prd=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabled" >&5 $as_echo "Enabled" >&6; } else opal_want_prd=0 if test "$opal_setup_ft_options" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled" >&5 $as_echo "Disabled" >&6; } fi fi cat >>confdefs.h <<_ACEOF #define OPAL_ENABLE_CRDEBUG $opal_want_prd _ACEOF if test "$opal_setup_ft_options" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want fault tolerance thread" >&5 $as_echo_n "checking if want fault tolerance thread... " >&6; } fi # if they do not want FT support, then they do not want this thread either if test "$opal_want_ft" = "0"; then opal_want_ft_thread=0 if test "$opal_setup_ft_options" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled (fault tolerance disabled --without-ft)" >&5 $as_echo "Disabled (fault tolerance disabled --without-ft)" >&6; } fi # if --disable-ft-thread elif test "$enable_ft_thread" = "no"; then opal_want_ft_thread=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled" >&5 $as_echo "Disabled" >&6; } # if default, and no progress or MPI threads elif test "$enable_ft_thread" = "undef" && test "$enable_opal_multi_threads" = "no" ; then opal_want_ft_thread=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled (OPAL Thread Support Disabled)" >&5 $as_echo "Disabled (OPAL Thread Support Disabled)" >&6; } # if default, and MPI threads enabled for C/R only elif test "$opal_want_ft_cr" = 1; then # Default: Enable # Make sure we have OPAL Threads enabled if test "$enable_opal_multi_threads" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Must enable OPAL basic thread support to use this option" >&5 $as_echo "Must enable OPAL basic thread support to use this option" >&6; } as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_want_ft_thread=1 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **************************************************" >&5 $as_echo "$as_me: WARNING: **************************************************" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Fault Tolerance with a thread in Open MPI *" >&5 $as_echo "$as_me: WARNING: *** Fault Tolerance with a thread in Open MPI *" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** is an experimental, research quality option. *" >&5 $as_echo "$as_me: WARNING: *** is an experimental, research quality option. *" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** It requires OPAL thread support and care *" >&5 $as_echo "$as_me: WARNING: *** It requires OPAL thread support and care *" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** should be used when enabling these options. *" >&5 $as_echo "$as_me: WARNING: *** should be used when enabling these options. *" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **************************************************" >&5 $as_echo "$as_me: WARNING: **************************************************" >&2;} fi # Otherwise disabled else opal_want_ft_thread=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled (Non-C/R Fault Tolerance enabled)" >&5 $as_echo "Disabled (Non-C/R Fault Tolerance enabled)" >&6; } fi cat >>confdefs.h <<_ACEOF #define OPAL_ENABLE_FT_THREAD $opal_want_ft_thread _ACEOF if test "$opal_want_ft_thread" = "1"; then WANT_FT_THREAD_TRUE= WANT_FT_THREAD_FALSE='#' else WANT_FT_THREAD_TRUE='#' WANT_FT_THREAD_FALSE= fi ################################## # MCA ################################## opal_show_title "Modular Component Architecture (MCA) setup" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for subdir args" >&5 $as_echo_n "checking for subdir args... " >&6; } # 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 subdirs_str subdirs_skip subdirs_args subdirs_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=\"subdirs_str subdirs_skip subdirs_args subdirs_arg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in subdirectories. # # opal_subdir_args is the name of the variable to assign the output to # # # Make a list of command line args --eliminate the --srcdir and # --cache-file args, because we need to replace them with our own # values when invoking the sub-configure script. Also eliminate # the --with-platform as this will confuse any subdir with # similar options # subdirs_args= subdirs_skip=no eval "set x $ac_configure_args" shift for subdirs_arg do if test "$subdirs_skip" = "yes"; then subdirs_skip=no else case $subdirs_arg in -cache-file | --cache-file | -cache | --cache) subdirs_skip=yes ;; --config-cache | -C) ;; -cache-file=* | --cache-file=*) ;; -srcdir | --srcdir) subdirs_skip=yes ;; -srcdir=* | --srcdir=*) ;; -with-platform=* | --with-platform=*) ;; --with*=internal) ;; --with*=external) ;; *) case $subdir_arg in *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac subdirs_args="$subdirs_args '$subdirs_arg'" ;; esac fi done # # Assign the output # subdirs_str=opal_subdir_args=\"$subdirs_args\" eval "$subdirs_str" # # Clean up # # 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}: result: $opal_subdir_args" >&5 $as_echo "$opal_subdir_args" >&6; } if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi # Add --with options # Check whether --with-verbs was given. if test "${with_verbs+set}" = set; then : withval=$with_verbs; fi # Check whether --with-verbs-libdir was given. if test "${with_verbs_libdir+set}" = set; then : withval=$with_verbs_libdir; fi # Sanity check the --with values { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-verbs value" >&5 $as_echo_n "checking --with-verbs value... " >&6; } if test "$with_verbs" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-verbs)" >&5 $as_echo "simple no (specified --without-verbs)" >&6; } else if test "$with_verbs" = "yes" || test "x$with_verbs" = "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_verbs"; 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_verbs not found" >&5 $as_echo "$as_me: WARNING: Directory $with_verbs not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_verbs/include/infiniband/verbs.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_verbs/include/infiniband/verbs.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_verbs/include/infiniband/verbs.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_verbs)" >&5 $as_echo "sanity check ok ($with_verbs)" >&6; } fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-verbs-libdir value" >&5 $as_echo_n "checking --with-verbs-libdir value... " >&6; } if test "$with_verbs_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-verbs-libdir)" >&5 $as_echo "simple no (specified --without-verbs-libdir)" >&6; } else if test "$with_verbs_libdir" = "yes" || test "x$with_verbs_libdir" = "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_verbs_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_verbs_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_verbs_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_verbs_libdir/libibverbs.* 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_verbs_libdir/libibverbs.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_verbs_libdir/libibverbs.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_verbs_libdir)" >&5 $as_echo "sanity check ok ($with_verbs_libdir)" >&6; } fi fi fi fi # Set standardized shell variables for OFED lovin' components to # use. Either both of $opal_verbs_dir and # $verbs_libdir will be set, or neither will be set. opal_want_verbs=no if test -z "$with_verbs"; then : opal_want_verbs=optional else if test "$with_verbs" = "no"; then : opal_want_verbs=no else opal_want_verbs=yes fi fi opal_verbs_dir= if test -n "$with_verbs" && test "$with_verbs" != "yes" && test "$with_verbs" != "no"; then : opal_verbs_dir=$with_verbs fi opal_verbs_libdir= if test -n "$with_verbs_libdir" && test "$with_verbs_libdir" != "yes" && test "$with_verbs_libdir" != "no"; then : opal_verbs_libdir=$with_verbs_libdir fi # If the top dir was specified but the libdir was not, look for # it. Note that if the user needs a specific libdir (i.e., if our # hueristic ordering below is not sufficient), they need to # specify it. if test -z "$opal_verbs_libdir" && test -n "$opal_verbs_dir"; then : if test -d ""$opal_verbs_dir/lib""; then : if test "x`ls "$opal_verbs_dir/lib"/libibverbs.* 2> /dev/null`" != "x"; then : opal_verbs_libdir=""$opal_verbs_dir/lib"" fi fi fi if test -z "$opal_verbs_libdir" && test -n "$opal_verbs_dir"; then : if test -d ""$opal_verbs_dir/lib64""; then : if test "x`ls "$opal_verbs_dir/lib64"/libibverbs.* 2> /dev/null`" != "x"; then : opal_verbs_libdir=""$opal_verbs_dir/lib64"" fi fi fi if test -z "$opal_verbs_libdir" && test -n "$opal_verbs_dir"; then : if test -d ""$opal_verbs_dir/lib32""; then : if test "x`ls "$opal_verbs_dir/lib32"/libibverbs.* 2> /dev/null`" != "x"; then : opal_verbs_libdir=""$opal_verbs_dir/lib32"" fi fi fi if test -z "$opal_verbs_libdir" && test -n "$opal_verbs_dir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libibverbs in the usual locations under $opal_verbs_dir" >&5 $as_echo "$as_me: WARNING: Could not find libibverbs in the usual locations under $opal_verbs_dir" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # If the libdir was specified, but the top dir was not, look for # it. Note that if the user needs a specific top dir (i.e., if # our hueristic below is not sufficient), they need to specify it. if test -z "$opal_verbs" && test -n "$opal_verbs_libdir"; then : if test -d "`dirname "$opal_verbs_libdir"`"; then : if test -f "`dirname "$opal_verbs_libdir"`/include/infiniband/verbs.h"; then : opal_verbs_dir="`dirname "$opal_verbs_libdir"`" fi fi fi if test -z "$opal_verbs_dir" && test -n "$opal_verbs_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find verbs.h in the usual locations under $opal_verbs_dir" >&5 $as_echo "$as_me: WARNING: Could not find verbs.h in the usual locations under $opal_verbs_dir" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # # ConnectX XRC support - disabled see issue #3890 # enable_connectx_xrc="no" # # Unconnect Datagram (UD) based connection manager # # Check whether --enable-openib-udcm was given. if test "${enable_openib_udcm+set}" = set; then : enableval=$enable_openib_udcm; enable_openib_udcm="$enableval" else enable_openib_udcm="yes" fi # Per discussion with Ralph and Nathan, disable UDCM for now. # It's borked and needs some surgery to get back on its feet. # enable_openib_udcm=no # # Openfabrics RDMACM # # Check whether --enable-openib-rdmacm was given. if test "${enable_openib_rdmacm+set}" = set; then : enableval=$enable_openib_rdmacm; fi # Check whether --enable-openib-rdmacm-ibaddr was given. if test "${enable_openib_rdmacm_ibaddr+set}" = set; then : enableval=$enable_openib_rdmacm_ibaddr; enable_openib_rdmacm=yes fi if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then HWLOC_pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $HWLOC_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $HWLOC_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $HWLOC_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi opal_hwloc_base_include= # If this shell variable is not 1, then this m4 is being invoked # "early" via AC REQUIRE. Therefore, since we like having fairly # readable configure output, print out a nice banner explaining why # this is coming early. if test "$opal_hwloc_its_time_to_configure" != "1"; then : echo " " echo "==> Pre-emptively configuring the hwloc framework to satisfy dependencies." fi # See if we want internal vs external hwloc # Check whether --with-hwloc was given. if test "${with_hwloc+set}" = set; then : withval=$with_hwloc; fi # Whether to enable or disable PCI support in embedded hwloc # support. # Check whether --enable-hwloc-pci was given. if test "${enable_hwloc_pci+set}" = set; then : enableval=$enable_hwloc_pci; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hwloc PCI device support" >&5 $as_echo_n "checking whether to enable hwloc PCI device support... " >&6; } if test "$enable_hwloc_pci" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (--enable-hwloc-pci specified)" >&5 $as_echo "yes (--enable-hwloc-pci specified)" >&6; } enable_pci=yes else if test "$enable_hwloc_pci" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (--disable-hwloc-pci specified)" >&5 $as_echo "no (--disable-hwloc-pci specified)" >&6; } enable_pci=no else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 $as_echo "yes (default)" >&6; } enable_pci= fi fi # check for error if test "$with_hwloc" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI requires HWLOC support. It can be built" >&5 $as_echo "$as_me: WARNING: Open MPI requires HWLOC support. It can be built" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with either its own internal copy of HWLOC, or with" >&5 $as_echo "$as_me: WARNING: with either its own internal copy of HWLOC, 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 # check for no-op if test "$with_hwloc" = "yes"; then : with_hwloc="" fi # set default opal_hwloc_base_enable_xml=0 # Configure all the components - always have to do this. Note that # instead of passing in # the traditional and as the first arguments, we hard-code # "opal" and "hwloc", because this macro is invoked via AC # REQUIRE. opal_show_subsubtitle "Configuring MCA framework hwloc" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/hwloc/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/hwloc/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework hwloc" >&5 $as_echo_n "checking for no configure components in framework hwloc... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework hwloc" >&5 $as_echo_n "checking for m4 configure components in framework hwloc... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: external, hwloc201" >&5 $as_echo "external, hwloc201" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component hwloc:external (m4 configuration macro, priority 90)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/hwloc/external" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_hwloc" ; then if test "$DIRECT_hwloc" = "external" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_hwloc" = "1"; then : want_component=0 fi if test "$DISABLE_hwloc_external" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component hwloc:external compile mode" >&5 $as_echo_n "checking for MCA component hwloc:external compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/hwloc/external/Makefile" # 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_hwloc_external_CPPFLAGS_save opal_hwloc_external_CFLAGS_save opal_hwloc_external_LDFLAGS_save opal_hwloc_external_LIBS_save opal_hwloc_external_tmp opal_hwloc_external_lstopo opal_hwloc_summary_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=\"opal_hwloc_external_CPPFLAGS_save opal_hwloc_external_CFLAGS_save opal_hwloc_external_LDFLAGS_save opal_hwloc_external_LIBS_save opal_hwloc_external_tmp opal_hwloc_external_lstopo opal_hwloc_summary_msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-hwloc-libdir was given. if test "${with_hwloc_libdir+set}" = set; then : withval=$with_hwloc_libdir; fi # Make sure the user didn't specify --with-hwloc=internal and # --with-hwloc-libdir=whatever. if test "$with_hwloc" = "internal" && \ test "$with_hwloc_libdir" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both --with-hwloc=internal and --with-hwloc-libdir=DIR" >&5 $as_echo "$as_me: WARNING: Both --with-hwloc=internal and --with-hwloc-libdir=DIR" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: were specified, which does not make sense." >&5 $as_echo "$as_me: WARNING: were specified, which does not make sense." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi opal_hwloc_summary_msg="internal" # Try external support if needed if test "$with_hwloc" != "internal"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-hwloc-libdir value" >&5 $as_echo_n "checking --with-hwloc-libdir value... " >&6; } if test "$with_hwloc_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-hwloc-libdir)" >&5 $as_echo "simple no (specified --without-hwloc-libdir)" >&6; } else if test "$with_hwloc_libdir" = "yes" || test "x$with_hwloc_libdir" = "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_hwloc_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_hwloc_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_hwloc_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_hwloc_libdir/libhwloc.* 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_hwloc_libdir/libhwloc.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_hwloc_libdir/libhwloc.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_hwloc_libdir)" >&5 $as_echo "sanity check ok ($with_hwloc_libdir)" >&6; } fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for external hwloc in" >&5 $as_echo_n "checking looking for external hwloc in... " >&6; } if test "$with_hwloc" != "external" && \ test "$with_hwloc" != "yes"; then : opal_hwloc_dir=$with_hwloc { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($opal_hwloc_dir)" >&5 $as_echo "($opal_hwloc_dir)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 $as_echo "(default search paths)" >&6; } fi if test ! -z "$with_hwloc_libdir" && \ test "$with_hwloc_libdir" != "yes"; then : opal_hwloc_libdir=$with_hwloc_libdir fi opal_hwloc_external_CPPFLAGS_save=$CPPFLAGS opal_hwloc_external_CFLAGS_save=$CFLAGS opal_hwloc_external_LDFLAGS_save=$LDFLAGS opal_hwloc_external_LIBS_save=$LIBS opal_check_package_opal_hwloc_external_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_hwloc_external_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_hwloc_external_save_LIBS="$LIBS" opal_check_package_opal_hwloc_external_orig_CPPFLAGS="$opal_hwloc_external_CPPFLAGS" opal_check_package_opal_hwloc_external_orig_LDFLAGS="$opal_hwloc_external_LDFLAGS" opal_check_package_opal_hwloc_external_orig_LIBS="$opal_hwloc_external_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_hwloc_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_hwloc_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 hwloc.h do : ac_fn_c_check_header_mongrel "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default" if test "x$ac_cv_header_hwloc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_HWLOC_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_hwloc_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_hwloc_external_CPPFLAGS="$opal_hwloc_external_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in hwloc.h do : ac_fn_c_check_header_mongrel "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default" if test "x$ac_cv_header_hwloc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_HWLOC_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_hwloc_topology_init opal_check_package_lib_happy="no" if test "$opal_hwloc_libdir" != ""; then : # libdir was specified - search only there opal_hwloc_external_LDFLAGS="$opal_hwloc_external_LDFLAGS -L$opal_hwloc_libdir" LDFLAGS="$LDFLAGS -L$opal_hwloc_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hwloc_topology_init" >&5 $as_echo_n "checking for library containing hwloc_topology_init... " >&6; } if ${ac_cv_search_hwloc_topology_init+:} 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 hwloc_topology_init (); int main () { return hwloc_topology_init (); ; return 0; } _ACEOF for ac_lib in '' hwloc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hwloc_topology_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hwloc_topology_init+:} false; then : break fi done if ${ac_cv_search_hwloc_topology_init+:} false; then : else ac_cv_search_hwloc_topology_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 $as_echo "$ac_cv_search_hwloc_topology_init" >&6; } ac_res=$ac_cv_search_hwloc_topology_init 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_hwloc_external_save_LDFLAGS" opal_hwloc_external_LDFLAGS="$opal_check_package_opal_hwloc_external_orig_LDFLAGS" unset ac_cv_search_hwloc_topology_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_hwloc_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 hwloc_topology_init" >&5 $as_echo_n "checking for library containing hwloc_topology_init... " >&6; } if ${ac_cv_search_hwloc_topology_init+:} 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 hwloc_topology_init (); int main () { return hwloc_topology_init (); ; return 0; } _ACEOF for ac_lib in '' hwloc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hwloc_topology_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hwloc_topology_init+:} false; then : break fi done if ${ac_cv_search_hwloc_topology_init+:} false; then : else ac_cv_search_hwloc_topology_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 $as_echo "$ac_cv_search_hwloc_topology_init" >&6; } ac_res=$ac_cv_search_hwloc_topology_init 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_hwloc_external_save_LDFLAGS" opal_hwloc_external_LDFLAGS="$opal_check_package_opal_hwloc_external_orig_LDFLAGS" unset ac_cv_search_hwloc_topology_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_hwloc_external_LDFLAGS="$opal_hwloc_external_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 hwloc_topology_init" >&5 $as_echo_n "checking for library containing hwloc_topology_init... " >&6; } if ${ac_cv_search_hwloc_topology_init+:} 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 hwloc_topology_init (); int main () { return hwloc_topology_init (); ; return 0; } _ACEOF for ac_lib in '' hwloc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hwloc_topology_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hwloc_topology_init+:} false; then : break fi done if ${ac_cv_search_hwloc_topology_init+:} false; then : else ac_cv_search_hwloc_topology_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 $as_echo "$ac_cv_search_hwloc_topology_init" >&6; } ac_res=$ac_cv_search_hwloc_topology_init 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_hwloc_external_save_LDFLAGS" opal_hwloc_external_LDFLAGS="$opal_check_package_opal_hwloc_external_orig_LDFLAGS" unset ac_cv_search_hwloc_topology_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_hwloc_external_LDFLAGS="$opal_hwloc_external_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 hwloc_topology_init" >&5 $as_echo_n "checking for library containing hwloc_topology_init... " >&6; } if ${ac_cv_search_hwloc_topology_init+:} 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 hwloc_topology_init (); int main () { return hwloc_topology_init (); ; return 0; } _ACEOF for ac_lib in '' hwloc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hwloc_topology_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hwloc_topology_init+:} false; then : break fi done if ${ac_cv_search_hwloc_topology_init+:} false; then : else ac_cv_search_hwloc_topology_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 $as_echo "$ac_cv_search_hwloc_topology_init" >&6; } ac_res=$ac_cv_search_hwloc_topology_init 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_hwloc_external_save_LDFLAGS" opal_hwloc_external_LDFLAGS="$opal_check_package_opal_hwloc_external_orig_LDFLAGS" unset ac_cv_search_hwloc_topology_init 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 libhwloc requires libnl v1 or v3" >&5 $as_echo_n "checking if libhwloc requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void hwloc_topology_init (void); int main(int argc, char *argv[]) { hwloc_topology_init (); 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:80133: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lhwloc $LIBS $opal_hwloc_external_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lhwloc $LIBS $opal_hwloc_external_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:80140: \$? = $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 hwloc" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib hwloc" >&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, libhwloc links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libhwloc 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 libhwloc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libhwloc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libhwloc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libhwloc." >&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 hwloc requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas hwloc 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 libhwloc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libhwloc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libhwloc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libhwloc." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs hwloc" # 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 libhwloc requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libhwloc 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 libhwloc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libhwloc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libhwloc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libhwloc." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs hwloc" # 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_hwloc_topology_init" != "no" && test "$ac_cv_search_hwloc_topology_init" != "none required"; then : opal_hwloc_external_LIBS="$ac_cv_search_hwloc_topology_init " else opal_hwloc_external_LIBS="" 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_hwloc_topology_init opal_check_package_lib_happy="no" if test "$opal_hwloc_libdir" != ""; then : # libdir was specified - search only there opal_hwloc_external_LDFLAGS="$opal_hwloc_external_LDFLAGS -L$opal_hwloc_libdir" LDFLAGS="$LDFLAGS -L$opal_hwloc_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hwloc_topology_init" >&5 $as_echo_n "checking for library containing hwloc_topology_init... " >&6; } if ${ac_cv_search_hwloc_topology_init+:} 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 hwloc_topology_init (); int main () { return hwloc_topology_init (); ; return 0; } _ACEOF for ac_lib in '' hwloc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hwloc_topology_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hwloc_topology_init+:} false; then : break fi done if ${ac_cv_search_hwloc_topology_init+:} false; then : else ac_cv_search_hwloc_topology_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 $as_echo "$ac_cv_search_hwloc_topology_init" >&6; } ac_res=$ac_cv_search_hwloc_topology_init 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_hwloc_external_save_LDFLAGS" opal_hwloc_external_LDFLAGS="$opal_check_package_opal_hwloc_external_orig_LDFLAGS" unset ac_cv_search_hwloc_topology_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_hwloc_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 hwloc_topology_init" >&5 $as_echo_n "checking for library containing hwloc_topology_init... " >&6; } if ${ac_cv_search_hwloc_topology_init+:} 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 hwloc_topology_init (); int main () { return hwloc_topology_init (); ; return 0; } _ACEOF for ac_lib in '' hwloc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hwloc_topology_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hwloc_topology_init+:} false; then : break fi done if ${ac_cv_search_hwloc_topology_init+:} false; then : else ac_cv_search_hwloc_topology_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 $as_echo "$ac_cv_search_hwloc_topology_init" >&6; } ac_res=$ac_cv_search_hwloc_topology_init 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_hwloc_external_save_LDFLAGS" opal_hwloc_external_LDFLAGS="$opal_check_package_opal_hwloc_external_orig_LDFLAGS" unset ac_cv_search_hwloc_topology_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_hwloc_external_LDFLAGS="$opal_hwloc_external_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 hwloc_topology_init" >&5 $as_echo_n "checking for library containing hwloc_topology_init... " >&6; } if ${ac_cv_search_hwloc_topology_init+:} 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 hwloc_topology_init (); int main () { return hwloc_topology_init (); ; return 0; } _ACEOF for ac_lib in '' hwloc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hwloc_topology_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hwloc_topology_init+:} false; then : break fi done if ${ac_cv_search_hwloc_topology_init+:} false; then : else ac_cv_search_hwloc_topology_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 $as_echo "$ac_cv_search_hwloc_topology_init" >&6; } ac_res=$ac_cv_search_hwloc_topology_init 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_hwloc_external_save_LDFLAGS" opal_hwloc_external_LDFLAGS="$opal_check_package_opal_hwloc_external_orig_LDFLAGS" unset ac_cv_search_hwloc_topology_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_hwloc_external_LDFLAGS="$opal_hwloc_external_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 hwloc_topology_init" >&5 $as_echo_n "checking for library containing hwloc_topology_init... " >&6; } if ${ac_cv_search_hwloc_topology_init+:} 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 hwloc_topology_init (); int main () { return hwloc_topology_init (); ; return 0; } _ACEOF for ac_lib in '' hwloc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hwloc_topology_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hwloc_topology_init+:} false; then : break fi done if ${ac_cv_search_hwloc_topology_init+:} false; then : else ac_cv_search_hwloc_topology_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hwloc_topology_init" >&5 $as_echo "$ac_cv_search_hwloc_topology_init" >&6; } ac_res=$ac_cv_search_hwloc_topology_init 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_hwloc_external_save_LDFLAGS" opal_hwloc_external_LDFLAGS="$opal_check_package_opal_hwloc_external_orig_LDFLAGS" unset ac_cv_search_hwloc_topology_init 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 libhwloc requires libnl v1 or v3" >&5 $as_echo_n "checking if libhwloc requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void hwloc_topology_init (void); int main(int argc, char *argv[]) { hwloc_topology_init (); 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:80858: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lhwloc $LIBS $opal_hwloc_external_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lhwloc $LIBS $opal_hwloc_external_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:80865: \$? = $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 hwloc" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib hwloc" >&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, libhwloc links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libhwloc 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 libhwloc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libhwloc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libhwloc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libhwloc." >&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 hwloc requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas hwloc 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 libhwloc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libhwloc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libhwloc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libhwloc." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs hwloc" # 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 libhwloc requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libhwloc 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 libhwloc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libhwloc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libhwloc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libhwloc." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs hwloc" # 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_hwloc_topology_init" != "no" && test "$ac_cv_search_hwloc_topology_init" != "none required"; then : opal_hwloc_external_LIBS="$ac_cv_search_hwloc_topology_init " else opal_hwloc_external_LIBS="" 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_hwloc_external_support=yes else opal_hwloc_external_CPPFLAGS="$opal_check_package_opal_hwloc_external_orig_CPPFLAGS" opal_hwloc_external_LDFLAGS="$opal_check_package_opal_hwloc_external_orig_LDFLAGS" opal_hwloc_external_LIBS="$opal_check_package_opal_hwloc_external_orig_LIBS" opal_hwloc_external_support=no fi CPPFLAGS="$opal_check_package_opal_hwloc_external_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_hwloc_external_save_LDFLAGS" LIBS="$opal_check_package_opal_hwloc_external_save_LIBS" if test "$opal_hwloc_external_support" = "yes"; then : CPPFLAGS="$CPPFLAGS $opal_hwloc_external_CPPFLAGS" LDFLAGS="$LDFLAGS $opal_hwloc_external_LDFLAGS" LIBS="$LIBS $opal_hwloc_external_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external hwloc version is 1.5 or greater" >&5 $as_echo_n "checking if external hwloc version is 1.5 or greater... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if HWLOC_API_VERSION < 0x00010500 #error "hwloc API version is less than 0x00010500" #endif ; 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; } opal_hwloc_external_support=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # If external hwloc is not explicitly requested, check external version # is not lower than the internal one if test "$opal_hwloc_external_support" = "yes"; then : if test -z "$with_hwloc" || test "$with_hwloc" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external hwloc version is 2.0 or greater" >&5 $as_echo_n "checking if external hwloc version is 2.0 or greater... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if HWLOC_API_VERSION < 0x00020000 #error "hwloc API version is less than 0x00020000" #endif ; 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; } opal_hwloc_summary_msg="internal (external hlwoc version is less than internal version 2.0)" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: external hwloc version is less than internal version 2.0" >&5 $as_echo "$as_me: WARNING: external hwloc version is less than internal version 2.0" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using internal hwloc" >&5 $as_echo "$as_me: WARNING: using internal hwloc" >&2;} opal_hwloc_external_support=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi if test "$opal_hwloc_external_support" = "yes"; then : cat >>confdefs.h <<_ACEOF #define HWLOC_EXTERNAL_HWLOC_VERSION external _ACEOF ac_fn_c_check_decl "$LINENO" "HWLOC_OBJ_OSDEV_COPROC" "ac_cv_have_decl_HWLOC_OBJ_OSDEV_COPROC" "#include " if test "x$ac_cv_have_decl_HWLOC_OBJ_OSDEV_COPROC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_HWLOC_OBJ_OSDEV_COPROC $ac_have_decl _ACEOF for ac_func in hwloc_topology_dup do : ac_fn_c_check_func "$LINENO" "hwloc_topology_dup" "ac_cv_func_hwloc_topology_dup" if test "x$ac_cv_func_hwloc_topology_dup" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_HWLOC_TOPOLOGY_DUP 1 _ACEOF fi done # See if the external hwloc supports XML { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external hwloc supports XML" >&5 $as_echo_n "checking if external hwloc supports XML... " >&6; } if test "$opal_hwloc_dir" != ""; then : opal_hwloc_external_lstopo="$opal_hwloc_dir/bin/lstopo" else # 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=lstopo IFS_SAVE=$IFS IFS="$PATH_SEPARATOR" for opal_dir in $PATH; do if test -x "$opal_dir/$opal_prog"; then opal_hwloc_external_lstopo="$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 fi opal_hwloc_external_tmp=`$opal_hwloc_external_lstopo --help | $GREP "Supported output file formats" | grep xml` if test "$opal_hwloc_external_tmp" = ""; then : opal_hwloc_external_enable_xml=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else opal_hwloc_external_enable_xml=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi for ac_header in infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_H 1 _ACEOF fi done # These flags need to get passed to the wrapper compilers # (this is unnecessary for the internal/embedded hwloc) # Finally, add some flags to the wrapper compiler if we're # building with developer headers so that our headers can # be found. hwloc_external_WRAPPER_EXTRA_CPPFLAGS=$opal_hwloc_external_CPPFLAGS hwloc_external_WRAPPER_EXTRA_LDFLAGS=$opal_hwloc_external_LDFLAGS hwloc_external_WRAPPER_EXTRA_LIBS=$opal_hwloc_external_LIBS fi CPPFLAGS=$opal_hwloc_external_CPPFLAGS_save CFLAGS=$opal_hwloc_external_CFLAGS_save LDFLAGS=$opal_hwloc_external_LDFLAGS_save LIBS=$opal_hwloc_external_LIBS_save fi # Done! if test "$opal_hwloc_external_support" = "yes"; then : opal_hwloc_summary_msg="external" should_build=$should_build else # Abort is external hwloc was explicitly requested but cannot be built if test "$with_hwloc" != internal && test -n "$with_hwloc"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: external hwloc cannot be built" >&5 $as_echo "$as_me: WARNING: external hwloc cannot be built" >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi should_build=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="HWLOC support: $opal_hwloc_summary_msg" 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 # 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/hwloc/external/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components external" if test "$compile_mode" = "dso" ; then dso_components="$dso_components external" else if test "hwloc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/hwloc/external/lib${OPAL_LIB_PREFIX}mca_hwloc_external.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/hwloc/external/libmca_hwloc_external.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_hwloc_external_component;" >> $outfile.extern echo " &mca_hwloc_external_component, " >> $outfile.struct static_components="$static_components external" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component hwloc:external can compile" >&5 $as_echo_n "checking if MCA component hwloc:external can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_hwloc" = "external" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_hwloc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** hwloc component external was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_hwloc" = "external" ; then as_fn_error $? "*** hwloc component external was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$hwloc_external_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $hwloc_external_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $hwloc_external_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$hwloc_external_WRAPPER_EXTRA_LIBS" = ""; 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_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 $hwloc_external_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $hwloc_external_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$hwloc_external_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $hwloc_external_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring hwloc_external_WRAPPER_EXTRA_CPPFLAGS ($hwloc_external_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring hwloc_external_WRAPPER_EXTRA_CPPFLAGS ($hwloc_external_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component hwloc:external can compile" >&5 $as_echo_n "checking if MCA component hwloc:external can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_hwloc" = "external" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"external\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"external\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_hwloc" ; then if test "$DIRECT_hwloc" = "external" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"external\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"external\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components external" 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_hwloc_external_basedir; 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_hwloc_external_basedir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # If we won, then do all the rest of the setup if test "$should_build" = "1"; then : cat >>confdefs.h <<_ACEOF #define HWLOC_EXTERNAL_HWLOC_VERSION external _ACEOF # Set this variable so that the framework m4 knows what # file to include in opal/mca/hwloc/hwloc-internal.h opal_hwloc_external_basedir=opal/mca/hwloc/external opal_hwloc_base_include="$opal_hwloc_external_basedir/external.h" # Add some stuff to CPPFLAGS so that the rest of the source # tree can be built CPPFLAGS="$CPPFLAGS $opal_hwloc_external_CPPFLAGS" LDFLAGS="$LDFLAGS $opal_hwloc_external_LDFLAGS" LIBS="$LIBS $opal_hwloc_external_LIBS" # We have to do some extra indirection to get the # OPAL_HWLOC_WANT_VERBS_HELPER to work. First, the # opal_hwloc_external_include file (set above), points to a # file here in this component. That file will include the # actual external hwloc.h file (via the # MCA_hwloc_external_header define). And if # OPAL_HWLOC_WANT_VERBS_HELPER is set, that file will # include the external hwloc/openfabrics-verbs.h file (via # the MCA_hwloc_external_openfabrics_helper define). if test "$opal_hwloc_dir" != ""; then : opal_hwloc_include="$opal_hwloc_dir/include/hwloc.h" opal_hwloc_shmem_include="$opal_hwloc_dir/include/hwloc/shmem.h" opal_hwloc_openfabrics_include="$opal_hwloc_dir/include/hwloc/openfabrics-verbs.h" else opal_hwloc_include="hwloc.h" opal_hwloc_shmem_include="hwloc/shmem.h" opal_hwloc_openfabrics_include="hwloc/openfabrics-verbs.h" fi cat >>confdefs.h <<_ACEOF #define MCA_hwloc_external_header "$opal_hwloc_include" _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_hwloc_external_shmem_header "$opal_hwloc_shmem_include" _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_hwloc_external_openfabrics_header "$opal_hwloc_openfabrics_include" _ACEOF 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 # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_hwloc_external_DSO=1 else BUILD_opal_hwloc_external_DSO=0 fi if test "$BUILD_opal_hwloc_external_DSO" = "1"; then MCA_BUILD_opal_hwloc_external_DSO_TRUE= MCA_BUILD_opal_hwloc_external_DSO_FALSE='#' else MCA_BUILD_opal_hwloc_external_DSO_TRUE='#' MCA_BUILD_opal_hwloc_external_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component hwloc:hwloc201 (m4 configuration macro, priority 80)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/hwloc/hwloc201" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_hwloc" ; then if test "$DIRECT_hwloc" = "hwloc201" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_hwloc" = "1"; then : want_component=0 fi if test "$DISABLE_hwloc_hwloc201" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component hwloc:hwloc201 compile mode" >&5 $as_echo_n "checking for MCA component hwloc:hwloc201 compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component # Hwloc needs to know if we have Verbs support ac_config_files="$ac_config_files opal/mca/hwloc/hwloc201/Makefile" # 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 HWLOC_VERSION opal_hwloc_hwloc201_save_CPPFLAGS opal_hwloc_hwloc201_save_LDFLAGS opal_hwloc_hwloc201_save_LIBS opal_hwloc_hwloc201_save_cairo opal_hwloc_hwloc201_save_xml opal_hwloc_hwloc201_save_mode opal_hwloc_hwloc201_basedir opal_hwloc_hwloc201_file opal_hwloc_hwloc201_save_cflags CPPFLAGS_save LIBS_save opal_hwloc_external; 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=\"HWLOC_VERSION opal_hwloc_hwloc201_save_CPPFLAGS opal_hwloc_hwloc201_save_LDFLAGS opal_hwloc_hwloc201_save_LIBS opal_hwloc_hwloc201_save_cairo opal_hwloc_hwloc201_save_xml opal_hwloc_hwloc201_save_mode opal_hwloc_hwloc201_basedir opal_hwloc_hwloc201_file opal_hwloc_hwloc201_save_cflags CPPFLAGS_save LIBS_save opal_hwloc_external\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # We know that the external hwloc component will be configured # before this one because of its priority. This component is only # needed if the external component was not successful in selecting # itself. Print out a message explaining this. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hwloc external component succeeded" >&5 $as_echo_n "checking if hwloc external component succeeded... " >&6; } if test "$opal_hwloc_external_support" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc:external succeeded, so this component will be configured, but then will be skipped" >&5 $as_echo "$as_me: hwloc:external succeeded, so this component will be configured, but then will be skipped" >&6;} else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc:external failed, so this component will be used" >&5 $as_echo "$as_me: hwloc:external failed, so this component will be used" >&6;} fi # default to this component not providing support opal_hwloc_hwloc201_basedir=opal/mca/hwloc/hwloc201 opal_hwloc_hwloc201_support=no opal_hwloc_hwloc201_save_CPPFLAGS=$CPPFLAGS opal_hwloc_hwloc201_save_LDFLAGS=$LDFLAGS opal_hwloc_hwloc201_save_LIBS=$LIBS # save XML or graphical options opal_hwloc_hwloc201_save_cairo=$enable_cairo opal_hwloc_hwloc201_save_xml=$enable_xml opal_hwloc_hwloc201_save_static=$enable_static opal_hwloc_hwloc201_save_shared=$enable_shared opal_hwloc_hwloc201_save_plugins=$enable_plugins opal_hwloc_hwloc201_save_mode=$hwloc_mode # never enable hwloc's graphical option enable_cairo=no # never enable hwloc's plugin system enable_plugins=no enable_static=yes enable_shared=no # Override -- disable hwloc's libxml2 support, but enable the # native hwloc XML support enable_libxml2=no enable_xml=yes # ensure we are in "embedded" mode hwloc_mode=embedded # GL and OpenCL OS devices aren't used in OMPI enable_gl=no enable_opencl=no # Per https://github.com/open-mpi/ompi/pull/4257, ALWAYS # disable cuda support enable_cuda=no # Open MPI currently does not use hwloc's NVML support enable_nvml=no # hwloc checks for compiler visibility, and its needs to do # this without "picky" flags. opal_hwloc_hwloc201_save_cflags=$CFLAGS CFLAGS=$OPAL_CFLAGS_BEFORE_PICKY if test -n "$opal_datatype_cuda_CPPFLAGS"; then : CPPFLAGS="$CPPFLAGS $opal_datatype_cuda_CPPFLAGS" fi # Only set the symbol prefix if this component is being used # (i.e., if the external component is not being used). if test "$opal_hwloc_external_support" = "no"; then : hwloc_symbol_prefix_value=opal_hwloc201_ fi # Do the bulk of the hwloc core setup if test "x" != "x"; then : cat <&5 $as_echo_n "checking hwloc building mode... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_mode" >&5 $as_echo "$hwloc_mode" >&6; } # Get hwloc's absolute top builddir (which may not be the same as # the real $top_builddir, because we may be building in embedded # mode). HWLOC_startdir=`pwd` if test x"opal/mca/hwloc/hwloc201/hwloc/" != "x" -a ! -d "opal/mca/hwloc/hwloc201/hwloc/"; then mkdir -p "opal/mca/hwloc/hwloc201/hwloc/" fi if test x"opal/mca/hwloc/hwloc201/hwloc/" != "x"; then cd "opal/mca/hwloc/hwloc201/hwloc/" fi HWLOC_top_builddir=`pwd` # Get hwloc's absolute top srcdir (which may not be the same as # the real $top_srcdir, because we may be building in embedded # mode). First, go back to the startdir incase the $srcdir is # relative. cd "$HWLOC_startdir" cd "$srcdir"/opal/mca/hwloc/hwloc201/hwloc/ HWLOC_top_srcdir="`pwd`" # Go back to where we started cd "$HWLOC_startdir" { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc builddir: $HWLOC_top_builddir" >&5 $as_echo "$as_me: hwloc builddir: $HWLOC_top_builddir" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc srcdir: $HWLOC_top_srcdir" >&5 $as_echo "$as_me: hwloc srcdir: $HWLOC_top_srcdir" >&6;} if test "$HWLOC_top_builddir" != "$HWLOC_top_srcdir"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5 $as_echo "$as_me: Detected VPATH build" >&6;} fi # Get the version of hwloc that we are installing { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc version" >&5 $as_echo_n "checking for hwloc version... " >&6; } HWLOC_VERSION="`$HWLOC_top_srcdir/config/hwloc_get_version.sh $HWLOC_top_srcdir/VERSION`" if test "$?" != "0"; then as_fn_error $? "Cannot continue" "$LINENO" 5 fi HWLOC_RELEASE_DATE="`$HWLOC_top_srcdir/config/hwloc_get_version.sh $HWLOC_top_srcdir/VERSION --release-date`" cat >>confdefs.h <<_ACEOF #define HWLOC_VERSION "$HWLOC_VERSION" _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_VERSION" >&5 $as_echo "$HWLOC_VERSION" >&6; } # Debug mode? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want hwloc maintainer support" >&5 $as_echo_n "checking if want hwloc maintainer support... " >&6; } hwloc_debug= # Unconditionally disable debug mode in embedded mode; if someone # asks, we can add a configure-time option for it. Disable it # now, however, because --enable-debug is not even added as an # option when configuring in embedded mode, and we wouldn't want # to hijack the enclosing application's --enable-debug configure # switch. if test "$hwloc_mode" = "embedded"; then : hwloc_debug=0 hwloc_debug_msg="disabled (embedded mode)" fi if test "$hwloc_debug" = "" -a "$enable_debug" = "yes"; then : hwloc_debug=1 hwloc_debug_msg="enabled" fi if test "$hwloc_debug" = ""; then : hwloc_debug=0 hwloc_debug_msg="disabled" fi # Grr; we use #ifndef for HWLOC_DEBUG! :-( if test "$hwloc_debug" = "1"; then : $as_echo "#define HWLOC_DEBUG 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_debug_msg" >&5 $as_echo "$hwloc_debug_msg" >&6; } # We need to set a path for header, etc files depending on whether # we're standalone or embedded. this is taken care of by HWLOC_EMBEDDED. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc directory prefix" >&5 $as_echo_n "checking for hwloc directory prefix... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal/mca/hwloc/hwloc201/hwloc/" >&5 $as_echo "opal/mca/hwloc/hwloc201/hwloc/" >&6; } # Note that private/config.h *MUST* be listed first so that it # becomes the "main" config header file. Any AC-CONFIG-HEADERS # after that (hwloc/config.h) will only have selective #defines # replaced, not the entire file. ac_config_headers="$ac_config_headers opal/mca/hwloc/hwloc201/hwloc/include/private/autogen/config.h" ac_config_headers="$ac_config_headers opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen/config.h" # What prefix are we using? { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc symbol prefix" >&5 $as_echo_n "checking for hwloc symbol prefix... " >&6; } if test "$hwloc_symbol_prefix_value" = ""; then : if test "$with_hwloc_symbol_prefix" = ""; then : hwloc_symbol_prefix_value=hwloc_ else hwloc_symbol_prefix_value=$with_hwloc_symbol_prefix fi fi cat >>confdefs.h <<_ACEOF #define HWLOC_SYM_PREFIX $hwloc_symbol_prefix_value _ACEOF # Ensure to [] escape the whole next line so that we can get the # proper tr tokens hwloc_symbol_prefix_value_caps="`echo $hwloc_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`" cat >>confdefs.h <<_ACEOF #define HWLOC_SYM_PREFIX_CAPS $hwloc_symbol_prefix_value_caps _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_symbol_prefix_value" >&5 $as_echo "$hwloc_symbol_prefix_value" >&6; } # Give an easy #define to know if we need to transform all the # hwloc names if test "$hwloc_symbol_prefix_value" = "hwloc_"; then : $as_echo "#define HWLOC_SYM_TRANSFORM 0" >>confdefs.h else $as_echo "#define HWLOC_SYM_TRANSFORM 1" >>confdefs.h fi # hwloc 2.0+ requires a C99 compliant 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: hwloc requires a C99 compiler" >&5 $as_echo "$as_me: WARNING: hwloc requires a C99 compiler" >&2;} as_fn_error $? "Aborting." "$LINENO" 5 fi # GCC specifics. if test "x$GCC" = "xyes"; then HWLOC_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef" HWLOC_GCC_CFLAGS="$HWLOC_GCC_CFLAGS -Wpointer-arith -Wcast-align" fi # Enample system extensions for O_DIRECTORY, fdopen, fssl, etc. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Check to see if we're producing a 32 or 64 bit executable by # checking the sizeof void*. Note that AC CHECK_SIZEOF even works # when cross compiling (!), according to the AC 2.64 docs. This # check is needed because on some systems, you can instruct the # compiler to specifically build 32 or 64 bit executables -- even # though the $target may indicate something different. # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 $as_echo_n "checking size of void *... " >&6; } if ${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 # # List of components to be built, either statically or dynamically. # To be enlarged below. # hwloc_components="noos xml synthetic xml_nolibxml" # # Check OS support # { $as_echo "$as_me:${as_lineno-$LINENO}: checking which OS support to include" >&5 $as_echo_n "checking which OS support to include... " >&6; } case ${target} in powerpc64-bgq-linux*) # must be before Linux $as_echo "#define HWLOC_BGQ_SYS 1" >>confdefs.h hwloc_bgq=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: bgq" >&5 $as_echo "bgq" >&6; } hwloc_components="$hwloc_components bgq" ;; *-*-linux*) $as_echo "#define HWLOC_LINUX_SYS 1" >>confdefs.h hwloc_linux=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5 $as_echo "Linux" >&6; } hwloc_components="$hwloc_components linux" if test "x$enable_io" != xno; then hwloc_components="$hwloc_components linuxio" $as_echo "#define HWLOC_HAVE_LINUXIO 1" >>confdefs.h hwloc_linuxio_happy=yes if test x$enable_pci != xno; then $as_echo "#define HWLOC_HAVE_LINUXPCI 1" >>confdefs.h hwloc_linuxpci_happy=yes fi fi ;; *-*-irix*) $as_echo "#define HWLOC_IRIX_SYS 1" >>confdefs.h hwloc_irix=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5 $as_echo "IRIX" >&6; } # no irix component yet ;; *-*-darwin*) $as_echo "#define HWLOC_DARWIN_SYS 1" >>confdefs.h hwloc_darwin=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5 $as_echo "Darwin" >&6; } hwloc_components="$hwloc_components darwin" ;; *-*-solaris*) $as_echo "#define HWLOC_SOLARIS_SYS 1" >>confdefs.h hwloc_solaris=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5 $as_echo "Solaris" >&6; } hwloc_components="$hwloc_components solaris" ;; *-*-aix*) $as_echo "#define HWLOC_AIX_SYS 1" >>confdefs.h hwloc_aix=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX" >&5 $as_echo "AIX" >&6; } hwloc_components="$hwloc_components aix" ;; *-*-hpux*) $as_echo "#define HWLOC_HPUX_SYS 1" >>confdefs.h hwloc_hpux=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX" >&5 $as_echo "HP-UX" >&6; } hwloc_components="$hwloc_components hpux" ;; *-*-mingw*|*-*-cygwin*) $as_echo "#define HWLOC_WIN_SYS 1" >>confdefs.h hwloc_windows=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 $as_echo "Windows" >&6; } hwloc_components="$hwloc_components windows" ;; *-*-*freebsd*) $as_echo "#define HWLOC_FREEBSD_SYS 1" >>confdefs.h hwloc_freebsd=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5 $as_echo "FreeBSD" >&6; } hwloc_components="$hwloc_components freebsd" ;; *-*-*netbsd*) $as_echo "#define HWLOC_NETBSD_SYS 1" >>confdefs.h hwloc_netbsd=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD" >&5 $as_echo "NetBSD" >&6; } hwloc_components="$hwloc_components netbsd" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported! ($target)" >&5 $as_echo "Unsupported! ($target)" >&6; } $as_echo "#define HWLOC_UNSUPPORTED_SYS 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5 $as_echo "$as_me: WARNING: ***********************************************************" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc does not support this system." >&5 $as_echo "$as_me: WARNING: *** hwloc does not support this system." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&5 $as_echo "$as_me: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&5 $as_echo "$as_me: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** and binding will not be supported." >&5 $as_echo "$as_me: WARNING: *** and binding will not be supported." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have been warned." >&5 $as_echo "$as_me: WARNING: *** You have been warned." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Pausing to give you time to read this message..." >&5 $as_echo "$as_me: WARNING: *** Pausing to give you time to read this message..." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5 $as_echo "$as_me: WARNING: ***********************************************************" >&2;} sleep 10 ;; esac # # Check CPU support # { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CPU support to include" >&5 $as_echo_n "checking which CPU support to include... " >&6; } case ${target} in i*86-*-*|x86_64-*-*|amd64-*-*) case ${ac_cv_sizeof_void_p} in 4) $as_echo "#define HWLOC_X86_32_ARCH 1" >>confdefs.h hwloc_x86_32=yes HWLOC_MS_LIB_ARCH=X86 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_32" >&5 $as_echo "x86_32" >&6; } ;; 8) $as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h hwloc_x86_64=yes HWLOC_MS_LIB_ARCH=X64 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5 $as_echo "x86_64" >&6; } ;; *) $as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h hwloc_x86_64=yes HWLOC_MS_LIB_ARCH=X64 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown -- assuming x86_64" >&5 $as_echo "unknown -- assuming x86_64" >&6; } ;; esac ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 $as_echo "unknown" >&6; } ;; esac # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 $as_echo_n "checking size of unsigned long... " >&6; } if ${ac_cv_sizeof_unsigned_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_unsigned_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 $as_echo_n "checking size of unsigned int... " >&6; } if ${ac_cv_sizeof_unsigned_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_unsigned_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int _ACEOF # # Check for compiler attributes and visibility # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler vendor" >&5 $as_echo_n "checking for the C compiler vendor... " >&6; } if ${hwloc_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 hwloc_check_compiler_vendor_result="unknown" # GNU is probably the most common, so check that one as soon as # possible. Intel and Android pretend to be GNU, so need to # check Intel and Android before checking for GNU. # Android if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __ANDROID__ #error "symbol __ANDROID__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="android" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Intel if test "$hwloc_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 : hwloc_check_compiler_vendor_result="intel" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # GNU if test "$hwloc_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 : hwloc_check_compiler_vendor_result="gnu" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Borland Turbo C if test "$hwloc_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 : hwloc_check_compiler_vendor_result="borland" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Borland C++ if test "$hwloc_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 : hwloc_check_compiler_vendor_result="borland" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Comeau C++ if test "$hwloc_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 : hwloc_check_compiler_vendor_result="comeau" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Compaq C/C++ # OSF part actually not needed anymore but doesn't hurt if test "$hwloc_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 : hwloc_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 : hwloc_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 : hwloc_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 "$hwloc_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 : hwloc_check_compiler_vendor_result="cray" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Diab C/C++ if test "$hwloc_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 : hwloc_check_compiler_vendor_result="diab" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Digital Mars if test "$hwloc_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 : hwloc_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 "$hwloc_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 : hwloc_check_compiler_vendor_result="hp" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # IBM XL C/C++ if test "$hwloc_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 : hwloc_check_compiler_vendor_result="ibm" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(_AIX) && !defined(__GNUC__) ) #error "condition defined(_AIX) && !defined(__GNUC__) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="ibm" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # KAI C++ (rest in peace) if test "$hwloc_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 : hwloc_check_compiler_vendor_result="kai" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # LCC if test "$hwloc_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 : hwloc_check_compiler_vendor_result="lcc" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # MetaWare High C/C++ if test "$hwloc_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 : hwloc_check_compiler_vendor_result="metaware high" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Metrowerks Codewarrior if test "$hwloc_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 : hwloc_check_compiler_vendor_result="metrowerks" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # MIPSpro (SGI) if test "$hwloc_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 : hwloc_check_compiler_vendor_result="sgi" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # MPW C++ if test "$hwloc_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 : hwloc_check_compiler_vendor_result="mpw" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Microsoft if test "$hwloc_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 : hwloc_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 "$hwloc_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 : hwloc_check_compiler_vendor_result="norcroft" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Pelles C if test "$hwloc_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 : hwloc_check_compiler_vendor_result="pelles" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Portland Group if test "$hwloc_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 : hwloc_check_compiler_vendor_result="portland group" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # SAS/C if test "$hwloc_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 : hwloc_check_compiler_vendor_result="sas" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Sun Workshop C/C++ if test "$hwloc_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 : hwloc_check_compiler_vendor_result="sun" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # TenDRA C/C++ if test "$hwloc_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 : hwloc_check_compiler_vendor_result="tendra" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Tiny C if test "$hwloc_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 : hwloc_check_compiler_vendor_result="tiny" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # USL C if test "$hwloc_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 : hwloc_check_compiler_vendor_result="usl" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Watcom C++ if test "$hwloc_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 : hwloc_check_compiler_vendor_result="watcom" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi hwloc_cv_c_compiler_vendor="$hwloc_check_compiler_vendor_result" unset hwloc_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: $hwloc_cv_c_compiler_vendor" >&5 $as_echo "$hwloc_cv_c_compiler_vendor" >&6; } hwloc_c_vendor="$hwloc_cv_c_compiler_vendor" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 $as_echo_n "checking for __attribute__... " >&6; } if ${hwloc_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 : hwloc_cv___attribute__=1 else hwloc_cv___attribute__=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$hwloc_cv___attribute__" = "1" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check for the longest available __attribute__ (since gcc-2.3) */ struct foo { char a; int x[2] __attribute__ ((__packed__)); }; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__=1 else hwloc_cv___attribute__=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE $hwloc_cv___attribute__ _ACEOF # # Now that we know the compiler support __attribute__ let's check which kind of # attributed are supported. # if test "$hwloc_cv___attribute__" = "0" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_cv___attribute__aligned=0 hwloc_cv___attribute__always_inline=0 hwloc_cv___attribute__cold=0 hwloc_cv___attribute__const=0 hwloc_cv___attribute__deprecated=0 hwloc_cv___attribute__format=0 hwloc_cv___attribute__hot=0 hwloc_cv___attribute__malloc=0 hwloc_cv___attribute__may_alias=0 hwloc_cv___attribute__no_instrument_function=0 hwloc_cv___attribute__nonnull=0 hwloc_cv___attribute__noreturn=0 hwloc_cv___attribute__packed=0 hwloc_cv___attribute__pure=0 hwloc_cv___attribute__sentinel=0 hwloc_cv___attribute__unused=0 hwloc_cv___attribute__warn_unused_result=0 hwloc_cv___attribute__weak_alias=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5 $as_echo_n "checking for __attribute__(aligned)... " >&6; } if ${hwloc_cv___attribute__aligned+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct foo { char text[4]; } __attribute__ ((__aligned__(8))); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__aligned=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__aligned=0 break; fi done fi else hwloc_cv___attribute__aligned=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__aligned" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__aligned=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__aligned=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__aligned=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__aligned" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Ignored by PGI-6.2.5; -- recognized by output-parser # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5 $as_echo_n "checking for __attribute__(always_inline)... " >&6; } if ${hwloc_cv___attribute__always_inline+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (int arg) __attribute__ ((__always_inline__)); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__always_inline=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__always_inline=0 break; fi done fi else hwloc_cv___attribute__always_inline=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__always_inline=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__always_inline=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__always_inline=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__always_inline" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5 $as_echo_n "checking for __attribute__(cold)... " >&6; } if ${hwloc_cv___attribute__cold+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg1, int arg2) __attribute__ ((__cold__)); int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__cold=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__cold=0 break; fi done fi else hwloc_cv___attribute__cold=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__cold" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__cold=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__cold=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__cold=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__cold" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5 $as_echo_n "checking for __attribute__(const)... " >&6; } if ${hwloc_cv___attribute__const+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg1, int arg2) __attribute__ ((__const__)); int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__const=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__const=0 break; fi done fi else hwloc_cv___attribute__const=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__const" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__const=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__const=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__const=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__const" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5 $as_echo_n "checking for __attribute__(deprecated)... " >&6; } if ${hwloc_cv___attribute__deprecated+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__deprecated=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__deprecated=0 break; fi done fi else hwloc_cv___attribute__deprecated=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__deprecated=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__deprecated=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__deprecated=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__deprecated" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi HWLOC_ATTRIBUTE_CFLAGS= case "$hwloc_c_vendor" in gnu) HWLOC_ATTRIBUTE_CFLAGS="-Wall" ;; intel) # we want specifically the warning on format string conversion HWLOC_ATTRIBUTE_CFLAGS="-we181" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5 $as_echo_n "checking for __attribute__(format)... " >&6; } if ${hwloc_cv___attribute__format+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__format=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__format=0 break; fi done fi else hwloc_cv___attribute__format=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__format" = "1" -a " static int usage (int * argument); extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); static int usage (int * argument) { return this_printf (*argument, "%d", argument); /* This should produce a format warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); " != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ static int usage (int * argument); extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); static int usage (int * argument) { return this_printf (*argument, "%d", argument); /* This should produce a format warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__format=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__format=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__format=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__format" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5 $as_echo_n "checking for __attribute__(hot)... " >&6; } if ${hwloc_cv___attribute__hot+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg1, int arg2) __attribute__ ((__hot__)); int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__hot=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__hot=0 break; fi done fi else hwloc_cv___attribute__hot=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__hot" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__hot=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__hot=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__hot=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__hot" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5 $as_echo_n "checking for __attribute__(malloc)... " >&6; } if ${hwloc_cv___attribute__malloc+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_STDLIB_H # include #endif int * foo(int arg1) __attribute__ ((__malloc__)); int * foo(int arg1) { return (int*) malloc(arg1); } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__malloc=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__malloc=0 break; fi done fi else hwloc_cv___attribute__malloc=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__malloc" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__malloc=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__malloc=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__malloc=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__malloc" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers # Ignored by intel-9.1.045 -- turn off with -wd1292 # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check # The test case is chosen to match our only use in topology-xml-*.c, and reproduces an xlc-13.1.0 bug. # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5 $as_echo_n "checking for __attribute__(may_alias)... " >&6; } if ${hwloc_cv___attribute__may_alias+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct { int i; } __attribute__ ((__may_alias__)) * p_value; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__may_alias=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__may_alias=0 break; fi done fi else hwloc_cv___attribute__may_alias=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__may_alias=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__may_alias=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__may_alias=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__may_alias" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5 $as_echo_n "checking for __attribute__(no_instrument_function)... " >&6; } if ${hwloc_cv___attribute__no_instrument_function+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int * foo(int arg1) __attribute__ ((__no_instrument_function__)); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__no_instrument_function=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__no_instrument_function=0 break; fi done fi else hwloc_cv___attribute__no_instrument_function=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__no_instrument_function=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__no_instrument_function=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__no_instrument_function=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__no_instrument_function" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Attribute nonnull: # Ignored by intel-compiler 9.1.045 -- recognized by cross-check # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check # HWLOC_ATTRIBUTE_CFLAGS= case "$hwloc_c_vendor" in gnu) HWLOC_ATTRIBUTE_CFLAGS="-Wall" ;; intel) # we do not want to get ignored attributes warnings, but rather real warnings HWLOC_ATTRIBUTE_CFLAGS="-wd1292" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5 $as_echo_n "checking for __attribute__(nonnull)... " >&6; } if ${hwloc_cv___attribute__nonnull+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int square(int *arg) __attribute__ ((__nonnull__)); int square(int *arg) { return *arg; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__nonnull=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__nonnull=0 break; fi done fi else hwloc_cv___attribute__nonnull=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__nonnull" = "1" -a " static int usage(int * argument); int square(int * argument) __attribute__ ((__nonnull__)); int square(int * argument) { return (*argument) * (*argument); } static int usage(int * argument) { return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); " != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ static int usage(int * argument); int square(int * argument) __attribute__ ((__nonnull__)); int square(int * argument) { return (*argument) * (*argument); } static int usage(int * argument) { return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__nonnull=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__nonnull=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__nonnull=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__nonnull" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5 $as_echo_n "checking for __attribute__(noreturn)... " >&6; } if ${hwloc_cv___attribute__noreturn+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_UNISTD_H # include #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 hwloc_cv__attribute__var=0 # hwloc_cv___attribute__noreturn=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__noreturn=0 break; fi done fi else hwloc_cv___attribute__noreturn=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__noreturn=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__noreturn=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__noreturn=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__noreturn" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5 $as_echo_n "checking for __attribute__(packed)... " >&6; } if ${hwloc_cv___attribute__packed+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct foo { char a; int x[2] __attribute__ ((__packed__)); }; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__packed=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__packed=0 break; fi done fi else hwloc_cv___attribute__packed=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__packed" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__packed=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__packed=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__packed=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__packed" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5 $as_echo_n "checking for __attribute__(pure)... " >&6; } if ${hwloc_cv___attribute__pure+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int square(int arg) __attribute__ ((__pure__)); int square(int arg) { return arg * arg; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__pure=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__pure=0 break; fi done fi else hwloc_cv___attribute__pure=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__pure" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__pure=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__pure=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__pure=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__pure" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Attribute sentinel: # Ignored by the intel-9.1.045 -- recognized by cross-check # intel-10.0beta works fine # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) # HWLOC_ATTRIBUTE_CFLAGS= case "$hwloc_c_vendor" in gnu) HWLOC_ATTRIBUTE_CFLAGS="-Wall" ;; intel) # we do not want to get ignored attributes warnings HWLOC_ATTRIBUTE_CFLAGS="-wd1292" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5 $as_echo_n "checking for __attribute__(sentinel)... " >&6; } if ${hwloc_cv___attribute__sentinel+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__sentinel=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__sentinel=0 break; fi done fi else hwloc_cv___attribute__sentinel=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__sentinel" = "1" -a " static int usage(int * argument); int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); static int usage(int * argument) { void * last_arg_should_be_null = argument; return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); " != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ static int usage(int * argument); int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); static int usage(int * argument) { void * last_arg_should_be_null = argument; return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__sentinel=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__sentinel=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__sentinel=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__sentinel" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5 $as_echo_n "checking for __attribute__(unused)... " >&6; } if ${hwloc_cv___attribute__unused+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int square(int arg1 __attribute__ ((__unused__)), int arg2); int square(int arg1, int arg2) { return arg2; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__unused=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__unused=0 break; fi done fi else hwloc_cv___attribute__unused=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__unused" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__unused=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__unused=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__unused=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__unused" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Attribute warn_unused_result: # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) # HWLOC_ATTRIBUTE_CFLAGS= case "$hwloc_c_vendor" in gnu) HWLOC_ATTRIBUTE_CFLAGS="-Wall" ;; intel) # we do not want to get ignored attributes warnings HWLOC_ATTRIBUTE_CFLAGS="-wd1292" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5 $as_echo_n "checking for __attribute__(warn_unused_result)... " >&6; } if ${hwloc_cv___attribute__warn_unused_result+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg) __attribute__ ((__warn_unused_result__)); int foo(int arg) { return arg + 3; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__warn_unused_result=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__warn_unused_result=0 break; fi done fi else hwloc_cv___attribute__warn_unused_result=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__warn_unused_result" = "1" -a " static int usage(int * argument); int foo(int arg) __attribute__ ((__warn_unused_result__)); int foo(int arg) { return arg + 3; } static int usage(int * argument) { foo (*argument); /* Should produce an unused result warning */ return 0; } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); " != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ static int usage(int * argument); int foo(int arg) __attribute__ ((__warn_unused_result__)); int foo(int arg) { return arg + 3; } static int usage(int * argument) { foo (*argument); /* Should produce an unused result warning */ return 0; } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__warn_unused_result=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__warn_unused_result=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__warn_unused_result=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__warn_unused_result" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(weak_alias)" >&5 $as_echo_n "checking for __attribute__(weak_alias)... " >&6; } if ${hwloc_cv___attribute__weak_alias+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg); int foo(int arg) { return arg + 3; } int foo2(int arg) __attribute__ ((__weak__, __alias__("foo"))); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__weak_alias=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__weak_alias=0 break; fi done fi else hwloc_cv___attribute__weak_alias=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__weak_alias=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__weak_alias=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__weak_alias=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__weak_alias" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi # Now that all the values are set, define them cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_ALIGNED $hwloc_cv___attribute__aligned _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_ALWAYS_INLINE $hwloc_cv___attribute__always_inline _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_COLD $hwloc_cv___attribute__cold _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_CONST $hwloc_cv___attribute__const _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_DEPRECATED $hwloc_cv___attribute__deprecated _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_FORMAT $hwloc_cv___attribute__format _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_HOT $hwloc_cv___attribute__hot _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_MALLOC $hwloc_cv___attribute__malloc _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS $hwloc_cv___attribute__may_alias _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $hwloc_cv___attribute__no_instrument_function _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_NONNULL $hwloc_cv___attribute__nonnull _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_NORETURN $hwloc_cv___attribute__noreturn _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_PACKED $hwloc_cv___attribute__packed _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_PURE $hwloc_cv___attribute__pure _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_SENTINEL $hwloc_cv___attribute__sentinel _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_UNUSED $hwloc_cv___attribute__unused _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $hwloc_cv___attribute__warn_unused_result _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_WEAK_ALIAS $hwloc_cv___attribute__weak_alias _ACEOF # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) # Check if the compiler has support for visibility, like some # versions of gcc, icc, Sun Studio cc. # Check whether --enable-visibility was given. if test "${enable_visibility+set}" = set; then : enableval=$enable_visibility; fi case ${target} in *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*) enable_visibility=no ;; esac hwloc_visibility_define=0 hwloc_msg="whether to enable symbol visibility" if test "$enable_visibility" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5 $as_echo_n "checking $hwloc_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5 $as_echo "no (disabled)" >&6; } else CFLAGS_orig=$CFLAGS hwloc_add= case "$hwloc_c_vendor" in sun) # Check using Sun Studio -xldscope=hidden flag hwloc_add=-xldscope=hidden CFLAGS="$CFLAGS_orig $hwloc_add -errwarn=%all" ;; *) # Check using -fvisibility=hidden hwloc_add=-fvisibility=hidden CFLAGS="$CFLAGS_orig $hwloc_add -Werror" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $hwloc_add" >&5 $as_echo_n "checking if $CC supports $hwloc_add... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include __attribute__((visibility("default"))) int foo; int main () { fprintf(stderr, "Hello, world\n"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if test -s conftest.err; then : $GREP -iq visibility conftest.err # If we find "visibility" in the stderr, then # assume it doesn't work if test "$?" = "0"; then : hwloc_add= fi fi else hwloc_add= fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$hwloc_add" = ""; 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 CFLAGS=$CFLAGS_orig HWLOC_VISIBILITY_CFLAGS=$hwloc_add if test "$hwloc_add" != "" ; then hwloc_visibility_define=1 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5 $as_echo_n "checking $hwloc_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $hwloc_add)" >&5 $as_echo "yes (via $hwloc_add)" >&6; } elif test "$enable_visibility" = "yes"; then as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it. Aborting" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5 $as_echo_n "checking $hwloc_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5 $as_echo "no (unsupported)" >&6; } fi unset hwloc_add fi cat >>confdefs.h <<_ACEOF #define HWLOC_C_HAVE_VISIBILITY $hwloc_visibility_define _ACEOF HWLOC_CFLAGS="$HWLOC_FLAGS $HWLOC_VISIBILITY_CFLAGS" if test "$HWLOC_VISIBILITY_CFLAGS" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&5 $as_echo "$as_me: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&2;} fi # Make sure the compiler returns an error code when function arg # count is wrong, otherwise sched_setaffinity checks may fail. HWLOC_STRICT_ARGS_CFLAGS= hwloc_args_check=0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too many arguments" >&5 $as_echo_n "checking whether the C compiler rejects function calls with too many arguments... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int one_arg(int x); int foo(void) { return one_arg(1, 2); } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else hwloc_args_check=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too few arguments" >&5 $as_echo_n "checking whether the C compiler rejects function calls with too few arguments... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int two_arg(int x, int y); int foo(void) { return two_arg(3); } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else hwloc_args_check=`expr $hwloc_args_check + 1` { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$hwloc_args_check" != "2"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&5 $as_echo "$as_me: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&2;} case "$hwloc_c_vendor" in ibm) HWLOC_STRICT_ARGS_CFLAGS="-qhalt=e" ;; intel) HWLOC_STRICT_ARGS_CFLAGS="-we140" ;; *) HWLOC_STRICT_ARGS_CFLAGS=FAIL { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please report this warning and configure using a different C compiler if possible." >&5 $as_echo "$as_me: WARNING: Please report this warning and configure using a different C compiler if possible." >&2;} ;; esac if test "$HWLOC_STRICT_ARGS_CFLAGS" != "FAIL"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&5 $as_echo "$as_me: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Alternatively you may configure with a different compiler." >&5 $as_echo "$as_me: WARNING: Alternatively you may configure with a different compiler." >&2;} fi fi # # Now detect support # for ac_header in unistd.h do : ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" if test "x$ac_cv_header_unistd_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UNISTD_H 1 _ACEOF fi done for ac_header in dirent.h do : ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" if test "x$ac_cv_header_dirent_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DIRENT_H 1 _ACEOF fi done for ac_header in strings.h do : ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" if test "x$ac_cv_header_strings_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRINGS_H 1 _ACEOF fi done for ac_header in ctype.h do : ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" if test "x$ac_cv_header_ctype_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CTYPE_H 1 _ACEOF fi done for ac_func in strncasecmp do : ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" if test "x$ac_cv_func_strncasecmp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRNCASECMP 1 _ACEOF ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" if test "x$ac_cv_have_decl_strncasecmp" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function strncasecmp has a complete prototype" >&5 $as_echo_n "checking whether function strncasecmp has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { strncasecmp(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_STRNCASECMP 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi done for ac_func in strftime do : ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" if test "x$ac_cv_func_strftime" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRFTIME 1 _ACEOF fi done for ac_func in setlocale do : ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" if test "x$ac_cv_func_setlocale" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SETLOCALE 1 _ACEOF fi done ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" if test "x$ac_cv_header_stdint_h" = xyes; then : $as_echo "#define HWLOC_HAVE_STDINT_H 1" >>confdefs.h fi for ac_header in sys/mman.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" if test "x$ac_cv_header_sys_mman_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_MMAN_H 1 _ACEOF fi done old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0601" ac_fn_c_check_type "$LINENO" "KAFFINITY" "ac_cv_type_KAFFINITY" "#include " if test "x$ac_cv_type_KAFFINITY" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_KAFFINITY 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PROCESSOR_CACHE_TYPE" "ac_cv_type_PROCESSOR_CACHE_TYPE" "#include " if test "x$ac_cv_type_PROCESSOR_CACHE_TYPE" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PROCESSOR_CACHE_TYPE 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "CACHE_DESCRIPTOR" "ac_cv_type_CACHE_DESCRIPTOR" "#include " if test "x$ac_cv_type_CACHE_DESCRIPTOR" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CACHE_DESCRIPTOR 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "LOGICAL_PROCESSOR_RELATIONSHIP" "ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" "#include " if test "x$ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LOGICAL_PROCESSOR_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "RelationProcessorPackage" "ac_cv_type_RelationProcessorPackage" "#include " if test "x$ac_cv_type_RelationProcessorPackage" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RELATIONPROCESSORPACKAGE 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "#include " if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "GROUP_AFFINITY" "ac_cv_type_GROUP_AFFINITY" "#include " if test "x$ac_cv_type_GROUP_AFFINITY" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GROUP_AFFINITY 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PROCESSOR_RELATIONSHIP" "ac_cv_type_PROCESSOR_RELATIONSHIP" "#include " if test "x$ac_cv_type_PROCESSOR_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PROCESSOR_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "NUMA_NODE_RELATIONSHIP" "ac_cv_type_NUMA_NODE_RELATIONSHIP" "#include " if test "x$ac_cv_type_NUMA_NODE_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NUMA_NODE_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "CACHE_RELATIONSHIP" "ac_cv_type_CACHE_RELATIONSHIP" "#include " if test "x$ac_cv_type_CACHE_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CACHE_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PROCESSOR_GROUP_INFO" "ac_cv_type_PROCESSOR_GROUP_INFO" "#include " if test "x$ac_cv_type_PROCESSOR_GROUP_INFO" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PROCESSOR_GROUP_INFO 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "GROUP_RELATIONSHIP" "ac_cv_type_GROUP_RELATIONSHIP" "#include " if test "x$ac_cv_type_GROUP_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GROUP_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "#include " if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_BLOCK" "ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" "#include " if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PSAPI_WORKING_SET_EX_BLOCK 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_INFORMATION" "ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" "#include " if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PSAPI_WORKING_SET_EX_INFORMATION 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PROCESSOR_NUMBER" "ac_cv_type_PROCESSOR_NUMBER" "#include " if test "x$ac_cv_type_PROCESSOR_NUMBER" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PROCESSOR_NUMBER 1 _ACEOF fi CPPFLAGS="$old_CPPFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 $as_echo_n "checking for main in -lgdi32... " >&6; } if ${ac_cv_lib_gdi32_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgdi32 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_gdi32_main=yes else ac_cv_lib_gdi32_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 $as_echo "$ac_cv_lib_gdi32_main" >&6; } if test "x$ac_cv_lib_gdi32_main" = xyes; then : HWLOC_LIBS="-lgdi32 $HWLOC_LIBS" $as_echo "#define HAVE_LIBGDI32 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostQuitMessage in -luser32" >&5 $as_echo_n "checking for PostQuitMessage in -luser32... " >&6; } if ${ac_cv_lib_user32_PostQuitMessage+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luser32 $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 PostQuitMessage (); int main () { return PostQuitMessage (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_user32_PostQuitMessage=yes else ac_cv_lib_user32_PostQuitMessage=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_user32_PostQuitMessage" >&5 $as_echo "$ac_cv_lib_user32_PostQuitMessage" >&6; } if test "x$ac_cv_lib_user32_PostQuitMessage" = xyes; then : hwloc_have_user32="yes" fi ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" if test "x$ac_cv_header_windows_h" = xyes; then : $as_echo "#define HWLOC_HAVE_WINDOWS_H 1" >>confdefs.h fi for ac_header in sys/lgrp_user.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/lgrp_user.h" "ac_cv_header_sys_lgrp_user_h" "$ac_includes_default" if test "x$ac_cv_header_sys_lgrp_user_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_LGRP_USER_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgrp_init in -llgrp" >&5 $as_echo_n "checking for lgrp_init in -llgrp... " >&6; } if ${ac_cv_lib_lgrp_lgrp_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-llgrp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char lgrp_init (); int main () { return lgrp_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_lgrp_lgrp_init=yes else ac_cv_lib_lgrp_lgrp_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_lgrp_lgrp_init" >&5 $as_echo "$ac_cv_lib_lgrp_lgrp_init" >&6; } if test "x$ac_cv_lib_lgrp_lgrp_init" = xyes; then : HWLOC_LIBS="-llgrp $HWLOC_LIBS" $as_echo "#define HAVE_LIBLGRP 1" >>confdefs.h ac_fn_c_check_decl "$LINENO" "lgrp_latency_cookie" "ac_cv_have_decl_lgrp_latency_cookie" "#include " if test "x$ac_cv_have_decl_lgrp_latency_cookie" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_LGRP_LATENCY_COOKIE $ac_have_decl _ACEOF fi fi done for ac_header in kstat.h do : ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default" if test "x$ac_cv_header_kstat_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_KSTAT_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5 $as_echo_n "checking for main in -lkstat... " >&6; } if ${ac_cv_lib_kstat_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lkstat $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_kstat_main=yes else ac_cv_lib_kstat_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5 $as_echo "$ac_cv_lib_kstat_main" >&6; } if test "x$ac_cv_lib_kstat_main" = xyes; then : HWLOC_LIBS="-lkstat $HWLOC_LIBS" $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h fi fi done ac_fn_c_check_decl "$LINENO" "fabsf" "ac_cv_have_decl_fabsf" "#include " if test "x$ac_cv_have_decl_fabsf" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_FABSF $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5 $as_echo_n "checking for fabsf in -lm... " >&6; } if ${ac_cv_lib_m_fabsf+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $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 fabsf (); int main () { return fabsf (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_fabsf=yes else ac_cv_lib_m_fabsf=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_m_fabsf" >&5 $as_echo "$ac_cv_lib_m_fabsf" >&6; } if test "x$ac_cv_lib_m_fabsf" = xyes; then : HWLOC_LIBS="-lm $HWLOC_LIBS" fi fi for ac_header in picl.h do : ac_fn_c_check_header_mongrel "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default" if test "x$ac_cv_header_picl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PICL_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5 $as_echo_n "checking for picl_initialize in -lpicl... " >&6; } if ${ac_cv_lib_picl_picl_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpicl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char picl_initialize (); int main () { return picl_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_picl_picl_initialize=yes else ac_cv_lib_picl_picl_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5 $as_echo "$ac_cv_lib_picl_picl_initialize" >&6; } if test "x$ac_cv_lib_picl_picl_initialize" = xyes; then : HWLOC_LIBS="-lpicl $HWLOC_LIBS" fi fi done ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" "#include " if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_CONF" "ac_cv_have_decl__SC_NPROCESSORS_CONF" "#include " if test "x$ac_cv_have_decl__SC_NPROCESSORS_CONF" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_NPROCESSORS_CONF $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_NPROC_ONLN" "ac_cv_have_decl__SC_NPROC_ONLN" "#include " if test "x$ac_cv_have_decl__SC_NPROC_ONLN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_NPROC_ONLN $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_NPROC_CONF" "ac_cv_have_decl__SC_NPROC_CONF" "#include " if test "x$ac_cv_have_decl__SC_NPROC_CONF" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_NPROC_CONF $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "#include " if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_PAGESIZE $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_PAGE_SIZE" "ac_cv_have_decl__SC_PAGE_SIZE" "#include " if test "x$ac_cv_have_decl__SC_PAGE_SIZE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_PAGE_SIZE $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_LARGE_PAGESIZE" "ac_cv_have_decl__SC_LARGE_PAGESIZE" "#include " if test "x$ac_cv_have_decl__SC_LARGE_PAGESIZE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_LARGE_PAGESIZE $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi for ac_header in mach/mach_host.h do : ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default" if test "x$ac_cv_header_mach_mach_host_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MACH_MACH_HOST_H 1 _ACEOF fi done for ac_header in mach/mach_init.h do : ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_init.h" "ac_cv_header_mach_mach_init_h" "$ac_includes_default" if test "x$ac_cv_header_mach_mach_init_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MACH_MACH_INIT_H 1 _ACEOF for ac_func in host_info do : ac_fn_c_check_func "$LINENO" "host_info" "ac_cv_func_host_info" if test "x$ac_cv_func_host_info" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_HOST_INFO 1 _ACEOF fi done fi done for ac_header in sys/param.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" if test "x$ac_cv_header_sys_param_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_PARAM_H 1 _ACEOF fi done for ac_header in sys/sysctl.h do : ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " $ac_includes_default #if HAVE_SYS_PARAM_H #include #endif " if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_SYSCTL_H 1 _ACEOF ac_fn_c_check_decl "$LINENO" "CTL_HW" "ac_cv_have_decl_CTL_HW" " #if HAVE_SYS_PARAM_H #include #endif #include " if test "x$ac_cv_have_decl_CTL_HW" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_CTL_HW $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "HW_NCPU" "ac_cv_have_decl_HW_NCPU" " #if HAVE_SYS_PARAM_H #include #endif #include " if test "x$ac_cv_have_decl_HW_NCPU" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_HW_NCPU $ac_have_decl _ACEOF fi done ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default " if test "x$ac_cv_have_decl_strtoull" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRTOULL $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else for ac_func in strtoull do : ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" if test "x$ac_cv_func_strtoull" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRTOULL 1 _ACEOF fi done fi # Needed for Windows in private/misc.h 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_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default " if test "x$ac_cv_have_decl_snprintf" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_SNPRINTF $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default " if test "x$ac_cv_have_decl_strcasecmp" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRCASECMP $ac_have_decl _ACEOF # strdup and putenv are declared in windows headers but marked deprecated ac_fn_c_check_decl "$LINENO" "_strdup" "ac_cv_have_decl__strdup" "$ac_includes_default " if test "x$ac_cv_have_decl__strdup" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__STRDUP $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default " if test "x$ac_cv_have_decl__putenv" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__PUTENV $ac_have_decl _ACEOF # Could add mkdir and access for hwloc-gather-cpuid.c on Windows if test "x$hwloc_linux" != "xyes" ; then # Don't detect sysctl* on Linux because its sysctl() syscall is # long deprecated and unneeded. Some libc still expose the symbol # and raise a big warning at link time. # Do a full link test instead of just using AC_CHECK_FUNCS, which # just checks to see if the symbol exists or not. For example, # the prototype of sysctl uses u_int, which on some platforms # (such as FreeBSD) is only defined under __BSD_VISIBLE, __USE_BSD # or other similar definitions. So while the symbols "sysctl" and # "sysctlbyname" might still be available in libc (which autoconf # checks for), they might not be actually usable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 $as_echo_n "checking for sysctl... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { return sysctl(NULL,0,NULL,NULL,NULL,0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctlbyname" >&5 $as_echo_n "checking for sysctlbyname... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { return sysctlbyname(NULL,NULL,NULL,NULL,0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi ac_fn_c_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "$ac_includes_default " if test "x$ac_cv_have_decl_getprogname" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETPROGNAME $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "getexecname" "ac_cv_have_decl_getexecname" "$ac_includes_default " if test "x$ac_cv_have_decl_getexecname" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETEXECNAME $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "GetModuleFileName" "ac_cv_have_decl_GetModuleFileName" "#include " if test "x$ac_cv_have_decl_GetModuleFileName" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETMODULEFILENAME $ac_have_decl _ACEOF # program_invocation_name and __progname may be available but not exported in headers { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5 $as_echo_n "checking for program_invocation_name... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include #include extern char *program_invocation_name; int main () { return printf("%s\n", program_invocation_name); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 $as_echo_n "checking for __progname... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include extern char *__progname; int main () { return printf("%s\n", __progname); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext case ${target} in *-*-mingw*|*-*-cygwin*) hwloc_pid_t=HANDLE hwloc_thread_t=HANDLE ;; *) hwloc_pid_t=pid_t ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "#include " if test "x$ac_cv_type_pthread_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PTHREAD_T 1 _ACEOF hwloc_thread_t=pthread_t else : fi ;; esac cat >>confdefs.h <<_ACEOF #define hwloc_pid_t $hwloc_pid_t _ACEOF if test "x$hwloc_thread_t" != "x" ; then cat >>confdefs.h <<_ACEOF #define hwloc_thread_t $hwloc_thread_t _ACEOF fi ac_fn_c_check_decl "$LINENO" "sched_getcpu" "ac_cv_have_decl_sched_getcpu" " #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include " if test "x$ac_cv_have_decl_sched_getcpu" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_SCHED_GETCPU $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "sched_setaffinity" "ac_cv_have_decl_sched_setaffinity" " #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include " if test "x$ac_cv_have_decl_sched_setaffinity" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function sched_setaffinity has a complete prototype" >&5 $as_echo_n "checking whether function sched_setaffinity has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include int main () { sched_setaffinity(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_SCHED_SETAFFINITY 1" >>confdefs.h if test "$HWLOC_STRICT_ARGS_CFLAGS" = "FAIL"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for sched_setaffinity() requires a C compiler which" >&5 $as_echo "$as_me: WARNING: Support for sched_setaffinity() requires a C compiler which" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: considers incorrect argument counts to be a fatal error." >&5 $as_echo "$as_me: WARNING: considers incorrect argument counts to be a fatal error." >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old prototype of sched_setaffinity" >&5 $as_echo_n "checking for old prototype of sched_setaffinity... " >&6; } hwloc_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $HWLOC_STRICT_ARGS_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include static unsigned long mask; int main () { sched_setaffinity(0, (void*) &mask); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : $as_echo "#define HWLOC_HAVE_OLD_SCHED_SETAFFINITY 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$hwloc_save_CFLAGS fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET" >&5 $as_echo_n "checking for working CPU_SET... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include cpu_set_t set; int main () { CPU_ZERO(&set); CPU_SET(0, &set); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HWLOC_HAVE_CPU_SET 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET_S" >&5 $as_echo_n "checking for working CPU_SET_S... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include cpu_set_t *set; int main () { set = CPU_ALLOC(1024); CPU_ZERO_S(CPU_ALLOC_SIZE(1024), set); CPU_SET_S(CPU_ALLOC_SIZE(1024), 0, set); CPU_FREE(set); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HWLOC_HAVE_CPU_SET_S 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working syscall with 6 parameters" >&5 $as_echo_n "checking for working syscall with 6 parameters... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { syscall(0, 1, 2, 3, 4, 5, 6); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HWLOC_HAVE_SYSCALL 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext for ac_prog in lib do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_HWLOC_MS_LIB+:} false; then : $as_echo_n "(cached) " >&6 else case $HWLOC_MS_LIB in [\\/]* | ?:[\\/]*) ac_cv_path_HWLOC_MS_LIB="$HWLOC_MS_LIB" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_HWLOC_MS_LIB="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi HWLOC_MS_LIB=$ac_cv_path_HWLOC_MS_LIB if test -n "$HWLOC_MS_LIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_MS_LIB" >&5 $as_echo "$HWLOC_MS_LIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$HWLOC_MS_LIB" && break done # Extract the first word of "bash", so it can be a program name with args. set dummy bash; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_BASH+:} false; then : $as_echo_n "(cached) " >&6 else case $BASH in [\\/]* | ?:[\\/]*) ac_cv_path_BASH="$BASH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi BASH=$ac_cv_path_BASH if test -n "$BASH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 $as_echo "$BASH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi for ac_func in ffs do : ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs" if test "x$ac_cv_func_ffs" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FFS 1 _ACEOF ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" if test "x$ac_cv_have_decl_ffs" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffs has a complete prototype" >&5 $as_echo_n "checking whether function ffs has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { ffs(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_FFS 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_FFS 1" >>confdefs.h if ( $CC --version | grep gccfss ) >/dev/null 2>&1 ; then $as_echo "#define HWLOC_HAVE_BROKEN_FFS 1" >>confdefs.h fi fi done for ac_func in ffsl do : ac_fn_c_check_func "$LINENO" "ffsl" "ac_cv_func_ffsl" if test "x$ac_cv_func_ffsl" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FFSL 1 _ACEOF ac_fn_c_check_decl "$LINENO" "ffsl" "ac_cv_have_decl_ffsl" "$ac_includes_default" if test "x$ac_cv_have_decl_ffsl" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffsl has a complete prototype" >&5 $as_echo_n "checking whether function ffsl has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { ffsl(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_FFSL 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_FFSL 1" >>confdefs.h fi done for ac_func in fls do : ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls" if test "x$ac_cv_func_fls" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FLS 1 _ACEOF ac_fn_c_check_decl "$LINENO" "fls" "ac_cv_have_decl_fls" "$ac_includes_default" if test "x$ac_cv_have_decl_fls" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function fls has a complete prototype" >&5 $as_echo_n "checking whether function fls has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { fls(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_FLS 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_FLS 1" >>confdefs.h fi done for ac_func in flsl do : ac_fn_c_check_func "$LINENO" "flsl" "ac_cv_func_flsl" if test "x$ac_cv_func_flsl" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FLSL 1 _ACEOF ac_fn_c_check_decl "$LINENO" "flsl" "ac_cv_have_decl_flsl" "$ac_includes_default" if test "x$ac_cv_have_decl_flsl" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function flsl has a complete prototype" >&5 $as_echo_n "checking whether function flsl has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { flsl(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_FLSL 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_FLSL 1" >>confdefs.h fi done for ac_func in clz do : ac_fn_c_check_func "$LINENO" "clz" "ac_cv_func_clz" if test "x$ac_cv_func_clz" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CLZ 1 _ACEOF ac_fn_c_check_decl "$LINENO" "clz" "ac_cv_have_decl_clz" "$ac_includes_default" if test "x$ac_cv_have_decl_clz" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clz has a complete prototype" >&5 $as_echo_n "checking whether function clz has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { clz(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_CLZ 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_CLZ 1" >>confdefs.h fi done for ac_func in clzl do : ac_fn_c_check_func "$LINENO" "clzl" "ac_cv_func_clzl" if test "x$ac_cv_func_clzl" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CLZL 1 _ACEOF ac_fn_c_check_decl "$LINENO" "clzl" "ac_cv_have_decl_clzl" "$ac_includes_default" if test "x$ac_cv_have_decl_clzl" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clzl has a complete prototype" >&5 $as_echo_n "checking whether function clzl has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { clzl(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_CLZL 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_CLZL 1" >>confdefs.h fi done if test "$hwloc_c_vendor" != "android"; then : for ac_func in openat do : ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" if test "x$ac_cv_func_openat" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENAT 1 _ACEOF hwloc_have_openat=yes fi done fi for ac_header in malloc.h do : ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" if test "x$ac_cv_header_malloc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MALLOC_H 1 _ACEOF fi done for ac_func in getpagesize memalign posix_memalign do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/utsname.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" if test "x$ac_cv_header_sys_utsname_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_UTSNAME_H 1 _ACEOF fi done for ac_func in uname do : ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" if test "x$ac_cv_func_uname" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UNAME 1 _ACEOF fi done if test "$hwloc_mode" != "embedded"; then : for ac_header in valgrind/valgrind.h do : ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VALGRIND_VALGRIND_H 1 _ACEOF fi done ac_fn_c_check_decl "$LINENO" "RUNNING_ON_VALGRIND" "ac_cv_have_decl_RUNNING_ON_VALGRIND" "#include " if test "x$ac_cv_have_decl_RUNNING_ON_VALGRIND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_RUNNING_ON_VALGRIND $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi else $as_echo "#define HAVE_DECL_RUNNING_ON_VALGRIND 0" >>confdefs.h fi for ac_header in pthread_np.h do : ac_fn_c_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_np_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PTHREAD_NP_H 1 _ACEOF fi done ac_fn_c_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" " #include #ifdef HAVE_PTHREAD_NP_H # include #endif " if test "x$ac_cv_have_decl_pthread_setaffinity_np" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "pthread_getaffinity_np" "ac_cv_have_decl_pthread_getaffinity_np" " #include #ifdef HAVE_PTHREAD_NP_H # include #endif " if test "x$ac_cv_have_decl_pthread_getaffinity_np" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PTHREAD_GETAFFINITY_NP $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity" if test "x$ac_cv_func_sched_setaffinity" = xyes; then : hwloc_have_sched_setaffinity=yes fi for ac_header in sys/cpuset.h do : ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "#include " if test "x$ac_cv_header_sys_cpuset_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_CPUSET_H 1 _ACEOF fi done for ac_func in cpuset_setaffinity do : ac_fn_c_check_func "$LINENO" "cpuset_setaffinity" "ac_cv_func_cpuset_setaffinity" if test "x$ac_cv_func_cpuset_setaffinity" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CPUSET_SETAFFINITY 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getthrds_np" >&5 $as_echo_n "checking for library containing pthread_getthrds_np... " >&6; } if ${ac_cv_search_pthread_getthrds_np+:} 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 pthread_getthrds_np (); int main () { return pthread_getthrds_np (); ; return 0; } _ACEOF for ac_lib in '' pthread; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_pthread_getthrds_np=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_pthread_getthrds_np+:} false; then : break fi done if ${ac_cv_search_pthread_getthrds_np+:} false; then : else ac_cv_search_pthread_getthrds_np=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getthrds_np" >&5 $as_echo "$ac_cv_search_pthread_getthrds_np" >&6; } ac_res=$ac_cv_search_pthread_getthrds_np if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HWLOC_HAVE_PTHREAD_GETTHRDS_NP 1" >>confdefs.h fi for ac_func in cpuset_setid do : ac_fn_c_check_func "$LINENO" "cpuset_setid" "ac_cv_func_cpuset_setid" if test "x$ac_cv_func_cpuset_setid" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CPUSET_SETID 1 _ACEOF fi done # Linux libudev support if test "x$enable_libudev" != xno; then for ac_header in libudev.h do : ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default" if test "x$ac_cv_header_libudev_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBUDEV_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_device_new_from_subsystem_sysname in -ludev" >&5 $as_echo_n "checking for udev_device_new_from_subsystem_sysname in -ludev... " >&6; } if ${ac_cv_lib_udev_udev_device_new_from_subsystem_sysname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ludev $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 udev_device_new_from_subsystem_sysname (); int main () { return udev_device_new_from_subsystem_sysname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=yes else ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=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_udev_udev_device_new_from_subsystem_sysname" >&5 $as_echo "$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&6; } if test "x$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" = xyes; then : HWLOC_LIBS="$HWLOC_LIBS -ludev" $as_echo "#define HWLOC_HAVE_LIBUDEV 1" >>confdefs.h fi fi done fi # PCI support via libpciaccess. NOTE: we do not support # libpci/pciutils because that library is GPL and is incompatible # with our BSD license. hwloc_pciaccess_happy=no if test "x$enable_io" != xno && test "x$enable_pci" != xno; then hwloc_pciaccess_happy=yes HWLOC_pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 $as_echo_n "checking for PCIACCESS... " >&6; } if test -n "$PKG_CONFIG"; then if test -n "$HWLOC_PCIACCESS_CFLAGS"; then HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS="$HWLOC_PCIACCESS_CFLAGS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5 ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess" 2>/dev/null` else HWLOC_pkg_failed=yes fi fi else HWLOC_pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$HWLOC_PCIACCESS_LIBS"; then HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS="$HWLOC_PCIACCESS_LIBS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5 ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess" 2>/dev/null` else HWLOC_pkg_failed=yes fi fi else HWLOC_pkg_failed=untried fi # Check for failure of pkg-config if test $HWLOC_pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then HWLOC_pkg_short_errors_supported=yes else HWLOC_pkg_short_errors_supported=no fi if test $HWLOC_pkg_short_errors_supported = yes; then HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess" 2>&1` else HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$HWLOC_PCIACCESS_PKG_ERRORS" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_pciaccess_happy=no elif test $HWLOC_pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5 $as_echo "cannot check without pkg-config" >&6; } hwloc_pciaccess_happy=no else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we got good results from pkg-config, check that they # actually work (i.e., that we can link against the resulting # $LIBS). The canonical example why we do this is if # pkg-config returns 64 bit libraries but ./configure was run # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid # results, but we'll fail if we try to link. So detect that # failure now. # There are also cases on Mac where pkg-config returns paths # that do not actually exists until some magic is applied. # http://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php # So check whether we find the header as well. hwloc_cflags_save=$CFLAGS hwloc_cppflags_save=$CPPFLAGS hwloc_libs_save=$LIBS CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS" CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS" LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS" ac_fn_c_check_header_mongrel "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default" if test "x$ac_cv_header_pciaccess_h" = xyes; then : ac_fn_c_check_func "$LINENO" "pci_slot_match_iterator_create" "ac_cv_func_pci_slot_match_iterator_create" if test "x$ac_cv_func_pci_slot_match_iterator_create" = xyes; then : hwloc_result=yes else hwloc_result=no fi else hwloc_result=no fi CFLAGS=$hwloc_cflags_save CPPFLAGS=$hwloc_cppflags_save LIBS=$hwloc_libs_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final PCIACCESS support" >&5 $as_echo_n "checking for final PCIACCESS support... " >&6; } if test "$hwloc_result" = "yes"; then : HWLOC_PCIACCESS_CFLAGS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS HWLOC_PCIACCESS_LIBS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_pciaccess_happy=no fi fi # Only add the REQUIRES if we got pciaccess through pkg-config. # Otherwise we don't know if pciaccess.pc is installed if test "$hwloc_pciaccess_happy" = "yes"; then : HWLOC_PCIACCESS_REQUIRES=pciaccess fi # Just for giggles, if we didn't find a pciaccess pkg-config, # just try looking for its header file and library. if test "$hwloc_pciaccess_happy" != "yes"; then : ac_fn_c_check_header_mongrel "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default" if test "x$ac_cv_header_pciaccess_h" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_slot_match_iterator_create in -lpciaccess" >&5 $as_echo_n "checking for pci_slot_match_iterator_create in -lpciaccess... " >&6; } if ${ac_cv_lib_pciaccess_pci_slot_match_iterator_create+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpciaccess $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 pci_slot_match_iterator_create (); int main () { return pci_slot_match_iterator_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pciaccess_pci_slot_match_iterator_create=yes else ac_cv_lib_pciaccess_pci_slot_match_iterator_create=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_pciaccess_pci_slot_match_iterator_create" >&5 $as_echo "$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&6; } if test "x$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" = xyes; then : hwloc_pciaccess_happy=yes HWLOC_PCIACCESS_LIBS="-lpciaccess" fi fi fi if test "$hwloc_pciaccess_happy" = "yes"; then : hwloc_components="$hwloc_components pci" hwloc_pci_component_maybeplugin=1 fi fi # If we asked for pci support but couldn't deliver, fail if test "$enable_pci" = "yes" -a "$hwloc_pciaccess_happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-pci switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-pci switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins # OpenCL support hwloc_opencl_happy=no if test "x$enable_io" != xno && test "x$enable_opencl" != "xno"; then hwloc_opencl_happy=yes case ${target} in *-*-darwin*) # On Darwin, only use the OpenCL framework for ac_header in OpenCL/cl_ext.h do : ac_fn_c_check_header_mongrel "$LINENO" "OpenCL/cl_ext.h" "ac_cv_header_OpenCL_cl_ext_h" "$ac_includes_default" if test "x$ac_cv_header_OpenCL_cl_ext_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENCL_CL_EXT_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the OpenCL framework" >&5 $as_echo_n "checking for the OpenCL framework... " >&6; } tmp_save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -framework OpenCL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return clGetDeviceIDs(0, 0, 0, NULL, NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } HWLOC_OPENCL_LDFLAGS="-framework OpenCL" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_opencl_happy=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$tmp_save_LDFLAGS" else hwloc_opencl_happy=no fi done ;; *) # On Others, look for OpenCL at normal locations for ac_header in CL/cl_ext.h do : ac_fn_c_check_header_mongrel "$LINENO" "CL/cl_ext.h" "ac_cv_header_CL_cl_ext_h" "$ac_includes_default" if test "x$ac_cv_header_CL_cl_ext_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CL_CL_EXT_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetDeviceIDs in -lOpenCL" >&5 $as_echo_n "checking for clGetDeviceIDs in -lOpenCL... " >&6; } if ${ac_cv_lib_OpenCL_clGetDeviceIDs+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lOpenCL $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 clGetDeviceIDs (); int main () { return clGetDeviceIDs (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_OpenCL_clGetDeviceIDs=yes else ac_cv_lib_OpenCL_clGetDeviceIDs=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_OpenCL_clGetDeviceIDs" >&5 $as_echo "$ac_cv_lib_OpenCL_clGetDeviceIDs" >&6; } if test "x$ac_cv_lib_OpenCL_clGetDeviceIDs" = xyes; then : HWLOC_OPENCL_LIBS="-lOpenCL" else hwloc_opencl_happy=no fi else hwloc_opencl_happy=no fi done ;; esac fi # If we asked for opencl support but couldn't deliver, fail if test "$enable_opencl" = "yes" -a "$hwloc_opencl_happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-opencl switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-opencl switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "x$hwloc_opencl_happy" = "xyes"; then $as_echo "#define HWLOC_HAVE_OPENCL 1" >>confdefs.h HWLOC_HAVE_OPENCL=1 hwloc_components="$hwloc_components opencl" hwloc_opencl_component_maybeplugin=1 else HWLOC_HAVE_OPENCL=0 fi # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins # CUDA support hwloc_have_cuda=no hwloc_have_cudart=no if test "x$enable_io" != xno && test "x$enable_cuda" != "xno"; then for ac_header in cuda.h do : ac_fn_c_check_header_mongrel "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default" if test "x$ac_cv_header_cuda_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CUDA_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CUDA_VERSION >= 3020" >&5 $as_echo_n "checking if CUDA_VERSION >= 3020... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef CUDA_VERSION #error CUDA_VERSION undefined #elif CUDA_VERSION < 3020 #error CUDA_VERSION too old #endif int main () { int i = 3; ; 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; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuInit in -lcuda" >&5 $as_echo_n "checking for cuInit in -lcuda... " >&6; } if ${ac_cv_lib_cuda_cuInit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcuda $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 cuInit (); int main () { return cuInit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cuda_cuInit=yes else ac_cv_lib_cuda_cuInit=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_cuda_cuInit" >&5 $as_echo "$ac_cv_lib_cuda_cuInit" >&6; } if test "x$ac_cv_lib_cuda_cuInit" = xyes; then : $as_echo "#define HAVE_CUDA 1" >>confdefs.h hwloc_have_cuda=yes fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi done for ac_header in cuda_runtime_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default" if test "x$ac_cv_header_cuda_runtime_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CUDA_RUNTIME_API_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CUDART_VERSION >= 3020" >&5 $as_echo_n "checking if CUDART_VERSION >= 3020... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef CUDART_VERSION #error CUDART_VERSION undefined #elif CUDART_VERSION < 3020 #error CUDART_VERSION too old #endif int main () { int i = 3; ; 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; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaGetDeviceProperties in -lcudart" >&5 $as_echo_n "checking for cudaGetDeviceProperties in -lcudart... " >&6; } if ${ac_cv_lib_cudart_cudaGetDeviceProperties+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcudart $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 cudaGetDeviceProperties (); int main () { return cudaGetDeviceProperties (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cudart_cudaGetDeviceProperties=yes else ac_cv_lib_cudart_cudaGetDeviceProperties=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_cudart_cudaGetDeviceProperties" >&5 $as_echo "$ac_cv_lib_cudart_cudaGetDeviceProperties" >&6; } if test "x$ac_cv_lib_cudart_cudaGetDeviceProperties" = xyes; then : HWLOC_CUDA_LIBS="-lcudart" hwloc_have_cudart=yes $as_echo "#define HWLOC_HAVE_CUDART 1" >>confdefs.h fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi done if test "$enable_cuda" = "yes" -a "$hwloc_have_cudart" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-cuda switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-cuda switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "x$hwloc_have_cudart" = "xyes"; then hwloc_components="$hwloc_components cuda" hwloc_cuda_component_maybeplugin=1 fi fi # don't add LIBS/CFLAGS yet, depends on plugins # NVML support hwloc_nvml_happy=no if test "x$enable_io" != xno && test "x$enable_nvml" != "xno"; then hwloc_nvml_happy=yes for ac_header in nvml.h do : ac_fn_c_check_header_mongrel "$LINENO" "nvml.h" "ac_cv_header_nvml_h" "$ac_includes_default" if test "x$ac_cv_header_nvml_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NVML_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvmlInit in -lnvidia-ml" >&5 $as_echo_n "checking for nvmlInit in -lnvidia-ml... " >&6; } if ${ac_cv_lib_nvidia_ml_nvmlInit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnvidia-ml $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 nvmlInit (); int main () { return nvmlInit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nvidia_ml_nvmlInit=yes else ac_cv_lib_nvidia_ml_nvmlInit=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_nvidia_ml_nvmlInit" >&5 $as_echo "$ac_cv_lib_nvidia_ml_nvmlInit" >&6; } if test "x$ac_cv_lib_nvidia_ml_nvmlInit" = xyes; then : HWLOC_NVML_LIBS="-lnvidia-ml" else hwloc_nvml_happy=no fi else hwloc_nvml_happy=no fi done fi if test "x$hwloc_nvml_happy" = "xyes"; then tmp_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $HWLOC_NVML_CFLAGS" tmp_save_LIBS="$LIBS" LIBS="$LIBS $HWLOC_NVML_LIBS" ac_fn_c_check_decl "$LINENO" "nvmlDeviceGetMaxPcieLinkGeneration" "ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" "#include " if test "x$ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_NVMLDEVICEGETMAXPCIELINKGENERATION $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi CFLAGS="$tmp_save_CFLAGS" LIBS="$tmp_save_LIBS" fi # If we asked for nvml support but couldn't deliver, fail if test "$enable_nvml" = "yes" -a "$hwloc_nvml_happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-nvml switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-nvml switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "x$hwloc_nvml_happy" = "xyes"; then $as_echo "#define HWLOC_HAVE_NVML 1" >>confdefs.h HWLOC_HAVE_NVML=1 hwloc_components="$hwloc_components nvml" hwloc_nvml_component_maybeplugin=1 else HWLOC_HAVE_NVML=0 fi # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins # X11 support if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 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 XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $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 dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_dnet_ntoa=yes else ac_cv_lib_dnet_dnet_ntoa=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_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $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 dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_stub_dnet_ntoa=yes else ac_cv_lib_dnet_stub_dnet_ntoa=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_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes; then : fi if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if ${ac_cv_lib_bsd_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsd_gethostbyname=yes else ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" if test "x$ac_cv_func_connect" = xyes; then : fi if test $ac_cv_func_connect = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_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 connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = xyes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" if test "x$ac_cv_func_remove" = xyes; then : fi if test $ac_cv_func_remove = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if ${ac_cv_lib_posix_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $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 remove (); int main () { return remove (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_posix_remove=yes else ac_cv_lib_posix_remove=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_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" if test "x$ac_cv_func_shmat" = xyes; then : fi if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if ${ac_cv_lib_ipc_shmat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $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 shmat (); int main () { return shmat (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ipc_shmat=yes else ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_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 IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ICE_IceConnectionNumber=yes else ac_cv_lib_ICE_IceConnectionNumber=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_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi CPPFLAGS_save=$CPPFLAGS LIBS_save=$LIBS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS" for ac_header in X11/Xlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default" if test "x$ac_cv_header_X11_Xlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_XLIB_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } if ${ac_cv_lib_X11_XOpenDisplay+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $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 XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_X11_XOpenDisplay=yes else ac_cv_lib_X11_XOpenDisplay=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_X11_XOpenDisplay" >&5 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then : # the GL backend just needs XOpenDisplay hwloc_enable_X11=yes # lstopo needs more for ac_header in X11/Xutil.h do : ac_fn_c_check_header_compile "$LINENO" "X11/Xutil.h" "ac_cv_header_X11_Xutil_h" "#include " if test "x$ac_cv_header_X11_Xutil_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_XUTIL_H 1 _ACEOF for ac_header in X11/keysym.h do : ac_fn_c_check_header_mongrel "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default" if test "x$ac_cv_header_X11_keysym_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_KEYSYM_H 1 _ACEOF $as_echo "#define HWLOC_HAVE_X11_KEYSYM 1" >>confdefs.h HWLOC_X11_CPPFLAGS="$X_CFLAGS" HWLOC_X11_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" fi done fi done fi fi done CPPFLAGS=$CPPFLAGS_save LIBS=$LIBS_save # GL Support hwloc_gl_happy=no if test "x$enable_io" != xno && test "x$enable_gl" != "xno"; then hwloc_gl_happy=yes if test "$hwloc_enable_X11" != "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 not found; GL disabled" >&5 $as_echo "$as_me: WARNING: X11 not found; GL disabled" >&2;} hwloc_gl_happy=no fi for ac_header in NVCtrl/NVCtrl.h do : ac_fn_c_check_header_mongrel "$LINENO" "NVCtrl/NVCtrl.h" "ac_cv_header_NVCtrl_NVCtrl_h" "$ac_includes_default" if test "x$ac_cv_header_NVCtrl_NVCtrl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NVCTRL_NVCTRL_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl" >&5 $as_echo_n "checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl... " >&6; } if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXNVCtrl -lXext $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 XNVCTRLQueryTargetAttribute (); int main () { return XNVCTRLQueryTargetAttribute (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=yes else ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=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_XNVCtrl_XNVCTRLQueryTargetAttribute" >&5 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&6; } if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" = xyes; then : : else hwloc_gl_happy=no fi else hwloc_gl_happy=no fi done if test "x$hwloc_gl_happy" = "xyes"; then $as_echo "#define HWLOC_HAVE_GL 1" >>confdefs.h HWLOC_GL_LIBS="-lXNVCtrl -lXext -lX11" # FIXME we actually don't know if xext.pc and x11.pc are installed # since we didn't look for Xext and X11 using pkg-config HWLOC_GL_REQUIRES="xext x11" hwloc_have_gl=yes hwloc_components="$hwloc_components gl" hwloc_gl_component_maybeplugin=1 else if test "$enable_gl" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-gl switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-gl switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi # don't add LIBS/CFLAGS yet, depends on plugins # libxml2 support hwloc_libxml2_happy= if test "x$enable_libxml2" != "xno"; then HWLOC_pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5 $as_echo_n "checking for LIBXML2... " >&6; } if test -n "$PKG_CONFIG"; then if test -n "$HWLOC_LIBXML2_CFLAGS"; then HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS="$HWLOC_LIBXML2_CFLAGS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5 ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` else HWLOC_pkg_failed=yes fi fi else HWLOC_pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$HWLOC_LIBXML2_LIBS"; then HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS="$HWLOC_LIBXML2_LIBS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5 ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` else HWLOC_pkg_failed=yes fi fi else HWLOC_pkg_failed=untried fi # Check for failure of pkg-config if test $HWLOC_pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then HWLOC_pkg_short_errors_supported=yes else HWLOC_pkg_short_errors_supported=no fi if test $HWLOC_pkg_short_errors_supported = yes; then HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0" 2>&1` else HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$HWLOC_LIBXML2_PKG_ERRORS" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_libxml2_happy=no elif test $HWLOC_pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5 $as_echo "cannot check without pkg-config" >&6; } hwloc_libxml2_happy=no else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we got good results from pkg-config, check that they # actually work (i.e., that we can link against the resulting # $LIBS). The canonical example why we do this is if # pkg-config returns 64 bit libraries but ./configure was run # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid # results, but we'll fail if we try to link. So detect that # failure now. # There are also cases on Mac where pkg-config returns paths # that do not actually exists until some magic is applied. # http://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php # So check whether we find the header as well. hwloc_cflags_save=$CFLAGS hwloc_cppflags_save=$CPPFLAGS hwloc_libs_save=$LIBS CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS" CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS" LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS" ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" if test "x$ac_cv_header_libxml_parser_h" = xyes; then : ac_fn_c_check_func "$LINENO" "xmlNewDoc" "ac_cv_func_xmlNewDoc" if test "x$ac_cv_func_xmlNewDoc" = xyes; then : hwloc_result=yes else hwloc_result=no fi else hwloc_result=no fi CFLAGS=$hwloc_cflags_save CPPFLAGS=$hwloc_cppflags_save LIBS=$hwloc_libs_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final LIBXML2 support" >&5 $as_echo_n "checking for final LIBXML2 support... " >&6; } if test "$hwloc_result" = "yes"; then : HWLOC_LIBXML2_CFLAGS=$HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS HWLOC_LIBXML2_LIBS=$HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } hwloc_libxml2_happy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_libxml2_happy=no fi fi fi if test "x$hwloc_libxml2_happy" = "xyes"; then HWLOC_LIBXML2_REQUIRES="libxml-2.0" $as_echo "#define HWLOC_HAVE_LIBXML2 1" >>confdefs.h HWLOC_HAVE_LIBXML2=1 hwloc_components="$hwloc_components xml_libxml" hwloc_xml_libxml_component_maybeplugin=1 else HWLOC_HAVE_LIBXML2=0 if test "$enable_libxml2" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&5 $as_echo "$as_me: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins # Try to compile the x86 cpuid inlines if test "x$enable_cpuid" != "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid" >&5 $as_echo_n "checking for x86 cpuid... " >&6; } old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$HWLOC_top_srcdir/include" # We need hwloc_uint64_t but we can't use autogen/config.h before configure ends. # So pass #include/#define manually here for now. CPUID_CHECK_HEADERS= CPUID_CHECK_DEFINE= if test "x$hwloc_windows" = xyes; then X86_CPUID_CHECK_HEADERS="#include " X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t DWORDLONG" else X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t uint64_t" if test "x$ac_cv_header_stdint_h" = xyes; then X86_CPUID_CHECK_HEADERS="#include " fi fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $X86_CPUID_CHECK_HEADERS $X86_CPUID_CHECK_DEFINE #define __hwloc_inline #include int main () { if (hwloc_have_x86_cpuid()) { unsigned eax = 0, ebx, ecx = 0, edx; hwloc_x86_cpuid(&eax, &ebx, &ecx, &edx); printf("highest x86 cpuid %x\n", eax); return 0; } ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_X86_CPUID 1" >>confdefs.h hwloc_have_x86_cpuid=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$hwloc_have_x86_cpuid" = xyes; then hwloc_components="$hwloc_components x86" fi CPPFLAGS="$old_CPPFLAGS" fi # Components require pthread_mutex, see if it needs -lpthread hwloc_pthread_mutex_happy=no # Try without explicit -lpthread first ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock" if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then : hwloc_pthread_mutex_happy=yes HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE -lpthread" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock with -lpthread" >&5 $as_echo_n "checking for pthread_mutex_lock with -lpthread... " >&6; } # Try again with explicit -lpthread, but don't use AC_CHECK_FUNC to avoid the cache tmp_save_LIBS=$LIBS LIBS="$LIBS -lpthread" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_mutex_lock (); int main () { return pthread_mutex_lock (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : hwloc_pthread_mutex_happy=yes HWLOC_LIBS="$HWLOC_LIBS -lpthread" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_pthread_mutex_happy" >&5 $as_echo "$hwloc_pthread_mutex_happy" >&6; } LIBS="$tmp_save_LIBS" fi if test "x$hwloc_pthread_mutex_happy" = "xyes"; then : $as_echo "#define HWLOC_HAVE_PTHREAD_MUTEX 1" >>confdefs.h fi if test "x$hwloc_pthread_mutex_happy" != xyes -a "x$hwloc_windows" != xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&5 $as_echo "$as_me: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please report this to the hwloc-devel mailing list." >&5 $as_echo "$as_me: WARNING: Please report this to the hwloc-devel mailing list." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # # Now enable registration of listed components # # Plugin support { $as_echo "$as_me:${as_lineno-$LINENO}: checking if plugin support is enabled" >&5 $as_echo_n "checking if plugin support is enabled... " >&6; } # Plugins (even core support) are totally disabled by default if test "x$enable_plugins" = "x"; then : enable_plugins=no fi if test "x$enable_plugins" != "xno"; then : hwloc_have_plugins=yes else hwloc_have_plugins=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_have_plugins" >&5 $as_echo "$hwloc_have_plugins" >&6; } if test "x$hwloc_have_plugins" = "xyes"; then : $as_echo "#define HWLOC_HAVE_PLUGINS 1" >>confdefs.h fi # Some sanity checks about plugins # libltdl doesn't work on AIX as of 2.4.2 if test "x$enable_plugins" = "xyes" -a "x$hwloc_aix" = "xyes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl does not work on AIX, plugins support cannot be enabled." >&5 $as_echo "$as_me: WARNING: libltdl does not work on AIX, plugins support cannot be enabled." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # posix linkers don't work well with plugins and windows dll constraints if test "x$enable_plugins" = "xyes" -a "x$hwloc_windows" = "xyes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Plugins not supported on non-native Windows build, plugins support cannot be enabled." >&5 $as_echo "$as_me: WARNING: Plugins not supported on non-native Windows build, plugins support cannot be enabled." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # If we want plugins, look for ltdl.h and libltdl if test "x$hwloc_have_plugins" = xyes; then ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" if test "x$ac_cv_header_ltdl_h" = xyes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Plugin support requested, but could not find ltdl.h" >&5 $as_echo "$as_me: WARNING: Plugin support requested, but could not find ltdl.h" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5 $as_echo_n "checking for lt_dlopenext in -lltdl... " >&6; } if ${ac_cv_lib_ltdl_lt_dlopenext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lltdl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char lt_dlopenext (); int main () { return lt_dlopenext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ltdl_lt_dlopenext=yes else ac_cv_lib_ltdl_lt_dlopenext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5 $as_echo "$ac_cv_lib_ltdl_lt_dlopenext" >&6; } if test "x$ac_cv_lib_ltdl_lt_dlopenext" = xyes; then : HWLOC_LIBS="$HWLOC_LIBS -lltdl" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Plugin support requested, but could not find libltdl" >&5 $as_echo "$as_me: WARNING: Plugin support requested, but could not find libltdl" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # Add libltdl static-build dependencies to hwloc.pc # save variables that we'll modify below save_lt_cv_dlopen="$lt_cv_dlopen" save_lt_cv_dlopen_libs="$lt_cv_dlopen_libs" save_lt_cv_dlopen_self="$lt_cv_dlopen_self" ########################################################### # code stolen from LT_SYS_DLOPEN_SELF in libtool.m4 case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac # end of code stolen from LT_SYS_DLOPEN_SELF in libtool.m4 ########################################################### HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE $lt_cv_dlopen_libs" # restore modified variable in case the actual libtool code uses them lt_cv_dlopen="$save_lt_cv_dlopen" lt_cv_dlopen_libs="$save_lt_cv_dlopen_libs" lt_cv_dlopen_self="$save_lt_cv_dlopen_self" fi # Check whether --with-hwloc-plugins-path was given. if test "${with_hwloc_plugins_path+set}" = set; then : withval=$with_hwloc_plugins_path; HWLOC_PLUGINS_PATH="$with_hwloc_plugins_path" else HWLOC_PLUGINS_PATH="\$(libdir)/hwloc" fi HWLOC_PLUGINS_DIR=`echo "$HWLOC_PLUGINS_PATH" | cut -d: -f1` # Static components output file hwloc_static_components_dir=${HWLOC_top_builddir}/hwloc mkdir -p ${hwloc_static_components_dir} hwloc_static_components_file=${hwloc_static_components_dir}/static-components.h rm -f ${hwloc_static_components_file} # Make $enable_plugins easier to use (it contains either "yes" (all) or a list of ) for name in `echo $enable_plugins | sed -e 's/,/ /g'` ; do str="hwloc_${name}_component_wantplugin=1" eval $str done # Now we have some hwloc__component_wantplugin=1 # See which core components want plugin and support it for name in $hwloc_components ; do str="maybeplugin=\$hwloc_${name}_component_maybeplugin" eval $str str="wantplugin=\$hwloc_${name}_component_wantplugin" eval $str if test x$hwloc_have_plugins = xyes && test x$maybeplugin = x1 && test x$wantplugin = x1 -o x$enable_plugins = xyes; then hwloc_plugin_components="$hwloc_plugin_components $name" str="hwloc_${name}_component=plugin" else hwloc_static_components="$hwloc_static_components $name" str="hwloc_${name}_component=static" fi eval $str done # Now we have some hwloc__component=plugin/static # and hwloc_static/plugin_components { $as_echo "$as_me:${as_lineno-$LINENO}: checking components to build statically" >&5 $as_echo_n "checking components to build statically... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_static_components" >&5 $as_echo "$hwloc_static_components" >&6; } for comp in $hwloc_static_components; do echo "HWLOC_DECLSPEC extern const struct hwloc_component hwloc_${comp}_component;" >>$hwloc_static_components_file done cat <>$hwloc_static_components_file static const struct hwloc_component * hwloc_static_components[] = { EOF for comp in $hwloc_static_components; do echo " &hwloc_${comp}_component," >>$hwloc_static_components_file done cat <>$hwloc_static_components_file NULL }; EOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking components to build as plugins" >&5 $as_echo_n "checking components to build as plugins... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_plugin_components" >&5 $as_echo "$hwloc_plugin_components" >&6; } if test "$hwloc_pci_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_PCIACCESS_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_PCIACCESS_CFLAGS" HWLOC_REQUIRES="$HWLOC_PCIACCESS_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_opencl_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_OPENCL_LIBS" HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_OPENCL_LDFLAGS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_OPENCL_CFLAGS" HWLOC_REQUIRES="$HWLOC_OPENCL_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_cuda_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_CUDA_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_CUDA_CFLAGS" HWLOC_REQUIRES="$HWLOC_CUDA_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_nvml_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_NVML_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_NVML_CFLAGS" HWLOC_REQUIRES="$HWLOC_NVML_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_gl_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_GL_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_GL_CFLAGS" HWLOC_REQUIRES="$HWLOC_GL_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_xml_libxml_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_LIBXML2_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_LIBXML2_CFLAGS" HWLOC_REQUIRES="$HWLOC_LIBXML2_REQUIRES $HWLOC_REQUIRES" fi # # Setup HWLOC's C, CPP, and LD flags, and LIBS # HWLOC_CPPFLAGS='-I$(HWLOC_top_builddir)/include -I$(HWLOC_top_srcdir)/include' # Set these values explicitly for embedded builds. Exporting # these values through *_EMBEDDED_* values gives us the freedom to # do something different someday if we ever need to. There's no # need to fill these values in unless we're in embedded mode. # Indeed, if we're building in embedded mode, we want HWLOC_LIBS # to be empty so that nothing is linked into libhwloc_embedded.la # itself -- only the upper-layer will link in anything required. if test "$hwloc_mode" = "embedded"; then : HWLOC_EMBEDDED_CFLAGS=$HWLOC_CFLAGS HWLOC_EMBEDDED_CPPFLAGS=$HWLOC_CPPFLAGS HWLOC_EMBEDDED_LDADD='$(HWLOC_top_builddir)/hwloc/libhwloc_embedded.la' HWLOC_EMBEDDED_LIBS=$HWLOC_LIBS HWLOC_LIBS= fi # Always generate these files ac_config_files="$ac_config_files opal/mca/hwloc/hwloc201/hwloc/Makefile opal/mca/hwloc/hwloc201/hwloc/include/Makefile opal/mca/hwloc/hwloc201/hwloc/hwloc/Makefile" # Cleanup ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Success { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hwloc configure succeeded" >&5 $as_echo_n "checking whether hwloc configure succeeded... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } HWLOC_VERSION="internal v`$srcdir/$opal_hwloc_hwloc201_basedir/hwloc/config/hwloc_get_version.sh $srcdir/$opal_hwloc_hwloc201_basedir/hwloc/VERSION`" # Build flags for our Makefile.am opal_hwloc_hwloc201_LDFLAGS='$(HWLOC_EMBEDDED_LDFLAGS)' opal_hwloc_hwloc201_LIBS='$(OPAL_TOP_BUILDDIR)/'"$opal_hwloc_hwloc201_basedir"'/hwloc/hwloc/libhwloc_embedded.la $(HWLOC_EMBEDDED_LIBS)' opal_hwloc_hwloc201_support=yes cat >>confdefs.h <<_ACEOF #define HWLOC_HWLOC201_HWLOC_VERSION "$HWLOC_VERSION" _ACEOF # Do we have verbs support? CPPFLAGS_save=$CPPFLAGS if test "$opal_want_verbs" = "yes"; then : CPPFLAGS="-I$opal_verbs_dir/include $CPPFLAGS" fi for ac_header in infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_H 1 _ACEOF fi done CPPFLAGS=$CPPFLAGS_save CFLAGS=$opal_hwloc_hwloc201_save_cflags # Restore some env variables, if necessary if test -n "$opal_hwloc_hwloc201_save_cairo"; then : enable_cairo=$opal_hwloc_hwloc201_save_cairo fi if test -n "$opal_hwloc_hwloc201_save_xml"; then : enable_xml=$opal_hwloc_hwloc201_save_xml fi if test -n "$opal_hwloc_hwloc201_save_static"; then : enable_static=$opal_hwloc_hwloc201_save_static fi if test -n "$opal_hwloc_hwloc201_save_shared"; then : enable_shared=$opal_hwloc_hwloc201_save_shared fi if test -n "$opal_hwloc_hwloc201_save_plugins"; then : enable_plugins=$opal_hwloc_hwloc201_save_shared fi CPPFLAGS=$opal_hwloc_hwloc201_save_CPPFLAGS LDFLAGS=$opal_hwloc_hwloc201_save_LDFLAGS LIBS=$opal_hwloc_hwloc201_save_LIBS # Finally, add some flags to the wrapper compiler so that our # headers can be found. hwloc_hwloc201_WRAPPER_EXTRA_LDFLAGS="$HWLOC_EMBEDDED_LDFLAGS" hwloc_hwloc201_WRAPPER_EXTRA_LIBS="$HWLOC_EMBEDDED_LIBS" hwloc_hwloc201_WRAPPER_EXTRA_CPPFLAGS='-I${pkgincludedir}/'"$opal_hwloc_hwloc201_basedir/hwloc/include" # If we are not building the internal hwloc, then indicate that # this component should not be built. NOTE: we still did all the # above configury so that all the proper GNU Autotools # infrastructure is setup properly (e.g., w.r.t. SUBDIRS=hwloc in # this directory's Makefile.am, we still need the Autotools "make # distclean" infrastructure to work properly). if test "$opal_hwloc_external_support" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: using an external hwloc; disqualifying this component" >&5 $as_echo "$as_me: using an external hwloc; disqualifying this component" >&6;} opal_hwloc_hwloc201_support=no else $as_echo "#define HAVE_DECL_HWLOC_OBJ_OSDEV_COPROC 1" >>confdefs.h $as_echo "#define HAVE_HWLOC_TOPOLOGY_DUP 1" >>confdefs.h fi # Done! if test "$opal_hwloc_hwloc201_support" = "yes"; then : should_build=$should_build else should_build=0 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/hwloc/hwloc201/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components hwloc201" if test "$compile_mode" = "dso" ; then dso_components="$dso_components hwloc201" else if test "hwloc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/hwloc/hwloc201/lib${OPAL_LIB_PREFIX}mca_hwloc_hwloc201.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/hwloc/hwloc201/libmca_hwloc_hwloc201.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_hwloc_hwloc201_component;" >> $outfile.extern echo " &mca_hwloc_hwloc201_component, " >> $outfile.struct static_components="$static_components hwloc201" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component hwloc:hwloc201 can compile" >&5 $as_echo_n "checking if MCA component hwloc:hwloc201 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_hwloc" = "hwloc201" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_hwloc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** hwloc component hwloc201 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_hwloc" = "hwloc201" ; then as_fn_error $? "*** hwloc component hwloc201 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$hwloc_hwloc201_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $hwloc_hwloc201_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $hwloc_hwloc201_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$hwloc_hwloc201_WRAPPER_EXTRA_LIBS" = ""; 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_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 $hwloc_hwloc201_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $hwloc_hwloc201_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$hwloc_hwloc201_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $hwloc_hwloc201_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring hwloc_hwloc201_WRAPPER_EXTRA_CPPFLAGS ($hwloc_hwloc201_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring hwloc_hwloc201_WRAPPER_EXTRA_CPPFLAGS ($hwloc_hwloc201_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component hwloc:hwloc201 can compile" >&5 $as_echo_n "checking if MCA component hwloc:hwloc201 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_hwloc" = "hwloc201" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hwloc201\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hwloc201\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_hwloc" ; then if test "$DIRECT_hwloc" = "hwloc201" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hwloc201\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hwloc201\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components hwloc201" 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_hwloc_hwloc201_basedir; 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_hwloc_hwloc201_basedir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # If we won, then do all the rest of the setup if test "$should_build" = "1" && test "$opal_hwloc_hwloc201_support" = "yes"; then : # Set this variable so that the framework m4 knows what # file to include in opal/mca/hwloc/hwloc-internal.h opal_hwloc_hwloc201_basedir=opal/mca/hwloc/hwloc201 opal_hwloc_base_include="$opal_hwloc_hwloc201_basedir/hwloc201.h" # Add some stuff to CPPFLAGS so that the rest of the source # tree can be built file=$opal_hwloc_hwloc201_basedir/hwloc CPPFLAGS="-I$OPAL_TOP_SRCDIR/$file/include $CPPFLAGS" if test "$OPAL_TOP_BUILDDIR" != "$OPAL_TOP_SRCDIR"; then : CPPFLAGS="-I$OPAL_TOP_BUILDDIR/$file/include $CPPFLAGS" fi unset file 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 # This must be run unconditionally if test "$hwloc_did_am_conditionals" != "yes"; then : if test "$hwloc_mode" = "standalone"; then HWLOC_BUILD_STANDALONE_TRUE= HWLOC_BUILD_STANDALONE_FALSE='#' else HWLOC_BUILD_STANDALONE_TRUE='#' HWLOC_BUILD_STANDALONE_FALSE= fi if test "x$GCC" = "xyes"; then HWLOC_HAVE_GCC_TRUE= HWLOC_HAVE_GCC_FALSE='#' else HWLOC_HAVE_GCC_TRUE='#' HWLOC_HAVE_GCC_FALSE= fi if test "x$HWLOC_MS_LIB" != "x"; then HWLOC_HAVE_MS_LIB_TRUE= HWLOC_HAVE_MS_LIB_FALSE='#' else HWLOC_HAVE_MS_LIB_TRUE='#' HWLOC_HAVE_MS_LIB_FALSE= fi if test "x$hwloc_have_openat" = "xyes"; then HWLOC_HAVE_OPENAT_TRUE= HWLOC_HAVE_OPENAT_FALSE='#' else HWLOC_HAVE_OPENAT_TRUE='#' HWLOC_HAVE_OPENAT_FALSE= fi if test "x$hwloc_have_sched_setaffinity" = "xyes"; then HWLOC_HAVE_SCHED_SETAFFINITY_TRUE= HWLOC_HAVE_SCHED_SETAFFINITY_FALSE='#' else HWLOC_HAVE_SCHED_SETAFFINITY_TRUE='#' HWLOC_HAVE_SCHED_SETAFFINITY_FALSE= fi if test "x$hwloc_have_pthread" = "xyes"; then HWLOC_HAVE_PTHREAD_TRUE= HWLOC_HAVE_PTHREAD_FALSE='#' else HWLOC_HAVE_PTHREAD_TRUE='#' HWLOC_HAVE_PTHREAD_FALSE= fi if test "x$hwloc_have_linux_libnuma" = "xyes"; then HWLOC_HAVE_LINUX_LIBNUMA_TRUE= HWLOC_HAVE_LINUX_LIBNUMA_FALSE='#' else HWLOC_HAVE_LINUX_LIBNUMA_TRUE='#' HWLOC_HAVE_LINUX_LIBNUMA_FALSE= fi if test "x$hwloc_have_libibverbs" = "xyes"; then HWLOC_HAVE_LIBIBVERBS_TRUE= HWLOC_HAVE_LIBIBVERBS_FALSE='#' else HWLOC_HAVE_LIBIBVERBS_TRUE='#' HWLOC_HAVE_LIBIBVERBS_FALSE= fi if test "x$hwloc_have_cuda" = "xyes"; then HWLOC_HAVE_CUDA_TRUE= HWLOC_HAVE_CUDA_FALSE='#' else HWLOC_HAVE_CUDA_TRUE='#' HWLOC_HAVE_CUDA_FALSE= fi if test "x$hwloc_have_gl" = "xyes"; then HWLOC_HAVE_GL_TRUE= HWLOC_HAVE_GL_FALSE='#' else HWLOC_HAVE_GL_TRUE='#' HWLOC_HAVE_GL_FALSE= fi if test "x$hwloc_have_cudart" = "xyes"; then HWLOC_HAVE_CUDART_TRUE= HWLOC_HAVE_CUDART_FALSE='#' else HWLOC_HAVE_CUDART_TRUE='#' HWLOC_HAVE_CUDART_FALSE= fi if test "$hwloc_libxml2_happy" = "yes"; then HWLOC_HAVE_LIBXML2_TRUE= HWLOC_HAVE_LIBXML2_FALSE='#' else HWLOC_HAVE_LIBXML2_TRUE='#' HWLOC_HAVE_LIBXML2_FALSE= fi if test "$hwloc_cairo_happy" = "yes"; then HWLOC_HAVE_CAIRO_TRUE= HWLOC_HAVE_CAIRO_FALSE='#' else HWLOC_HAVE_CAIRO_TRUE='#' HWLOC_HAVE_CAIRO_FALSE= fi if test "$hwloc_pciaccess_happy" = "yes"; then HWLOC_HAVE_PCIACCESS_TRUE= HWLOC_HAVE_PCIACCESS_FALSE='#' else HWLOC_HAVE_PCIACCESS_TRUE='#' HWLOC_HAVE_PCIACCESS_FALSE= fi if test "$hwloc_opencl_happy" = "yes"; then HWLOC_HAVE_OPENCL_TRUE= HWLOC_HAVE_OPENCL_FALSE='#' else HWLOC_HAVE_OPENCL_TRUE='#' HWLOC_HAVE_OPENCL_FALSE= fi if test "$hwloc_nvml_happy" = "yes"; then HWLOC_HAVE_NVML_TRUE= HWLOC_HAVE_NVML_FALSE='#' else HWLOC_HAVE_NVML_TRUE='#' HWLOC_HAVE_NVML_FALSE= fi if test "x$BUNZIPP" != "xfalse"; then HWLOC_HAVE_BUNZIPP_TRUE= HWLOC_HAVE_BUNZIPP_FALSE='#' else HWLOC_HAVE_BUNZIPP_TRUE='#' HWLOC_HAVE_BUNZIPP_FALSE= fi if test "x$hwloc_have_user32" = "xyes"; then HWLOC_HAVE_USER32_TRUE= HWLOC_HAVE_USER32_FALSE='#' else HWLOC_HAVE_USER32_TRUE='#' HWLOC_HAVE_USER32_FALSE= fi if test "x$hwloc_generate_doxs" = "xyes"; then HWLOC_BUILD_DOXYGEN_TRUE= HWLOC_BUILD_DOXYGEN_FALSE='#' else HWLOC_BUILD_DOXYGEN_TRUE='#' HWLOC_BUILD_DOXYGEN_FALSE= fi if test "x$hwloc_generate_readme" = "xyes" -a \( "x$hwloc_install_doxs" = "xyes" -o "x$hwloc_generate_doxs" = "xyes" \) ; then HWLOC_BUILD_README_TRUE= HWLOC_BUILD_README_FALSE='#' else HWLOC_BUILD_README_TRUE='#' HWLOC_BUILD_README_FALSE= fi if test "x$hwloc_install_doxs" = "xyes"; then HWLOC_INSTALL_DOXYGEN_TRUE= HWLOC_INSTALL_DOXYGEN_FALSE='#' else HWLOC_INSTALL_DOXYGEN_TRUE='#' HWLOC_INSTALL_DOXYGEN_FALSE= fi if test "x$hwloc_linux" = "xyes"; then HWLOC_HAVE_LINUX_TRUE= HWLOC_HAVE_LINUX_FALSE='#' else HWLOC_HAVE_LINUX_TRUE='#' HWLOC_HAVE_LINUX_FALSE= fi if test "x$hwloc_bgq" = "xyes"; then HWLOC_HAVE_BGQ_TRUE= HWLOC_HAVE_BGQ_FALSE='#' else HWLOC_HAVE_BGQ_TRUE='#' HWLOC_HAVE_BGQ_FALSE= fi if test "x$hwloc_irix" = "xyes"; then HWLOC_HAVE_IRIX_TRUE= HWLOC_HAVE_IRIX_FALSE='#' else HWLOC_HAVE_IRIX_TRUE='#' HWLOC_HAVE_IRIX_FALSE= fi if test "x$hwloc_darwin" = "xyes"; then HWLOC_HAVE_DARWIN_TRUE= HWLOC_HAVE_DARWIN_FALSE='#' else HWLOC_HAVE_DARWIN_TRUE='#' HWLOC_HAVE_DARWIN_FALSE= fi if test "x$hwloc_freebsd" = "xyes"; then HWLOC_HAVE_FREEBSD_TRUE= HWLOC_HAVE_FREEBSD_FALSE='#' else HWLOC_HAVE_FREEBSD_TRUE='#' HWLOC_HAVE_FREEBSD_FALSE= fi if test "x$hwloc_netbsd" = "xyes"; then HWLOC_HAVE_NETBSD_TRUE= HWLOC_HAVE_NETBSD_FALSE='#' else HWLOC_HAVE_NETBSD_TRUE='#' HWLOC_HAVE_NETBSD_FALSE= fi if test "x$hwloc_solaris" = "xyes"; then HWLOC_HAVE_SOLARIS_TRUE= HWLOC_HAVE_SOLARIS_FALSE='#' else HWLOC_HAVE_SOLARIS_TRUE='#' HWLOC_HAVE_SOLARIS_FALSE= fi if test "x$hwloc_aix" = "xyes"; then HWLOC_HAVE_AIX_TRUE= HWLOC_HAVE_AIX_FALSE='#' else HWLOC_HAVE_AIX_TRUE='#' HWLOC_HAVE_AIX_FALSE= fi if test "x$hwloc_hpux" = "xyes"; then HWLOC_HAVE_HPUX_TRUE= HWLOC_HAVE_HPUX_FALSE='#' else HWLOC_HAVE_HPUX_TRUE='#' HWLOC_HAVE_HPUX_FALSE= fi if test "x$hwloc_windows" = "xyes"; then HWLOC_HAVE_WINDOWS_TRUE= HWLOC_HAVE_WINDOWS_FALSE='#' else HWLOC_HAVE_WINDOWS_TRUE='#' HWLOC_HAVE_WINDOWS_FALSE= fi if test "x$target_os" = "xmingw32"; then HWLOC_HAVE_MINGW32_TRUE= HWLOC_HAVE_MINGW32_FALSE='#' else HWLOC_HAVE_MINGW32_TRUE='#' HWLOC_HAVE_MINGW32_FALSE= fi if test "x$hwloc_x86_32" = "xyes" -o "x$hwloc_x86_64" = "xyes"; then HWLOC_HAVE_X86_TRUE= HWLOC_HAVE_X86_FALSE='#' else HWLOC_HAVE_X86_TRUE='#' HWLOC_HAVE_X86_FALSE= fi if test "x$hwloc_x86_32" = "xyes"; then HWLOC_HAVE_X86_32_TRUE= HWLOC_HAVE_X86_32_FALSE='#' else HWLOC_HAVE_X86_32_TRUE='#' HWLOC_HAVE_X86_32_FALSE= fi if test "x$hwloc_x86_64" = "xyes"; then HWLOC_HAVE_X86_64_TRUE= HWLOC_HAVE_X86_64_FALSE='#' else HWLOC_HAVE_X86_64_TRUE='#' HWLOC_HAVE_X86_64_FALSE= fi if test "x$hwloc_have_x86_cpuid" = "xyes"; then HWLOC_HAVE_X86_CPUID_TRUE= HWLOC_HAVE_X86_CPUID_FALSE='#' else HWLOC_HAVE_X86_CPUID_TRUE='#' HWLOC_HAVE_X86_CPUID_FALSE= fi if test "x$hwloc_have_plugins" = "xyes"; then HWLOC_HAVE_PLUGINS_TRUE= HWLOC_HAVE_PLUGINS_FALSE='#' else HWLOC_HAVE_PLUGINS_TRUE='#' HWLOC_HAVE_PLUGINS_FALSE= fi if test "x$hwloc_pci_component" = "xstatic"; then HWLOC_PCI_BUILD_STATIC_TRUE= HWLOC_PCI_BUILD_STATIC_FALSE='#' else HWLOC_PCI_BUILD_STATIC_TRUE='#' HWLOC_PCI_BUILD_STATIC_FALSE= fi if test "x$hwloc_opencl_component" = "xstatic"; then HWLOC_OPENCL_BUILD_STATIC_TRUE= HWLOC_OPENCL_BUILD_STATIC_FALSE='#' else HWLOC_OPENCL_BUILD_STATIC_TRUE='#' HWLOC_OPENCL_BUILD_STATIC_FALSE= fi if test "x$hwloc_cuda_component" = "xstatic"; then HWLOC_CUDA_BUILD_STATIC_TRUE= HWLOC_CUDA_BUILD_STATIC_FALSE='#' else HWLOC_CUDA_BUILD_STATIC_TRUE='#' HWLOC_CUDA_BUILD_STATIC_FALSE= fi if test "x$hwloc_nvml_component" = "xstatic"; then HWLOC_NVML_BUILD_STATIC_TRUE= HWLOC_NVML_BUILD_STATIC_FALSE='#' else HWLOC_NVML_BUILD_STATIC_TRUE='#' HWLOC_NVML_BUILD_STATIC_FALSE= fi if test "x$hwloc_gl_component" = "xstatic"; then HWLOC_GL_BUILD_STATIC_TRUE= HWLOC_GL_BUILD_STATIC_FALSE='#' else HWLOC_GL_BUILD_STATIC_TRUE='#' HWLOC_GL_BUILD_STATIC_FALSE= fi if test "x$hwloc_xml_libxml_component" = "xstatic"; then HWLOC_XML_LIBXML_BUILD_STATIC_TRUE= HWLOC_XML_LIBXML_BUILD_STATIC_FALSE='#' else HWLOC_XML_LIBXML_BUILD_STATIC_TRUE='#' HWLOC_XML_LIBXML_BUILD_STATIC_FALSE= fi if test "x$hwloc_have_cxx" = "xyes"; then HWLOC_HAVE_CXX_TRUE= HWLOC_HAVE_CXX_FALSE='#' else HWLOC_HAVE_CXX_TRUE='#' HWLOC_HAVE_CXX_FALSE= fi fi hwloc_did_am_conditionals=yes # For backwards compatibility (i.e., packages that only call # HWLOC_DO_AM_CONDITIONS, not NETLOC DO_AM_CONDITIONALS), we also have to # do the netloc AM conditionals here if test "$netloc_happy" = "yes"; then BUILD_NETLOC_TRUE= BUILD_NETLOC_FALSE='#' else BUILD_NETLOC_TRUE='#' BUILD_NETLOC_FALSE= fi if test "x$scotch_found_headers" = "xyes"; then BUILD_NETLOCSCOTCH_TRUE= BUILD_NETLOCSCOTCH_FALSE='#' else BUILD_NETLOCSCOTCH_TRUE='#' BUILD_NETLOCSCOTCH_FALSE= fi if test "x$mpi_found_headers" = "xyes"; then BUILD_MPITOOLS_TRUE= BUILD_MPITOOLS_FALSE='#' else BUILD_MPITOOLS_TRUE='#' BUILD_MPITOOLS_FALSE= fi if test "x$xz" = xyes; then FOUND_XZ_TRUE= FOUND_XZ_FALSE='#' else FOUND_XZ_TRUE='#' FOUND_XZ_FALSE= fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_hwloc_hwloc201_DSO=1 else BUILD_opal_hwloc_hwloc201_DSO=0 fi if test "$BUILD_opal_hwloc_hwloc201_DSO" = "1"; then MCA_BUILD_opal_hwloc_hwloc201_DSO_TRUE= MCA_BUILD_opal_hwloc_hwloc201_DSO_FALSE='#' else MCA_BUILD_opal_hwloc_hwloc201_DSO_TRUE='#' MCA_BUILD_opal_hwloc_hwloc201_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_hwloc_ALL_COMPONENTS="$all_components" MCA_opal_hwloc_STATIC_COMPONENTS="$static_components" MCA_opal_hwloc_DSO_COMPONENTS="$dso_components" MCA_opal_hwloc_STATIC_LTLIBS="$static_ltlibs" MCA_opal_hwloc_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_hwloc_ALL_SUBDIRS="$MCA_opal_hwloc_ALL_SUBDIRS mca/hwloc/$item" done MCA_opal_hwloc_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_hwloc_STATIC_SUBDIRS="$MCA_opal_hwloc_STATIC_SUBDIRS mca/hwloc/$item" done MCA_opal_hwloc_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_hwloc_DSO_SUBDIRS="$MCA_opal_hwloc_DSO_SUBDIRS mca/hwloc/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "hwloc" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # Restore the --enable-pci flag enable_pci=$opal_hwloc_hwloc132_save_enable_pci # Give a blank line to separate these messages from the last # component's configure.m4 output. echo " " # If we aren't given a specific component, then we must find one if test "$with_hwloc" = ""; then : else # STOP_AT_FIRST_PRIORITY will guarantee that we find at most # one. We need to check here that we found *at least* one. if test "$MCA_opal_hwloc_STATIC_COMPONENTS" = ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find a suitable static opal hwloc component" >&5 $as_echo "$as_me: WARNING: Did not find a suitable static opal hwloc component" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # If we have a winning component, do some more logic if test "$MCA_opal_hwloc_STATIC_COMPONENTS" != ""; then : # We had a winner -- w00t! # The winning component will have told us where their header file # is located { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winning hwloc component header file" >&5 $as_echo_n "checking for winning hwloc component header file... " >&6; } if test "$opal_hwloc_base_include" = ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 $as_echo "missing" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing implementation header" >&5 $as_echo "$as_me: WARNING: Missing implementation header" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_hwloc_base_include" >&5 $as_echo "$opal_hwloc_base_include" >&6; } cat >>confdefs.h <<_ACEOF #define MCA_hwloc_IMPLEMENTATION_HEADER "$opal_hwloc_base_include" _ACEOF # If we added any -L flags to ADD_LDFLAGS, then we (might) # need to add those directories to LD_LIBRARY_PATH. # Otherwise, if we try to AC RUN_IFELSE anything here in # configure, it might die because it can't find the libraries # we just linked against. # 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_hwloc_base_found_l opal_hwloc_base_token opal_hwloc_base_tmp opal_hwloc_base_dir; 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_hwloc_base_found_l opal_hwloc_base_token opal_hwloc_base_tmp opal_hwloc_base_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_hwloc_base_found_l=0 eval "opal_hwloc_base_tmp=\$opal_hwloc_${opal_hwloc_winner}_ADD_LIBS" for opal_hwloc_base_token in $opal_hwloc_base_tmp; do case $opal_hwloc_base_token in -l*) opal_hwloc_base_found_l=1 ;; esac done if test $opal_hwloc_base_found_l -eq 1; then : eval "opal_hwloc_base_tmp=\$opal_hwloc_${opal_hwloc_winner}_ADD_LDFLAGS" for opal_hwloc_base_token in $opal_hwloc_base_tmp; do case $opal_hwloc_base_token in -L*) opal_hwloc_base_dir=`echo $opal_hwloc_base_token | cut -c3-` export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$opal_hwloc_base_dir { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Adding to LD_LIBRARY_PATH: $opal_hwloc_base_dir" >&5 $as_echo "$as_me: WARNING: Adding to LD_LIBRARY_PATH: $opal_hwloc_base_dir" >&2;} ;; esac done 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 # Similar to above, if this m4 is being invoked "early" via AC # REQUIRE, print out a nice banner that we have now finished # pre-emption and are returning to the Normal Order Of Things. if test "$opal_hwloc_its_time_to_configure" != "1"; then : echo " " echo "<== Pre-emptive hwloc framework configuration complete." echo "<== We now return you to your regularly scheduled programming." echo " " fi; ompi_endpoint_tag_counter=0 # Set a special flag so that we can detect if the user calls # OPAL_WRAPPER_FLAGS_ADD and error. # Find which components should be built as run-time loadable components # Acceptable combinations: # # [default -- no option given] # --enable-mca-dso # --enable-mca-dso=[.+,]*COMPONENT_TYPE[.+,]* # --enable-mca-dso=[.+,]*COMPONENT_TYPE-COMPONENT_NAME[.+,]* # --disable-mca-dso # # Check whether --enable-mca-no-build was given. if test "${enable_mca_no_build+set}" = set; then : enableval=$enable_mca_no_build; fi # Check whether --enable-mca-dso was given. if test "${enable_mca_dso+set}" = set; then : enableval=$enable_mca_dso; fi # Check whether --enable-mca-static was given. if test "${enable_mca_static+set}" = set; then : enableval=$enable_mca_static; fi # Check whether --enable-mca-direct was given. if test "${enable_mca_direct+set}" = set; then : enableval=$enable_mca_direct; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be disabled" >&5 $as_echo_n "checking which components should be disabled... " >&6; } if test "$enable_mca_no_build" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } as_fn_error $? "*** The enable-mca-no-build flag requires an explicit list *** of type-component pairs. For example, --enable-mca-no-build=pml-ob1" "$LINENO" 5 else ifs_save="$IFS" IFS="${IFS}$PATH_SEPARATOR," msg= for item in $enable_mca_no_build; do type="`echo $item | cut -s -f1 -d-`" comp="`echo $item | cut -s -f2- -d-`" if test -z $type ; then type=$item fi if test -z $comp ; then str="`echo DISABLE_${type}=1 | sed s/-/_/g`" eval $str msg="$item $msg" else str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`" eval $str msg="$item $msg" fi done IFS="$ifs_save" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&6; } unset msg # # First, add all the mca-direct components / types into the mca-static # lists and create a list of component types that are direct compile, # in the form DIRECT_[type]=[component] # { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be direct-linked into the library" >&5 $as_echo_n "checking which components should be direct-linked into the library... " >&6; } if test "$enable_mca_direct" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } as_fn_error $? "*** The enable-mca-direct flag requires an explicit list of *** type-component pairs. For example, --enable-mca-direct=pml-ob1,coll-basic" "$LINENO" 5 elif test ! -z "$enable_mca_direct" && test "$enable_mca_direct" != "" ; then # # we need to add this into the static list, unless the static list # is everything # if test "$enable_mca_static" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Re-enabling static component support for direct call" >&5 $as_echo "$as_me: WARNING: *** Re-enabling static component support for direct call" >&2;} enable_mca_static="$enable_mca_direct" elif test -z "$enable_mca_static" ; then enable_mca_static="$enable_mca_direct" elif test "$enable_mca_static" != "yes" ; then enable_mca_static="$enable_mca_direct,$enable_mca_static" fi ifs_save="$IFS" IFS="${IFS}$PATH_SEPARATOR," msg= for item in $enable_mca_direct; do type="`echo $item | cut -f1 -d-`" comp="`echo $item | cut -f2- -d-`" if test -z $type || test -z $comp ; then as_fn_error $? "*** The enable-mca-direct flag requires a *** list of type-component pairs. Invalid input detected." "$LINENO" 5 else str="`echo DIRECT_$type=$comp | sed s/-/_/g`" eval $str msg="$item $msg" fi done IFS="$ifs_save" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&6; } unset msg # # Second, set the DSO_all and STATIC_all variables. conflict # resolution (prefer static) is done in the big loop below # { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be run-time loadable" >&5 $as_echo_n "checking which components should be run-time loadable... " >&6; } if test "$enable_static" != "no"; then DSO_all=0 msg=none elif test -z "$enable_mca_dso" || test "$enable_mca_dso" = "yes"; then DSO_all=1 msg=all elif test "$enable_mca_dso" = "no"; then DSO_all=0 msg=none enable_dlopen=no else DSO_all=0 ifs_save="$IFS" IFS="${IFS}$PATH_SEPARATOR," msg= for item in $enable_mca_dso; do str="`echo DSO_$item=1 | sed s/-/_/g`" eval $str msg="$item $msg" done IFS="$ifs_save" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&6; } unset msg if test "$enable_static" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&5 $as_echo "$as_me: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building MCA components as DSOs automatically disabled" >&5 $as_echo "$as_me: WARNING: *** Building MCA components as DSOs automatically disabled" >&2;} fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be static" >&5 $as_echo_n "checking which components should be static... " >&6; } if test "$enable_mca_static" = "yes"; then STATIC_all=1 msg=all elif test -z "$enable_mca_static" || test "$enable_mca_static" = "no"; then STATIC_all=0 msg=none else STATIC_all=0 ifs_save="$IFS" IFS="${IFS}$PATH_SEPARATOR," msg= for item in $enable_mca_static; do str="`echo STATIC_$item=1 | sed s/-/_/g`" eval $str msg="$item $msg" done IFS="$ifs_save" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&6; } unset msg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for projects containing MCA frameworks" >&5 $as_echo_n "checking for projects containing MCA frameworks... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal, orte, ompi, oshmem" >&5 $as_echo "opal, orte, ompi, oshmem" >&6; } # if there isn't a project list, abort # now configure all the projects, frameworks, and components. Most # of the hard stuff is in here MCA_PROJECT_SUBDIRS= MCA_PROJECT_DIST_SUBDIRS= # BWB: Until projects have separate configure scripts # and can skip running all of ORTE, just avoid recursing # into orte sub directory if orte disabled if (test "opal" = "ompi" && test "$enable_mpi" != "no") || test "opal" = "opal" || test "opal" = "orte" || test "opal" = "oshmem"; then MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS opal" MCA_PROJECT_DIST_SUBDIRS="$MCA_PROJECT_DIST_SUBDIRS opal" fi # can't use a variable rename here because these need to be evaled # at auto* time. opal_show_subtitle "Configuring MCA for opal" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks for opal" >&5 $as_echo_n "checking for frameworks for opal... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: common, allocator, backtrace, btl, compress, crs, dl, event, hwloc, if, installdirs, memchecker, memcpy, memory, mpool, patcher, pmix, pstat, rcache, reachable, shmem, timer" >&5 $as_echo "common, allocator, backtrace, btl, compress, crs, dl, event, hwloc, if, installdirs, memchecker, memcpy, memory, mpool, patcher, pmix, pstat, rcache, reachable, shmem, timer" >&6; } # iterate through the list of frameworks. There is something # funky with m4 foreach if the list is defined, but empty. It # will call the 3rd argument once with an empty value for the # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK # with an empty second argument. Grrr.... # if there isn't a project list, abort # # Also setup two variables for Makefiles: # MCA_project_FRAMEWORKS - list of frameworks in that project # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing # to more libraries) that must be included # in the project's main library MCA_opal_FRAMEWORKS= MCA_opal_FRAMEWORKS_SUBDIRS= MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS= MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS= MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= MCA_opal_FRAMEWORK_LIBS= MCA_opal_FRAMEWORKS="common $MCA_opal_FRAMEWORKS" MCA_opal_FRAMEWORKS_SUBDIRS="mca/common $MCA_opal_FRAMEWORKS_SUBDIRS" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_opal_common_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_opal_common_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_opal_common_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_common_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework common" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/common as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/common/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework common" >&5 $as_echo_n "checking for no configure components in framework common... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework common" >&5 $as_echo_n "checking for m4 configure components in framework common... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: cuda, ofi, sm, ucx, verbs, verbs_usnic" >&5 $as_echo "cuda, ofi, sm, ucx, verbs, verbs_usnic" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component common:cuda (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/common/cuda" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "cuda" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi if test "$DISABLE_common_cuda" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_common" SHARED_COMPONENT="$DSO_common_cuda" STATIC_FRAMEWORK="$STATIC_common" STATIC_COMPONENT="$STATIC_common_cuda" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:cuda compile mode" >&5 $as_echo_n "checking for MCA component common:cuda compile mode... " >&6; } if test "$DIRECT_common" = "cuda" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/common/cuda/Makefile" # make sure that CUDA-aware checks have been done if test "x$CUDA_SUPPORT" = "x1"; then : should_build=$should_build else should_build=0 fi # Copy over the includes needed to build CUDA common_cuda_CPPFLAGS=$opal_datatype_cuda_CPPFLAGS opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/common/cuda/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components cuda" if test "$compile_mode" = "dso" ; then dso_components="$dso_components cuda" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/cuda/lib${OPAL_LIB_PREFIX}mca_common_cuda.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/cuda/libmca_common_cuda.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_cuda_component;" >> $outfile.extern echo " &mca_common_cuda_component, " >> $outfile.struct static_components="$static_components cuda" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:cuda can compile" >&5 $as_echo_n "checking if MCA component common:cuda can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "cuda" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component cuda was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "cuda" ; then as_fn_error $? "*** common component cuda was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$common_cuda_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $common_cuda_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $common_cuda_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$common_cuda_WRAPPER_EXTRA_LIBS" = ""; 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_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 $common_cuda_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $common_cuda_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$common_cuda_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $common_cuda_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_cuda_WRAPPER_EXTRA_CPPFLAGS ($common_cuda_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring common_cuda_WRAPPER_EXTRA_CPPFLAGS ($common_cuda_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:cuda can compile" >&5 $as_echo_n "checking if MCA component common:cuda can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "cuda" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cuda\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"cuda\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "cuda" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cuda\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"cuda\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components cuda" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_common_cuda_DSO=1 else BUILD_opal_common_cuda_DSO=0 fi if test "$BUILD_opal_common_cuda_DSO" = "1"; then MCA_BUILD_opal_common_cuda_DSO_TRUE= MCA_BUILD_opal_common_cuda_DSO_FALSE='#' else MCA_BUILD_opal_common_cuda_DSO_TRUE='#' MCA_BUILD_opal_common_cuda_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component common:ofi (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/common/ofi" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "ofi" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi if test "$DISABLE_common_ofi" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_common" SHARED_COMPONENT="$DSO_common_ofi" STATIC_FRAMEWORK="$STATIC_common" STATIC_COMPONENT="$STATIC_common_ofi" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:ofi compile mode" >&5 $as_echo_n "checking for MCA component common:ofi compile mode... " >&6; } if test "$DIRECT_common" = "ofi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/common/ofi/Makefile" # Check for OFI libfabric. Note that $opal_ofi_happy is used in # other configure.m4's to know if OFI/libfabric configured # successfully. We only need to run the back-end checks once, but # at least emit a "checking..." statement each subsequent time # this macro is invoked so that configure's stdout has # sensible/logical output. if test -z "$opal_ofi_happy"; then : # Add --with options # Check whether --with-libfabric was given. if test "${with_libfabric+set}" = set; then : withval=$with_libfabric; fi # Check whether --with-libfabric-libdir was given. if test "${with_libfabric_libdir+set}" = set; then : withval=$with_libfabric_libdir; fi # Check whether --with-ofi was given. if test "${with_ofi+set}" = set; then : withval=$with_ofi; fi # Check whether --with-ofi-libdir was given. if test "${with_ofi_libdir+set}" = set; then : withval=$with_ofi_libdir; fi if test "$with_ofi" = ""; then with_ofi=$with_libfabric fi if test "$with_ofi_libdir" = ""; then with_ofi_libdir=$with_libfabric_libdir fi # Sanity check the --with values { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ofi value" >&5 $as_echo_n "checking --with-ofi value... " >&6; } if test "$with_ofi" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ofi)" >&5 $as_echo "simple no (specified --without-ofi)" >&6; } else if test "$with_ofi" = "yes" || test "x$with_ofi" = "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_ofi"; 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_ofi not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ofi not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ofi/include/rdma/fabric.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_ofi/include/rdma/fabric.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ofi/include/rdma/fabric.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ofi)" >&5 $as_echo "sanity check ok ($with_ofi)" >&6; } fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ofi-libdir value" >&5 $as_echo_n "checking --with-ofi-libdir value... " >&6; } if test "$with_ofi_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ofi-libdir)" >&5 $as_echo "simple no (specified --without-ofi-libdir)" >&6; } else if test "$with_ofi_libdir" = "yes" || test "x$with_ofi_libdir" = "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_ofi_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ofi_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ofi_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ofi_libdir/libfabric.* 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_ofi_libdir/libfabric.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ofi_libdir/libfabric.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ofi_libdir)" >&5 $as_echo "sanity check ok ($with_ofi_libdir)" >&6; } fi fi fi 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_check_ofi_save_CPPFLAGS opal_check_ofi_save_LDFLAGS opal_check_ofi_save_LIBS opal_check_fi_info_pci; 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_check_ofi_save_CPPFLAGS opal_check_ofi_save_LDFLAGS opal_check_ofi_save_LIBS opal_check_fi_info_pci\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_check_ofi_save_CPPFLAGS=$CPPFLAGS opal_check_ofi_save_LDFLAGS=$LDFLAGS opal_check_ofi_save_LIBS=$LIBS opal_check_fi_info_pci=0 opal_ofi_happy=yes if test "$with_ofi" = "no"; then : opal_ofi_happy=no fi if test $opal_ofi_happy = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for OFI libfabric in" >&5 $as_echo_n "checking looking for OFI libfabric in... " >&6; } if test "$with_ofi" != "yes"; then : opal_ofi_dir=$with_ofi { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($opal_ofi_dir)" >&5 $as_echo "($opal_ofi_dir)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 $as_echo "(default search paths)" >&6; } fi if test ! -z "$with_ofi_libdir" && \ test "$with_ofi_libdir" != "yes"; then : opal_ofi_libdir=$with_ofi_libdir fi fi if test $opal_ofi_happy = yes; then : opal_check_package_opal_ofi_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_ofi_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_ofi_save_LIBS="$LIBS" opal_check_package_opal_ofi_orig_CPPFLAGS="$opal_ofi_CPPFLAGS" opal_check_package_opal_ofi_orig_LDFLAGS="$opal_ofi_LDFLAGS" opal_check_package_opal_ofi_orig_LIBS="$opal_ofi_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_rdma_fabric_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_ofi_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 rdma/fabric.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FABRIC_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_rdma_fabric_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_ofi_CPPFLAGS="$opal_ofi_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in rdma/fabric.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FABRIC_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_fi_getinfo opal_check_package_lib_happy="no" if test "$opal_ofi_libdir" != ""; then : # libdir was specified - search only there opal_ofi_LDFLAGS="$opal_ofi_LDFLAGS -L$opal_ofi_libdir" LDFLAGS="$LDFLAGS -L$opal_ofi_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo 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 libfabric requires libnl v1 or v3" >&5 $as_echo_n "checking if libfabric requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fi_getinfo (void); int main(int argc, char *argv[]) { fi_getinfo (); 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:93703: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_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:93710: \$? = $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 fabric" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib fabric" >&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, libfabric links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&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 fabric requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas fabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs fabric" # 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 libfabric requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs fabric" # 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_fi_getinfo" != "no" && test "$ac_cv_search_fi_getinfo" != "none required"; then : opal_ofi_LIBS="$ac_cv_search_fi_getinfo " else opal_ofi_LIBS="" 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_fi_getinfo opal_check_package_lib_happy="no" if test "$opal_ofi_libdir" != ""; then : # libdir was specified - search only there opal_ofi_LDFLAGS="$opal_ofi_LDFLAGS -L$opal_ofi_libdir" LDFLAGS="$LDFLAGS -L$opal_ofi_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo 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 libfabric requires libnl v1 or v3" >&5 $as_echo_n "checking if libfabric requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fi_getinfo (void); int main(int argc, char *argv[]) { fi_getinfo (); 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:94428: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_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:94435: \$? = $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 fabric" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib fabric" >&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, libfabric links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&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 fabric requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas fabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs fabric" # 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 libfabric requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs fabric" # 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_fi_getinfo" != "no" && test "$ac_cv_search_fi_getinfo" != "none required"; then : opal_ofi_LIBS="$ac_cv_search_fi_getinfo " else opal_ofi_LIBS="" 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 : else opal_ofi_CPPFLAGS="$opal_check_package_opal_ofi_orig_CPPFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" opal_ofi_LIBS="$opal_check_package_opal_ofi_orig_LIBS" opal_ofi_happy=no fi CPPFLAGS="$opal_check_package_opal_ofi_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_ofi_save_LDFLAGS" LIBS="$opal_check_package_opal_ofi_save_LIBS" fi CPPFLAGS="$CPPFLAGS $opal_ofi_CPPFLAGS" if test $opal_ofi_happy = yes; then : for ac_header in rdma/fi_ext.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fi_ext.h" "ac_cv_header_rdma_fi_ext_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fi_ext_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FI_EXT_H 1 _ACEOF fi done ac_fn_c_check_member "$LINENO" "struct fi_info" "nic" "ac_cv_member_struct_fi_info_nic" "#include " if test "x$ac_cv_member_struct_fi_info_nic" = xyes; then : opal_check_fi_info_pci=1 else opal_check_fi_info_pci=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_OFI_PCI_DATA_AVAILABLE $opal_check_fi_info_pci _ACEOF ac_fn_c_check_decl "$LINENO" "PMIX_PACKAGE_RANK" "ac_cv_have_decl_PMIX_PACKAGE_RANK" "#include " if test "x$ac_cv_have_decl_PMIX_PACKAGE_RANK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PMIX_PACKAGE_RANK $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "struct fi_ops_mem_monitor" "ac_cv_type_struct_fi_ops_mem_monitor" "#ifdef HAVE_RDMA_FI_EXT_H #include #endif " if test "x$ac_cv_type_struct_fi_ops_mem_monitor" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_FI_OPS_MEM_MONITOR 1 _ACEOF fi fi CPPFLAGS=$opal_check_ofi_save_CPPFLAGS LDFLAGS=$opal_check_ofi_save_LDFLAGS LIBS=$opal_check_ofi_save_LIBS # 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 Transports | tr ' ' '_') ompi_summary_line="OpenFabrics OFI Libfabric: $opal_ofi_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 # 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_ofi_happy = no; then : if test -n "$with_ofi" && test "$with_ofi" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found." >&5 $as_echo "$as_me: WARNING: OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found." >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OFI libfabric is available" >&5 $as_echo_n "checking if OFI libfabric is available... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_ofi_happy" >&5 $as_echo "$opal_ofi_happy" >&6; } fi # Note that $opal_common_ofi_happy is # used in other configure.m4's to know if ofi configured # successfully. if test "$opal_ofi_happy" = "yes"; then : opal_common_ofi_happy=yes common_ofi_WRAPPER_EXTRA_LDFLAGS=$opal_ofi_LDFLAGS common_ofi_WRAPPER_EXTRA_LIBS=$opal_ofi_LIBS should_build=$should_build else opal_common_ofi_happy=no should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/common/ofi/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ofi" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ofi" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/ofi/lib${OPAL_LIB_PREFIX}mca_common_ofi.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/ofi/libmca_common_ofi.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_ofi_component;" >> $outfile.extern echo " &mca_common_ofi_component, " >> $outfile.struct static_components="$static_components ofi" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:ofi can compile" >&5 $as_echo_n "checking if MCA component common:ofi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "ofi" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component ofi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "ofi" ; then as_fn_error $? "*** common component ofi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$common_ofi_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $common_ofi_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $common_ofi_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$common_ofi_WRAPPER_EXTRA_LIBS" = ""; 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_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 $common_ofi_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $common_ofi_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$common_ofi_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $common_ofi_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_ofi_WRAPPER_EXTRA_CPPFLAGS ($common_ofi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring common_ofi_WRAPPER_EXTRA_CPPFLAGS ($common_ofi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:ofi can compile" >&5 $as_echo_n "checking if MCA component common:ofi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "ofi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ofi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ofi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "ofi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ofi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ofi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ofi" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_common_ofi_DSO=1 else BUILD_opal_common_ofi_DSO=0 fi if test "$BUILD_opal_common_ofi_DSO" = "1"; then MCA_BUILD_opal_common_ofi_DSO_TRUE= MCA_BUILD_opal_common_ofi_DSO_FALSE='#' else MCA_BUILD_opal_common_ofi_DSO_TRUE='#' MCA_BUILD_opal_common_ofi_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component common:sm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/common/sm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "sm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi if test "$DISABLE_common_sm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_common" SHARED_COMPONENT="$DSO_common_sm" STATIC_FRAMEWORK="$STATIC_common" STATIC_COMPONENT="$STATIC_common_sm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:sm compile mode" >&5 $as_echo_n "checking for MCA component common:sm compile mode... " >&6; } if test "$DIRECT_common" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/common/sm/Makefile" should_build=$should_build opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/common/sm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components sm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components sm" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/sm/lib${OPAL_LIB_PREFIX}mca_common_sm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/sm/libmca_common_sm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_sm_component;" >> $outfile.extern echo " &mca_common_sm_component, " >> $outfile.struct static_components="$static_components sm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:sm can compile" >&5 $as_echo_n "checking if MCA component common:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "sm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "sm" ; then as_fn_error $? "*** common component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$common_sm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $common_sm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $common_sm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$common_sm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $common_sm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $common_sm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$common_sm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $common_sm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_sm_WRAPPER_EXTRA_CPPFLAGS ($common_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring common_sm_WRAPPER_EXTRA_CPPFLAGS ($common_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:sm can compile" >&5 $as_echo_n "checking if MCA component common:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components sm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_common_sm_DSO=1 else BUILD_opal_common_sm_DSO=0 fi if test "$BUILD_opal_common_sm_DSO" = "1"; then MCA_BUILD_opal_common_sm_DSO_TRUE= MCA_BUILD_opal_common_sm_DSO_FALSE='#' else MCA_BUILD_opal_common_sm_DSO_TRUE='#' MCA_BUILD_opal_common_sm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component common:ucx (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/common/ucx" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "ucx" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi if test "$DISABLE_common_ucx" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_common" SHARED_COMPONENT="$DSO_common_ucx" STATIC_FRAMEWORK="$STATIC_common" STATIC_COMPONENT="$STATIC_common_ucx" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:ucx compile mode" >&5 $as_echo_n "checking for MCA component common:ucx compile mode... " >&6; } if test "$DIRECT_common" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/common/ucx/Makefile" common_ucx_happy="no" # 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_check_ucx_dir; 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_check_ucx_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test -z "$ompi_check_ucx_happy"; then : # Check whether --with-ucx was given. if test "${with_ucx+set}" = set; then : withval=$with_ucx; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx value" >&5 $as_echo_n "checking --with-ucx value... " >&6; } if test "$with_ucx" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx)" >&5 $as_echo "simple no (specified --without-ucx)" >&6; } else if test "$with_ucx" = "yes" || test "x$with_ucx" = "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_ucx"; 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_ucx not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx/include/ucp/api/ucp.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_ucx/include/ucp/api/ucp.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx/include/ucp/api/ucp.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx)" >&5 $as_echo "sanity check ok ($with_ucx)" >&6; } fi fi fi fi # Check whether --with-ucx-libdir was given. if test "${with_ucx_libdir+set}" = set; then : withval=$with_ucx_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx-libdir value" >&5 $as_echo_n "checking --with-ucx-libdir value... " >&6; } if test "$with_ucx_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx-libdir)" >&5 $as_echo "simple no (specified --without-ucx-libdir)" >&6; } else if test "$with_ucx_libdir" = "yes" || test "x$with_ucx_libdir" = "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_ucx_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ucx_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx_libdir/libucp.* 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_ucx_libdir/libucp.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx_libdir/libucp.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx_libdir)" >&5 $as_echo "sanity check ok ($with_ucx_libdir)" >&6; } fi fi fi fi if test "$with_ucx" != "no"; then : if test -n "$with_ucx" && test "$with_ucx" != "yes"; then : ompi_check_ucx_dir="$with_ucx" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucx" >&5 $as_echo_n "checking for ucx... " >&6; } if test -n "$ucx_CFLAGS"; then pkg_cv_ucx_CFLAGS="$ucx_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_CFLAGS=`$PKG_CONFIG --cflags "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_LIBS"; then pkg_cv_ucx_LIBS="$ucx_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_LIBS=`$PKG_CONFIG --libs "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_STATIC_LIBS"; then pkg_cv_ucx_STATIC_LIBS="$ucx_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_STATIC_LIBS=`$PKG_CONFIG --libs --static "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ucx_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ucx" 2>&1` else ucx_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ucx" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ucx_PKG_ERRORS" >&5 true elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } true else ucx_CFLAGS=$pkg_cv_ucx_CFLAGS ucx_LIBS=$pkg_cv_ucx_LIBS ucx_STATIC_LIBS=$pkg_cv_ucx_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_check_ucx_dir=`$PKG_CONFIG --variable=prefix ucx` if test "$ompi_check_ucx_dir" = "/usr"; then : ompi_check_ucx_dir= fi fi fi ompi_check_ucx_happy="no" if test -z "$ompi_check_ucx_dir"; then : opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo | 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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:97029: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:97036: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:97754: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:97761: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } fi if test "$ompi_check_ucx_happy" = "no"; then : ompi_check_ucx_dir=/opt/ucx fi fi if test "$ompi_check_ucx_happy" != yes; then : if test -n "$with_ucx_libdir"; then : ompi_check_ucx_libdir="$with_ucx_libdir" else files=`ls $ompi_check_ucx_dir/lib64/libucp.* 2> /dev/null | wc -l` if test "$files" -gt 0; then : ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib64 else ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib fi fi ompi_check_ucx_common_ucx_save_CPPFLAGS="$CPPFLAGS" ompi_check_ucx_common_ucx_save_LDFLAGS="$LDFLAGS" ompi_check_ucx_common_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ucx_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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:98660: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:98667: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:99385: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:99392: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" CPPFLAGS="$ompi_check_ucx_common_ucx_save_CPPFLAGS" LDFLAGS="$ompi_check_ucx_common_ucx_save_LDFLAGS" LIBS="$ompi_check_ucx_common_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } CPPFLAGS=$old_CPPFLAGS fi fi old_CPPFLAGS="$CPPFLAGS" if test -n "$ompi_check_ucx_dir"; then : CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" fi # Turn off UCX version v1.8 due to issue #8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCX version" >&5 $as_echo_n "checking UCX version... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if (UCP_API_MAJOR == 1) && (UCP_API_MINOR == 8) #error "Invalid version" #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (not 1.8.x)" >&5 $as_echo "ok (not 1.8.x)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad (1.8.x)" >&5 $as_echo "bad (1.8.x)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&5 $as_echo "$as_me: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please upgrade to UCX version 1.9 or higher." >&5 $as_echo "$as_me: WARNING: Please upgrade to UCX version 1.9 or higher." >&2;} ompi_check_ucx_happy=no fi rm -f conftest.err conftest.i conftest.$ac_ext if test "$ompi_check_ucx_happy" = yes; then : ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbr" "ac_cv_have_decl_ucp_tag_send_nbr" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbr" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBR $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_TAG_SEND_NBR 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nb" "ac_cv_have_decl_ucp_ep_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_worker_flush_nb" "ac_cv_have_decl_ucp_worker_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_worker_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_request_check_status" "ac_cv_have_decl_ucp_request_check_status" "#include " if test "x$ac_cv_have_decl_ucp_request_check_status" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_REQUEST_CHECK_STATUS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nb" "ac_cv_have_decl_ucp_put_nb" "#include " if test "x$ac_cv_have_decl_ucp_put_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nb" "ac_cv_have_decl_ucp_get_nb" "#include " if test "x$ac_cv_have_decl_ucp_get_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nbx" "ac_cv_have_decl_ucp_put_nbx" "#include " if test "x$ac_cv_have_decl_ucp_put_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nbx" "ac_cv_have_decl_ucp_get_nbx" "#include " if test "x$ac_cv_have_decl_ucp_get_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_atomic_op_nbx" "ac_cv_have_decl_ucp_atomic_op_nbx" "#include " if test "x$ac_cv_have_decl_ucp_atomic_op_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_OP_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nbx" "ac_cv_have_decl_ucp_ep_flush_nbx" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_events" "ac_cv_have_decl_ucm_test_events" "#include " if test "x$ac_cv_have_decl_ucm_test_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_external_events" "ac_cv_have_decl_ucm_test_external_events" "#include " if test "x$ac_cv_have_decl_ucm_test_external_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EXTERNAL_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_AND" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_AND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_OR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_OR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_XOR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_XOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FAND" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FAND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FXOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FXOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "#include " if test "x$ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_OP_ATTR_FLAG_MULTI_SEND" "ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" "#include " if test "x$ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_OP_ATTR_FLAG_MULTI_SEND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_WORKER_ADDRESS_FLAGS 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "UCP_ATTR_FIELD_MEMORY_TYPES" "ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" "#include " if test "x$ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATTR_FIELD_MEMORY_TYPES $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_ATTR_MEMORY_TYPES 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbx" "ac_cv_have_decl_ucp_tag_send_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_send_sync_nbx" "ac_cv_have_decl_ucp_tag_send_sync_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_sync_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_SYNC_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_recv_nbx" "ac_cv_have_decl_ucp_tag_recv_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_recv_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_RECV_NBX $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "ucp_request_param_t" "ac_cv_type_ucp_request_param_t" "#include " if test "x$ac_cv_type_ucp_request_param_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_REQUEST_PARAM_T 1 _ACEOF fi fi CPPFLAGS=$old_CPPFLAGS # 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 Transports | tr ' ' '_') ompi_summary_line="Open UCX: $ompi_check_ucx_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 fi fi if test "$ompi_check_ucx_happy" = "yes"; then : common_ucx_CPPFLAGS="$common_ucx_CPPFLAGS $ompi_check_ucx_CPPFLAGS" common_ucx_LDFLAGS="$common_ucx_LDFLAGS $ompi_check_ucx_LDFLAGS" common_ucx_LIBS="$common_ucx_LIBS $ompi_check_ucx_LIBS" $as_echo "#define HAVE_UCX 1" >>confdefs.h common_ucx_happy="yes" else if test ! -z "$with_ucx" && test "$with_ucx" != "no"; then : as_fn_error $? "UCX support requested but not found. Aborting" "$LINENO" 5 fi $as_echo "#define HAVE_UCX 0" >>confdefs.h common_ucx_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 ac_fn_c_check_decl "$LINENO" "open_memstream" "ac_cv_have_decl_open_memstream" "#include " if test "x$ac_cv_have_decl_open_memstream" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_OPEN_MEMSTREAM $ac_have_decl _ACEOF if test "$common_ucx_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build common_ucx opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/common/ucx/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ucx" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ucx" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/ucx/lib${OPAL_LIB_PREFIX}mca_common_ucx.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/ucx/libmca_common_ucx.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_ucx_component;" >> $outfile.extern echo " &mca_common_ucx_component, " >> $outfile.struct static_components="$static_components ucx" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:ucx can compile" >&5 $as_echo_n "checking if MCA component common:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "ucx" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "ucx" ; then as_fn_error $? "*** common component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$common_ucx_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $common_ucx_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $common_ucx_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$common_ucx_WRAPPER_EXTRA_LIBS" = ""; 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_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 $common_ucx_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $common_ucx_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$common_ucx_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $common_ucx_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_ucx_WRAPPER_EXTRA_CPPFLAGS ($common_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring common_ucx_WRAPPER_EXTRA_CPPFLAGS ($common_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:ucx can compile" >&5 $as_echo_n "checking if MCA component common:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ucx" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_common_ucx_DSO=1 else BUILD_opal_common_ucx_DSO=0 fi if test "$BUILD_opal_common_ucx_DSO" = "1"; then MCA_BUILD_opal_common_ucx_DSO_TRUE= MCA_BUILD_opal_common_ucx_DSO_FALSE='#' else MCA_BUILD_opal_common_ucx_DSO_TRUE='#' MCA_BUILD_opal_common_ucx_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component common:verbs (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/common/verbs" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "verbs" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi if test "$DISABLE_common_verbs" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_common" SHARED_COMPONENT="$DSO_common_verbs" STATIC_FRAMEWORK="$STATIC_common" STATIC_COMPONENT="$STATIC_common_verbs" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:verbs compile mode" >&5 $as_echo_n "checking for MCA component common:verbs compile mode... " >&6; } if test "$DIRECT_common" = "verbs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/common/verbs/Makefile" common_verbs_happy="no" # 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 common_verbs_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=\"common_verbs_msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Setup the --with switches to allow users to specify where # verbs stuff lives. if test -z "$opal_check_openib_happy" ; then # # Add padding to OpenIB header # # Check whether --enable-openib-control-hdr-padding was given. if test "${enable_openib_control_hdr_padding+set}" = set; then : enableval=$enable_openib_control_hdr_padding; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to add padding to the openib BTL control header" >&5 $as_echo_n "checking if want to add padding to the openib BTL control header... " >&6; } if test "$enable_openib_control_hdr_padding" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_openib_pad_hdr=1 elif test "$enable_openib_control_hdr_padding" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ompi_openib_pad_hdr=0 else # # Enable padding for SPARC platforms by default because the # btl will segv otherwise. Keep padding disabled for other # platforms since there are some performance implications with # padding on for those platforms. # case "${host}" in sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (enabled by default on SPARC)" >&5 $as_echo "yes (enabled by default on SPARC)" >&6; } ompi_openib_pad_hdr=1 ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ompi_openib_pad_hdr=0 ;; esac fi cat >>confdefs.h <<_ACEOF #define OPAL_OPENIB_PAD_HDR $ompi_openib_pad_hdr _ACEOF if test "$opal_want_verbs" = "no"; then : opal_check_openib_happy="no" else opal_check_openib_happy="yes" fi ompi_check_openib_common_verbs_save_CPPFLAGS="$CPPFLAGS" ompi_check_openib_common_verbs_save_LDFLAGS="$LDFLAGS" ompi_check_openib_common_verbs_save_LIBS="$LIBS" if test "$opal_check_openib_happy" = "yes"; then : for ac_header in fcntl.h sys/poll.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&5 $as_echo "$as_me: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&2;} opal_check_openib_happy="no" fi done fi if test "$opal_check_openib_happy" = "yes"; then : opal_check_package_opal_check_openib_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_check_openib_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_check_openib_save_LIBS="$LIBS" opal_check_package_opal_check_openib_orig_CPPFLAGS="$opal_check_openib_CPPFLAGS" opal_check_package_opal_check_openib_orig_LDFLAGS="$opal_check_openib_LDFLAGS" opal_check_package_opal_check_openib_orig_LIBS="$opal_check_openib_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_infiniband_verbs_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_verbs_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 infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_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_infiniband_verbs_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_check_openib_CPPFLAGS="$opal_check_openib_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_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_ibv_open_device opal_check_package_lib_happy="no" if test "$opal_verbs_libdir" != ""; then : # libdir was specified - search only there opal_check_openib_LDFLAGS="$opal_check_openib_LDFLAGS -L$opal_verbs_libdir" LDFLAGS="$LDFLAGS -L$opal_verbs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_verbs_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device 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 libibverbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libibverbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ibv_open_device (void); int main(int argc, char *argv[]) { ibv_open_device (); 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:101560: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_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:101567: \$? = $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 ibverbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ibverbs" >&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, libibverbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&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 ibverbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ibverbs" # 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 libibverbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ibverbs" # 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_ibv_open_device" != "no" && test "$ac_cv_search_ibv_open_device" != "none required"; then : opal_check_openib_LIBS="$ac_cv_search_ibv_open_device " else opal_check_openib_LIBS="" 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_ibv_open_device opal_check_package_lib_happy="no" if test "$opal_verbs_libdir" != ""; then : # libdir was specified - search only there opal_check_openib_LDFLAGS="$opal_check_openib_LDFLAGS -L$opal_verbs_libdir" LDFLAGS="$LDFLAGS -L$opal_verbs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_verbs_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device 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 libibverbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libibverbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ibv_open_device (void); int main(int argc, char *argv[]) { ibv_open_device (); 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:102285: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_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:102292: \$? = $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 ibverbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ibverbs" >&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, libibverbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&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 ibverbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ibverbs" # 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 libibverbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ibverbs" # 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_ibv_open_device" != "no" && test "$ac_cv_search_ibv_open_device" != "none required"; then : opal_check_openib_LIBS="$ac_cv_search_ibv_open_device " else opal_check_openib_LIBS="" 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_check_openib_happy="yes" else opal_check_openib_CPPFLAGS="$opal_check_package_opal_check_openib_orig_CPPFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" opal_check_openib_LIBS="$opal_check_package_opal_check_openib_orig_LIBS" opal_check_openib_happy="no" fi CPPFLAGS="$opal_check_package_opal_check_openib_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_check_openib_save_LDFLAGS" LIBS="$opal_check_package_opal_check_openib_save_LIBS" fi CPPFLAGS="$CPPFLAGS $opal_check_openib_CPPFLAGS" LDFLAGS="$LDFLAGS $opal_check_openib_LDFLAGS" LIBS="$LIBS $opal_check_openib_LIBS" if test "$opal_check_openib_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to ibv_create_cq" >&5 $as_echo_n "checking number of arguments to ibv_create_cq... " >&6; } if ${ompi_cv_func_ibv_create_cq_args+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ibv_create_cq(NULL, 0, NULL, NULL, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ompi_cv_func_ibv_create_cq_args=5 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ibv_create_cq(NULL, 0, NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ompi_cv_func_ibv_create_cq_args=3 else ompi_cv_func_ibv_create_cq_args="unknown" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_ibv_create_cq_args" >&5 $as_echo "$ompi_cv_func_ibv_create_cq_args" >&6; } if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not determine number of args to ibv_create_cq." >&5 $as_echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building component." >&5 $as_echo "$as_me: WARNING: Not building component." >&2;} opal_check_openib_happy="no" else cat >>confdefs.h <<_ACEOF #define OPAL_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args _ACEOF fi fi # # OpenIB dynamic SL # # Check whether --enable-openib-dynamic-sl was given. if test "${enable_openib_dynamic_sl+set}" = set; then : enableval=$enable_openib_dynamic_sl; fi # Set these up so that we can do an AC_DEFINE below # (unconditionally) opal_check_openib_have_xrc=0 opal_check_openib_have_xrc_domains=0 opal_check_openib_have_opensm_devel=0 # If we have the openib stuff available, find out what we've got if test "$opal_check_openib_happy" = "yes"; then : ac_fn_c_check_decl "$LINENO" "IBV_EVENT_CLIENT_REREGISTER" "ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" "#include " if test "x$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_ACCESS_SO" "ac_cv_have_decl_IBV_ACCESS_SO" "#include " if test "x$ac_cv_have_decl_IBV_ACCESS_SO" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ACCESS_SO $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_ATOMIC_HCA" "ac_cv_have_decl_IBV_ATOMIC_HCA" "#include " if test "x$ac_cv_have_decl_IBV_ATOMIC_HCA" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ATOMIC_HCA $ac_have_decl _ACEOF for ac_func in ibv_get_device_list ibv_resize_cq do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # struct ibv_device.transport_type was added in OFED v1.2 ac_fn_c_check_member "$LINENO" "struct ibv_device" "transport_type" "ac_cv_member_struct_ibv_device_transport_type" "#include " if test "x$ac_cv_member_struct_ibv_device_transport_type" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1 _ACEOF fi # We have to check functions both exits *and* are declared # since some distro ship broken ibverbs devel headers # IBV_DEVICE_XRC is common to all OFED versions # ibv_create_xrc_rcv_qp was added in OFED 1.3 # ibv_cmd_open_xrcd (aka XRC Domains) was added in OFED 3.12 if test "$enable_connectx_xrc" = "yes"; then ac_fn_c_check_decl "$LINENO" "IBV_DEVICE_XRC" "ac_cv_have_decl_IBV_DEVICE_XRC" "#include " if test "x$ac_cv_have_decl_IBV_DEVICE_XRC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_DEVICE_XRC $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : opal_check_openib_have_xrc=1 opal_check_openib_have_xrc_domains=1 fi fi if test "$enable_connectx_xrc" = "yes" \ && test $opal_check_openib_have_xrc -eq 1; then ac_fn_c_check_decl "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_have_decl_ibv_create_xrc_rcv_qp" "#include " if test "x$ac_cv_have_decl_ibv_create_xrc_rcv_qp" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_CREATE_XRC_RCV_QP $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : for ac_func in ibv_create_xrc_rcv_qp do : ac_fn_c_check_func "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_func_ibv_create_xrc_rcv_qp" if test "x$ac_cv_func_ibv_create_xrc_rcv_qp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IBV_CREATE_XRC_RCV_QP 1 _ACEOF else opal_check_openib_have_xrc=0 fi done else opal_check_openib_have_xrc=0 fi fi if test "$enable_connectx_xrc" = "yes" \ && test $opal_check_openib_have_xrc_domains -eq 1; then ac_fn_c_check_decl "$LINENO" "ibv_cmd_open_xrcd" "ac_cv_have_decl_ibv_cmd_open_xrcd" "#include " if test "x$ac_cv_have_decl_ibv_cmd_open_xrcd" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_CMD_OPEN_XRCD $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : ac_fn_c_check_decl "$LINENO" "IBV_SRQT_XRC" "ac_cv_have_decl_IBV_SRQT_XRC" "#include " if test "x$ac_cv_have_decl_IBV_SRQT_XRC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_SRQT_XRC $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : for ac_func in ibv_cmd_open_xrcd do : ac_fn_c_check_func "$LINENO" "ibv_cmd_open_xrcd" "ac_cv_func_ibv_cmd_open_xrcd" if test "x$ac_cv_func_ibv_cmd_open_xrcd" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IBV_CMD_OPEN_XRCD 1 _ACEOF else opal_check_openib_have_xrc_domains=0 fi done else opal_check_openib_have_xrc_domains=0 fi else opal_check_openib_have_xrc_domains=0 fi # XRC and XRC Domains should be considered as exclusive if test "$opal_check_openib_have_xrc" -eq 1 && \ test "$opal_check_openib_have_xrc_domains" -eq 1; then opal_check_openib_have_xrc=0 fi fi if test "no" != "$enable_openib_dynamic_sl"; then # We need ib_types.h file, which is installed with opensm-devel # package. However, ib_types.h has a bad include directive, # which will cause AC_CHECK_HEADER to fail. # So instead, we will look for another file that is also # installed as part of opensm-devel package and included in # ib_types.h, but it doesn't include any other IB-related files. ac_fn_c_check_header_mongrel "$LINENO" "infiniband/complib/cl_types_osd.h" "ac_cv_header_infiniband_complib_cl_types_osd_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_complib_cl_types_osd_h" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cl_map_init in -losmcomp" >&5 $as_echo_n "checking for cl_map_init in -losmcomp... " >&6; } if ${ac_cv_lib_osmcomp_cl_map_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-losmcomp $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 cl_map_init (); int main () { return cl_map_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_osmcomp_cl_map_init=yes else ac_cv_lib_osmcomp_cl_map_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_osmcomp_cl_map_init" >&5 $as_echo "$ac_cv_lib_osmcomp_cl_map_init" >&6; } if test "x$ac_cv_lib_osmcomp_cl_map_init" = xyes; then : opal_check_openib_have_opensm_devel=1 fi fi # Abort if dynamic SL support was explicitly requested but opensm-devel # package wasn't found. Otherwise, OMPI will be built w/o dynamic SL. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if can use dynamic SL support" >&5 $as_echo_n "checking if can use dynamic SL support... " >&6; } if test "$opal_check_openib_have_opensm_devel" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$enable_openib_dynamic_sl" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-openib-dynamic-sl was specified but the" >&5 $as_echo "$as_me: WARNING: --enable-openib-dynamic-sl was specified but the" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: appropriate header/library files could not be found" >&5 $as_echo "$as_me: WARNING: appropriate header/library files could not be found" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please install opensm-devel if you need dynamic SL support" >&5 $as_echo "$as_me: WARNING: Please install opensm-devel if you need dynamic SL support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi # Check support for RDMAoE devices common_verbs_have_rdmaoe=0 ac_fn_c_check_decl "$LINENO" "IBV_LINK_LAYER_ETHERNET" "ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" "#include " if test "x$ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_LINK_LAYER_ETHERNET $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : common_verbs_have_rdmaoe=1 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RDMAoE support is enabled" >&5 $as_echo_n "checking if RDMAoE support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_RDMAOE $common_verbs_have_rdmaoe _ACEOF if test "1" = "$common_verbs_have_rdmaoe"; 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 # Check to see if works. It is known to # create problems on some platforms with some compilers (e.g., # RHEL4U3 with the PGI 32 bit compiler). Use undocumented (in AC # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test # will fail if the header is present but not compilable, *but it # will not print the big scary warning*. See # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html. if test "$opal_check_openib_happy" = "yes"; then : for ac_header in infiniband/driver.h do : ac_fn_c_check_header_compile "$LINENO" "infiniband/driver.h" "ac_cv_header_infiniband_driver_h" "$ac_includes_default " if test "x$ac_cv_header_infiniband_driver_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_DRIVER_H 1 _ACEOF fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectX XRC support is enabled" >&5 $as_echo_n "checking if ConnectX XRC support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CONNECTX_XRC $opal_check_openib_have_xrc _ACEOF if test "1" = "$opal_check_openib_have_xrc"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectIB XRC support is enabled" >&5 $as_echo_n "checking if ConnectIB XRC support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CONNECTX_XRC_DOMAINS $opal_check_openib_have_xrc_domains _ACEOF if test "1" = "$opal_check_openib_have_xrc_domains"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic SL is enabled" >&5 $as_echo_n "checking if dynamic SL is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ENABLE_DYNAMIC_SL $opal_check_openib_have_opensm_devel _ACEOF if test "1" = "$opal_check_openib_have_opensm_devel"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } common_verbs_LIBS="-losmcomp $common_verbs_LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$opal_verbs_dir"; then : openib_include_dir="/usr/include" else openib_include_dir="$opal_verbs_dir/include" fi opal_check_openib_CPPFLAGS="$opal_check_openib_CPPFLAGS -I$openib_include_dir/infiniband" CPPFLAGS="$ompi_check_openib_common_verbs_save_CPPFLAGS" LDFLAGS="$ompi_check_openib_common_verbs_save_LDFLAGS" LIBS="$ompi_check_openib_common_verbs_save_LIBS" # 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 Transports | tr ' ' '_') ompi_summary_line="OpenFabrics Verbs: $opal_check_openib_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 # 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 common_verbs_have_xrc=$opal_check_openib_have_xrc common_verbs_have_xrc_domains=$opal_check_openib_have_xrc_domains common_verbs_have_opensm_devel=$opal_check_openib_have_opensm_devel if test "$opal_check_openib_happy" = "yes"; then : common_verbs_CPPFLAGS="$common_verbs_CPPFLAGS $opal_check_openib_CPPFLAGS" common_verbs_LDFLAGS="$common_verbs_LDFLAGS $opal_check_openib_LDFLAGS" common_verbs_LIBS="$common_verbs_LIBS $opal_check_openib_LIBS" common_verbs_happy="yes" else if test "$opal_want_verbs" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Verbs support requested (via --with-verbs) but not found." >&5 $as_echo "$as_me: WARNING: Verbs support requested (via --with-verbs) but not found." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&5 $as_echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&2;} as_fn_error $? "Aborting." "$LINENO" 5 fi fi if test "$common_verbs_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build openib opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/common/verbs/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components verbs" if test "$compile_mode" = "dso" ; then dso_components="$dso_components verbs" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/verbs/lib${OPAL_LIB_PREFIX}mca_common_verbs.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/verbs/libmca_common_verbs.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_verbs_component;" >> $outfile.extern echo " &mca_common_verbs_component, " >> $outfile.struct static_components="$static_components verbs" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:verbs can compile" >&5 $as_echo_n "checking if MCA component common:verbs can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "verbs" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component verbs was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "verbs" ; then as_fn_error $? "*** common component verbs was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$common_verbs_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $common_verbs_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $common_verbs_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$common_verbs_WRAPPER_EXTRA_LIBS" = ""; 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_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 $common_verbs_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $common_verbs_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$common_verbs_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $common_verbs_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_verbs_WRAPPER_EXTRA_CPPFLAGS ($common_verbs_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring common_verbs_WRAPPER_EXTRA_CPPFLAGS ($common_verbs_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:verbs can compile" >&5 $as_echo_n "checking if MCA component common:verbs can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "verbs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"verbs\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"verbs\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "verbs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"verbs\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"verbs\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components verbs" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_common_verbs_DSO=1 else BUILD_opal_common_verbs_DSO=0 fi if test "$BUILD_opal_common_verbs_DSO" = "1"; then MCA_BUILD_opal_common_verbs_DSO_TRUE= MCA_BUILD_opal_common_verbs_DSO_FALSE='#' else MCA_BUILD_opal_common_verbs_DSO_TRUE='#' MCA_BUILD_opal_common_verbs_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component common:verbs_usnic (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/common/verbs_usnic" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "verbs_usnic" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi if test "$DISABLE_common_verbs_usnic" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:verbs_usnic compile mode" >&5 $as_echo_n "checking for MCA component common:verbs_usnic compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/common/verbs_usnic/Makefile" common_verbs_usnic_happy=0 # Check whether --with-verbs-usnic was given. if test "${with_verbs_usnic+set}" = set; then : withval=$with_verbs_usnic; fi if test "$with_verbs_usnic" = "yes"; then : common_verbs_usnic_happy=1 fi if test $common_verbs_usnic_happy -eq 1; 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 common_verbs_usnic_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=\"common_verbs_usnic_msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Setup the --with switches to allow users to specify where # verbs stuff lives. if test -z "$opal_check_openib_happy" ; then # # Add padding to OpenIB header # # Check whether --enable-openib-control-hdr-padding was given. if test "${enable_openib_control_hdr_padding+set}" = set; then : enableval=$enable_openib_control_hdr_padding; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to add padding to the openib BTL control header" >&5 $as_echo_n "checking if want to add padding to the openib BTL control header... " >&6; } if test "$enable_openib_control_hdr_padding" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_openib_pad_hdr=1 elif test "$enable_openib_control_hdr_padding" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ompi_openib_pad_hdr=0 else # # Enable padding for SPARC platforms by default because the # btl will segv otherwise. Keep padding disabled for other # platforms since there are some performance implications with # padding on for those platforms. # case "${host}" in sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (enabled by default on SPARC)" >&5 $as_echo "yes (enabled by default on SPARC)" >&6; } ompi_openib_pad_hdr=1 ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ompi_openib_pad_hdr=0 ;; esac fi cat >>confdefs.h <<_ACEOF #define OPAL_OPENIB_PAD_HDR $ompi_openib_pad_hdr _ACEOF if test "$opal_want_verbs" = "no"; then : opal_check_openib_happy="no" else opal_check_openib_happy="yes" fi ompi_check_openib_common_verbs_usnic_save_CPPFLAGS="$CPPFLAGS" ompi_check_openib_common_verbs_usnic_save_LDFLAGS="$LDFLAGS" ompi_check_openib_common_verbs_usnic_save_LIBS="$LIBS" if test "$opal_check_openib_happy" = "yes"; then : for ac_header in fcntl.h sys/poll.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&5 $as_echo "$as_me: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&2;} opal_check_openib_happy="no" fi done fi if test "$opal_check_openib_happy" = "yes"; then : opal_check_package_opal_check_openib_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_check_openib_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_check_openib_save_LIBS="$LIBS" opal_check_package_opal_check_openib_orig_CPPFLAGS="$opal_check_openib_CPPFLAGS" opal_check_package_opal_check_openib_orig_LDFLAGS="$opal_check_openib_LDFLAGS" opal_check_package_opal_check_openib_orig_LIBS="$opal_check_openib_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_infiniband_verbs_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_verbs_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 infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_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_infiniband_verbs_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_check_openib_CPPFLAGS="$opal_check_openib_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_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_ibv_open_device opal_check_package_lib_happy="no" if test "$opal_verbs_libdir" != ""; then : # libdir was specified - search only there opal_check_openib_LDFLAGS="$opal_check_openib_LDFLAGS -L$opal_verbs_libdir" LDFLAGS="$LDFLAGS -L$opal_verbs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_verbs_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device 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 libibverbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libibverbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ibv_open_device (void); int main(int argc, char *argv[]) { ibv_open_device (); 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:104484: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_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:104491: \$? = $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 ibverbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ibverbs" >&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, libibverbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&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 ibverbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ibverbs" # 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 libibverbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ibverbs" # 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_ibv_open_device" != "no" && test "$ac_cv_search_ibv_open_device" != "none required"; then : opal_check_openib_LIBS="$ac_cv_search_ibv_open_device " else opal_check_openib_LIBS="" 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_ibv_open_device opal_check_package_lib_happy="no" if test "$opal_verbs_libdir" != ""; then : # libdir was specified - search only there opal_check_openib_LDFLAGS="$opal_check_openib_LDFLAGS -L$opal_verbs_libdir" LDFLAGS="$LDFLAGS -L$opal_verbs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_verbs_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device 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 libibverbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libibverbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ibv_open_device (void); int main(int argc, char *argv[]) { ibv_open_device (); 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:105209: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_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:105216: \$? = $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 ibverbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ibverbs" >&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, libibverbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&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 ibverbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ibverbs" # 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 libibverbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ibverbs" # 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_ibv_open_device" != "no" && test "$ac_cv_search_ibv_open_device" != "none required"; then : opal_check_openib_LIBS="$ac_cv_search_ibv_open_device " else opal_check_openib_LIBS="" 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_check_openib_happy="yes" else opal_check_openib_CPPFLAGS="$opal_check_package_opal_check_openib_orig_CPPFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" opal_check_openib_LIBS="$opal_check_package_opal_check_openib_orig_LIBS" opal_check_openib_happy="no" fi CPPFLAGS="$opal_check_package_opal_check_openib_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_check_openib_save_LDFLAGS" LIBS="$opal_check_package_opal_check_openib_save_LIBS" fi CPPFLAGS="$CPPFLAGS $opal_check_openib_CPPFLAGS" LDFLAGS="$LDFLAGS $opal_check_openib_LDFLAGS" LIBS="$LIBS $opal_check_openib_LIBS" if test "$opal_check_openib_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to ibv_create_cq" >&5 $as_echo_n "checking number of arguments to ibv_create_cq... " >&6; } if ${ompi_cv_func_ibv_create_cq_args+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ibv_create_cq(NULL, 0, NULL, NULL, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ompi_cv_func_ibv_create_cq_args=5 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ibv_create_cq(NULL, 0, NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ompi_cv_func_ibv_create_cq_args=3 else ompi_cv_func_ibv_create_cq_args="unknown" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_ibv_create_cq_args" >&5 $as_echo "$ompi_cv_func_ibv_create_cq_args" >&6; } if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not determine number of args to ibv_create_cq." >&5 $as_echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building component." >&5 $as_echo "$as_me: WARNING: Not building component." >&2;} opal_check_openib_happy="no" else cat >>confdefs.h <<_ACEOF #define OPAL_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args _ACEOF fi fi # # OpenIB dynamic SL # # Check whether --enable-openib-dynamic-sl was given. if test "${enable_openib_dynamic_sl+set}" = set; then : enableval=$enable_openib_dynamic_sl; fi # Set these up so that we can do an AC_DEFINE below # (unconditionally) opal_check_openib_have_xrc=0 opal_check_openib_have_xrc_domains=0 opal_check_openib_have_opensm_devel=0 # If we have the openib stuff available, find out what we've got if test "$opal_check_openib_happy" = "yes"; then : ac_fn_c_check_decl "$LINENO" "IBV_EVENT_CLIENT_REREGISTER" "ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" "#include " if test "x$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_ACCESS_SO" "ac_cv_have_decl_IBV_ACCESS_SO" "#include " if test "x$ac_cv_have_decl_IBV_ACCESS_SO" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ACCESS_SO $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_ATOMIC_HCA" "ac_cv_have_decl_IBV_ATOMIC_HCA" "#include " if test "x$ac_cv_have_decl_IBV_ATOMIC_HCA" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ATOMIC_HCA $ac_have_decl _ACEOF for ac_func in ibv_get_device_list ibv_resize_cq do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # struct ibv_device.transport_type was added in OFED v1.2 ac_fn_c_check_member "$LINENO" "struct ibv_device" "transport_type" "ac_cv_member_struct_ibv_device_transport_type" "#include " if test "x$ac_cv_member_struct_ibv_device_transport_type" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1 _ACEOF fi # We have to check functions both exits *and* are declared # since some distro ship broken ibverbs devel headers # IBV_DEVICE_XRC is common to all OFED versions # ibv_create_xrc_rcv_qp was added in OFED 1.3 # ibv_cmd_open_xrcd (aka XRC Domains) was added in OFED 3.12 if test "$enable_connectx_xrc" = "yes"; then ac_fn_c_check_decl "$LINENO" "IBV_DEVICE_XRC" "ac_cv_have_decl_IBV_DEVICE_XRC" "#include " if test "x$ac_cv_have_decl_IBV_DEVICE_XRC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_DEVICE_XRC $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : opal_check_openib_have_xrc=1 opal_check_openib_have_xrc_domains=1 fi fi if test "$enable_connectx_xrc" = "yes" \ && test $opal_check_openib_have_xrc -eq 1; then ac_fn_c_check_decl "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_have_decl_ibv_create_xrc_rcv_qp" "#include " if test "x$ac_cv_have_decl_ibv_create_xrc_rcv_qp" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_CREATE_XRC_RCV_QP $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : for ac_func in ibv_create_xrc_rcv_qp do : ac_fn_c_check_func "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_func_ibv_create_xrc_rcv_qp" if test "x$ac_cv_func_ibv_create_xrc_rcv_qp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IBV_CREATE_XRC_RCV_QP 1 _ACEOF else opal_check_openib_have_xrc=0 fi done else opal_check_openib_have_xrc=0 fi fi if test "$enable_connectx_xrc" = "yes" \ && test $opal_check_openib_have_xrc_domains -eq 1; then ac_fn_c_check_decl "$LINENO" "ibv_cmd_open_xrcd" "ac_cv_have_decl_ibv_cmd_open_xrcd" "#include " if test "x$ac_cv_have_decl_ibv_cmd_open_xrcd" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_CMD_OPEN_XRCD $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : ac_fn_c_check_decl "$LINENO" "IBV_SRQT_XRC" "ac_cv_have_decl_IBV_SRQT_XRC" "#include " if test "x$ac_cv_have_decl_IBV_SRQT_XRC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_SRQT_XRC $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : for ac_func in ibv_cmd_open_xrcd do : ac_fn_c_check_func "$LINENO" "ibv_cmd_open_xrcd" "ac_cv_func_ibv_cmd_open_xrcd" if test "x$ac_cv_func_ibv_cmd_open_xrcd" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IBV_CMD_OPEN_XRCD 1 _ACEOF else opal_check_openib_have_xrc_domains=0 fi done else opal_check_openib_have_xrc_domains=0 fi else opal_check_openib_have_xrc_domains=0 fi # XRC and XRC Domains should be considered as exclusive if test "$opal_check_openib_have_xrc" -eq 1 && \ test "$opal_check_openib_have_xrc_domains" -eq 1; then opal_check_openib_have_xrc=0 fi fi if test "no" != "$enable_openib_dynamic_sl"; then # We need ib_types.h file, which is installed with opensm-devel # package. However, ib_types.h has a bad include directive, # which will cause AC_CHECK_HEADER to fail. # So instead, we will look for another file that is also # installed as part of opensm-devel package and included in # ib_types.h, but it doesn't include any other IB-related files. ac_fn_c_check_header_mongrel "$LINENO" "infiniband/complib/cl_types_osd.h" "ac_cv_header_infiniband_complib_cl_types_osd_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_complib_cl_types_osd_h" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cl_map_init in -losmcomp" >&5 $as_echo_n "checking for cl_map_init in -losmcomp... " >&6; } if ${ac_cv_lib_osmcomp_cl_map_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-losmcomp $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 cl_map_init (); int main () { return cl_map_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_osmcomp_cl_map_init=yes else ac_cv_lib_osmcomp_cl_map_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_osmcomp_cl_map_init" >&5 $as_echo "$ac_cv_lib_osmcomp_cl_map_init" >&6; } if test "x$ac_cv_lib_osmcomp_cl_map_init" = xyes; then : opal_check_openib_have_opensm_devel=1 fi fi # Abort if dynamic SL support was explicitly requested but opensm-devel # package wasn't found. Otherwise, OMPI will be built w/o dynamic SL. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if can use dynamic SL support" >&5 $as_echo_n "checking if can use dynamic SL support... " >&6; } if test "$opal_check_openib_have_opensm_devel" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$enable_openib_dynamic_sl" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-openib-dynamic-sl was specified but the" >&5 $as_echo "$as_me: WARNING: --enable-openib-dynamic-sl was specified but the" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: appropriate header/library files could not be found" >&5 $as_echo "$as_me: WARNING: appropriate header/library files could not be found" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please install opensm-devel if you need dynamic SL support" >&5 $as_echo "$as_me: WARNING: Please install opensm-devel if you need dynamic SL support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi # Check support for RDMAoE devices common_verbs_usnic_have_rdmaoe=0 ac_fn_c_check_decl "$LINENO" "IBV_LINK_LAYER_ETHERNET" "ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" "#include " if test "x$ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_LINK_LAYER_ETHERNET $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : common_verbs_usnic_have_rdmaoe=1 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RDMAoE support is enabled" >&5 $as_echo_n "checking if RDMAoE support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_RDMAOE $common_verbs_usnic_have_rdmaoe _ACEOF if test "1" = "$common_verbs_usnic_have_rdmaoe"; 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 # Check to see if works. It is known to # create problems on some platforms with some compilers (e.g., # RHEL4U3 with the PGI 32 bit compiler). Use undocumented (in AC # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test # will fail if the header is present but not compilable, *but it # will not print the big scary warning*. See # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html. if test "$opal_check_openib_happy" = "yes"; then : for ac_header in infiniband/driver.h do : ac_fn_c_check_header_compile "$LINENO" "infiniband/driver.h" "ac_cv_header_infiniband_driver_h" "$ac_includes_default " if test "x$ac_cv_header_infiniband_driver_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_DRIVER_H 1 _ACEOF fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectX XRC support is enabled" >&5 $as_echo_n "checking if ConnectX XRC support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CONNECTX_XRC $opal_check_openib_have_xrc _ACEOF if test "1" = "$opal_check_openib_have_xrc"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectIB XRC support is enabled" >&5 $as_echo_n "checking if ConnectIB XRC support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CONNECTX_XRC_DOMAINS $opal_check_openib_have_xrc_domains _ACEOF if test "1" = "$opal_check_openib_have_xrc_domains"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic SL is enabled" >&5 $as_echo_n "checking if dynamic SL is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ENABLE_DYNAMIC_SL $opal_check_openib_have_opensm_devel _ACEOF if test "1" = "$opal_check_openib_have_opensm_devel"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } common_verbs_usnic_LIBS="-losmcomp $common_verbs_usnic_LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$opal_verbs_dir"; then : openib_include_dir="/usr/include" else openib_include_dir="$opal_verbs_dir/include" fi opal_check_openib_CPPFLAGS="$opal_check_openib_CPPFLAGS -I$openib_include_dir/infiniband" CPPFLAGS="$ompi_check_openib_common_verbs_usnic_save_CPPFLAGS" LDFLAGS="$ompi_check_openib_common_verbs_usnic_save_LDFLAGS" LIBS="$ompi_check_openib_common_verbs_usnic_save_LIBS" # 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 Transports | tr ' ' '_') ompi_summary_line="OpenFabrics Verbs: $opal_check_openib_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 # 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 common_verbs_usnic_have_xrc=$opal_check_openib_have_xrc common_verbs_usnic_have_xrc_domains=$opal_check_openib_have_xrc_domains common_verbs_usnic_have_opensm_devel=$opal_check_openib_have_opensm_devel if test "$opal_check_openib_happy" = "yes"; then : common_verbs_usnic_CPPFLAGS="$common_verbs_usnic_CPPFLAGS $opal_check_openib_CPPFLAGS" common_verbs_usnic_LDFLAGS="$common_verbs_usnic_LDFLAGS $opal_check_openib_LDFLAGS" common_verbs_usnic_LIBS="$common_verbs_usnic_LIBS $opal_check_openib_LIBS" common_verbs_usnic_happy=1 else if test "$opal_want_verbs" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Verbs support requested (via --with-verbs) but not found." >&5 $as_echo "$as_me: WARNING: Verbs support requested (via --with-verbs) but not found." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&5 $as_echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&2;} as_fn_error $? "Aborting." "$LINENO" 5 fi common_verbs_usnic_happy=0 fi fi if test $common_verbs_usnic_happy -eq 1; then : ac_fn_c_check_member "$LINENO" "struct ibv_device" "ops" "ac_cv_member_struct_ibv_device_ops" "#include " if test "x$ac_cv_member_struct_ibv_device_ops" = xyes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-verbs-usnic specified, but the verbs.h does not" >&5 $as_echo "$as_me: WARNING: --with-verbs-usnic specified, but the verbs.h does not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: have the required member fields. It is highly likely" >&5 $as_echo "$as_me: WARNING: have the required member fields. It is highly likely" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: that you do not need --with-verbs-usnic. Try configuring" >&5 $as_echo "$as_me: WARNING: that you do not need --with-verbs-usnic. Try configuring" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: and building Open MPI without it; if you get warnings" >&5 $as_echo "$as_me: WARNING: and building Open MPI without it; if you get warnings" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: about usnic IB devices anyway, please let us know." >&5 $as_echo "$as_me: WARNING: about usnic IB devices anyway, please let us know." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Since you asked for --with-verbs-usnic and we cannot" >&5 $as_echo "$as_me: WARNING: Since you asked for --with-verbs-usnic and we cannot" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: deliver it, configure will now abort." >&5 $as_echo "$as_me: WARNING: deliver it, configure will now abort." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi cat >>confdefs.h <<_ACEOF #define OPAL_COMMON_VERBS_USNIC_HAPPY $common_verbs_usnic_happy _ACEOF if test $common_verbs_usnic_happy -eq 1; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build openib opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/common/verbs_usnic/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components verbs_usnic" if test "$compile_mode" = "dso" ; then dso_components="$dso_components verbs_usnic" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/verbs_usnic/lib${OPAL_LIB_PREFIX}mca_common_verbs_usnic.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/verbs_usnic/libmca_common_verbs_usnic.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_verbs_usnic_component;" >> $outfile.extern echo " &mca_common_verbs_usnic_component, " >> $outfile.struct static_components="$static_components verbs_usnic" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:verbs_usnic can compile" >&5 $as_echo_n "checking if MCA component common:verbs_usnic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "verbs_usnic" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component verbs_usnic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "verbs_usnic" ; then as_fn_error $? "*** common component verbs_usnic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$common_verbs_usnic_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $common_verbs_usnic_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $common_verbs_usnic_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$common_verbs_usnic_WRAPPER_EXTRA_LIBS" = ""; 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_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 $common_verbs_usnic_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $common_verbs_usnic_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$common_verbs_usnic_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $common_verbs_usnic_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_verbs_usnic_WRAPPER_EXTRA_CPPFLAGS ($common_verbs_usnic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring common_verbs_usnic_WRAPPER_EXTRA_CPPFLAGS ($common_verbs_usnic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:verbs_usnic can compile" >&5 $as_echo_n "checking if MCA component common:verbs_usnic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "verbs_usnic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"verbs_usnic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"verbs_usnic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "verbs_usnic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"verbs_usnic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"verbs_usnic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components verbs_usnic" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_common_verbs_usnic_DSO=1 else BUILD_opal_common_verbs_usnic_DSO=0 fi if test "$BUILD_opal_common_verbs_usnic_DSO" = "1"; then MCA_BUILD_opal_common_verbs_usnic_DSO_TRUE= MCA_BUILD_opal_common_verbs_usnic_DSO_FALSE='#' else MCA_BUILD_opal_common_verbs_usnic_DSO_TRUE='#' MCA_BUILD_opal_common_verbs_usnic_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/common/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component common:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/common/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_common_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_common" str="SHARED_COMPONENT=\$DSO_common_$component" eval $str STATIC_FRAMEWORK="$STATIC_common" str="STATIC_COMPONENT=\$STATIC_common_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:$component compile mode" >&5 $as_echo_n "checking for MCA component common:$component compile mode... " >&6; } if test "$DIRECT_common" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/common/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/common/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/common/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then common_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then common_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/common/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/$component/lib${OPAL_LIB_PREFIX}mca_common_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/$component/libmca_common_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_$component_component;" >> $outfile.extern echo " &mca_common_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5 $as_echo_n "checking if MCA component common:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "$component" ; then as_fn_error $? "*** common component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$common_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$common_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5 $as_echo_n "checking if MCA component common:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_common_ALL_COMPONENTS="$all_components" MCA_opal_common_STATIC_COMPONENTS="$static_components" MCA_opal_common_DSO_COMPONENTS="$dso_components" MCA_opal_common_STATIC_LTLIBS="$static_ltlibs" MCA_opal_common_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_common_ALL_SUBDIRS="$MCA_opal_common_ALL_SUBDIRS mca/common/$item" done MCA_opal_common_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_common_STATIC_SUBDIRS="$MCA_opal_common_STATIC_SUBDIRS mca/common/$item" done MCA_opal_common_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_common_DSO_SUBDIRS="$MCA_opal_common_DSO_SUBDIRS mca/common/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "common" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS allocator" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/allocator" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_allocator_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_allocator_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_allocator_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/allocator/libmca_allocator.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_allocator_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework allocator" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/allocator/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/allocator/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework allocator" >&5 $as_echo_n "checking for no configure components in framework allocator... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: basic, bucket" >&5 $as_echo "basic, bucket" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework allocator" >&5 $as_echo_n "checking for m4 configure components in framework allocator... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component allocator:basic (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/allocator/basic" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_allocator" ; then if test "$DIRECT_allocator" = "basic" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_allocator" = "1"; then : want_component=0 fi if test "$DISABLE_allocator_basic" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_allocator" SHARED_COMPONENT="$DSO_allocator_basic" STATIC_FRAMEWORK="$STATIC_allocator" STATIC_COMPONENT="$STATIC_allocator_basic" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component allocator:basic compile mode" >&5 $as_echo_n "checking for MCA component allocator:basic compile mode... " >&6; } if test "$DIRECT_allocator" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/allocator/basic/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components basic" if test "$compile_mode" = "dso" ; then dso_components="$dso_components basic" else if test "allocator" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/allocator/basic/lib${OPAL_LIB_PREFIX}mca_allocator_basic.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/allocator/basic/libmca_allocator_basic.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_allocator_basic_component;" >> $outfile.extern echo " &mca_allocator_basic_component, " >> $outfile.struct static_components="$static_components basic" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component allocator:basic can compile" >&5 $as_echo_n "checking if MCA component allocator:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_allocator" = "basic" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_allocator_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** allocator component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_allocator" = "basic" ; then as_fn_error $? "*** allocator component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$allocator_basic_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $allocator_basic_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $allocator_basic_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$allocator_basic_WRAPPER_EXTRA_LIBS" = ""; 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_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 $allocator_basic_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $allocator_basic_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$allocator_basic_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $allocator_basic_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring allocator_basic_WRAPPER_EXTRA_CPPFLAGS ($allocator_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring allocator_basic_WRAPPER_EXTRA_CPPFLAGS ($allocator_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component allocator:basic can compile" >&5 $as_echo_n "checking if MCA component allocator:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_allocator" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_allocator" ; then if test "$DIRECT_allocator" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components basic" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_allocator_basic_DSO=1 else BUILD_opal_allocator_basic_DSO=0 fi if test "$BUILD_opal_allocator_basic_DSO" = "1"; then MCA_BUILD_opal_allocator_basic_DSO_TRUE= MCA_BUILD_opal_allocator_basic_DSO_FALSE='#' else MCA_BUILD_opal_allocator_basic_DSO_TRUE='#' MCA_BUILD_opal_allocator_basic_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/allocator/basic/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component allocator:bucket (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/allocator/bucket" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_allocator" ; then if test "$DIRECT_allocator" = "bucket" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_allocator" = "1"; then : want_component=0 fi if test "$DISABLE_allocator_bucket" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_allocator" SHARED_COMPONENT="$DSO_allocator_bucket" STATIC_FRAMEWORK="$STATIC_allocator" STATIC_COMPONENT="$STATIC_allocator_bucket" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component allocator:bucket compile mode" >&5 $as_echo_n "checking for MCA component allocator:bucket compile mode... " >&6; } if test "$DIRECT_allocator" = "bucket" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/allocator/bucket/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components bucket" if test "$compile_mode" = "dso" ; then dso_components="$dso_components bucket" else if test "allocator" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/allocator/bucket/lib${OPAL_LIB_PREFIX}mca_allocator_bucket.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/allocator/bucket/libmca_allocator_bucket.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_allocator_bucket_component;" >> $outfile.extern echo " &mca_allocator_bucket_component, " >> $outfile.struct static_components="$static_components bucket" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component allocator:bucket can compile" >&5 $as_echo_n "checking if MCA component allocator:bucket can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_allocator" = "bucket" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_allocator_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** allocator component bucket was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_allocator" = "bucket" ; then as_fn_error $? "*** allocator component bucket was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$allocator_bucket_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $allocator_bucket_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $allocator_bucket_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$allocator_bucket_WRAPPER_EXTRA_LIBS" = ""; 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_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 $allocator_bucket_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $allocator_bucket_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$allocator_bucket_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $allocator_bucket_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring allocator_bucket_WRAPPER_EXTRA_CPPFLAGS ($allocator_bucket_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring allocator_bucket_WRAPPER_EXTRA_CPPFLAGS ($allocator_bucket_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component allocator:bucket can compile" >&5 $as_echo_n "checking if MCA component allocator:bucket can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_allocator" = "bucket" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bucket\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_allocator" ; then if test "$DIRECT_allocator" = "bucket" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bucket\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components bucket" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_allocator_bucket_DSO=1 else BUILD_opal_allocator_bucket_DSO=0 fi if test "$BUILD_opal_allocator_bucket_DSO" = "1"; then MCA_BUILD_opal_allocator_bucket_DSO_TRUE= MCA_BUILD_opal_allocator_bucket_DSO_FALSE='#' else MCA_BUILD_opal_allocator_bucket_DSO_TRUE='#' MCA_BUILD_opal_allocator_bucket_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/allocator/bucket/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/allocator/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component allocator:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/allocator/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_allocator" ; then if test "$DIRECT_allocator" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_allocator" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_allocator_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_allocator" str="SHARED_COMPONENT=\$DSO_allocator_$component" eval $str STATIC_FRAMEWORK="$STATIC_allocator" str="STATIC_COMPONENT=\$STATIC_allocator_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component allocator:$component compile mode" >&5 $as_echo_n "checking for MCA component allocator:$component compile mode... " >&6; } if test "$DIRECT_allocator" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/allocator/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/allocator/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/allocator/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then allocator_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then allocator_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/allocator/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "allocator" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/allocator/$component/lib${OPAL_LIB_PREFIX}mca_allocator_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/allocator/$component/libmca_allocator_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_allocator_$component_component;" >> $outfile.extern echo " &mca_allocator_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component allocator:$component can compile" >&5 $as_echo_n "checking if MCA component allocator:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_allocator" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_allocator_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** allocator component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_allocator" = "$component" ; then as_fn_error $? "*** allocator component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$allocator_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$allocator_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component allocator:$component can compile" >&5 $as_echo_n "checking if MCA component allocator:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_allocator" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_allocator" ; then if test "$DIRECT_allocator" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_allocator_ALL_COMPONENTS="$all_components" MCA_opal_allocator_STATIC_COMPONENTS="$static_components" MCA_opal_allocator_DSO_COMPONENTS="$dso_components" MCA_opal_allocator_STATIC_LTLIBS="$static_ltlibs" MCA_opal_allocator_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_allocator_ALL_SUBDIRS="$MCA_opal_allocator_ALL_SUBDIRS mca/allocator/$item" done MCA_opal_allocator_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_allocator_STATIC_SUBDIRS="$MCA_opal_allocator_STATIC_SUBDIRS mca/allocator/$item" done MCA_opal_allocator_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_allocator_DSO_SUBDIRS="$MCA_opal_allocator_DSO_SUBDIRS mca/allocator/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "allocator" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS backtrace" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/backtrace" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_backtrace_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_backtrace_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_backtrace_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/backtrace/libmca_backtrace.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_backtrace_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework backtrace" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/backtrace/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/backtrace/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework backtrace" >&5 $as_echo_n "checking for no configure components in framework backtrace... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework backtrace" >&5 $as_echo_n "checking for m4 configure components in framework backtrace... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: execinfo, none, printstack" >&5 $as_echo "execinfo, none, printstack" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component backtrace:execinfo (m4 configuration macro, priority 30)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/backtrace/execinfo" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_backtrace" ; then if test "$DIRECT_backtrace" = "execinfo" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_backtrace" = "1"; then : want_component=0 fi if test "$DISABLE_backtrace_execinfo" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component backtrace:execinfo compile mode" >&5 $as_echo_n "checking for MCA component backtrace:execinfo compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/backtrace/execinfo/Makefile" for ac_header in execinfo.h do : ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" if test "x$ac_cv_header_execinfo_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_EXECINFO_H 1 _ACEOF fi done # FreeBSD has backtrace in -lexecinfo, usually in libc # 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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5 $as_echo_n "checking for library containing backtrace... " >&6; } if ${ac_cv_search_backtrace+:} 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 backtrace (); int main () { return backtrace (); ; return 0; } _ACEOF for ac_lib in '' execinfo; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_backtrace=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_backtrace+:} false; then : break fi done if ${ac_cv_search_backtrace+:} false; then : else ac_cv_search_backtrace=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5 $as_echo "$ac_cv_search_backtrace" >&6; } ac_res=$ac_cv_search_backtrace if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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 ${backtrace_execinfo_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$backtrace_execinfo_LIBS"; then : backtrace_execinfo_LIBS=$arg else backtrace_execinfo_LIBS="$backtrace_execinfo_LIBS $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 backtrace_execinfo_have_backtrace=1 backtrace_execinfo_happy="yes" else backtrace_execinfo_have_backtrace=0 backtrace_execinfo_happy="no" fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_BACKTRACE_EXECINFO $backtrace_execinfo_have_backtrace _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 "$backtrace_execinfo_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/backtrace/execinfo/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components execinfo" if test "$compile_mode" = "dso" ; then dso_components="$dso_components execinfo" else if test "backtrace" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/backtrace/execinfo/lib${OPAL_LIB_PREFIX}mca_backtrace_execinfo.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/backtrace/execinfo/libmca_backtrace_execinfo.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_backtrace_execinfo_component;" >> $outfile.extern echo " &mca_backtrace_execinfo_component, " >> $outfile.struct static_components="$static_components execinfo" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:execinfo can compile" >&5 $as_echo_n "checking if MCA component backtrace:execinfo can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_backtrace" = "execinfo" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_backtrace_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** backtrace component execinfo was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_backtrace" = "execinfo" ; then as_fn_error $? "*** backtrace component execinfo was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$backtrace_execinfo_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $backtrace_execinfo_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $backtrace_execinfo_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$backtrace_execinfo_WRAPPER_EXTRA_LIBS" = ""; 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_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 $backtrace_execinfo_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $backtrace_execinfo_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$backtrace_execinfo_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $backtrace_execinfo_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring backtrace_execinfo_WRAPPER_EXTRA_CPPFLAGS ($backtrace_execinfo_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring backtrace_execinfo_WRAPPER_EXTRA_CPPFLAGS ($backtrace_execinfo_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:execinfo can compile" >&5 $as_echo_n "checking if MCA component backtrace:execinfo can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_backtrace" = "execinfo" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"execinfo\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_backtrace" ; then if test "$DIRECT_backtrace" = "execinfo" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"execinfo\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components execinfo" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_backtrace_execinfo_DSO=1 else BUILD_opal_backtrace_execinfo_DSO=0 fi if test "$BUILD_opal_backtrace_execinfo_DSO" = "1"; then MCA_BUILD_opal_backtrace_execinfo_DSO_TRUE= MCA_BUILD_opal_backtrace_execinfo_DSO_FALSE='#' else MCA_BUILD_opal_backtrace_execinfo_DSO_TRUE='#' MCA_BUILD_opal_backtrace_execinfo_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component backtrace:printstack (m4 configuration macro, priority 30)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/backtrace/printstack" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_backtrace" ; then if test "$DIRECT_backtrace" = "printstack" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_backtrace" = "1"; then : want_component=0 fi if test "$DISABLE_backtrace_printstack" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component backtrace:printstack compile mode" >&5 $as_echo_n "checking for MCA component backtrace:printstack compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/backtrace/printstack/Makefile" for ac_header in ucontext.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default" if test "x$ac_cv_header_ucontext_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCONTEXT_H 1 _ACEOF fi done # FreeBSD has backtrace in -lexecinfo, usually in libc for ac_func in printstack do : ac_fn_c_check_func "$LINENO" "printstack" "ac_cv_func_printstack" if test "x$ac_cv_func_printstack" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PRINTSTACK 1 _ACEOF backtrace_printstack_happy="yes" else backtrace_printstack_happy="no" fi done if test "$backtrace_printstack_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/backtrace/printstack/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components printstack" if test "$compile_mode" = "dso" ; then dso_components="$dso_components printstack" else if test "backtrace" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/backtrace/printstack/lib${OPAL_LIB_PREFIX}mca_backtrace_printstack.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/backtrace/printstack/libmca_backtrace_printstack.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_backtrace_printstack_component;" >> $outfile.extern echo " &mca_backtrace_printstack_component, " >> $outfile.struct static_components="$static_components printstack" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:printstack can compile" >&5 $as_echo_n "checking if MCA component backtrace:printstack can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_backtrace" = "printstack" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_backtrace_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** backtrace component printstack was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_backtrace" = "printstack" ; then as_fn_error $? "*** backtrace component printstack was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$backtrace_printstack_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $backtrace_printstack_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $backtrace_printstack_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$backtrace_printstack_WRAPPER_EXTRA_LIBS" = ""; 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_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 $backtrace_printstack_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $backtrace_printstack_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$backtrace_printstack_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $backtrace_printstack_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring backtrace_printstack_WRAPPER_EXTRA_CPPFLAGS ($backtrace_printstack_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring backtrace_printstack_WRAPPER_EXTRA_CPPFLAGS ($backtrace_printstack_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:printstack can compile" >&5 $as_echo_n "checking if MCA component backtrace:printstack can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_backtrace" = "printstack" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"printstack\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_backtrace" ; then if test "$DIRECT_backtrace" = "printstack" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"printstack\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components printstack" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_backtrace_printstack_DSO=1 else BUILD_opal_backtrace_printstack_DSO=0 fi if test "$BUILD_opal_backtrace_printstack_DSO" = "1"; then MCA_BUILD_opal_backtrace_printstack_DSO_TRUE= MCA_BUILD_opal_backtrace_printstack_DSO_FALSE='#' else MCA_BUILD_opal_backtrace_printstack_DSO_TRUE='#' MCA_BUILD_opal_backtrace_printstack_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component backtrace:none (m4 configuration macro, priority 0)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/backtrace/none" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_backtrace" ; then if test "$DIRECT_backtrace" = "none" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_backtrace" = "1"; then : want_component=0 fi if test "$DISABLE_backtrace_none" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component backtrace:none compile mode" >&5 $as_echo_n "checking for MCA component backtrace:none compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/backtrace/none/Makefile" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/backtrace/none/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components none" if test "$compile_mode" = "dso" ; then dso_components="$dso_components none" else if test "backtrace" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/backtrace/none/lib${OPAL_LIB_PREFIX}mca_backtrace_none.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/backtrace/none/libmca_backtrace_none.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_backtrace_none_component;" >> $outfile.extern echo " &mca_backtrace_none_component, " >> $outfile.struct static_components="$static_components none" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:none can compile" >&5 $as_echo_n "checking if MCA component backtrace:none can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_backtrace" = "none" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_backtrace_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** backtrace component none was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_backtrace" = "none" ; then as_fn_error $? "*** backtrace component none was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$backtrace_none_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $backtrace_none_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $backtrace_none_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$backtrace_none_WRAPPER_EXTRA_LIBS" = ""; 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_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 $backtrace_none_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $backtrace_none_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$backtrace_none_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $backtrace_none_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring backtrace_none_WRAPPER_EXTRA_CPPFLAGS ($backtrace_none_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring backtrace_none_WRAPPER_EXTRA_CPPFLAGS ($backtrace_none_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component backtrace:none can compile" >&5 $as_echo_n "checking if MCA component backtrace:none can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_backtrace" = "none" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_backtrace" ; then if test "$DIRECT_backtrace" = "none" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components none" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_backtrace_none_DSO=1 else BUILD_opal_backtrace_none_DSO=0 fi if test "$BUILD_opal_backtrace_none_DSO" = "1"; then MCA_BUILD_opal_backtrace_none_DSO_TRUE= MCA_BUILD_opal_backtrace_none_DSO_FALSE='#' else MCA_BUILD_opal_backtrace_none_DSO_TRUE='#' MCA_BUILD_opal_backtrace_none_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_backtrace_ALL_COMPONENTS="$all_components" MCA_opal_backtrace_STATIC_COMPONENTS="$static_components" MCA_opal_backtrace_DSO_COMPONENTS="$dso_components" MCA_opal_backtrace_STATIC_LTLIBS="$static_ltlibs" MCA_opal_backtrace_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_backtrace_ALL_SUBDIRS="$MCA_opal_backtrace_ALL_SUBDIRS mca/backtrace/$item" done MCA_opal_backtrace_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_backtrace_STATIC_SUBDIRS="$MCA_opal_backtrace_STATIC_SUBDIRS mca/backtrace/$item" done MCA_opal_backtrace_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_backtrace_DSO_SUBDIRS="$MCA_opal_backtrace_DSO_SUBDIRS mca/backtrace/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "backtrace" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS btl" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/btl" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_btl_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_btl_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_btl_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/btl/libmca_btl.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_btl_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework btl" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/btl/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/btl/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework btl" >&5 $as_echo_n "checking for no configure components in framework btl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: self" >&5 $as_echo "self" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework btl" >&5 $as_echo_n "checking for m4 configure components in framework btl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: ofi, openib, portals4, sm, smcuda, tcp, uct, ugni, usnic, vader" >&5 $as_echo "ofi, openib, portals4, sm, smcuda, tcp, uct, ugni, usnic, vader" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component btl:self (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/btl/self" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "self" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_self" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_self" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_self" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:self compile mode" >&5 $as_echo_n "checking for MCA component btl:self compile mode... " >&6; } if test "$DIRECT_btl" = "self" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/self/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components self" if test "$compile_mode" = "dso" ; then dso_components="$dso_components self" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/self/lib${OPAL_LIB_PREFIX}mca_btl_self.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/self/libmca_btl_self.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_self_component;" >> $outfile.extern echo " &mca_btl_self_component, " >> $outfile.struct static_components="$static_components self" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:self can compile" >&5 $as_echo_n "checking if MCA component btl:self can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "self" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component self was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "self" ; then as_fn_error $? "*** btl component self was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_self_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_self_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_self_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_self_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_self_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_self_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_self_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_self_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_self_WRAPPER_EXTRA_CPPFLAGS ($btl_self_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_self_WRAPPER_EXTRA_CPPFLAGS ($btl_self_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:self can compile" >&5 $as_echo_n "checking if MCA component btl:self can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "self" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "self" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components self" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_btl_self_DSO=1 else BUILD_opal_btl_self_DSO=0 fi if test "$BUILD_opal_btl_self_DSO" = "1"; then MCA_BUILD_opal_btl_self_DSO_TRUE= MCA_BUILD_opal_btl_self_DSO_FALSE='#' else MCA_BUILD_opal_btl_self_DSO_TRUE='#' MCA_BUILD_opal_btl_self_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/btl/self/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component btl:ofi (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/ofi" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "ofi" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_ofi" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_ofi" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_ofi" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:ofi compile mode" >&5 $as_echo_n "checking for MCA component btl:ofi compile mode... " >&6; } if test "$DIRECT_btl" = "ofi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component # 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_btl_ofi_happy 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=\"opal_btl_ofi_happy CPPFLAGS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_config_files="$ac_config_files opal/mca/btl/ofi/Makefile" # Check for OFI # Check for OFI libfabric. Note that $opal_ofi_happy is used in # other configure.m4's to know if OFI/libfabric configured # successfully. We only need to run the back-end checks once, but # at least emit a "checking..." statement each subsequent time # this macro is invoked so that configure's stdout has # sensible/logical output. if test -z "$opal_ofi_happy"; then : # Add --with options # Check whether --with-libfabric was given. if test "${with_libfabric+set}" = set; then : withval=$with_libfabric; fi # Check whether --with-libfabric-libdir was given. if test "${with_libfabric_libdir+set}" = set; then : withval=$with_libfabric_libdir; fi # Check whether --with-ofi was given. if test "${with_ofi+set}" = set; then : withval=$with_ofi; fi # Check whether --with-ofi-libdir was given. if test "${with_ofi_libdir+set}" = set; then : withval=$with_ofi_libdir; fi if test "$with_ofi" = ""; then with_ofi=$with_libfabric fi if test "$with_ofi_libdir" = ""; then with_ofi_libdir=$with_libfabric_libdir fi # Sanity check the --with values { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ofi value" >&5 $as_echo_n "checking --with-ofi value... " >&6; } if test "$with_ofi" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ofi)" >&5 $as_echo "simple no (specified --without-ofi)" >&6; } else if test "$with_ofi" = "yes" || test "x$with_ofi" = "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_ofi"; 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_ofi not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ofi not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ofi/include/rdma/fabric.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_ofi/include/rdma/fabric.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ofi/include/rdma/fabric.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ofi)" >&5 $as_echo "sanity check ok ($with_ofi)" >&6; } fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ofi-libdir value" >&5 $as_echo_n "checking --with-ofi-libdir value... " >&6; } if test "$with_ofi_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ofi-libdir)" >&5 $as_echo "simple no (specified --without-ofi-libdir)" >&6; } else if test "$with_ofi_libdir" = "yes" || test "x$with_ofi_libdir" = "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_ofi_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ofi_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ofi_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ofi_libdir/libfabric.* 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_ofi_libdir/libfabric.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ofi_libdir/libfabric.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ofi_libdir)" >&5 $as_echo "sanity check ok ($with_ofi_libdir)" >&6; } fi fi fi 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_check_ofi_save_CPPFLAGS opal_check_ofi_save_LDFLAGS opal_check_ofi_save_LIBS opal_check_fi_info_pci; 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_check_ofi_save_CPPFLAGS opal_check_ofi_save_LDFLAGS opal_check_ofi_save_LIBS opal_check_fi_info_pci\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_check_ofi_save_CPPFLAGS=$CPPFLAGS opal_check_ofi_save_LDFLAGS=$LDFLAGS opal_check_ofi_save_LIBS=$LIBS opal_check_fi_info_pci=0 opal_ofi_happy=yes if test "$with_ofi" = "no"; then : opal_ofi_happy=no fi if test $opal_ofi_happy = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for OFI libfabric in" >&5 $as_echo_n "checking looking for OFI libfabric in... " >&6; } if test "$with_ofi" != "yes"; then : opal_ofi_dir=$with_ofi { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($opal_ofi_dir)" >&5 $as_echo "($opal_ofi_dir)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 $as_echo "(default search paths)" >&6; } fi if test ! -z "$with_ofi_libdir" && \ test "$with_ofi_libdir" != "yes"; then : opal_ofi_libdir=$with_ofi_libdir fi fi if test $opal_ofi_happy = yes; then : opal_check_package_opal_ofi_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_ofi_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_ofi_save_LIBS="$LIBS" opal_check_package_opal_ofi_orig_CPPFLAGS="$opal_ofi_CPPFLAGS" opal_check_package_opal_ofi_orig_LDFLAGS="$opal_ofi_LDFLAGS" opal_check_package_opal_ofi_orig_LIBS="$opal_ofi_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_rdma_fabric_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_ofi_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 rdma/fabric.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FABRIC_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_rdma_fabric_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_ofi_CPPFLAGS="$opal_ofi_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in rdma/fabric.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FABRIC_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_fi_getinfo opal_check_package_lib_happy="no" if test "$opal_ofi_libdir" != ""; then : # libdir was specified - search only there opal_ofi_LDFLAGS="$opal_ofi_LDFLAGS -L$opal_ofi_libdir" LDFLAGS="$LDFLAGS -L$opal_ofi_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo 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 libfabric requires libnl v1 or v3" >&5 $as_echo_n "checking if libfabric requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fi_getinfo (void); int main(int argc, char *argv[]) { fi_getinfo (); 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:113248: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_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:113255: \$? = $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 fabric" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib fabric" >&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, libfabric links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&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 fabric requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas fabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs fabric" # 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 libfabric requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs fabric" # 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_fi_getinfo" != "no" && test "$ac_cv_search_fi_getinfo" != "none required"; then : opal_ofi_LIBS="$ac_cv_search_fi_getinfo " else opal_ofi_LIBS="" 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_fi_getinfo opal_check_package_lib_happy="no" if test "$opal_ofi_libdir" != ""; then : # libdir was specified - search only there opal_ofi_LDFLAGS="$opal_ofi_LDFLAGS -L$opal_ofi_libdir" LDFLAGS="$LDFLAGS -L$opal_ofi_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo 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 libfabric requires libnl v1 or v3" >&5 $as_echo_n "checking if libfabric requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fi_getinfo (void); int main(int argc, char *argv[]) { fi_getinfo (); 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:113973: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_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:113980: \$? = $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 fabric" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib fabric" >&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, libfabric links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&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 fabric requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas fabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs fabric" # 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 libfabric requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs fabric" # 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_fi_getinfo" != "no" && test "$ac_cv_search_fi_getinfo" != "none required"; then : opal_ofi_LIBS="$ac_cv_search_fi_getinfo " else opal_ofi_LIBS="" 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 : else opal_ofi_CPPFLAGS="$opal_check_package_opal_ofi_orig_CPPFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" opal_ofi_LIBS="$opal_check_package_opal_ofi_orig_LIBS" opal_ofi_happy=no fi CPPFLAGS="$opal_check_package_opal_ofi_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_ofi_save_LDFLAGS" LIBS="$opal_check_package_opal_ofi_save_LIBS" fi CPPFLAGS="$CPPFLAGS $opal_ofi_CPPFLAGS" if test $opal_ofi_happy = yes; then : for ac_header in rdma/fi_ext.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fi_ext.h" "ac_cv_header_rdma_fi_ext_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fi_ext_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FI_EXT_H 1 _ACEOF fi done ac_fn_c_check_member "$LINENO" "struct fi_info" "nic" "ac_cv_member_struct_fi_info_nic" "#include " if test "x$ac_cv_member_struct_fi_info_nic" = xyes; then : opal_check_fi_info_pci=1 else opal_check_fi_info_pci=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_OFI_PCI_DATA_AVAILABLE $opal_check_fi_info_pci _ACEOF ac_fn_c_check_decl "$LINENO" "PMIX_PACKAGE_RANK" "ac_cv_have_decl_PMIX_PACKAGE_RANK" "#include " if test "x$ac_cv_have_decl_PMIX_PACKAGE_RANK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PMIX_PACKAGE_RANK $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "struct fi_ops_mem_monitor" "ac_cv_type_struct_fi_ops_mem_monitor" "#ifdef HAVE_RDMA_FI_EXT_H #include #endif " if test "x$ac_cv_type_struct_fi_ops_mem_monitor" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_FI_OPS_MEM_MONITOR 1 _ACEOF fi fi CPPFLAGS=$opal_check_ofi_save_CPPFLAGS LDFLAGS=$opal_check_ofi_save_LDFLAGS LIBS=$opal_check_ofi_save_LIBS # 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 Transports | tr ' ' '_') ompi_summary_line="OpenFabrics OFI Libfabric: $opal_ofi_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 # 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_ofi_happy = no; then : if test -n "$with_ofi" && test "$with_ofi" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found." >&5 $as_echo "$as_me: WARNING: OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found." >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OFI libfabric is available" >&5 $as_echo_n "checking if OFI libfabric is available... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_ofi_happy" >&5 $as_echo "$opal_ofi_happy" >&6; } fi opal_btl_ofi_happy=0 if test "$opal_ofi_happy" = "yes"; then : CPPFLAGS_save=$CPPFLAGS CPPFLAGS="$opal_ofi_CPPFLAGS $CPPFLAGS" ac_fn_c_check_decl "$LINENO" "FI_MR_VIRT_ADDR" "ac_cv_have_decl_FI_MR_VIRT_ADDR" "#include " if test "x$ac_cv_have_decl_FI_MR_VIRT_ADDR" = xyes; then : opal_btl_ofi_happy=1 fi CPPFLAGS=$CPPFLAGS_save fi if test $opal_btl_ofi_happy -eq 1; then : should_build=$should_build else should_build=0 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/ofi/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ofi" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ofi" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/ofi/lib${OPAL_LIB_PREFIX}mca_btl_ofi.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/ofi/libmca_btl_ofi.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_ofi_component;" >> $outfile.extern echo " &mca_btl_ofi_component, " >> $outfile.struct static_components="$static_components ofi" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:ofi can compile" >&5 $as_echo_n "checking if MCA component btl:ofi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "ofi" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component ofi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "ofi" ; then as_fn_error $? "*** btl component ofi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_ofi_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_ofi_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_ofi_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_ofi_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_ofi_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_ofi_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_ofi_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_ofi_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_ofi_WRAPPER_EXTRA_CPPFLAGS ($btl_ofi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_ofi_WRAPPER_EXTRA_CPPFLAGS ($btl_ofi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:ofi can compile" >&5 $as_echo_n "checking if MCA component btl:ofi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "ofi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ofi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ofi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "ofi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ofi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ofi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ofi" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_ofi_DSO=1 else BUILD_opal_btl_ofi_DSO=0 fi if test "$BUILD_opal_btl_ofi_DSO" = "1"; then MCA_BUILD_opal_btl_ofi_DSO_TRUE= MCA_BUILD_opal_btl_ofi_DSO_FALSE='#' else MCA_BUILD_opal_btl_ofi_DSO_TRUE='#' MCA_BUILD_opal_btl_ofi_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component btl:openib (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/openib" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "openib" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_openib" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_openib" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_openib" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:openib compile mode" >&5 $as_echo_n "checking for MCA component btl:openib compile mode... " >&6; } if test "$DIRECT_btl" = "openib" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/btl/openib/Makefile" # 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 cpcs btl_openib_LDFLAGS_save btl_openib_LIBS_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=\"cpcs btl_openib_LDFLAGS_save btl_openib_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` cpcs="oob" # 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 btl_openib_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=\"btl_openib_msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Setup the --with switches to allow users to specify where # verbs stuff lives. if test -z "$opal_check_openib_happy" ; then # # Add padding to OpenIB header # # Check whether --enable-openib-control-hdr-padding was given. if test "${enable_openib_control_hdr_padding+set}" = set; then : enableval=$enable_openib_control_hdr_padding; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to add padding to the openib BTL control header" >&5 $as_echo_n "checking if want to add padding to the openib BTL control header... " >&6; } if test "$enable_openib_control_hdr_padding" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_openib_pad_hdr=1 elif test "$enable_openib_control_hdr_padding" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ompi_openib_pad_hdr=0 else # # Enable padding for SPARC platforms by default because the # btl will segv otherwise. Keep padding disabled for other # platforms since there are some performance implications with # padding on for those platforms. # case "${host}" in sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (enabled by default on SPARC)" >&5 $as_echo "yes (enabled by default on SPARC)" >&6; } ompi_openib_pad_hdr=1 ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ompi_openib_pad_hdr=0 ;; esac fi cat >>confdefs.h <<_ACEOF #define OPAL_OPENIB_PAD_HDR $ompi_openib_pad_hdr _ACEOF if test "$opal_want_verbs" = "no"; then : opal_check_openib_happy="no" else opal_check_openib_happy="yes" fi ompi_check_openib_btl_openib_save_CPPFLAGS="$CPPFLAGS" ompi_check_openib_btl_openib_save_LDFLAGS="$LDFLAGS" ompi_check_openib_btl_openib_save_LIBS="$LIBS" if test "$opal_check_openib_happy" = "yes"; then : for ac_header in fcntl.h sys/poll.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&5 $as_echo "$as_me: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&2;} opal_check_openib_happy="no" fi done fi if test "$opal_check_openib_happy" = "yes"; then : opal_check_package_opal_check_openib_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_check_openib_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_check_openib_save_LIBS="$LIBS" opal_check_package_opal_check_openib_orig_CPPFLAGS="$opal_check_openib_CPPFLAGS" opal_check_package_opal_check_openib_orig_LDFLAGS="$opal_check_openib_LDFLAGS" opal_check_package_opal_check_openib_orig_LIBS="$opal_check_openib_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_infiniband_verbs_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_verbs_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 infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_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_infiniband_verbs_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_check_openib_CPPFLAGS="$opal_check_openib_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_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_ibv_open_device opal_check_package_lib_happy="no" if test "$opal_verbs_libdir" != ""; then : # libdir was specified - search only there opal_check_openib_LDFLAGS="$opal_check_openib_LDFLAGS -L$opal_verbs_libdir" LDFLAGS="$LDFLAGS -L$opal_verbs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_verbs_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device 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 libibverbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libibverbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ibv_open_device (void); int main(int argc, char *argv[]) { ibv_open_device (); 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:115872: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_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:115879: \$? = $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 ibverbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ibverbs" >&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, libibverbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&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 ibverbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ibverbs" # 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 libibverbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ibverbs" # 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_ibv_open_device" != "no" && test "$ac_cv_search_ibv_open_device" != "none required"; then : opal_check_openib_LIBS="$ac_cv_search_ibv_open_device " else opal_check_openib_LIBS="" 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_ibv_open_device opal_check_package_lib_happy="no" if test "$opal_verbs_libdir" != ""; then : # libdir was specified - search only there opal_check_openib_LDFLAGS="$opal_check_openib_LDFLAGS -L$opal_verbs_libdir" LDFLAGS="$LDFLAGS -L$opal_verbs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_verbs_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device 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 libibverbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libibverbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ibv_open_device (void); int main(int argc, char *argv[]) { ibv_open_device (); 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:116597: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_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:116604: \$? = $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 ibverbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ibverbs" >&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, libibverbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&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 ibverbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ibverbs" # 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 libibverbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ibverbs" # 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_ibv_open_device" != "no" && test "$ac_cv_search_ibv_open_device" != "none required"; then : opal_check_openib_LIBS="$ac_cv_search_ibv_open_device " else opal_check_openib_LIBS="" 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_check_openib_happy="yes" else opal_check_openib_CPPFLAGS="$opal_check_package_opal_check_openib_orig_CPPFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" opal_check_openib_LIBS="$opal_check_package_opal_check_openib_orig_LIBS" opal_check_openib_happy="no" fi CPPFLAGS="$opal_check_package_opal_check_openib_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_check_openib_save_LDFLAGS" LIBS="$opal_check_package_opal_check_openib_save_LIBS" fi CPPFLAGS="$CPPFLAGS $opal_check_openib_CPPFLAGS" LDFLAGS="$LDFLAGS $opal_check_openib_LDFLAGS" LIBS="$LIBS $opal_check_openib_LIBS" if test "$opal_check_openib_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to ibv_create_cq" >&5 $as_echo_n "checking number of arguments to ibv_create_cq... " >&6; } if ${ompi_cv_func_ibv_create_cq_args+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ibv_create_cq(NULL, 0, NULL, NULL, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ompi_cv_func_ibv_create_cq_args=5 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ibv_create_cq(NULL, 0, NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ompi_cv_func_ibv_create_cq_args=3 else ompi_cv_func_ibv_create_cq_args="unknown" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_ibv_create_cq_args" >&5 $as_echo "$ompi_cv_func_ibv_create_cq_args" >&6; } if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not determine number of args to ibv_create_cq." >&5 $as_echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building component." >&5 $as_echo "$as_me: WARNING: Not building component." >&2;} opal_check_openib_happy="no" else cat >>confdefs.h <<_ACEOF #define OPAL_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args _ACEOF fi fi # # OpenIB dynamic SL # # Check whether --enable-openib-dynamic-sl was given. if test "${enable_openib_dynamic_sl+set}" = set; then : enableval=$enable_openib_dynamic_sl; fi # Set these up so that we can do an AC_DEFINE below # (unconditionally) opal_check_openib_have_xrc=0 opal_check_openib_have_xrc_domains=0 opal_check_openib_have_opensm_devel=0 # If we have the openib stuff available, find out what we've got if test "$opal_check_openib_happy" = "yes"; then : ac_fn_c_check_decl "$LINENO" "IBV_EVENT_CLIENT_REREGISTER" "ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" "#include " if test "x$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_ACCESS_SO" "ac_cv_have_decl_IBV_ACCESS_SO" "#include " if test "x$ac_cv_have_decl_IBV_ACCESS_SO" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ACCESS_SO $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_ATOMIC_HCA" "ac_cv_have_decl_IBV_ATOMIC_HCA" "#include " if test "x$ac_cv_have_decl_IBV_ATOMIC_HCA" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ATOMIC_HCA $ac_have_decl _ACEOF for ac_func in ibv_get_device_list ibv_resize_cq do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # struct ibv_device.transport_type was added in OFED v1.2 ac_fn_c_check_member "$LINENO" "struct ibv_device" "transport_type" "ac_cv_member_struct_ibv_device_transport_type" "#include " if test "x$ac_cv_member_struct_ibv_device_transport_type" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1 _ACEOF fi # We have to check functions both exits *and* are declared # since some distro ship broken ibverbs devel headers # IBV_DEVICE_XRC is common to all OFED versions # ibv_create_xrc_rcv_qp was added in OFED 1.3 # ibv_cmd_open_xrcd (aka XRC Domains) was added in OFED 3.12 if test "$enable_connectx_xrc" = "yes"; then ac_fn_c_check_decl "$LINENO" "IBV_DEVICE_XRC" "ac_cv_have_decl_IBV_DEVICE_XRC" "#include " if test "x$ac_cv_have_decl_IBV_DEVICE_XRC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_DEVICE_XRC $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : opal_check_openib_have_xrc=1 opal_check_openib_have_xrc_domains=1 fi fi if test "$enable_connectx_xrc" = "yes" \ && test $opal_check_openib_have_xrc -eq 1; then ac_fn_c_check_decl "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_have_decl_ibv_create_xrc_rcv_qp" "#include " if test "x$ac_cv_have_decl_ibv_create_xrc_rcv_qp" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_CREATE_XRC_RCV_QP $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : for ac_func in ibv_create_xrc_rcv_qp do : ac_fn_c_check_func "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_func_ibv_create_xrc_rcv_qp" if test "x$ac_cv_func_ibv_create_xrc_rcv_qp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IBV_CREATE_XRC_RCV_QP 1 _ACEOF else opal_check_openib_have_xrc=0 fi done else opal_check_openib_have_xrc=0 fi fi if test "$enable_connectx_xrc" = "yes" \ && test $opal_check_openib_have_xrc_domains -eq 1; then ac_fn_c_check_decl "$LINENO" "ibv_cmd_open_xrcd" "ac_cv_have_decl_ibv_cmd_open_xrcd" "#include " if test "x$ac_cv_have_decl_ibv_cmd_open_xrcd" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_CMD_OPEN_XRCD $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : ac_fn_c_check_decl "$LINENO" "IBV_SRQT_XRC" "ac_cv_have_decl_IBV_SRQT_XRC" "#include " if test "x$ac_cv_have_decl_IBV_SRQT_XRC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_SRQT_XRC $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : for ac_func in ibv_cmd_open_xrcd do : ac_fn_c_check_func "$LINENO" "ibv_cmd_open_xrcd" "ac_cv_func_ibv_cmd_open_xrcd" if test "x$ac_cv_func_ibv_cmd_open_xrcd" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IBV_CMD_OPEN_XRCD 1 _ACEOF else opal_check_openib_have_xrc_domains=0 fi done else opal_check_openib_have_xrc_domains=0 fi else opal_check_openib_have_xrc_domains=0 fi # XRC and XRC Domains should be considered as exclusive if test "$opal_check_openib_have_xrc" -eq 1 && \ test "$opal_check_openib_have_xrc_domains" -eq 1; then opal_check_openib_have_xrc=0 fi fi if test "no" != "$enable_openib_dynamic_sl"; then # We need ib_types.h file, which is installed with opensm-devel # package. However, ib_types.h has a bad include directive, # which will cause AC_CHECK_HEADER to fail. # So instead, we will look for another file that is also # installed as part of opensm-devel package and included in # ib_types.h, but it doesn't include any other IB-related files. ac_fn_c_check_header_mongrel "$LINENO" "infiniband/complib/cl_types_osd.h" "ac_cv_header_infiniband_complib_cl_types_osd_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_complib_cl_types_osd_h" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cl_map_init in -losmcomp" >&5 $as_echo_n "checking for cl_map_init in -losmcomp... " >&6; } if ${ac_cv_lib_osmcomp_cl_map_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-losmcomp $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 cl_map_init (); int main () { return cl_map_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_osmcomp_cl_map_init=yes else ac_cv_lib_osmcomp_cl_map_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_osmcomp_cl_map_init" >&5 $as_echo "$ac_cv_lib_osmcomp_cl_map_init" >&6; } if test "x$ac_cv_lib_osmcomp_cl_map_init" = xyes; then : opal_check_openib_have_opensm_devel=1 fi fi # Abort if dynamic SL support was explicitly requested but opensm-devel # package wasn't found. Otherwise, OMPI will be built w/o dynamic SL. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if can use dynamic SL support" >&5 $as_echo_n "checking if can use dynamic SL support... " >&6; } if test "$opal_check_openib_have_opensm_devel" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$enable_openib_dynamic_sl" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-openib-dynamic-sl was specified but the" >&5 $as_echo "$as_me: WARNING: --enable-openib-dynamic-sl was specified but the" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: appropriate header/library files could not be found" >&5 $as_echo "$as_me: WARNING: appropriate header/library files could not be found" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please install opensm-devel if you need dynamic SL support" >&5 $as_echo "$as_me: WARNING: Please install opensm-devel if you need dynamic SL support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi # Check support for RDMAoE devices btl_openib_have_rdmaoe=0 ac_fn_c_check_decl "$LINENO" "IBV_LINK_LAYER_ETHERNET" "ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" "#include " if test "x$ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_LINK_LAYER_ETHERNET $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : btl_openib_have_rdmaoe=1 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RDMAoE support is enabled" >&5 $as_echo_n "checking if RDMAoE support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_RDMAOE $btl_openib_have_rdmaoe _ACEOF if test "1" = "$btl_openib_have_rdmaoe"; 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 # Check to see if works. It is known to # create problems on some platforms with some compilers (e.g., # RHEL4U3 with the PGI 32 bit compiler). Use undocumented (in AC # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test # will fail if the header is present but not compilable, *but it # will not print the big scary warning*. See # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html. if test "$opal_check_openib_happy" = "yes"; then : for ac_header in infiniband/driver.h do : ac_fn_c_check_header_compile "$LINENO" "infiniband/driver.h" "ac_cv_header_infiniband_driver_h" "$ac_includes_default " if test "x$ac_cv_header_infiniband_driver_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_DRIVER_H 1 _ACEOF fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectX XRC support is enabled" >&5 $as_echo_n "checking if ConnectX XRC support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CONNECTX_XRC $opal_check_openib_have_xrc _ACEOF if test "1" = "$opal_check_openib_have_xrc"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectIB XRC support is enabled" >&5 $as_echo_n "checking if ConnectIB XRC support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CONNECTX_XRC_DOMAINS $opal_check_openib_have_xrc_domains _ACEOF if test "1" = "$opal_check_openib_have_xrc_domains"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic SL is enabled" >&5 $as_echo_n "checking if dynamic SL is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ENABLE_DYNAMIC_SL $opal_check_openib_have_opensm_devel _ACEOF if test "1" = "$opal_check_openib_have_opensm_devel"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } btl_openib_LIBS="-losmcomp $btl_openib_LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$opal_verbs_dir"; then : openib_include_dir="/usr/include" else openib_include_dir="$opal_verbs_dir/include" fi opal_check_openib_CPPFLAGS="$opal_check_openib_CPPFLAGS -I$openib_include_dir/infiniband" CPPFLAGS="$ompi_check_openib_btl_openib_save_CPPFLAGS" LDFLAGS="$ompi_check_openib_btl_openib_save_LDFLAGS" LIBS="$ompi_check_openib_btl_openib_save_LIBS" # 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 Transports | tr ' ' '_') ompi_summary_line="OpenFabrics Verbs: $opal_check_openib_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 # 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 btl_openib_have_xrc=$opal_check_openib_have_xrc btl_openib_have_xrc_domains=$opal_check_openib_have_xrc_domains btl_openib_have_opensm_devel=$opal_check_openib_have_opensm_devel if test "$opal_check_openib_happy" = "yes"; then : btl_openib_CPPFLAGS="$btl_openib_CPPFLAGS $opal_check_openib_CPPFLAGS" btl_openib_LDFLAGS="$btl_openib_LDFLAGS $opal_check_openib_LDFLAGS" btl_openib_LIBS="$btl_openib_LIBS $opal_check_openib_LIBS" btl_openib_happy="yes" btl_openib_have_udcm=0 btl_openib_have_rdmacm=0 ompi_check_openib_btl_openib_save_CPPFLAGS="$CPPFLAGS" ompi_check_openib_btl_openib_save_LDFLAGS="$LDFLAGS" ompi_check_openib_btl_openib_save_LIBS="$LIBS" # add back in all the InfiniBand flags so that these tests might work... CPPFLAGS="$CPPFLAGS $btl_openib_CPPFLAGS" LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS" LIBS="$LIBS $btl_openib_LIBS" if test "$opal_check_openib_happy" = "yes"; then : # Do we have a recent enough RDMA CM? Need to have the # rdma_get_peer_addr (inline) function (originally appeared # in OFED v1.3). if test "$enable_openib_rdmacm" != "no"; then for ac_header in rdma/rdma_cma.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/rdma_cma.h" "ac_cv_header_rdma_rdma_cma_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_rdma_cma_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_RDMA_CMA_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_id in -lrdmacm" >&5 $as_echo_n "checking for rdma_create_id in -lrdmacm... " >&6; } if ${ac_cv_lib_rdmacm_rdma_create_id+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lrdmacm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char rdma_create_id (); int main () { return rdma_create_id (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_rdmacm_rdma_create_id=yes else ac_cv_lib_rdmacm_rdma_create_id=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_id" >&5 $as_echo "$ac_cv_lib_rdmacm_rdma_create_id" >&6; } if test "x$ac_cv_lib_rdmacm_rdma_create_id" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_get_peer_addr" >&5 $as_echo_n "checking for rdma_get_peer_addr... " >&6; } btl_openib_msg=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "rdma/rdma_cma.h" int main () { void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : btl_openib_have_rdmacm=1 btl_openib_msg=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $btl_openib_msg" >&5 $as_echo "$btl_openib_msg" >&6; } fi fi done if test "1" = "$btl_openib_have_rdmacm"; then btl_openib_LIBS="-lrdmacm $btl_openib_LIBS" else if test "$enable_openib_rdmacm" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-openib-rdmacm was specified but the" >&5 $as_echo "$as_me: WARNING: --enable-openib-rdmacm was specified but the" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: appropriate files could not be found" >&5 $as_echo "$as_me: WARNING: appropriate files could not be found" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please install librdmacm and librdmacm-devel or disable rdmacm support" >&5 $as_echo "$as_me: WARNING: Please install librdmacm and librdmacm-devel or disable rdmacm support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi # is udcm enabled if test "$enable_openib_udcm" = "yes"; then btl_openib_have_udcm=1 fi fi CPPFLAGS="$ompi_check_openib_btl_openib_save_CPPFLAGS" LDFLAGS="$ompi_check_openib_btl_openib_save_LDFLAGS" LIBS="$ompi_check_openib_btl_openib_save_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if UD CM is enabled" >&5 $as_echo_n "checking if UD CM is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_UDCM $btl_openib_have_udcm _ACEOF if test "1" = "$btl_openib_have_udcm"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenFabrics RDMACM support is enabled" >&5 $as_echo_n "checking if OpenFabrics RDMACM support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_RDMACM $btl_openib_have_rdmacm _ACEOF if test "1" = "$btl_openib_have_rdmacm"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else if test "$opal_want_verbs" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Verbs support requested (via --with-verbs) but not found." >&5 $as_echo "$as_me: WARNING: Verbs support requested (via --with-verbs) but not found." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&5 $as_echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&2;} as_fn_error $? "Aborting." "$LINENO" 5 fi btl_openib_happy="no" fi # 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_struct_ibv_exp_send_wr; 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_struct_ibv_exp_send_wr\"" 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 whether expanded verbs are available" >&5 $as_echo_n "checking whether expanded verbs are available... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct ibv_exp_send_wr; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : have_struct_ibv_exp_send_wr=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else have_struct_ibv_exp_send_wr=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat >>confdefs.h <<_ACEOF #define HAVE_EXP_VERBS $have_struct_ibv_exp_send_wr _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_EXP_ATOMIC_HCA_REPLY_BE" "ac_cv_have_decl_IBV_EXP_ATOMIC_HCA_REPLY_BE" "#include " if test "x$ac_cv_have_decl_IBV_EXP_ATOMIC_HCA_REPLY_BE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EXP_ATOMIC_HCA_REPLY_BE $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_EXP_QP_CREATE_ATOMIC_BE_REPLY" "ac_cv_have_decl_IBV_EXP_QP_CREATE_ATOMIC_BE_REPLY" "#include " if test "x$ac_cv_have_decl_IBV_EXP_QP_CREATE_ATOMIC_BE_REPLY" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EXP_QP_CREATE_ATOMIC_BE_REPLY $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ibv_exp_create_qp" "ac_cv_have_decl_ibv_exp_create_qp" "#include " if test "x$ac_cv_have_decl_ibv_exp_create_qp" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EXP_CREATE_QP $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ibv_exp_query_device" "ac_cv_have_decl_ibv_exp_query_device" "#include " if test "x$ac_cv_have_decl_ibv_exp_query_device" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EXP_QUERY_DEVICE $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_EXP_QP_INIT_ATTR_ATOMICS_ARG" "ac_cv_have_decl_IBV_EXP_QP_INIT_ATTR_ATOMICS_ARG" "#include " if test "x$ac_cv_have_decl_IBV_EXP_QP_INIT_ATTR_ATOMICS_ARG" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EXP_QP_INIT_ATTR_ATOMICS_ARG $ac_have_decl _ACEOF ac_fn_c_check_member "$LINENO" "struct ibv_exp_device_attr" "ext_atom" "ac_cv_member_struct_ibv_exp_device_attr_ext_atom" "#include " if test "x$ac_cv_member_struct_ibv_exp_device_attr_ext_atom" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOM 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "struct ibv_exp_device_attr" "exp_atomic_cap" "ac_cv_member_struct_ibv_exp_device_attr_exp_atomic_cap" "#include " if test "x$ac_cv_member_struct_ibv_exp_device_attr_exp_atomic_cap" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXP_ATOMIC_CAP 1 _ACEOF fi if test '$have_struct_ibv_exp_send_wr' = 1; then : btl_openib 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 "$btl_openib_happy" = "yes"; then : # With the new openib flags, look for ibv_fork_init btl_openib_LDFLAGS_save="$LDFLAGS" btl_openib_LIBS_save="$LIBS" LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS" LIBS="$LIBS $btl_openib_LIBS" for ac_func in ibv_fork_init do : ac_fn_c_check_func "$LINENO" "ibv_fork_init" "ac_cv_func_ibv_fork_init" if test "x$ac_cv_func_ibv_fork_init" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IBV_FORK_INIT 1 _ACEOF fi done LDFLAGS="$btl_openib_LDFLAGS_save" LIBS="$btl_openib_LIBS_save" should_build=$should_build else should_build=0 fi if test "$btl_openib_happy" = "yes"; then : if test "x$btl_openib_have_xrc" = "x1"; then cpcs="$cpcs xoob" fi if test "x$btl_openib_have_rdmacm" = "x1"; then cpcs="$cpcs rdmacm" if test "$enable_openib_rdmacm_ibaddr" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking IB addressing" >&5 $as_echo_n "checking IB addressing... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef AF_IB yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "yes" >/dev/null 2>&1; then : for ac_header in rdma/rsocket.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/rsocket.h" "ac_cv_header_rdma_rsocket_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_rsocket_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_RSOCKET_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define BTL_OPENIB_RDMACM_IB_ADDR 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "#define BTL_OPENIB_RDMACM_IB_ADDR 0" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: There is no IB_AF addressing support by lib rdmacm." >&5 $as_echo "$as_me: WARNING: There is no IB_AF addressing support by lib rdmacm." >&2;} fi done else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "#define BTL_OPENIB_RDMACM_IB_ADDR 0" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: There is no IB_AF addressing support by lib rdmacm." >&5 $as_echo "$as_me: WARNING: There is no IB_AF addressing support by lib rdmacm." >&2;} fi rm -f conftest* else $as_echo "#define BTL_OPENIB_RDMACM_IB_ADDR 0" >>confdefs.h fi fi if test "x$btl_openib_have_udcm" = "x1"; then cpcs="$cpcs udcm" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking which openib btl cpcs will be built" >&5 $as_echo_n "checking which openib btl cpcs will be built... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpcs" >&5 $as_echo "$cpcs" >&6; } fi # make sure that CUDA-aware checks have been done # substitute in the things needed to build openib # 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/openib/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components openib" if test "$compile_mode" = "dso" ; then dso_components="$dso_components openib" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/openib/lib${OPAL_LIB_PREFIX}mca_btl_openib.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/openib/libmca_btl_openib.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_openib_component;" >> $outfile.extern echo " &mca_btl_openib_component, " >> $outfile.struct static_components="$static_components openib" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:openib can compile" >&5 $as_echo_n "checking if MCA component btl:openib can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "openib" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component openib was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "openib" ; then as_fn_error $? "*** btl component openib was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_openib_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_openib_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_openib_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_openib_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_openib_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_openib_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_openib_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_openib_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_openib_WRAPPER_EXTRA_CPPFLAGS ($btl_openib_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_openib_WRAPPER_EXTRA_CPPFLAGS ($btl_openib_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:openib can compile" >&5 $as_echo_n "checking if MCA component btl:openib can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "openib" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"openib\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "openib" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"openib\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components openib" fi if test $should_build -eq 1 && test "x$btl_openib_have_xrc" = "x1"; then MCA_btl_openib_have_xrc_TRUE= MCA_btl_openib_have_xrc_FALSE='#' else MCA_btl_openib_have_xrc_TRUE='#' MCA_btl_openib_have_xrc_FALSE= fi if test $should_build -eq 1 && test "x$btl_openib_have_rdmacm" = "x1"; then MCA_btl_openib_have_rdmacm_TRUE= MCA_btl_openib_have_rdmacm_FALSE='#' else MCA_btl_openib_have_rdmacm_TRUE='#' MCA_btl_openib_have_rdmacm_FALSE= fi if test $should_build -eq 1 && test "x$btl_openib_have_opensm_devel" = "x1"; then MCA_btl_openib_have_dynamic_sl_TRUE= MCA_btl_openib_have_dynamic_sl_FALSE='#' else MCA_btl_openib_have_dynamic_sl_TRUE='#' MCA_btl_openib_have_dynamic_sl_FALSE= fi if test $should_build -eq 1 && test "x$btl_openib_have_udcm" = "x1"; then MCA_btl_openib_have_udcm_TRUE= MCA_btl_openib_have_udcm_FALSE='#' else MCA_btl_openib_have_udcm_TRUE='#' MCA_btl_openib_have_udcm_FALSE= fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_openib_DSO=1 else BUILD_opal_btl_openib_DSO=0 fi if test "$BUILD_opal_btl_openib_DSO" = "1"; then MCA_BUILD_opal_btl_openib_DSO_TRUE= MCA_BUILD_opal_btl_openib_DSO_FALSE='#' else MCA_BUILD_opal_btl_openib_DSO_TRUE='#' MCA_BUILD_opal_btl_openib_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component btl:portals4 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/portals4" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "portals4" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_portals4" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_portals4" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_portals4" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:portals4 compile mode" >&5 $as_echo_n "checking for MCA component btl:portals4 compile mode... " >&6; } if test "$DIRECT_btl" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/btl/portals4/Makefile" if test -z "$ompi_check_portals4_happy" ; then # Check whether --with-portals4 was given. if test "${with_portals4+set}" = set; then : withval=$with_portals4; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals4 value" >&5 $as_echo_n "checking --with-portals4 value... " >&6; } if test "$with_portals4" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-portals4)" >&5 $as_echo "simple no (specified --without-portals4)" >&6; } else if test "$with_portals4" = "yes" || test "x$with_portals4" = "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_portals4"; 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_portals4 not found" >&5 $as_echo "$as_me: WARNING: Directory $with_portals4 not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_portals4/include/portals4.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_portals4/include/portals4.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_portals4/include/portals4.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals4)" >&5 $as_echo "sanity check ok ($with_portals4)" >&6; } fi fi fi fi # Check whether --with-portals4-libdir was given. if test "${with_portals4_libdir+set}" = set; then : withval=$with_portals4_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals4-libdir value" >&5 $as_echo_n "checking --with-portals4-libdir value... " >&6; } if test "$with_portals4_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-portals4-libdir)" >&5 $as_echo "simple no (specified --without-portals4-libdir)" >&6; } else if test "$with_portals4_libdir" = "yes" || test "x$with_portals4_libdir" = "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_portals4_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_portals4_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_portals4_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_portals4_libdir/libportals.* 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_portals4_libdir/libportals.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_portals4_libdir/libportals.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals4_libdir)" >&5 $as_echo "sanity check ok ($with_portals4_libdir)" >&6; } fi fi fi fi ompi_check_portals4_btl_portals4_save_CPPFLAGS="$CPPFLAGS" ompi_check_portals4_btl_portals4_save_LDFLAGS="$LDFLAGS" ompi_check_portals4_btl_portals4_save_LIBS="$LIBS" if test "$with_portals4" != "no"; then : if test ! -z "$with_portals4" && test "$with_portals4" != "yes"; then : ompi_check_portals4_dir="$with_portals4" fi if test ! -z "$with_portals4_libdir" && test "$with_portals4_libdir" != "yes"; then : ompi_check_portals4_libdir="$with_portals4_libdir" fi opal_check_package_opal_check_portals4_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_check_portals4_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_check_portals4_save_LIBS="$LIBS" opal_check_package_opal_check_portals4_orig_CPPFLAGS="$opal_check_portals4_CPPFLAGS" opal_check_package_opal_check_portals4_orig_LDFLAGS="$opal_check_portals4_LDFLAGS" opal_check_package_opal_check_portals4_orig_LIBS="$opal_check_portals4_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_portals4_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_portals4_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 portals4.h do : ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PORTALS4_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_portals4_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_check_portals4_CPPFLAGS="$opal_check_portals4_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in portals4.h do : ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PORTALS4_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_PtlLEAppend opal_check_package_lib_happy="no" if test "$ompi_check_portals4_libdir" != ""; then : # libdir was specified - search only there opal_check_portals4_LDFLAGS="$opal_check_portals4_LDFLAGS -L$ompi_check_portals4_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_portals4_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend 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 libportals requires libnl v1 or v3" >&5 $as_echo_n "checking if libportals requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PtlLEAppend (void); int main(int argc, char *argv[]) { PtlLEAppend (); 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:119268: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_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:119275: \$? = $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 portals" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib portals" >&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, libportals links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&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 portals requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas portals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs portals" # 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 libportals requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs portals" # 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_PtlLEAppend" != "no" && test "$ac_cv_search_PtlLEAppend" != "none required"; then : opal_check_portals4_LIBS="$ac_cv_search_PtlLEAppend " else opal_check_portals4_LIBS="" 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_PtlLEAppend opal_check_package_lib_happy="no" if test "$ompi_check_portals4_libdir" != ""; then : # libdir was specified - search only there opal_check_portals4_LDFLAGS="$opal_check_portals4_LDFLAGS -L$ompi_check_portals4_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_portals4_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend 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 libportals requires libnl v1 or v3" >&5 $as_echo_n "checking if libportals requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PtlLEAppend (void); int main(int argc, char *argv[]) { PtlLEAppend (); 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:119993: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_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:120000: \$? = $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 portals" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib portals" >&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, libportals links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&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 portals requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas portals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs portals" # 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 libportals requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs portals" # 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_PtlLEAppend" != "no" && test "$ac_cv_search_PtlLEAppend" != "none required"; then : opal_check_portals4_LIBS="$ac_cv_search_PtlLEAppend " else opal_check_portals4_LIBS="" 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 : ompi_check_portals4_happy="yes" else opal_check_portals4_CPPFLAGS="$opal_check_package_opal_check_portals4_orig_CPPFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" opal_check_portals4_LIBS="$opal_check_package_opal_check_portals4_orig_LIBS" ompi_check_portals4_happy="no" fi CPPFLAGS="$opal_check_package_opal_check_portals4_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_check_portals4_save_LDFLAGS" LIBS="$opal_check_package_opal_check_portals4_save_LIBS" else ompi_check_portals4_happy="no" fi CPPFLAGS="$ompi_check_portals4_btl_portals4_save_CPPFLAGS" LDFLAGS="$ompi_check_portals4_btl_portals4_save_LDFLAGS" LIBS="$ompi_check_portals4_btl_portals4_save_LIBS" max_md_size=0 # Check whether --with-portals4-max-md-size was given. if test "${with_portals4_max_md_size+set}" = set; then : withval=$with_portals4_max_md_size; fi if test "$with_portals4_max_md_size" = "yes" || test "$with_portals4_max_md_size" = "no"; then : as_fn_error $? "--with-portals4-max-md-size requires an integer argument" "$LINENO" 5 else if test -n "$with_portals4_max_md_size"; then : max_md_size="$with_portals4_max_md_size" fi fi cat >>confdefs.h <<_ACEOF #define OPAL_PORTALS4_MAX_MD_SIZE $max_md_size _ACEOF max_va_size=0 # Check whether --with-portals4-max-va-size was given. if test "${with_portals4_max_va_size+set}" = set; then : withval=$with_portals4_max_va_size; fi if test "$with_portals4_max_va_size" = "yes" || test "$with_portals4_max_va_size" = "no"; then : as_fn_error $? "--with-portals4-max-va-size requires an integer argument" "$LINENO" 5 else if test -n "$with_portals4_max_va_size"; then : max_va_size="$with_portals4_max_va_size" fi fi cat >>confdefs.h <<_ACEOF #define OPAL_PORTALS4_MAX_VA_SIZE $max_va_size _ACEOF if (test $max_md_size -eq 0 && test $max_va_size -ne 0 ) || (test $max_md_size -ne 0 && test $max_va_size -eq 0 ); then : as_fn_error $? "If either --with-portals4-max-md-size or --with-portals4-max-va-size is set, both must be set." "$LINENO" 5 fi if test $max_md_size -ge $max_va_size; then : max_md_size=0 max_va_size=0 fi if test $max_md_size -ne 0 && test $max_va_size -ne 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: Portals 4 address space size: $max_md_size, $max_va_size" >&5 $as_echo "$as_me: Portals 4 address space size: $max_md_size, $max_va_size" >&6;} 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 Transports | tr ' ' '_') ompi_summary_line="Portals4: $ompi_check_portals4_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 fi if test "$ompi_check_portals4_happy" = "yes"; then : btl_portals4_LDFLAGS="$btl_portals4_LDFLAGS $opal_check_portals4_LDFLAGS" btl_portals4_CPPFLAGS="$btl_portals4_CPPFLAGS $opal_check_portals4_CPPFLAGS" btl_portals4_LIBS="$btl_portals4_LIBS $opal_check_portals4_LIBS" btl_portals4_happy="yes" else if test ! -z "$with_portals4" && test "$with_portals4" != "no"; then : as_fn_error $? "Portals4 support requested but not found. Aborting" "$LINENO" 5 fi btl_portals4_happy="no" fi if test "$btl_portals4_happy" = "yes"; then : btl_portals4_WRAPPER_EXTRA_LDFLAGS="$btl_portals4_LDFLAGS" btl_portals4_WRAPPER_EXTRA_LIBS="$btl_portals4_LIBS" should_build=$should_build else should_build=0 fi # need to propogate CPPFLAGS to all of OPAL if test "$DIRECT_btl" = "portals4"; then : CPPFLAGS="$CPPFLAGS $btl_portals4_CPPFLAGS" fi # Check whether --enable-btl-portals4-flow-control was given. if test "${enable_btl_portals4_flow_control+set}" = set; then : enableval=$enable_btl_portals4_flow_control; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable flow control" >&5 $as_echo_n "checking whether to enable flow control... " >&6; } if test "$enable_btl_portals4_flow_control" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } btl_portals4_flow_control_enabled=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } btl_portals4_flow_control_enabled=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_BTL_PORTALS4_FLOW_CONTROL $btl_portals4_flow_control_enabled _ACEOF if test "$btl_portals4_flow_control_enabled" = "1"; then OPAL_BTL_PORTALS4_FLOW_CONTROL_TRUE= OPAL_BTL_PORTALS4_FLOW_CONTROL_FALSE='#' else OPAL_BTL_PORTALS4_FLOW_CONTROL_TRUE='#' OPAL_BTL_PORTALS4_FLOW_CONTROL_FALSE= fi # substitute in the things needed to build portals4 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/portals4/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components portals4" if test "$compile_mode" = "dso" ; then dso_components="$dso_components portals4" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/portals4/lib${OPAL_LIB_PREFIX}mca_btl_portals4.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/portals4/libmca_btl_portals4.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_portals4_component;" >> $outfile.extern echo " &mca_btl_portals4_component, " >> $outfile.struct static_components="$static_components portals4" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:portals4 can compile" >&5 $as_echo_n "checking if MCA component btl:portals4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "portals4" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component portals4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "portals4" ; then as_fn_error $? "*** btl component portals4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_portals4_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_portals4_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_portals4_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_portals4_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_portals4_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_portals4_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_portals4_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_portals4_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_portals4_WRAPPER_EXTRA_CPPFLAGS ($btl_portals4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_portals4_WRAPPER_EXTRA_CPPFLAGS ($btl_portals4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:portals4 can compile" >&5 $as_echo_n "checking if MCA component btl:portals4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"portals4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"portals4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components portals4" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_portals4_DSO=1 else BUILD_opal_btl_portals4_DSO=0 fi if test "$BUILD_opal_btl_portals4_DSO" = "1"; then MCA_BUILD_opal_btl_portals4_DSO_TRUE= MCA_BUILD_opal_btl_portals4_DSO_FALSE='#' else MCA_BUILD_opal_btl_portals4_DSO_TRUE='#' MCA_BUILD_opal_btl_portals4_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component btl:sm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/sm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "sm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_sm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_sm" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_sm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:sm compile mode" >&5 $as_echo_n "checking for MCA component btl:sm compile mode... " >&6; } if test "$DIRECT_btl" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/btl/sm/Makefile" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/sm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components sm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components sm" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/sm/lib${OPAL_LIB_PREFIX}mca_btl_sm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/sm/libmca_btl_sm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_sm_component;" >> $outfile.extern echo " &mca_btl_sm_component, " >> $outfile.struct static_components="$static_components sm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:sm can compile" >&5 $as_echo_n "checking if MCA component btl:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "sm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "sm" ; then as_fn_error $? "*** btl component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_sm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_sm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_sm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_sm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_sm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_sm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_sm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_sm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_sm_WRAPPER_EXTRA_CPPFLAGS ($btl_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_sm_WRAPPER_EXTRA_CPPFLAGS ($btl_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:sm can compile" >&5 $as_echo_n "checking if MCA component btl:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components sm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_sm_DSO=1 else BUILD_opal_btl_sm_DSO=0 fi if test "$BUILD_opal_btl_sm_DSO" = "1"; then MCA_BUILD_opal_btl_sm_DSO_TRUE= MCA_BUILD_opal_btl_sm_DSO_FALSE='#' else MCA_BUILD_opal_btl_sm_DSO_TRUE='#' MCA_BUILD_opal_btl_sm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component btl:smcuda (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/smcuda" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "smcuda" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_smcuda" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_smcuda" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_smcuda" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:smcuda compile mode" >&5 $as_echo_n "checking for MCA component btl:smcuda compile mode... " >&6; } if test "$DIRECT_btl" = "smcuda" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/btl/smcuda/Makefile" # make sure that CUDA-aware checks have been done # Only build if CUDA support is available if test "x$CUDA_SUPPORT" = "x1"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/smcuda/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components smcuda" if test "$compile_mode" = "dso" ; then dso_components="$dso_components smcuda" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/smcuda/lib${OPAL_LIB_PREFIX}mca_btl_smcuda.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/smcuda/libmca_btl_smcuda.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_smcuda_component;" >> $outfile.extern echo " &mca_btl_smcuda_component, " >> $outfile.struct static_components="$static_components smcuda" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:smcuda can compile" >&5 $as_echo_n "checking if MCA component btl:smcuda can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "smcuda" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component smcuda was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "smcuda" ; then as_fn_error $? "*** btl component smcuda was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_smcuda_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_smcuda_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_smcuda_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_smcuda_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_smcuda_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_smcuda_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_smcuda_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_smcuda_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_smcuda_WRAPPER_EXTRA_CPPFLAGS ($btl_smcuda_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_smcuda_WRAPPER_EXTRA_CPPFLAGS ($btl_smcuda_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:smcuda can compile" >&5 $as_echo_n "checking if MCA component btl:smcuda can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "smcuda" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"smcuda\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"smcuda\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "smcuda" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"smcuda\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"smcuda\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components smcuda" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_smcuda_DSO=1 else BUILD_opal_btl_smcuda_DSO=0 fi if test "$BUILD_opal_btl_smcuda_DSO" = "1"; then MCA_BUILD_opal_btl_smcuda_DSO_TRUE= MCA_BUILD_opal_btl_smcuda_DSO_FALSE='#' else MCA_BUILD_opal_btl_smcuda_DSO_TRUE='#' MCA_BUILD_opal_btl_smcuda_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component btl:tcp (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/tcp" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "tcp" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_tcp" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_tcp" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_tcp" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:tcp compile mode" >&5 $as_echo_n "checking for MCA component btl:tcp compile mode... " >&6; } if test "$DIRECT_btl" = "tcp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/btl/tcp/Makefile" # check for sockaddr_in (a good sign we have TCP) ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default #ifdef HAVE_NETINET_IN_H #include #endif " if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_SOCKADDR_IN 1 _ACEOF opal_btl_tcp_happy=yes should_build=$should_build else opal_btl_tcp_happy=no should_build=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 Transports | tr ' ' '_') ompi_summary_line="TCP: $opal_btl_tcp_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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/tcp/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components tcp" if test "$compile_mode" = "dso" ; then dso_components="$dso_components tcp" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/tcp/lib${OPAL_LIB_PREFIX}mca_btl_tcp.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/tcp/libmca_btl_tcp.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_tcp_component;" >> $outfile.extern echo " &mca_btl_tcp_component, " >> $outfile.struct static_components="$static_components tcp" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:tcp can compile" >&5 $as_echo_n "checking if MCA component btl:tcp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "tcp" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component tcp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "tcp" ; then as_fn_error $? "*** btl component tcp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_tcp_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_tcp_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_tcp_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_tcp_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_tcp_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_tcp_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_tcp_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_tcp_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_tcp_WRAPPER_EXTRA_CPPFLAGS ($btl_tcp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_tcp_WRAPPER_EXTRA_CPPFLAGS ($btl_tcp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:tcp can compile" >&5 $as_echo_n "checking if MCA component btl:tcp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "tcp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "tcp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components tcp" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_tcp_DSO=1 else BUILD_opal_btl_tcp_DSO=0 fi if test "$BUILD_opal_btl_tcp_DSO" = "1"; then MCA_BUILD_opal_btl_tcp_DSO_TRUE= MCA_BUILD_opal_btl_tcp_DSO_FALSE='#' else MCA_BUILD_opal_btl_tcp_DSO_TRUE='#' MCA_BUILD_opal_btl_tcp_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component btl:uct (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/uct" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "uct" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_uct" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_uct" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_uct" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:uct compile mode" >&5 $as_echo_n "checking for MCA component btl:uct compile mode... " >&6; } if test "$DIRECT_btl" = "uct" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/btl/uct/Makefile" # 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_check_ucx_dir; 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_check_ucx_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test -z "$ompi_check_ucx_happy"; then : # Check whether --with-ucx was given. if test "${with_ucx+set}" = set; then : withval=$with_ucx; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx value" >&5 $as_echo_n "checking --with-ucx value... " >&6; } if test "$with_ucx" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx)" >&5 $as_echo "simple no (specified --without-ucx)" >&6; } else if test "$with_ucx" = "yes" || test "x$with_ucx" = "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_ucx"; 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_ucx not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx/include/ucp/api/ucp.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_ucx/include/ucp/api/ucp.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx/include/ucp/api/ucp.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx)" >&5 $as_echo "sanity check ok ($with_ucx)" >&6; } fi fi fi fi # Check whether --with-ucx-libdir was given. if test "${with_ucx_libdir+set}" = set; then : withval=$with_ucx_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx-libdir value" >&5 $as_echo_n "checking --with-ucx-libdir value... " >&6; } if test "$with_ucx_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx-libdir)" >&5 $as_echo "simple no (specified --without-ucx-libdir)" >&6; } else if test "$with_ucx_libdir" = "yes" || test "x$with_ucx_libdir" = "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_ucx_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ucx_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx_libdir/libucp.* 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_ucx_libdir/libucp.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx_libdir/libucp.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx_libdir)" >&5 $as_echo "sanity check ok ($with_ucx_libdir)" >&6; } fi fi fi fi if test "$with_ucx" != "no"; then : if test -n "$with_ucx" && test "$with_ucx" != "yes"; then : ompi_check_ucx_dir="$with_ucx" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucx" >&5 $as_echo_n "checking for ucx... " >&6; } if test -n "$ucx_CFLAGS"; then pkg_cv_ucx_CFLAGS="$ucx_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_CFLAGS=`$PKG_CONFIG --cflags "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_LIBS"; then pkg_cv_ucx_LIBS="$ucx_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_LIBS=`$PKG_CONFIG --libs "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_STATIC_LIBS"; then pkg_cv_ucx_STATIC_LIBS="$ucx_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_STATIC_LIBS=`$PKG_CONFIG --libs --static "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ucx_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ucx" 2>&1` else ucx_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ucx" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ucx_PKG_ERRORS" >&5 true elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } true else ucx_CFLAGS=$pkg_cv_ucx_CFLAGS ucx_LIBS=$pkg_cv_ucx_LIBS ucx_STATIC_LIBS=$pkg_cv_ucx_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_check_ucx_dir=`$PKG_CONFIG --variable=prefix ucx` if test "$ompi_check_ucx_dir" = "/usr"; then : ompi_check_ucx_dir= fi fi fi ompi_check_ucx_happy="no" if test -z "$ompi_check_ucx_dir"; then : opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo | 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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:124011: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:124018: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:124736: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:124743: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } fi if test "$ompi_check_ucx_happy" = "no"; then : ompi_check_ucx_dir=/opt/ucx fi fi if test "$ompi_check_ucx_happy" != yes; then : if test -n "$with_ucx_libdir"; then : ompi_check_ucx_libdir="$with_ucx_libdir" else files=`ls $ompi_check_ucx_dir/lib64/libucp.* 2> /dev/null | wc -l` if test "$files" -gt 0; then : ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib64 else ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib fi fi ompi_check_ucx_btl_uct_save_CPPFLAGS="$CPPFLAGS" ompi_check_ucx_btl_uct_save_LDFLAGS="$LDFLAGS" ompi_check_ucx_btl_uct_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ucx_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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:125642: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:125649: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:126367: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:126374: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" CPPFLAGS="$ompi_check_ucx_btl_uct_save_CPPFLAGS" LDFLAGS="$ompi_check_ucx_btl_uct_save_LDFLAGS" LIBS="$ompi_check_ucx_btl_uct_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } CPPFLAGS=$old_CPPFLAGS fi fi old_CPPFLAGS="$CPPFLAGS" if test -n "$ompi_check_ucx_dir"; then : CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" fi # Turn off UCX version v1.8 due to issue #8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCX version" >&5 $as_echo_n "checking UCX version... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if (UCP_API_MAJOR == 1) && (UCP_API_MINOR == 8) #error "Invalid version" #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (not 1.8.x)" >&5 $as_echo "ok (not 1.8.x)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad (1.8.x)" >&5 $as_echo "bad (1.8.x)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&5 $as_echo "$as_me: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please upgrade to UCX version 1.9 or higher." >&5 $as_echo "$as_me: WARNING: Please upgrade to UCX version 1.9 or higher." >&2;} ompi_check_ucx_happy=no fi rm -f conftest.err conftest.i conftest.$ac_ext if test "$ompi_check_ucx_happy" = yes; then : ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbr" "ac_cv_have_decl_ucp_tag_send_nbr" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbr" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBR $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_TAG_SEND_NBR 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nb" "ac_cv_have_decl_ucp_ep_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_worker_flush_nb" "ac_cv_have_decl_ucp_worker_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_worker_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_request_check_status" "ac_cv_have_decl_ucp_request_check_status" "#include " if test "x$ac_cv_have_decl_ucp_request_check_status" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_REQUEST_CHECK_STATUS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nb" "ac_cv_have_decl_ucp_put_nb" "#include " if test "x$ac_cv_have_decl_ucp_put_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nb" "ac_cv_have_decl_ucp_get_nb" "#include " if test "x$ac_cv_have_decl_ucp_get_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nbx" "ac_cv_have_decl_ucp_put_nbx" "#include " if test "x$ac_cv_have_decl_ucp_put_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nbx" "ac_cv_have_decl_ucp_get_nbx" "#include " if test "x$ac_cv_have_decl_ucp_get_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_atomic_op_nbx" "ac_cv_have_decl_ucp_atomic_op_nbx" "#include " if test "x$ac_cv_have_decl_ucp_atomic_op_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_OP_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nbx" "ac_cv_have_decl_ucp_ep_flush_nbx" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_events" "ac_cv_have_decl_ucm_test_events" "#include " if test "x$ac_cv_have_decl_ucm_test_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_external_events" "ac_cv_have_decl_ucm_test_external_events" "#include " if test "x$ac_cv_have_decl_ucm_test_external_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EXTERNAL_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_AND" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_AND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_OR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_OR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_XOR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_XOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FAND" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FAND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FXOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FXOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "#include " if test "x$ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_OP_ATTR_FLAG_MULTI_SEND" "ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" "#include " if test "x$ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_OP_ATTR_FLAG_MULTI_SEND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_WORKER_ADDRESS_FLAGS 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "UCP_ATTR_FIELD_MEMORY_TYPES" "ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" "#include " if test "x$ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATTR_FIELD_MEMORY_TYPES $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_ATTR_MEMORY_TYPES 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbx" "ac_cv_have_decl_ucp_tag_send_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_send_sync_nbx" "ac_cv_have_decl_ucp_tag_send_sync_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_sync_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_SYNC_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_recv_nbx" "ac_cv_have_decl_ucp_tag_recv_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_recv_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_RECV_NBX $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "ucp_request_param_t" "ac_cv_type_ucp_request_param_t" "#include " if test "x$ac_cv_type_ucp_request_param_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_REQUEST_PARAM_T 1 _ACEOF fi fi CPPFLAGS=$old_CPPFLAGS # 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 Transports | tr ' ' '_') ompi_summary_line="Open UCX: $ompi_check_ucx_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 fi fi if test "$ompi_check_ucx_happy" = "yes"; then : btl_uct_CPPFLAGS="$btl_uct_CPPFLAGS $ompi_check_ucx_CPPFLAGS" btl_uct_LDFLAGS="$btl_uct_LDFLAGS $ompi_check_ucx_LDFLAGS" btl_uct_LIBS="$btl_uct_LIBS $ompi_check_ucx_LIBS" $as_echo "#define HAVE_UCX 1" >>confdefs.h btl_uct_happy="yes" else if test ! -z "$with_ucx" && test "$with_ucx" != "no"; then : as_fn_error $? "UCX support requested but not found. Aborting" "$LINENO" 5 fi $as_echo "#define HAVE_UCX 0" >>confdefs.h btl_uct_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 # Check whether --enable-uct-version-check was given. if test "${enable_uct_version_check+set}" = set; then : enableval=$enable_uct_version_check; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking check uct version" >&5 $as_echo_n "checking check uct version... " >&6; } if test "$enable_uct_version_check" != "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 max_allowed_uct_major=1 max_allowed_uct_minor=8 if test "$btl_uct_happy" = "yes" && test "$enable_uct_version_check" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCT version compatibility" >&5 $as_echo_n "checking UCT version compatibility... " >&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 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=\"CPPFLAGS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` CPPFLAGS_save="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $btl_uct_CPPFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if (UCT_VERNO_MAJOR > $max_allowed_uct_major) #error "UCT MAJOR VERNO > $max_allowed_uct_major" #endif #if (UCT_VERNO_MINOR > $max_allowed_uct_minor) #error "UCT MINOR VERNO > $max_allowed_uct_minor" #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: UCT version compatible" >&5 $as_echo "UCT version compatible" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: UCT version not compatible - need UCX $max_allowed_uct_major.$max_allowed_uct_minor or older" >&5 $as_echo "UCT version not compatible - need UCX $max_allowed_uct_major.$max_allowed_uct_minor or older" >&6; } btl_uct_happy="no" fi rm -f conftest.err conftest.i conftest.$ac_ext CPPFLAGS="$CPPFLAGS_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 "$btl_uct_happy" = "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 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=\"CPPFLAGS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` CPPFLAGS_save="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $btl_uct_CPPFLAGS" ac_fn_c_check_decl "$LINENO" "UCT_PROGRESS_THREAD_SAFE" "ac_cv_have_decl_UCT_PROGRESS_THREAD_SAFE" "#include " if test "x$ac_cv_have_decl_UCT_PROGRESS_THREAD_SAFE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCT_PROGRESS_THREAD_SAFE $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCT_CB_FLAG_SYNC" "ac_cv_have_decl_UCT_CB_FLAG_SYNC" "#include " if test "x$ac_cv_have_decl_UCT_CB_FLAG_SYNC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCT_CB_FLAG_SYNC $ac_have_decl _ACEOF CPPFLAGS="$CPPFLAGS_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 "$btl_uct_happy" = "yes"; then : should_build=$should_build btl_uct_LIBS="$btl_uct_LIBS -luct" else should_build=0 fi # substitute in the things needed to build ucx opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/uct/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components uct" if test "$compile_mode" = "dso" ; then dso_components="$dso_components uct" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/uct/lib${OPAL_LIB_PREFIX}mca_btl_uct.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/uct/libmca_btl_uct.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_uct_component;" >> $outfile.extern echo " &mca_btl_uct_component, " >> $outfile.struct static_components="$static_components uct" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:uct can compile" >&5 $as_echo_n "checking if MCA component btl:uct can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "uct" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component uct was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "uct" ; then as_fn_error $? "*** btl component uct was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_uct_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_uct_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_uct_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_uct_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_uct_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_uct_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_uct_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_uct_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_uct_WRAPPER_EXTRA_CPPFLAGS ($btl_uct_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_uct_WRAPPER_EXTRA_CPPFLAGS ($btl_uct_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:uct can compile" >&5 $as_echo_n "checking if MCA component btl:uct can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "uct" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"uct\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"uct\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "uct" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"uct\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"uct\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components uct" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_uct_DSO=1 else BUILD_opal_btl_uct_DSO=0 fi if test "$BUILD_opal_btl_uct_DSO" = "1"; then MCA_BUILD_opal_btl_uct_DSO_TRUE= MCA_BUILD_opal_btl_uct_DSO_FALSE='#' else MCA_BUILD_opal_btl_uct_DSO_TRUE='#' MCA_BUILD_opal_btl_uct_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component btl:ugni (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/ugni" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "ugni" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_ugni" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_ugni" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_ugni" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:ugni compile mode" >&5 $as_echo_n "checking for MCA component btl:ugni compile mode... " >&6; } if test "$DIRECT_btl" = "ugni" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/btl/ugni/Makefile" if test -z "$opal_check_ugni_happy" ; then # Check whether --with-ugni was given. if test "${with_ugni+set}" = set; then : withval=$with_ugni; fi opal_check_ugni_happy="no" if test "$with_ugni" = "no"; then : opal_check_ugni_happy="no" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_UGNI" >&5 $as_echo_n "checking for CRAY_UGNI... " >&6; } if test -n "$CRAY_UGNI_CFLAGS"; then pkg_cv_CRAY_UGNI_CFLAGS="$CRAY_UGNI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-ugni\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-ugni") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_UGNI_CFLAGS=`$PKG_CONFIG --cflags "cray-ugni" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_UGNI_LIBS"; then pkg_cv_CRAY_UGNI_LIBS="$CRAY_UGNI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-ugni\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-ugni") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_UGNI_LIBS=`$PKG_CONFIG --libs "cray-ugni" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_UGNI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-ugni" 2>&1` else CRAY_UGNI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-ugni" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_UGNI_PKG_ERRORS" >&5 opal_check_ugni_happy="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_ugni_happy="no" else CRAY_UGNI_CFLAGS=$pkg_cv_CRAY_UGNI_CFLAGS CRAY_UGNI_LIBS=$pkg_cv_CRAY_UGNI_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_ugni_happy="yes" fi fi opal_check_ugni_btl_ugni_save_CPPFLAGS="$CPPFLAGS" opal_check_ugni_btl_ugni_save_LIBS="$LIBS" if test "$opal_check_ugni_happy" = "yes" ; then CPPFLAGS="$CPPFLAGS $CRAY_UGNI_CFLAGS" LIBS="$LIBS $CRAY_UGNI_LIBS" # echo "+++++++++++++++++++++++CPPFLAGS",$CPPFLAGS # echo "+++++++++++++++++++++++LDFLAGSS",$LDFLAGS # echo "+++++++++++++++++++++++1_CPPFLAGS",$btl_ugni_CPPFLAGS # echo "+++++++++++++++++++++++1_LDFLAGSS",$btl_ugni_LDFLAGS # sanity checks ac_fn_c_check_header_mongrel "$LINENO" "gni_pub.h" "ac_cv_header_gni_pub_h" "$ac_includes_default" if test "x$ac_cv_header_gni_pub_h" = xyes; then : else as_fn_error $? "'gni_pub.h not found.'" "$LINENO" 5 fi for ac_func in GNI_GetJobResInfo do : ac_fn_c_check_func "$LINENO" "GNI_GetJobResInfo" "ac_cv_func_GNI_GetJobResInfo" if test "x$ac_cv_func_GNI_GetJobResInfo" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GNI_GETJOBRESINFO 1 _ACEOF fi done CPPFLAGS="$opal_check_ugni_btl_ugni_save_CPPFLAGS" LIBS="$opal_check_ugni_btl_ugni_save_LIBS" fi if test "$opal_check_ugni_happy" = "yes" && test "$enable_progress_threads" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNI driver does not currently support progress threads. Disabling." >&5 $as_echo "$as_me: WARNING: GNI driver does not currently support progress threads. Disabling." >&2;} opal_check_ugni_happy="no" 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 Transports | tr ' ' '_') ompi_summary_line="Cray uGNI (Gemini/Aries): $opal_check_ugni_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 fi if test "$opal_check_ugni_happy" = "yes"; then : btl_ugni_CPPFLAGS="$btl_ugni_CPPFLAGS $CRAY_UGNI_CFLAGS" btl_ugni_LIBS="$btl_ugni_LIBS $CRAY_UGNI_LIBS" btl_ugni_happy="yes" else if test ! -z "$with_ugni" && test "$with_ugni" != "no"; then : as_fn_error $? "GNI support requested but not found. Cannot continue." "$LINENO" 5 fi btl_ugni_happy="no" fi if test "$btl_ugni_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build ugni opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/ugni/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ugni" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ugni" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/ugni/lib${OPAL_LIB_PREFIX}mca_btl_ugni.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/ugni/libmca_btl_ugni.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_ugni_component;" >> $outfile.extern echo " &mca_btl_ugni_component, " >> $outfile.struct static_components="$static_components ugni" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:ugni can compile" >&5 $as_echo_n "checking if MCA component btl:ugni can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "ugni" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component ugni was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "ugni" ; then as_fn_error $? "*** btl component ugni was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_ugni_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_ugni_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_ugni_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_ugni_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_ugni_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_ugni_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_ugni_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_ugni_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_ugni_WRAPPER_EXTRA_CPPFLAGS ($btl_ugni_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_ugni_WRAPPER_EXTRA_CPPFLAGS ($btl_ugni_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:ugni can compile" >&5 $as_echo_n "checking if MCA component btl:ugni can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "ugni" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ugni\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ugni\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "ugni" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ugni\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ugni\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ugni" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_ugni_DSO=1 else BUILD_opal_btl_ugni_DSO=0 fi if test "$BUILD_opal_btl_ugni_DSO" = "1"; then MCA_BUILD_opal_btl_ugni_DSO_TRUE= MCA_BUILD_opal_btl_ugni_DSO_FALSE='#' else MCA_BUILD_opal_btl_ugni_DSO_TRUE='#' MCA_BUILD_opal_btl_ugni_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component btl:usnic (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/usnic" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "usnic" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_usnic" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_usnic" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_usnic" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:usnic compile mode" >&5 $as_echo_n "checking for MCA component btl:usnic compile mode... " >&6; } if test "$DIRECT_btl" = "usnic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/btl/usnic/Makefile" # Check whether --with-usnic was given. if test "${with_usnic+set}" = set; then : withval=$with_usnic; fi # If --without-usnic was specified, then gracefully exit. # Otherwise, do the rest of the config. if test "x$with_usnic" = "xno"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-usnic specified; skipping usnic BTL" >&5 $as_echo "$as_me: WARNING: --without-usnic specified; skipping usnic BTL" >&2;} should_build=0 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 unit_tests; 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=\"unit_tests\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # see README.test for information about this scheme # Check whether --enable-opal-btl-usnic-unit-tests was given. if test "${enable_opal_btl_usnic_unit_tests+set}" = set; then : enableval=$enable_opal_btl_usnic_unit_tests; fi if test "X$enable_opal_btl_usnic_unit_tests" = "Xyes"; then : unit_tests=1 { $as_echo "$as_me:${as_lineno-$LINENO}: enabling usnic BTL unit tests" >&5 $as_echo "$as_me: enabling usnic BTL unit tests" >&6;} else unit_tests=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_BTL_USNIC_UNIT_TESTS $unit_tests _ACEOF unset unit_tests # The current logic in btl_usnic_compat.h checks the OPAL version as a # proxy for the top-level OPAL version. Unfortunately this does the wrong # thing for other top-level projects that might use the usnic BTL, such as # ORCM. ORCM's versioning is totally unrelated to OPAL's. As a short term # workaround, just disqualify ourselves if the OPAL version seems too old. # In the longer term we should be doing something else, like versioning # OPAL and OPAL separately. opal_btl_usnic_happy=yes if test "$OPAL_MAJOR_VERSION" -eq "1" && \ test "$OPAL_MINOR_VERSION" -lt "7"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL version appears to be too old, disabling the usnic BTL" >&5 $as_echo "$as_me: OPAL version appears to be too old, disabling the usnic BTL" >&6;} opal_btl_usnic_happy=no fi # We only want to build on 64 bit Linux. if test "$opal_btl_usnic_happy" = "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 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Linux" >&5 $as_echo_n "checking for 64 bit Linux... " >&6; } case $host_os in *linux*) if test $ac_cv_sizeof_void_p -eq 8; then : else opal_btl_usnic_happy=no fi ;; *) opal_btl_usnic_happy=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_btl_usnic_happy" >&5 $as_echo "$opal_btl_usnic_happy" >&6; } fi if test "$opal_btl_usnic_happy" = "yes"; then : # The usnic BTL requires OFI libfabric support # Check for OFI libfabric. Note that $opal_ofi_happy is used in # other configure.m4's to know if OFI/libfabric configured # successfully. We only need to run the back-end checks once, but # at least emit a "checking..." statement each subsequent time # this macro is invoked so that configure's stdout has # sensible/logical output. if test -z "$opal_ofi_happy"; then : # Add --with options # Check whether --with-libfabric was given. if test "${with_libfabric+set}" = set; then : withval=$with_libfabric; fi # Check whether --with-libfabric-libdir was given. if test "${with_libfabric_libdir+set}" = set; then : withval=$with_libfabric_libdir; fi # Check whether --with-ofi was given. if test "${with_ofi+set}" = set; then : withval=$with_ofi; fi # Check whether --with-ofi-libdir was given. if test "${with_ofi_libdir+set}" = set; then : withval=$with_ofi_libdir; fi if test "$with_ofi" = ""; then with_ofi=$with_libfabric fi if test "$with_ofi_libdir" = ""; then with_ofi_libdir=$with_libfabric_libdir fi # Sanity check the --with values { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ofi value" >&5 $as_echo_n "checking --with-ofi value... " >&6; } if test "$with_ofi" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ofi)" >&5 $as_echo "simple no (specified --without-ofi)" >&6; } else if test "$with_ofi" = "yes" || test "x$with_ofi" = "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_ofi"; 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_ofi not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ofi not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ofi/include/rdma/fabric.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_ofi/include/rdma/fabric.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ofi/include/rdma/fabric.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ofi)" >&5 $as_echo "sanity check ok ($with_ofi)" >&6; } fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ofi-libdir value" >&5 $as_echo_n "checking --with-ofi-libdir value... " >&6; } if test "$with_ofi_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ofi-libdir)" >&5 $as_echo "simple no (specified --without-ofi-libdir)" >&6; } else if test "$with_ofi_libdir" = "yes" || test "x$with_ofi_libdir" = "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_ofi_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ofi_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ofi_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ofi_libdir/libfabric.* 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_ofi_libdir/libfabric.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ofi_libdir/libfabric.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ofi_libdir)" >&5 $as_echo "sanity check ok ($with_ofi_libdir)" >&6; } fi fi fi 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_check_ofi_save_CPPFLAGS opal_check_ofi_save_LDFLAGS opal_check_ofi_save_LIBS opal_check_fi_info_pci; 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_check_ofi_save_CPPFLAGS opal_check_ofi_save_LDFLAGS opal_check_ofi_save_LIBS opal_check_fi_info_pci\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_check_ofi_save_CPPFLAGS=$CPPFLAGS opal_check_ofi_save_LDFLAGS=$LDFLAGS opal_check_ofi_save_LIBS=$LIBS opal_check_fi_info_pci=0 opal_ofi_happy=yes if test "$with_ofi" = "no"; then : opal_ofi_happy=no fi if test $opal_ofi_happy = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for OFI libfabric in" >&5 $as_echo_n "checking looking for OFI libfabric in... " >&6; } if test "$with_ofi" != "yes"; then : opal_ofi_dir=$with_ofi { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($opal_ofi_dir)" >&5 $as_echo "($opal_ofi_dir)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 $as_echo "(default search paths)" >&6; } fi if test ! -z "$with_ofi_libdir" && \ test "$with_ofi_libdir" != "yes"; then : opal_ofi_libdir=$with_ofi_libdir fi fi if test $opal_ofi_happy = yes; then : opal_check_package_opal_ofi_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_ofi_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_ofi_save_LIBS="$LIBS" opal_check_package_opal_ofi_orig_CPPFLAGS="$opal_ofi_CPPFLAGS" opal_check_package_opal_ofi_orig_LDFLAGS="$opal_ofi_LDFLAGS" opal_check_package_opal_ofi_orig_LIBS="$opal_ofi_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_rdma_fabric_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_ofi_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 rdma/fabric.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FABRIC_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_rdma_fabric_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_ofi_CPPFLAGS="$opal_ofi_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in rdma/fabric.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FABRIC_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_fi_getinfo opal_check_package_lib_happy="no" if test "$opal_ofi_libdir" != ""; then : # libdir was specified - search only there opal_ofi_LDFLAGS="$opal_ofi_LDFLAGS -L$opal_ofi_libdir" LDFLAGS="$LDFLAGS -L$opal_ofi_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo 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 libfabric requires libnl v1 or v3" >&5 $as_echo_n "checking if libfabric requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fi_getinfo (void); int main(int argc, char *argv[]) { fi_getinfo (); 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:129830: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_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:129837: \$? = $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 fabric" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib fabric" >&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, libfabric links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&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 fabric requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas fabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs fabric" # 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 libfabric requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs fabric" # 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_fi_getinfo" != "no" && test "$ac_cv_search_fi_getinfo" != "none required"; then : opal_ofi_LIBS="$ac_cv_search_fi_getinfo " else opal_ofi_LIBS="" 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_fi_getinfo opal_check_package_lib_happy="no" if test "$opal_ofi_libdir" != ""; then : # libdir was specified - search only there opal_ofi_LDFLAGS="$opal_ofi_LDFLAGS -L$opal_ofi_libdir" LDFLAGS="$LDFLAGS -L$opal_ofi_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo 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 libfabric requires libnl v1 or v3" >&5 $as_echo_n "checking if libfabric requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fi_getinfo (void); int main(int argc, char *argv[]) { fi_getinfo (); 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:130555: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_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:130562: \$? = $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 fabric" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib fabric" >&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, libfabric links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&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 fabric requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas fabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs fabric" # 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 libfabric requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs fabric" # 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_fi_getinfo" != "no" && test "$ac_cv_search_fi_getinfo" != "none required"; then : opal_ofi_LIBS="$ac_cv_search_fi_getinfo " else opal_ofi_LIBS="" 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 : else opal_ofi_CPPFLAGS="$opal_check_package_opal_ofi_orig_CPPFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" opal_ofi_LIBS="$opal_check_package_opal_ofi_orig_LIBS" opal_ofi_happy=no fi CPPFLAGS="$opal_check_package_opal_ofi_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_ofi_save_LDFLAGS" LIBS="$opal_check_package_opal_ofi_save_LIBS" fi CPPFLAGS="$CPPFLAGS $opal_ofi_CPPFLAGS" if test $opal_ofi_happy = yes; then : for ac_header in rdma/fi_ext.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fi_ext.h" "ac_cv_header_rdma_fi_ext_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fi_ext_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FI_EXT_H 1 _ACEOF fi done ac_fn_c_check_member "$LINENO" "struct fi_info" "nic" "ac_cv_member_struct_fi_info_nic" "#include " if test "x$ac_cv_member_struct_fi_info_nic" = xyes; then : opal_check_fi_info_pci=1 else opal_check_fi_info_pci=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_OFI_PCI_DATA_AVAILABLE $opal_check_fi_info_pci _ACEOF ac_fn_c_check_decl "$LINENO" "PMIX_PACKAGE_RANK" "ac_cv_have_decl_PMIX_PACKAGE_RANK" "#include " if test "x$ac_cv_have_decl_PMIX_PACKAGE_RANK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PMIX_PACKAGE_RANK $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "struct fi_ops_mem_monitor" "ac_cv_type_struct_fi_ops_mem_monitor" "#ifdef HAVE_RDMA_FI_EXT_H #include #endif " if test "x$ac_cv_type_struct_fi_ops_mem_monitor" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_FI_OPS_MEM_MONITOR 1 _ACEOF fi fi CPPFLAGS=$opal_check_ofi_save_CPPFLAGS LDFLAGS=$opal_check_ofi_save_LDFLAGS LIBS=$opal_check_ofi_save_LIBS # 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 Transports | tr ' ' '_') ompi_summary_line="OpenFabrics OFI Libfabric: $opal_ofi_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 # 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_ofi_happy = no; then : if test -n "$with_ofi" && test "$with_ofi" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found." >&5 $as_echo "$as_me: WARNING: OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found." >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OFI libfabric is available" >&5 $as_echo_n "checking if OFI libfabric is available... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_ofi_happy" >&5 $as_echo "$opal_ofi_happy" >&6; } fi opal_btl_usnic_happy=$opal_ofi_happy fi # The usnic BTL requires at least OFI libfabric v1.3. if test "$opal_btl_usnic_happy" = "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 opal_ofi_ver_ge_save_CPPFLAGS opal_ofi_ver_ge_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=\"opal_ofi_ver_ge_save_CPPFLAGS opal_ofi_ver_ge_happy\"" 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 OFI API version number is >= 1,3" >&5 $as_echo_n "checking if OFI API version number is >= 1,3... " >&6; } opal_ofi_ver_ge_save_CPPFLAGS=$CPPFLAGS CPPFLAGS=$opal_ofi_CPPFLAGS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined(FI_MAJOR_VERSION) #error "we cannot check the version -- sad panda" #elif FI_VERSION_LT(FI_VERSION(FI_MAJOR_VERSION, FI_MINOR_VERSION), FI_VERSION(1,3)) #error "version is too low -- nopes" #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : opal_ofi_ver_ge_happy=1 else opal_ofi_ver_ge_happy=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $opal_ofi_ver_ge_happy -eq 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; } opal_btl_usnic_happy=no fi CPPFLAGS=$opal_ofi_ver_ge_save_CPPFLAGS # 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 # Make sure we can find the OFI libfabric usnic extensions header if test "$opal_btl_usnic_happy" = "yes" ; then : opal_btl_usnic_CPPFLAGS_save=$CPPFLAGS CPPFLAGS="$opal_ofi_CPPFLAGS $CPPFLAGS" ac_fn_c_check_header_mongrel "$LINENO" "rdma/fi_ext_usnic.h" "ac_cv_header_rdma_fi_ext_usnic_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fi_ext_usnic_h" = xyes; then : else opal_btl_usnic_happy=no fi CPPFLAGS=$opal_btl_usnic_CPPFLAGS_save fi # All done if test "$opal_btl_usnic_happy" = "yes"; then : should_build=$should_build else if test "$with_usnic" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-usnic was specified, but Cisco usNIC support cannot be built" >&5 $as_echo "$as_me: WARNING: --with-usnic was specified, but Cisco usNIC support cannot be built" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else should_build=0 fi 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 Transports | tr ' ' '_') ompi_summary_line="Cisco usNIC: $opal_btl_usnic_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 # 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_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/usnic/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components usnic" if test "$compile_mode" = "dso" ; then dso_components="$dso_components usnic" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/usnic/lib${OPAL_LIB_PREFIX}mca_btl_usnic.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/usnic/libmca_btl_usnic.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_usnic_component;" >> $outfile.extern echo " &mca_btl_usnic_component, " >> $outfile.struct static_components="$static_components usnic" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:usnic can compile" >&5 $as_echo_n "checking if MCA component btl:usnic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "usnic" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component usnic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "usnic" ; then as_fn_error $? "*** btl component usnic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_usnic_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_usnic_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_usnic_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_usnic_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_usnic_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_usnic_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_usnic_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_usnic_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_usnic_WRAPPER_EXTRA_CPPFLAGS ($btl_usnic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_usnic_WRAPPER_EXTRA_CPPFLAGS ($btl_usnic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:usnic can compile" >&5 $as_echo_n "checking if MCA component btl:usnic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "usnic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"usnic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"usnic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "usnic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"usnic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"usnic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components usnic" fi if test "$should_build" -eq 1 && test "X$enable_opal_btl_usnic_unit_tests" = "Xyes"; then OPAL_BTL_USNIC_BUILD_UNIT_TESTS_TRUE= OPAL_BTL_USNIC_BUILD_UNIT_TESTS_FALSE='#' else OPAL_BTL_USNIC_BUILD_UNIT_TESTS_TRUE='#' OPAL_BTL_USNIC_BUILD_UNIT_TESTS_FALSE= fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_usnic_DSO=1 else BUILD_opal_btl_usnic_DSO=0 fi if test "$BUILD_opal_btl_usnic_DSO" = "1"; then MCA_BUILD_opal_btl_usnic_DSO_TRUE= MCA_BUILD_opal_btl_usnic_DSO_FALSE='#' else MCA_BUILD_opal_btl_usnic_DSO_TRUE='#' MCA_BUILD_opal_btl_usnic_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component btl:vader (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/btl/vader" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "vader" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi if test "$DISABLE_btl_vader" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_btl" SHARED_COMPONENT="$DSO_btl_vader" STATIC_FRAMEWORK="$STATIC_btl" STATIC_COMPONENT="$STATIC_btl_vader" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:vader compile mode" >&5 $as_echo_n "checking for MCA component btl:vader compile mode... " >&6; } if test "$DIRECT_btl" = "vader" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/btl/vader/Makefile" # 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 btl_vader_xpmem_happy btl_vader_cma_happy btl_vader_knem_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=\"btl_vader_xpmem_happy btl_vader_cma_happy btl_vader_knem_happy\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check for single-copy APIs if test -z "$opal_check_xpmem_happy" ; then # check for a cray installed xpmem first if test -z "$opal_check_cray_xpmem_happy" ; then # Check whether --with-cray_xpmem was given. if test "${with_cray_xpmem+set}" = set; then : withval=$with_cray_xpmem; else with_cray_xpmem=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cray XPMEM support" >&5 $as_echo_n "checking for Cray XPMEM support... " >&6; } if test "$with_cray_xpmem" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_xpmem_happy=no else if test "$with_cray_xpmem" = "auto" || test "$with_cray_xpmem" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_XPMEM" >&5 $as_echo_n "checking for CRAY_XPMEM... " >&6; } if test -n "$CRAY_XPMEM_CFLAGS"; then pkg_cv_CRAY_XPMEM_CFLAGS="$CRAY_XPMEM_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-xpmem\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-xpmem") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_XPMEM_CFLAGS=`$PKG_CONFIG --cflags "cray-xpmem" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_XPMEM_LIBS"; then pkg_cv_CRAY_XPMEM_LIBS="$CRAY_XPMEM_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-xpmem\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-xpmem") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_XPMEM_LIBS=`$PKG_CONFIG --libs "cray-xpmem" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_XPMEM_STATIC_LIBS"; then pkg_cv_CRAY_XPMEM_STATIC_LIBS="$CRAY_XPMEM_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-xpmem\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-xpmem") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_XPMEM_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-xpmem" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_XPMEM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-xpmem" 2>&1` else CRAY_XPMEM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-xpmem" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_XPMEM_PKG_ERRORS" >&5 opal_check_cray_xpmem_happy="no" if test "$with_cray_xpmem" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cray XPMEM support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: Cray XPMEM support requested but pkg-config failed." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_xpmem_happy="no" if test "$with_cray_xpmem" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cray XPMEM support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: Cray XPMEM support requested but pkg-config failed." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_XPMEM_CFLAGS=$pkg_cv_CRAY_XPMEM_CFLAGS CRAY_XPMEM_LIBS=$pkg_cv_CRAY_XPMEM_LIBS CRAY_XPMEM_STATIC_LIBS=$pkg_cv_CRAY_XPMEM_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_xpmem_happy="yes" fi fi fi if test "$opal_check_cray_xpmem_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_XPMEM_LIBS = $CRAY_XPMEM_STATIC_LIBS fi fi if test "$opal_check_cray_xpmem_happy" = "yes"; then : opal_check_xpmem_LDFLAGS="$opal_check_xpmem_LDFLAGS $CRAY_XPMEM_LIBS" opal_check_xpmem_CPPFLAGS="$opal_check_xpmem_CPPFLAGS $CRAY_XPMEM_CFLAGS" opal_check_xpmem_LIBS="$opal_check_xpmem_LIBS $CRAY_XPMEM_LIBS" cat >>confdefs.h <<_ACEOF #define HAVE_XPMEM_H 1 _ACEOF opal_check_xpmem_happy=yes else opal_check_xpmem_happy=no fi if test "$opal_check_xpmem_happy" = no ; then # Check whether --with-xpmem was given. if test "${with_xpmem+set}" = set; then : withval=$with_xpmem; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-xpmem value" >&5 $as_echo_n "checking --with-xpmem value... " >&6; } if test "$with_xpmem" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-xpmem)" >&5 $as_echo "simple no (specified --without-xpmem)" >&6; } else if test "$with_xpmem" = "yes" || test "x$with_xpmem" = "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_xpmem"; 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_xpmem not found" >&5 $as_echo "$as_me: WARNING: Directory $with_xpmem not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_xpmem/include/xpmem.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_xpmem/include/xpmem.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_xpmem/include/xpmem.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_xpmem)" >&5 $as_echo "sanity check ok ($with_xpmem)" >&6; } fi fi fi fi # Check whether --with-xpmem-libdir was given. if test "${with_xpmem_libdir+set}" = set; then : withval=$with_xpmem_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-xpmem-libdir value" >&5 $as_echo_n "checking --with-xpmem-libdir value... " >&6; } if test "$with_xpmem_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-xpmem-libdir)" >&5 $as_echo "simple no (specified --without-xpmem-libdir)" >&6; } else if test "$with_xpmem_libdir" = "yes" || test "x$with_xpmem_libdir" = "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_xpmem_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_xpmem_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_xpmem_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_xpmem_libdir/libxpmem.* 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_xpmem_libdir/libxpmem.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_xpmem_libdir/libxpmem.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_xpmem_libdir)" >&5 $as_echo "sanity check ok ($with_xpmem_libdir)" >&6; } fi fi fi fi if test ! "$with_xpmem" = "no" ; then if test ! -z "$with_xpmem" && test "$with_xpmem" != "yes" ; then opal_check_xpmem_dir="$with_xpmem" fi if test ! -z "$with_xpmem_libdir" && test "$with_xpmem_libdir" != "yes" ; then opal_check_xpmem_libdir="$with_xpmem_libdir" fi opal_check_package_opal_check_xpmem_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_check_xpmem_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_check_xpmem_save_LIBS="$LIBS" opal_check_package_opal_check_xpmem_orig_CPPFLAGS="$opal_check_xpmem_CPPFLAGS" opal_check_package_opal_check_xpmem_orig_LDFLAGS="$opal_check_xpmem_LDFLAGS" opal_check_package_opal_check_xpmem_orig_LIBS="$opal_check_xpmem_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_xpmem_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_check_xpmem_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 xpmem.h do : ac_fn_c_check_header_mongrel "$LINENO" "xpmem.h" "ac_cv_header_xpmem_h" "$ac_includes_default" if test "x$ac_cv_header_xpmem_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_XPMEM_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_xpmem_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_check_xpmem_CPPFLAGS="$opal_check_xpmem_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in xpmem.h do : ac_fn_c_check_header_mongrel "$LINENO" "xpmem.h" "ac_cv_header_xpmem_h" "$ac_includes_default" if test "x$ac_cv_header_xpmem_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_XPMEM_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_xpmem_make opal_check_package_lib_happy="no" if test "$opal_check_xpmem_libdir" != ""; then : # libdir was specified - search only there opal_check_xpmem_LDFLAGS="$opal_check_xpmem_LDFLAGS -L$opal_check_xpmem_libdir" LDFLAGS="$LDFLAGS -L$opal_check_xpmem_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xpmem_make" >&5 $as_echo_n "checking for library containing xpmem_make... " >&6; } if ${ac_cv_search_xpmem_make+:} 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 xpmem_make (); int main () { return xpmem_make (); ; return 0; } _ACEOF for ac_lib in '' xpmem; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_xpmem_make=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_xpmem_make+:} false; then : break fi done if ${ac_cv_search_xpmem_make+:} false; then : else ac_cv_search_xpmem_make=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xpmem_make" >&5 $as_echo "$ac_cv_search_xpmem_make" >&6; } ac_res=$ac_cv_search_xpmem_make 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_check_xpmem_save_LDFLAGS" opal_check_xpmem_LDFLAGS="$opal_check_package_opal_check_xpmem_orig_LDFLAGS" unset ac_cv_search_xpmem_make fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_check_xpmem_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 xpmem_make" >&5 $as_echo_n "checking for library containing xpmem_make... " >&6; } if ${ac_cv_search_xpmem_make+:} 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 xpmem_make (); int main () { return xpmem_make (); ; return 0; } _ACEOF for ac_lib in '' xpmem; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_xpmem_make=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_xpmem_make+:} false; then : break fi done if ${ac_cv_search_xpmem_make+:} false; then : else ac_cv_search_xpmem_make=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xpmem_make" >&5 $as_echo "$ac_cv_search_xpmem_make" >&6; } ac_res=$ac_cv_search_xpmem_make 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_check_xpmem_save_LDFLAGS" opal_check_xpmem_LDFLAGS="$opal_check_package_opal_check_xpmem_orig_LDFLAGS" unset ac_cv_search_xpmem_make fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_xpmem_LDFLAGS="$opal_check_xpmem_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 xpmem_make" >&5 $as_echo_n "checking for library containing xpmem_make... " >&6; } if ${ac_cv_search_xpmem_make+:} 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 xpmem_make (); int main () { return xpmem_make (); ; return 0; } _ACEOF for ac_lib in '' xpmem; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_xpmem_make=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_xpmem_make+:} false; then : break fi done if ${ac_cv_search_xpmem_make+:} false; then : else ac_cv_search_xpmem_make=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xpmem_make" >&5 $as_echo "$ac_cv_search_xpmem_make" >&6; } ac_res=$ac_cv_search_xpmem_make 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_check_xpmem_save_LDFLAGS" opal_check_xpmem_LDFLAGS="$opal_check_package_opal_check_xpmem_orig_LDFLAGS" unset ac_cv_search_xpmem_make fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_xpmem_LDFLAGS="$opal_check_xpmem_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 xpmem_make" >&5 $as_echo_n "checking for library containing xpmem_make... " >&6; } if ${ac_cv_search_xpmem_make+:} 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 xpmem_make (); int main () { return xpmem_make (); ; return 0; } _ACEOF for ac_lib in '' xpmem; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_xpmem_make=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_xpmem_make+:} false; then : break fi done if ${ac_cv_search_xpmem_make+:} false; then : else ac_cv_search_xpmem_make=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xpmem_make" >&5 $as_echo "$ac_cv_search_xpmem_make" >&6; } ac_res=$ac_cv_search_xpmem_make 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_check_xpmem_save_LDFLAGS" opal_check_xpmem_LDFLAGS="$opal_check_package_opal_check_xpmem_orig_LDFLAGS" unset ac_cv_search_xpmem_make 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 libxpmem requires libnl v1 or v3" >&5 $as_echo_n "checking if libxpmem requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void xpmem_make (void); int main(int argc, char *argv[]) { xpmem_make (); 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:132792: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lxpmem $LIBS $opal_check_xpmem_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lxpmem $LIBS $opal_check_xpmem_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:132799: \$? = $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 xpmem" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib xpmem" >&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, libxpmem links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libxpmem 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 libxpmem (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libxpmem (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libxpmem." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libxpmem." >&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 xpmem requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas xpmem 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 libxpmem (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libxpmem (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libxpmem." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libxpmem." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs xpmem" # 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 libxpmem requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libxpmem 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 libxpmem (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libxpmem (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libxpmem." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libxpmem." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs xpmem" # 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_xpmem_make" != "no" && test "$ac_cv_search_xpmem_make" != "none required"; then : opal_check_xpmem_LIBS="$ac_cv_search_xpmem_make " else opal_check_xpmem_LIBS="" 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_xpmem_make opal_check_package_lib_happy="no" if test "$opal_check_xpmem_libdir" != ""; then : # libdir was specified - search only there opal_check_xpmem_LDFLAGS="$opal_check_xpmem_LDFLAGS -L$opal_check_xpmem_libdir" LDFLAGS="$LDFLAGS -L$opal_check_xpmem_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xpmem_make" >&5 $as_echo_n "checking for library containing xpmem_make... " >&6; } if ${ac_cv_search_xpmem_make+:} 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 xpmem_make (); int main () { return xpmem_make (); ; return 0; } _ACEOF for ac_lib in '' xpmem; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_xpmem_make=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_xpmem_make+:} false; then : break fi done if ${ac_cv_search_xpmem_make+:} false; then : else ac_cv_search_xpmem_make=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xpmem_make" >&5 $as_echo "$ac_cv_search_xpmem_make" >&6; } ac_res=$ac_cv_search_xpmem_make 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_check_xpmem_save_LDFLAGS" opal_check_xpmem_LDFLAGS="$opal_check_package_opal_check_xpmem_orig_LDFLAGS" unset ac_cv_search_xpmem_make fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_check_xpmem_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 xpmem_make" >&5 $as_echo_n "checking for library containing xpmem_make... " >&6; } if ${ac_cv_search_xpmem_make+:} 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 xpmem_make (); int main () { return xpmem_make (); ; return 0; } _ACEOF for ac_lib in '' xpmem; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_xpmem_make=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_xpmem_make+:} false; then : break fi done if ${ac_cv_search_xpmem_make+:} false; then : else ac_cv_search_xpmem_make=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xpmem_make" >&5 $as_echo "$ac_cv_search_xpmem_make" >&6; } ac_res=$ac_cv_search_xpmem_make 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_check_xpmem_save_LDFLAGS" opal_check_xpmem_LDFLAGS="$opal_check_package_opal_check_xpmem_orig_LDFLAGS" unset ac_cv_search_xpmem_make fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_xpmem_LDFLAGS="$opal_check_xpmem_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 xpmem_make" >&5 $as_echo_n "checking for library containing xpmem_make... " >&6; } if ${ac_cv_search_xpmem_make+:} 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 xpmem_make (); int main () { return xpmem_make (); ; return 0; } _ACEOF for ac_lib in '' xpmem; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_xpmem_make=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_xpmem_make+:} false; then : break fi done if ${ac_cv_search_xpmem_make+:} false; then : else ac_cv_search_xpmem_make=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xpmem_make" >&5 $as_echo "$ac_cv_search_xpmem_make" >&6; } ac_res=$ac_cv_search_xpmem_make 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_check_xpmem_save_LDFLAGS" opal_check_xpmem_LDFLAGS="$opal_check_package_opal_check_xpmem_orig_LDFLAGS" unset ac_cv_search_xpmem_make fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_xpmem_LDFLAGS="$opal_check_xpmem_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 xpmem_make" >&5 $as_echo_n "checking for library containing xpmem_make... " >&6; } if ${ac_cv_search_xpmem_make+:} 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 xpmem_make (); int main () { return xpmem_make (); ; return 0; } _ACEOF for ac_lib in '' xpmem; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_xpmem_make=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_xpmem_make+:} false; then : break fi done if ${ac_cv_search_xpmem_make+:} false; then : else ac_cv_search_xpmem_make=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xpmem_make" >&5 $as_echo "$ac_cv_search_xpmem_make" >&6; } ac_res=$ac_cv_search_xpmem_make 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_check_xpmem_save_LDFLAGS" opal_check_xpmem_LDFLAGS="$opal_check_package_opal_check_xpmem_orig_LDFLAGS" unset ac_cv_search_xpmem_make 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 libxpmem requires libnl v1 or v3" >&5 $as_echo_n "checking if libxpmem requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void xpmem_make (void); int main(int argc, char *argv[]) { xpmem_make (); 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:133517: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lxpmem $LIBS $opal_check_xpmem_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lxpmem $LIBS $opal_check_xpmem_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:133524: \$? = $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 xpmem" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib xpmem" >&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, libxpmem links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libxpmem 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 libxpmem (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libxpmem (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libxpmem." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libxpmem." >&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 xpmem requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas xpmem 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 libxpmem (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libxpmem (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libxpmem." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libxpmem." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs xpmem" # 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 libxpmem requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libxpmem 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 libxpmem (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libxpmem (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libxpmem." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libxpmem." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs xpmem" # 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_xpmem_make" != "no" && test "$ac_cv_search_xpmem_make" != "none required"; then : opal_check_xpmem_LIBS="$ac_cv_search_xpmem_make " else opal_check_xpmem_LIBS="" 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_check_xpmem_happy="yes" else opal_check_xpmem_CPPFLAGS="$opal_check_package_opal_check_xpmem_orig_CPPFLAGS" opal_check_xpmem_LDFLAGS="$opal_check_package_opal_check_xpmem_orig_LDFLAGS" opal_check_xpmem_LIBS="$opal_check_package_opal_check_xpmem_orig_LIBS" fi CPPFLAGS="$opal_check_package_opal_check_xpmem_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_check_xpmem_save_LDFLAGS" LIBS="$opal_check_package_opal_check_xpmem_save_LIBS" if test "$opal_check_xpmem_happy" = "no" && test -n "$with_xpmem" && test "$with_xpmem" != "yes" ; then as_fn_error $? "XPMEM support requested but not found. Aborting" "$LINENO" 5 fi fi 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 Transports | tr ' ' '_') ompi_summary_line="Shared memory/XPMEM: $opal_check_xpmem_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 fi if test "$opal_check_xpmem_happy" = "yes"; then : btl_vader_CPPFLAGS="$btl_vader_CPPFLAGS $opal_check_xpmem_CPPFLAGS" btl_vader_LDFLAGS="$btl_vader_LDFLAGS $opal_check_xpmem_LDFLAGS" btl_vader_LIBS="$btl_vader_LIBS $opal_check_xpmem_LIBS" btl_vader_xpmem_happy=1 else btl_vader_xpmem_happy=0 fi if test -z "$opal_check_knem_happy" ; 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_check_knem_btl_vader_save_CPPFLAGS opal_check_knem_dir; 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_check_knem_btl_vader_save_CPPFLAGS opal_check_knem_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-knem was given. if test "${with_knem+set}" = set; then : withval=$with_knem; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-knem value" >&5 $as_echo_n "checking --with-knem value... " >&6; } if test "$with_knem" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-knem)" >&5 $as_echo "simple no (specified --without-knem)" >&6; } else if test "$with_knem" = "yes" || test "x$with_knem" = "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_knem"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_knem not found" >&5 $as_echo "$as_me: WARNING: Directory $with_knem not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_knem/include/knem_io.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_knem/include/knem_io.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_knem/include/knem_io.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_knem)" >&5 $as_echo "sanity check ok ($with_knem)" >&6; } fi fi fi fi opal_check_knem_btl_vader_save_CPPFLAGS="$CPPFLAGS" opal_check_knem_happy=no if test "$with_knem" != "no"; then : if test ! -z "$with_knem" && test "$with_knem" != "yes"; then : opal_check_knem_dir="$with_knem" fi # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_knem_io_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_check_knem_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 knem_io.h do : ac_fn_c_check_header_mongrel "$LINENO" "knem_io.h" "ac_cv_header_knem_io_h" "$ac_includes_default" if test "x$ac_cv_header_knem_io_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_KNEM_IO_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_knem_io_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_knem_CPPFLAGS="$ompi_check_knem_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in knem_io.h do : ac_fn_c_check_header_mongrel "$LINENO" "knem_io.h" "ac_cv_header_knem_io_h" "$ac_includes_default" if test "x$ac_cv_header_knem_io_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_KNEM_IO_H 1 _ACEOF opal_check_package_header_happy="yes" fi done if test "$opal_check_package_header_happy" = "yes"; then : opal_check_knem_happy="yes" fi else opal_check_knem_happy="yes" 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 fi CPPFLAGS="$CPPFLAGS $ompi_check_knem_CPPFLAGS" # need at least version 0x0000000b if test "$opal_check_knem_happy" = "yes" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if KNEM_ABI_VERSION < 0xc #error "Version less than 0xc" #endif ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : opal_check_knem_happy=yes else opal_check_knem_happy=no fi rm -f conftest.err conftest.i conftest.$ac_ext fi CPPFLAGS="$opal_check_knem_btl_vader_save_CPPFLAGS" # 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 Transports | tr ' ' '_') ompi_summary_line="Shared memory/Linux KNEM: $opal_check_knem_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 # 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 "$opal_check_knem_happy" = "yes"; then : btl_vader_CPPFLAGS="$btl_vader_CPPFLAGS $ompi_check_knem_CPPFLAGS" btl_vader_knem_happy=1 else if test ! -z "$with_knem" && test "$with_knem" != "no"; then : as_fn_error $? "KNEM support requested but not found. Aborting" "$LINENO" 5 fi btl_vader_knem_happy=0 fi # Check whether --with-cma was given. if test "${with_cma+set}" = set; then : withval=$with_cma; fi if test "x$with_cma" = "xno" ; then opal_check_cma_happy=0 fi # We only need to do the back-end test once if test -z "$opal_check_cma_happy" ; 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_check_cma_need_defs opal_check_cma_kernel_version opal_check_cma_CFLAGS opal_check_cma_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=\"opal_check_cma_need_defs opal_check_cma_kernel_version opal_check_cma_CFLAGS opal_check_cma_msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Some systems have process_cm_readv() in libc, which means CMA is # supported. Other systems do not have process_cm_readv() in # libc, but have support for it in the kernel if we invoke it # directly. Check for both. for ac_header in sys/prctl.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" if test "x$ac_cv_header_sys_prctl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_PRCTL_H 1 _ACEOF fi done ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv" if test "x$ac_cv_func_process_vm_readv" = xyes; then : opal_check_cma_need_defs=0 else opal_check_cma_need_defs=1 fi cat >>confdefs.h <<_ACEOF #define OPAL_CMA_NEED_SYSCALL_DEFS $opal_check_cma_need_defs _ACEOF if test $opal_check_cma_need_defs -eq 1 ; then opal_check_cma_CFLAGS=$CFLAGS # Need some extra include paths to locate the appropriate headers CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/opal/include" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if internal syscall numbers for Linux CMA work" >&5 $as_echo_n "checking if internal syscall numbers for Linux CMA work... " >&6; } if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5 $as_echo "no (cross-compiling)" >&6; } opal_check_cma_happy=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include #include #include #include "opal/include/opal/sys/cma.h" static void do_check (pid_t pid, int *in, int *out) { int check[4] = {0, 0, 0, 0}, i; struct iovec rem_iov = {out, sizeof (check)}; struct iovec loc_iov = {check, sizeof (check)}; ssize_t rc; rc = process_vm_readv (pid, &loc_iov, 1, &rem_iov, 1, 0); if (sizeof (check) != rc) { exit (1); } for (i = 0 ; i < 4 ; ++i) { if (check[i] != i) { exit (1); } check[i] = i * 2; } rem_iov.iov_base = in; rc = process_vm_writev (pid, &loc_iov, 1, &rem_iov, 1, 0); if (sizeof (check) != rc) { exit (1); } exit (0); } int main () { int i, in[4] = {-1, -1, -1, -1}, out[4] = {0, 1, 2, 3}; do_check (getpid (), in, out); for (i = 0 ; i < 4 ; ++i) { if (in[i] != 2 * i) { return 1; } } /* all good */ return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cma_happy=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cma_happy=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS=$opal_check_cma_CFLAGS else # If we didn't need the defs, then we have process_vm_readv(), # and CMA is happy. opal_check_cma_happy=1 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_check_cma_happy -eq 1; then : opal_check_cma_msg=yes else opal_check_cma_msg=no 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 Transports | tr ' ' '_') ompi_summary_line="Shared memory/Linux CMA: $opal_check_cma_msg" 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 if test $opal_check_cma_happy -eq 1; then : ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" if test "x$ac_cv_header_sys_prctl_h" = xyes; then : fi btl_vader_cma_happy=1 else if test "$with_cma" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-cma support requested, but not available" >&5 $as_echo "$as_me: WARNING: --with-cma support requested, but not available" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi btl_vader_cma_happy=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_BTL_VADER_HAVE_XPMEM $btl_vader_xpmem_happy _ACEOF cat >>confdefs.h <<_ACEOF #define OPAL_BTL_VADER_HAVE_CMA $btl_vader_cma_happy _ACEOF cat >>confdefs.h <<_ACEOF #define OPAL_BTL_VADER_HAVE_KNEM $btl_vader_knem_happy _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 # always happy should_build=$should_build # 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 Transports | tr ' ' '_') ompi_summary_line="Shared memory/copy in+copy out: yes" 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 # substitute in the things needed to build with XPMEM support opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/vader/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components vader" if test "$compile_mode" = "dso" ; then dso_components="$dso_components vader" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/vader/lib${OPAL_LIB_PREFIX}mca_btl_vader.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/vader/libmca_btl_vader.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_vader_component;" >> $outfile.extern echo " &mca_btl_vader_component, " >> $outfile.struct static_components="$static_components vader" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:vader can compile" >&5 $as_echo_n "checking if MCA component btl:vader can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "vader" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component vader was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "vader" ; then as_fn_error $? "*** btl component vader was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$btl_vader_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $btl_vader_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $btl_vader_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$btl_vader_WRAPPER_EXTRA_LIBS" = ""; 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_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 $btl_vader_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $btl_vader_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$btl_vader_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $btl_vader_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring btl_vader_WRAPPER_EXTRA_CPPFLAGS ($btl_vader_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring btl_vader_WRAPPER_EXTRA_CPPFLAGS ($btl_vader_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:vader can compile" >&5 $as_echo_n "checking if MCA component btl:vader can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "vader" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"vader\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"vader\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "vader" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"vader\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"vader\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components vader" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_btl_vader_DSO=1 else BUILD_opal_btl_vader_DSO=0 fi if test "$BUILD_opal_btl_vader_DSO" = "1"; then MCA_BUILD_opal_btl_vader_DSO_TRUE= MCA_BUILD_opal_btl_vader_DSO_FALSE='#' else MCA_BUILD_opal_btl_vader_DSO_TRUE='#' MCA_BUILD_opal_btl_vader_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/btl/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component btl:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/btl/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_btl" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_btl_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_btl" str="SHARED_COMPONENT=\$DSO_btl_$component" eval $str STATIC_FRAMEWORK="$STATIC_btl" str="STATIC_COMPONENT=\$STATIC_btl_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component btl:$component compile mode" >&5 $as_echo_n "checking for MCA component btl:$component compile mode... " >&6; } if test "$DIRECT_btl" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/btl/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/btl/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/btl/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then btl_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then btl_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/btl/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "btl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/btl/$component/lib${OPAL_LIB_PREFIX}mca_btl_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/btl/$component/libmca_btl_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_btl_$component_component;" >> $outfile.extern echo " &mca_btl_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:$component can compile" >&5 $as_echo_n "checking if MCA component btl:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_btl" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_btl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** btl component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_btl" = "$component" ; then as_fn_error $? "*** btl component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$btl_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$btl_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component btl:$component can compile" >&5 $as_echo_n "checking if MCA component btl:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_btl" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_btl" ; then if test "$DIRECT_btl" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_btl_ALL_COMPONENTS="$all_components" MCA_opal_btl_STATIC_COMPONENTS="$static_components" MCA_opal_btl_DSO_COMPONENTS="$dso_components" MCA_opal_btl_STATIC_LTLIBS="$static_ltlibs" MCA_opal_btl_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_btl_ALL_SUBDIRS="$MCA_opal_btl_ALL_SUBDIRS mca/btl/$item" done MCA_opal_btl_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_btl_STATIC_SUBDIRS="$MCA_opal_btl_STATIC_SUBDIRS mca/btl/$item" done MCA_opal_btl_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_btl_DSO_SUBDIRS="$MCA_opal_btl_DSO_SUBDIRS mca/btl/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "btl" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS compress" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/compress" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_compress_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_compress_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_compress_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/compress/libmca_compress.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_compress_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework compress" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/compress/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/compress/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework compress" >&5 $as_echo_n "checking for no configure components in framework compress... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: bzip, gzip" >&5 $as_echo "bzip, gzip" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework compress" >&5 $as_echo_n "checking for m4 configure components in framework compress... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component compress:bzip (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/compress/bzip" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_compress" ; then if test "$DIRECT_compress" = "bzip" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_compress" = "1"; then : want_component=0 fi if test "$DISABLE_compress_bzip" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_compress" SHARED_COMPONENT="$DSO_compress_bzip" STATIC_FRAMEWORK="$STATIC_compress" STATIC_COMPONENT="$STATIC_compress_bzip" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component compress:bzip compile mode" >&5 $as_echo_n "checking for MCA component compress:bzip compile mode... " >&6; } if test "$DIRECT_compress" = "bzip" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/compress/bzip/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components bzip" if test "$compile_mode" = "dso" ; then dso_components="$dso_components bzip" else if test "compress" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/compress/bzip/lib${OPAL_LIB_PREFIX}mca_compress_bzip.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/compress/bzip/libmca_compress_bzip.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_compress_bzip_component;" >> $outfile.extern echo " &mca_compress_bzip_component, " >> $outfile.struct static_components="$static_components bzip" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component compress:bzip can compile" >&5 $as_echo_n "checking if MCA component compress:bzip can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_compress" = "bzip" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_compress_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** compress component bzip was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_compress" = "bzip" ; then as_fn_error $? "*** compress component bzip was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$compress_bzip_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $compress_bzip_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $compress_bzip_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$compress_bzip_WRAPPER_EXTRA_LIBS" = ""; 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_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 $compress_bzip_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $compress_bzip_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$compress_bzip_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $compress_bzip_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring compress_bzip_WRAPPER_EXTRA_CPPFLAGS ($compress_bzip_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring compress_bzip_WRAPPER_EXTRA_CPPFLAGS ($compress_bzip_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component compress:bzip can compile" >&5 $as_echo_n "checking if MCA component compress:bzip can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_compress" = "bzip" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bzip\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bzip\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_compress" ; then if test "$DIRECT_compress" = "bzip" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bzip\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bzip\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components bzip" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_compress_bzip_DSO=1 else BUILD_opal_compress_bzip_DSO=0 fi if test "$BUILD_opal_compress_bzip_DSO" = "1"; then MCA_BUILD_opal_compress_bzip_DSO_TRUE= MCA_BUILD_opal_compress_bzip_DSO_FALSE='#' else MCA_BUILD_opal_compress_bzip_DSO_TRUE='#' MCA_BUILD_opal_compress_bzip_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/compress/bzip/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component compress:gzip (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/compress/gzip" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_compress" ; then if test "$DIRECT_compress" = "gzip" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_compress" = "1"; then : want_component=0 fi if test "$DISABLE_compress_gzip" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_compress" SHARED_COMPONENT="$DSO_compress_gzip" STATIC_FRAMEWORK="$STATIC_compress" STATIC_COMPONENT="$STATIC_compress_gzip" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component compress:gzip compile mode" >&5 $as_echo_n "checking for MCA component compress:gzip compile mode... " >&6; } if test "$DIRECT_compress" = "gzip" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/compress/gzip/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components gzip" if test "$compile_mode" = "dso" ; then dso_components="$dso_components gzip" else if test "compress" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/compress/gzip/lib${OPAL_LIB_PREFIX}mca_compress_gzip.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/compress/gzip/libmca_compress_gzip.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_compress_gzip_component;" >> $outfile.extern echo " &mca_compress_gzip_component, " >> $outfile.struct static_components="$static_components gzip" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component compress:gzip can compile" >&5 $as_echo_n "checking if MCA component compress:gzip can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_compress" = "gzip" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_compress_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** compress component gzip was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_compress" = "gzip" ; then as_fn_error $? "*** compress component gzip was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$compress_gzip_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $compress_gzip_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $compress_gzip_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$compress_gzip_WRAPPER_EXTRA_LIBS" = ""; 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_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 $compress_gzip_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $compress_gzip_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$compress_gzip_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $compress_gzip_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring compress_gzip_WRAPPER_EXTRA_CPPFLAGS ($compress_gzip_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring compress_gzip_WRAPPER_EXTRA_CPPFLAGS ($compress_gzip_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component compress:gzip can compile" >&5 $as_echo_n "checking if MCA component compress:gzip can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_compress" = "gzip" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gzip\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"gzip\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_compress" ; then if test "$DIRECT_compress" = "gzip" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gzip\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"gzip\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components gzip" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_compress_gzip_DSO=1 else BUILD_opal_compress_gzip_DSO=0 fi if test "$BUILD_opal_compress_gzip_DSO" = "1"; then MCA_BUILD_opal_compress_gzip_DSO_TRUE= MCA_BUILD_opal_compress_gzip_DSO_FALSE='#' else MCA_BUILD_opal_compress_gzip_DSO_TRUE='#' MCA_BUILD_opal_compress_gzip_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/compress/gzip/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/compress/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component compress:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/compress/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_compress" ; then if test "$DIRECT_compress" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_compress" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_compress_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_compress" str="SHARED_COMPONENT=\$DSO_compress_$component" eval $str STATIC_FRAMEWORK="$STATIC_compress" str="STATIC_COMPONENT=\$STATIC_compress_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component compress:$component compile mode" >&5 $as_echo_n "checking for MCA component compress:$component compile mode... " >&6; } if test "$DIRECT_compress" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/compress/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/compress/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/compress/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then compress_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then compress_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/compress/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "compress" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/compress/$component/lib${OPAL_LIB_PREFIX}mca_compress_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/compress/$component/libmca_compress_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_compress_$component_component;" >> $outfile.extern echo " &mca_compress_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component compress:$component can compile" >&5 $as_echo_n "checking if MCA component compress:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_compress" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_compress_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** compress component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_compress" = "$component" ; then as_fn_error $? "*** compress component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$compress_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$compress_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component compress:$component can compile" >&5 $as_echo_n "checking if MCA component compress:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_compress" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_compress" ; then if test "$DIRECT_compress" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_compress_ALL_COMPONENTS="$all_components" MCA_opal_compress_STATIC_COMPONENTS="$static_components" MCA_opal_compress_DSO_COMPONENTS="$dso_components" MCA_opal_compress_STATIC_LTLIBS="$static_ltlibs" MCA_opal_compress_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_compress_ALL_SUBDIRS="$MCA_opal_compress_ALL_SUBDIRS mca/compress/$item" done MCA_opal_compress_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_compress_STATIC_SUBDIRS="$MCA_opal_compress_STATIC_SUBDIRS mca/compress/$item" done MCA_opal_compress_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_compress_DSO_SUBDIRS="$MCA_opal_compress_DSO_SUBDIRS mca/compress/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "compress" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS crs" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/crs" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_crs_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_crs_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_crs_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/crs/libmca_crs.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_crs_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework crs" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/crs/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/crs/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework crs" >&5 $as_echo_n "checking for no configure components in framework crs... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework crs" >&5 $as_echo_n "checking for m4 configure components in framework crs... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: self" >&5 $as_echo "self" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component crs:none (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/crs/none" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_crs" ; then if test "$DIRECT_crs" = "none" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_crs" = "1"; then : want_component=0 fi if test "$DISABLE_crs_none" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_crs" SHARED_COMPONENT="$DSO_crs_none" STATIC_FRAMEWORK="$STATIC_crs" STATIC_COMPONENT="$STATIC_crs_none" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component crs:none compile mode" >&5 $as_echo_n "checking for MCA component crs:none compile mode... " >&6; } if test "$DIRECT_crs" = "none" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/crs/none/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components none" if test "$compile_mode" = "dso" ; then dso_components="$dso_components none" else if test "crs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/crs/none/lib${OPAL_LIB_PREFIX}mca_crs_none.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/crs/none/libmca_crs_none.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_crs_none_component;" >> $outfile.extern echo " &mca_crs_none_component, " >> $outfile.struct static_components="$static_components none" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:none can compile" >&5 $as_echo_n "checking if MCA component crs:none can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_crs" = "none" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_crs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** crs component none was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_crs" = "none" ; then as_fn_error $? "*** crs component none was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$crs_none_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $crs_none_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $crs_none_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$crs_none_WRAPPER_EXTRA_LIBS" = ""; 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_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 $crs_none_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $crs_none_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$crs_none_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $crs_none_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring crs_none_WRAPPER_EXTRA_CPPFLAGS ($crs_none_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring crs_none_WRAPPER_EXTRA_CPPFLAGS ($crs_none_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:none can compile" >&5 $as_echo_n "checking if MCA component crs:none can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_crs" = "none" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_crs" ; then if test "$DIRECT_crs" = "none" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components none" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_crs_none_DSO=1 else BUILD_opal_crs_none_DSO=0 fi if test "$BUILD_opal_crs_none_DSO" = "1"; then MCA_BUILD_opal_crs_none_DSO_TRUE= MCA_BUILD_opal_crs_none_DSO_FALSE='#' else MCA_BUILD_opal_crs_none_DSO_TRUE='#' MCA_BUILD_opal_crs_none_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/crs/none/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component crs:self (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/crs/self" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_crs" ; then if test "$DIRECT_crs" = "self" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_crs" = "1"; then : want_component=0 fi if test "$DISABLE_crs_self" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_crs" SHARED_COMPONENT="$DSO_crs_self" STATIC_FRAMEWORK="$STATIC_crs" STATIC_COMPONENT="$STATIC_crs_self" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component crs:self compile mode" >&5 $as_echo_n "checking for MCA component crs:self compile mode... " >&6; } if test "$DIRECT_crs" = "self" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/crs/self/Makefile" # If we don't want FT, don't compile this component if test "$opal_want_ft_cr" = "1"; then : crs_self_good="yes" else crs_self_good="no" fi # We need the dlfcn.h so we can access dlsym and friends if test "$crs_self_good" = "yes"; then : ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" if test "x$ac_cv_header_dlfcn_h" = xyes; then : crs_self_good="yes" else crs_self_good="no" fi fi # If they did not ask for dlopen support, # they probably do not want this component either if test "$crs_self_good" = "yes"; then : if test "$OPAL_ENABLE_DLOPEN_SUPPORT" = "1"; then : crs_self_good="yes" else crs_self_good="no" fi fi if test "$crs_self_good" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/crs/self/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components self" if test "$compile_mode" = "dso" ; then dso_components="$dso_components self" else if test "crs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/crs/self/lib${OPAL_LIB_PREFIX}mca_crs_self.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/crs/self/libmca_crs_self.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_crs_self_component;" >> $outfile.extern echo " &mca_crs_self_component, " >> $outfile.struct static_components="$static_components self" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:self can compile" >&5 $as_echo_n "checking if MCA component crs:self can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_crs" = "self" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_crs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** crs component self was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_crs" = "self" ; then as_fn_error $? "*** crs component self was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$crs_self_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $crs_self_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $crs_self_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$crs_self_WRAPPER_EXTRA_LIBS" = ""; 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_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 $crs_self_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $crs_self_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$crs_self_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $crs_self_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring crs_self_WRAPPER_EXTRA_CPPFLAGS ($crs_self_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring crs_self_WRAPPER_EXTRA_CPPFLAGS ($crs_self_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:self can compile" >&5 $as_echo_n "checking if MCA component crs:self can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_crs" = "self" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_crs" ; then if test "$DIRECT_crs" = "self" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components self" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_crs_self_DSO=1 else BUILD_opal_crs_self_DSO=0 fi if test "$BUILD_opal_crs_self_DSO" = "1"; then MCA_BUILD_opal_crs_self_DSO_TRUE= MCA_BUILD_opal_crs_self_DSO_FALSE='#' else MCA_BUILD_opal_crs_self_DSO_TRUE='#' MCA_BUILD_opal_crs_self_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/crs/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component crs:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/crs/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_crs" ; then if test "$DIRECT_crs" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_crs" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_crs_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_crs" str="SHARED_COMPONENT=\$DSO_crs_$component" eval $str STATIC_FRAMEWORK="$STATIC_crs" str="STATIC_COMPONENT=\$STATIC_crs_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component crs:$component compile mode" >&5 $as_echo_n "checking for MCA component crs:$component compile mode... " >&6; } if test "$DIRECT_crs" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/crs/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/crs/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/crs/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then crs_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then crs_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/crs/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "crs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/crs/$component/lib${OPAL_LIB_PREFIX}mca_crs_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/crs/$component/libmca_crs_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_crs_$component_component;" >> $outfile.extern echo " &mca_crs_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:$component can compile" >&5 $as_echo_n "checking if MCA component crs:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_crs" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_crs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** crs component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_crs" = "$component" ; then as_fn_error $? "*** crs component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$crs_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$crs_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crs:$component can compile" >&5 $as_echo_n "checking if MCA component crs:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_crs" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_crs" ; then if test "$DIRECT_crs" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_crs_ALL_COMPONENTS="$all_components" MCA_opal_crs_STATIC_COMPONENTS="$static_components" MCA_opal_crs_DSO_COMPONENTS="$dso_components" MCA_opal_crs_STATIC_LTLIBS="$static_ltlibs" MCA_opal_crs_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_crs_ALL_SUBDIRS="$MCA_opal_crs_ALL_SUBDIRS mca/crs/$item" done MCA_opal_crs_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_crs_STATIC_SUBDIRS="$MCA_opal_crs_STATIC_SUBDIRS mca/crs/$item" done MCA_opal_crs_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_crs_DSO_SUBDIRS="$MCA_opal_crs_DSO_SUBDIRS mca/crs/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "crs" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS dl" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/dl" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_dl_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_dl_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_dl_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/dl/libmca_dl.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_dl_STATIC_LTLIBS)" OPAL_HAVE_DL_SUPPORT=0 # If --disable-dlopen was used, then have all the components fail # (we still need to configure them all so that things like "make # dist" work", but we just want the MCA system to (artificially) # conclude that it can't build any of the components. if test "$enable_dlopen" = "no"; then : want_dl=0 else want_dl=1 fi opal_show_subsubtitle "Configuring MCA framework dl" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/dl/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/dl/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework dl" >&5 $as_echo_n "checking for no configure components in framework dl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework dl" >&5 $as_echo_n "checking for m4 configure components in framework dl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlopen, libltdl" >&5 $as_echo "dlopen, libltdl" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=$want_dl components_last_result=0 opal_show_subsubsubtitle "MCA component dl:dlopen (m4 configuration macro, priority 80)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/dl/dlopen" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_dl" ; then if test "$DIRECT_dl" = "dlopen" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_dl" = "1"; then : want_component=0 fi if test "$DISABLE_dl_dlopen" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component dl:dlopen compile mode" >&5 $as_echo_n "checking for MCA component dl:dlopen compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/dl/dlopen/Makefile" # Check whether --enable-dl-dlopen was given. if test "${enable_dl_dlopen+set}" = set; then : enableval=$enable_dl_dlopen; fi opal_dl_dlopen_happy=no if test "$enable_dl_dlopen" != "no"; then : opal_check_package_opal_dl_dlopen_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_dl_dlopen_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_dl_dlopen_save_LIBS="$LIBS" opal_check_package_opal_dl_dlopen_orig_CPPFLAGS="$opal_dl_dlopen_CPPFLAGS" opal_check_package_opal_dl_dlopen_orig_LDFLAGS="$opal_dl_dlopen_LDFLAGS" opal_check_package_opal_dl_dlopen_orig_LIBS="$opal_dl_dlopen_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_dlfcn_h # get rid of the trailing slash(es) dir_prefix=$(echo | 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 dlfcn.h do : ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_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_dlfcn_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_dl_dlopen_CPPFLAGS="$opal_dl_dlopen_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in dlfcn.h do : ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_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_dlopen opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there opal_dl_dlopen_LDFLAGS="$opal_dl_dlopen_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 $as_echo_n "checking for library containing dlopen... " >&6; } if ${ac_cv_search_dlopen+:} 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dlopen+:} false; then : break fi done if ${ac_cv_search_dlopen+:} false; then : else ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 $as_echo "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen 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_dl_dlopen_save_LDFLAGS" opal_dl_dlopen_LDFLAGS="$opal_check_package_opal_dl_dlopen_orig_LDFLAGS" unset ac_cv_search_dlopen fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 dlopen" >&5 $as_echo_n "checking for library containing dlopen... " >&6; } if ${ac_cv_search_dlopen+:} 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dlopen+:} false; then : break fi done if ${ac_cv_search_dlopen+:} false; then : else ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 $as_echo "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen 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_dl_dlopen_save_LDFLAGS" opal_dl_dlopen_LDFLAGS="$opal_check_package_opal_dl_dlopen_orig_LDFLAGS" unset ac_cv_search_dlopen fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_dl_dlopen_LDFLAGS="$opal_dl_dlopen_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 dlopen" >&5 $as_echo_n "checking for library containing dlopen... " >&6; } if ${ac_cv_search_dlopen+:} 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dlopen+:} false; then : break fi done if ${ac_cv_search_dlopen+:} false; then : else ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 $as_echo "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen 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_dl_dlopen_save_LDFLAGS" opal_dl_dlopen_LDFLAGS="$opal_check_package_opal_dl_dlopen_orig_LDFLAGS" unset ac_cv_search_dlopen fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_dl_dlopen_LDFLAGS="$opal_dl_dlopen_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 dlopen" >&5 $as_echo_n "checking for library containing dlopen... " >&6; } if ${ac_cv_search_dlopen+:} 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dlopen+:} false; then : break fi done if ${ac_cv_search_dlopen+:} false; then : else ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 $as_echo "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen 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_dl_dlopen_save_LDFLAGS" opal_dl_dlopen_LDFLAGS="$opal_check_package_opal_dl_dlopen_orig_LDFLAGS" unset ac_cv_search_dlopen 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 libdl requires libnl v1 or v3" >&5 $as_echo_n "checking if libdl requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void dlopen (void); int main(int argc, char *argv[]) { dlopen (); 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:140710: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ldl $LIBS $opal_dl_dlopen_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ldl $LIBS $opal_dl_dlopen_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:140717: \$? = $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 dl" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib dl" >&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, libdl links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libdl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&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 dl requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas dl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs dl" # 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 libdl requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libdl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs dl" # 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_dlopen" != "no" && test "$ac_cv_search_dlopen" != "none required"; then : opal_dl_dlopen_LIBS="$ac_cv_search_dlopen " else opal_dl_dlopen_LIBS="" 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_dlopen opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there opal_dl_dlopen_LDFLAGS="$opal_dl_dlopen_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 $as_echo_n "checking for library containing dlopen... " >&6; } if ${ac_cv_search_dlopen+:} 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dlopen+:} false; then : break fi done if ${ac_cv_search_dlopen+:} false; then : else ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 $as_echo "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen 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_dl_dlopen_save_LDFLAGS" opal_dl_dlopen_LDFLAGS="$opal_check_package_opal_dl_dlopen_orig_LDFLAGS" unset ac_cv_search_dlopen fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 dlopen" >&5 $as_echo_n "checking for library containing dlopen... " >&6; } if ${ac_cv_search_dlopen+:} 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dlopen+:} false; then : break fi done if ${ac_cv_search_dlopen+:} false; then : else ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 $as_echo "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen 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_dl_dlopen_save_LDFLAGS" opal_dl_dlopen_LDFLAGS="$opal_check_package_opal_dl_dlopen_orig_LDFLAGS" unset ac_cv_search_dlopen fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_dl_dlopen_LDFLAGS="$opal_dl_dlopen_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 dlopen" >&5 $as_echo_n "checking for library containing dlopen... " >&6; } if ${ac_cv_search_dlopen+:} 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dlopen+:} false; then : break fi done if ${ac_cv_search_dlopen+:} false; then : else ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 $as_echo "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen 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_dl_dlopen_save_LDFLAGS" opal_dl_dlopen_LDFLAGS="$opal_check_package_opal_dl_dlopen_orig_LDFLAGS" unset ac_cv_search_dlopen fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_dl_dlopen_LDFLAGS="$opal_dl_dlopen_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 dlopen" >&5 $as_echo_n "checking for library containing dlopen... " >&6; } if ${ac_cv_search_dlopen+:} 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dlopen+:} false; then : break fi done if ${ac_cv_search_dlopen+:} false; then : else ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 $as_echo "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen 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_dl_dlopen_save_LDFLAGS" opal_dl_dlopen_LDFLAGS="$opal_check_package_opal_dl_dlopen_orig_LDFLAGS" unset ac_cv_search_dlopen 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 libdl requires libnl v1 or v3" >&5 $as_echo_n "checking if libdl requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void dlopen (void); int main(int argc, char *argv[]) { dlopen (); 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:141435: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ldl $LIBS $opal_dl_dlopen_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ldl $LIBS $opal_dl_dlopen_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:141442: \$? = $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 dl" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib dl" >&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, libdl links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libdl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&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 dl requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas dl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs dl" # 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 libdl requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libdl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs dl" # 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_dlopen" != "no" && test "$ac_cv_search_dlopen" != "none required"; then : opal_dl_dlopen_LIBS="$ac_cv_search_dlopen " else opal_dl_dlopen_LIBS="" 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_dl_dlopen_happy=yes else opal_dl_dlopen_CPPFLAGS="$opal_check_package_opal_dl_dlopen_orig_CPPFLAGS" opal_dl_dlopen_LDFLAGS="$opal_check_package_opal_dl_dlopen_orig_LDFLAGS" opal_dl_dlopen_LIBS="$opal_check_package_opal_dl_dlopen_orig_LIBS" opal_dl_dlopen_happy=no fi CPPFLAGS="$opal_check_package_opal_dl_dlopen_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_dl_dlopen_save_LDFLAGS" LIBS="$opal_check_package_opal_dl_dlopen_save_LIBS" fi if test "$opal_dl_dlopen_happy" = "yes"; then : dl_dlopen_ADD_LIBS=$opal_dl_dlopen_LIBS dl_dlopen_WRAPPER_EXTRA_LIBS=$opal_dl_dlopen_LIBS should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/dl/dlopen/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components dlopen" if test "$compile_mode" = "dso" ; then dso_components="$dso_components dlopen" else if test "dl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/dl/dlopen/lib${OPAL_LIB_PREFIX}mca_dl_dlopen.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/dl/dlopen/libmca_dl_dlopen.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_dl_dlopen_component;" >> $outfile.extern echo " &mca_dl_dlopen_component, " >> $outfile.struct static_components="$static_components dlopen" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component dl:dlopen can compile" >&5 $as_echo_n "checking if MCA component dl:dlopen can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_dl" = "dlopen" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_dl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** dl component dlopen was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_dl" = "dlopen" ; then as_fn_error $? "*** dl component dlopen was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$dl_dlopen_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $dl_dlopen_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $dl_dlopen_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$dl_dlopen_WRAPPER_EXTRA_LIBS" = ""; 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_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 $dl_dlopen_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $dl_dlopen_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$dl_dlopen_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $dl_dlopen_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring dl_dlopen_WRAPPER_EXTRA_CPPFLAGS ($dl_dlopen_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring dl_dlopen_WRAPPER_EXTRA_CPPFLAGS ($dl_dlopen_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component dl:dlopen can compile" >&5 $as_echo_n "checking if MCA component dl:dlopen can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_dl" = "dlopen" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dlopen\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"dlopen\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_dl" ; then if test "$DIRECT_dl" = "dlopen" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dlopen\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"dlopen\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components dlopen" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_dl_dlopen_DSO=1 else BUILD_opal_dl_dlopen_DSO=0 fi if test "$BUILD_opal_dl_dlopen_DSO" = "1"; then MCA_BUILD_opal_dl_dlopen_DSO_TRUE= MCA_BUILD_opal_dl_dlopen_DSO_FALSE='#' else MCA_BUILD_opal_dl_dlopen_DSO_TRUE='#' MCA_BUILD_opal_dl_dlopen_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component dl:libltdl (m4 configuration macro, priority 50)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/dl/libltdl" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_dl" ; then if test "$DIRECT_dl" = "libltdl" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_dl" = "1"; then : want_component=0 fi if test "$DISABLE_dl_libltdl" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component dl:libltdl compile mode" >&5 $as_echo_n "checking for MCA component dl:libltdl compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component # 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 CPPFLAGS_save LDFLAGS_save LIBS_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=\"CPPFLAGS_save LDFLAGS_save LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_config_files="$ac_config_files opal/mca/dl/libltdl/Makefile" # Add --with options # Check whether --with-libltdl was given. if test "${with_libltdl+set}" = set; then : withval=$with_libltdl; fi # Check whether --with-libltdl-libdir was given. if test "${with_libltdl_libdir+set}" = set; then : withval=$with_libltdl_libdir; fi # Sanity check the --with values { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libltdl value" >&5 $as_echo_n "checking --with-libltdl value... " >&6; } if test "$with_libltdl" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-libltdl)" >&5 $as_echo "simple no (specified --without-libltdl)" >&6; } else if test "$with_libltdl" = "yes" || test "x$with_libltdl" = "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_libltdl"; 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_libltdl not found" >&5 $as_echo "$as_me: WARNING: Directory $with_libltdl not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_libltdl/include/ltdl.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libltdl/include/ltdl.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_libltdl/include/ltdl.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libltdl)" >&5 $as_echo "sanity check ok ($with_libltdl)" >&6; } fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libltdl-libdir value" >&5 $as_echo_n "checking --with-libltdl-libdir value... " >&6; } if test "$with_libltdl_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-libltdl-libdir)" >&5 $as_echo "simple no (specified --without-libltdl-libdir)" >&6; } else if test "$with_libltdl_libdir" = "yes" || test "x$with_libltdl_libdir" = "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_libltdl_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libltdl_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_libltdl_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_libltdl_libdir/libltdl.* 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_libltdl_libdir/libltdl.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_libltdl_libdir/libltdl.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libltdl_libdir)" >&5 $as_echo "sanity check ok ($with_libltdl_libdir)" >&6; } fi fi fi fi # Defaults opal_check_libltdl_dir_msg="compiler default" opal_check_libltdl_libdir_msg="linker default" # Save directory names if supplied if test ! -z "$with_libltdl" && test "$with_libltdl" != "yes"; then : opal_check_libltdl_dir=$with_libltdl opal_check_libltdl_dir_msg="$opal_check_libltdl_dir (from --with-libltdl)" fi if test ! -z "$with_libltdl_libdir" && test "$with_libltdl_libdir" != "yes"; then : opal_check_libltdl_libdir=$with_libltdl_libdir opal_check_libltdl_libdir_msg="$opal_check_libltdl_libdir (from --with-libltdl-libdir)" fi opal_dl_libltdl_happy=no if test "$with_libltdl" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl dir" >&5 $as_echo_n "checking for libltdl dir... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_check_libltdl_dir_msg" >&5 $as_echo "$opal_check_libltdl_dir_msg" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl library dir" >&5 $as_echo_n "checking for libltdl library dir... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_check_libltdl_libdir_msg" >&5 $as_echo "$opal_check_libltdl_libdir_msg" >&6; } opal_check_package_opal_dl_libltdl_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_dl_libltdl_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_dl_libltdl_save_LIBS="$LIBS" opal_check_package_opal_dl_libltdl_orig_CPPFLAGS="$opal_dl_libltdl_CPPFLAGS" opal_check_package_opal_dl_libltdl_orig_LDFLAGS="$opal_dl_libltdl_LDFLAGS" opal_check_package_opal_dl_libltdl_orig_LIBS="$opal_dl_libltdl_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_ltdl_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_check_libltdl_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 ltdl.h do : ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" if test "x$ac_cv_header_ltdl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LTDL_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_ltdl_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_dl_libltdl_CPPFLAGS="$opal_dl_libltdl_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ltdl.h do : ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" if test "x$ac_cv_header_ltdl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LTDL_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_lt_dlopen opal_check_package_lib_happy="no" if test "$opal_check_libltdl_libdir" != ""; then : # libdir was specified - search only there opal_dl_libltdl_LDFLAGS="$opal_dl_libltdl_LDFLAGS -L$opal_check_libltdl_libdir" LDFLAGS="$LDFLAGS -L$opal_check_libltdl_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5 $as_echo_n "checking for library containing lt_dlopen... " >&6; } if ${ac_cv_search_lt_dlopen+:} 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 lt_dlopen (); int main () { return lt_dlopen (); ; return 0; } _ACEOF for ac_lib in '' ltdl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lt_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lt_dlopen+:} false; then : break fi done if ${ac_cv_search_lt_dlopen+:} false; then : else ac_cv_search_lt_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 $as_echo "$ac_cv_search_lt_dlopen" >&6; } ac_res=$ac_cv_search_lt_dlopen 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_dl_libltdl_save_LDFLAGS" opal_dl_libltdl_LDFLAGS="$opal_check_package_opal_dl_libltdl_orig_LDFLAGS" unset ac_cv_search_lt_dlopen fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_check_libltdl_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 lt_dlopen" >&5 $as_echo_n "checking for library containing lt_dlopen... " >&6; } if ${ac_cv_search_lt_dlopen+:} 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 lt_dlopen (); int main () { return lt_dlopen (); ; return 0; } _ACEOF for ac_lib in '' ltdl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lt_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lt_dlopen+:} false; then : break fi done if ${ac_cv_search_lt_dlopen+:} false; then : else ac_cv_search_lt_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 $as_echo "$ac_cv_search_lt_dlopen" >&6; } ac_res=$ac_cv_search_lt_dlopen 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_dl_libltdl_save_LDFLAGS" opal_dl_libltdl_LDFLAGS="$opal_check_package_opal_dl_libltdl_orig_LDFLAGS" unset ac_cv_search_lt_dlopen fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_dl_libltdl_LDFLAGS="$opal_dl_libltdl_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 lt_dlopen" >&5 $as_echo_n "checking for library containing lt_dlopen... " >&6; } if ${ac_cv_search_lt_dlopen+:} 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 lt_dlopen (); int main () { return lt_dlopen (); ; return 0; } _ACEOF for ac_lib in '' ltdl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lt_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lt_dlopen+:} false; then : break fi done if ${ac_cv_search_lt_dlopen+:} false; then : else ac_cv_search_lt_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 $as_echo "$ac_cv_search_lt_dlopen" >&6; } ac_res=$ac_cv_search_lt_dlopen 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_dl_libltdl_save_LDFLAGS" opal_dl_libltdl_LDFLAGS="$opal_check_package_opal_dl_libltdl_orig_LDFLAGS" unset ac_cv_search_lt_dlopen fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_dl_libltdl_LDFLAGS="$opal_dl_libltdl_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 lt_dlopen" >&5 $as_echo_n "checking for library containing lt_dlopen... " >&6; } if ${ac_cv_search_lt_dlopen+:} 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 lt_dlopen (); int main () { return lt_dlopen (); ; return 0; } _ACEOF for ac_lib in '' ltdl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lt_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lt_dlopen+:} false; then : break fi done if ${ac_cv_search_lt_dlopen+:} false; then : else ac_cv_search_lt_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 $as_echo "$ac_cv_search_lt_dlopen" >&6; } ac_res=$ac_cv_search_lt_dlopen 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_dl_libltdl_save_LDFLAGS" opal_dl_libltdl_LDFLAGS="$opal_check_package_opal_dl_libltdl_orig_LDFLAGS" unset ac_cv_search_lt_dlopen 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 libltdl requires libnl v1 or v3" >&5 $as_echo_n "checking if libltdl requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void lt_dlopen (void); int main(int argc, char *argv[]) { lt_dlopen (); 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:143096: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lltdl $LIBS $opal_dl_libltdl_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lltdl $LIBS $opal_dl_libltdl_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:143103: \$? = $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 ltdl" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ltdl" >&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, libltdl links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libltdl 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 libltdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libltdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libltdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libltdl." >&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 ltdl requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ltdl 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 libltdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libltdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libltdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libltdl." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ltdl" # 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 libltdl requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libltdl 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 libltdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libltdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libltdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libltdl." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ltdl" # 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_lt_dlopen" != "no" && test "$ac_cv_search_lt_dlopen" != "none required"; then : opal_dl_libltdl_LIBS="$ac_cv_search_lt_dlopen " else opal_dl_libltdl_LIBS="" 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_lt_dlopen opal_check_package_lib_happy="no" if test "$opal_check_libltdl_libdir" != ""; then : # libdir was specified - search only there opal_dl_libltdl_LDFLAGS="$opal_dl_libltdl_LDFLAGS -L$opal_check_libltdl_libdir" LDFLAGS="$LDFLAGS -L$opal_check_libltdl_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5 $as_echo_n "checking for library containing lt_dlopen... " >&6; } if ${ac_cv_search_lt_dlopen+:} 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 lt_dlopen (); int main () { return lt_dlopen (); ; return 0; } _ACEOF for ac_lib in '' ltdl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lt_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lt_dlopen+:} false; then : break fi done if ${ac_cv_search_lt_dlopen+:} false; then : else ac_cv_search_lt_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 $as_echo "$ac_cv_search_lt_dlopen" >&6; } ac_res=$ac_cv_search_lt_dlopen 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_dl_libltdl_save_LDFLAGS" opal_dl_libltdl_LDFLAGS="$opal_check_package_opal_dl_libltdl_orig_LDFLAGS" unset ac_cv_search_lt_dlopen fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_check_libltdl_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 lt_dlopen" >&5 $as_echo_n "checking for library containing lt_dlopen... " >&6; } if ${ac_cv_search_lt_dlopen+:} 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 lt_dlopen (); int main () { return lt_dlopen (); ; return 0; } _ACEOF for ac_lib in '' ltdl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lt_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lt_dlopen+:} false; then : break fi done if ${ac_cv_search_lt_dlopen+:} false; then : else ac_cv_search_lt_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 $as_echo "$ac_cv_search_lt_dlopen" >&6; } ac_res=$ac_cv_search_lt_dlopen 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_dl_libltdl_save_LDFLAGS" opal_dl_libltdl_LDFLAGS="$opal_check_package_opal_dl_libltdl_orig_LDFLAGS" unset ac_cv_search_lt_dlopen fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_dl_libltdl_LDFLAGS="$opal_dl_libltdl_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 lt_dlopen" >&5 $as_echo_n "checking for library containing lt_dlopen... " >&6; } if ${ac_cv_search_lt_dlopen+:} 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 lt_dlopen (); int main () { return lt_dlopen (); ; return 0; } _ACEOF for ac_lib in '' ltdl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lt_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lt_dlopen+:} false; then : break fi done if ${ac_cv_search_lt_dlopen+:} false; then : else ac_cv_search_lt_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 $as_echo "$ac_cv_search_lt_dlopen" >&6; } ac_res=$ac_cv_search_lt_dlopen 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_dl_libltdl_save_LDFLAGS" opal_dl_libltdl_LDFLAGS="$opal_check_package_opal_dl_libltdl_orig_LDFLAGS" unset ac_cv_search_lt_dlopen fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_dl_libltdl_LDFLAGS="$opal_dl_libltdl_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 lt_dlopen" >&5 $as_echo_n "checking for library containing lt_dlopen... " >&6; } if ${ac_cv_search_lt_dlopen+:} 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 lt_dlopen (); int main () { return lt_dlopen (); ; return 0; } _ACEOF for ac_lib in '' ltdl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lt_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lt_dlopen+:} false; then : break fi done if ${ac_cv_search_lt_dlopen+:} false; then : else ac_cv_search_lt_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5 $as_echo "$ac_cv_search_lt_dlopen" >&6; } ac_res=$ac_cv_search_lt_dlopen 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_dl_libltdl_save_LDFLAGS" opal_dl_libltdl_LDFLAGS="$opal_check_package_opal_dl_libltdl_orig_LDFLAGS" unset ac_cv_search_lt_dlopen 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 libltdl requires libnl v1 or v3" >&5 $as_echo_n "checking if libltdl requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void lt_dlopen (void); int main(int argc, char *argv[]) { lt_dlopen (); 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:143821: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lltdl $LIBS $opal_dl_libltdl_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lltdl $LIBS $opal_dl_libltdl_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:143828: \$? = $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 ltdl" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ltdl" >&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, libltdl links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libltdl 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 libltdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libltdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libltdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libltdl." >&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 ltdl requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ltdl 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 libltdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libltdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libltdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libltdl." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ltdl" # 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 libltdl requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libltdl 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 libltdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libltdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libltdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libltdl." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ltdl" # 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_lt_dlopen" != "no" && test "$ac_cv_search_lt_dlopen" != "none required"; then : opal_dl_libltdl_LIBS="$ac_cv_search_lt_dlopen " else opal_dl_libltdl_LIBS="" 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_dl_libltdl_happy=yes else opal_dl_libltdl_CPPFLAGS="$opal_check_package_opal_dl_libltdl_orig_CPPFLAGS" opal_dl_libltdl_LDFLAGS="$opal_check_package_opal_dl_libltdl_orig_LDFLAGS" opal_dl_libltdl_LIBS="$opal_check_package_opal_dl_libltdl_orig_LIBS" opal_dl_libltdl_happy=no fi CPPFLAGS="$opal_check_package_opal_dl_libltdl_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_dl_libltdl_save_LDFLAGS" LIBS="$opal_check_package_opal_dl_libltdl_save_LIBS" fi # If we have libltdl, do we have lt_dladvise? opal_dl_libltdl_have_lt_dladvise=0 if test "$opal_dl_libltdl_happy" = "yes"; then : CPPFLAGS_save=$CPPFLAGS LDFLAGS_save=$LDFLAGS LIBS_save=$LIBS CPPFLAGS="$opal_dl_libltdl_CPPFLAGS $CPPFLAGS" LDFLAGS="$opal_dl_libltdl_LDFLAGS $LDFLAGS" LIBS="$opal_dl_libltdl_LIBS $LIBS" ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init" if test "x$ac_cv_func_lt_dladvise_init" = xyes; then : opal_dl_libltdl_have_lt_dladvise=1 fi CPPFLAGS=$CPPFLAGS_save LDFLAGS=$LDFLAGS_save LIBS=$LIBS_save fi cat >>confdefs.h <<_ACEOF #define OPAL_DL_LIBLTDL_HAVE_LT_DLADVISE $opal_dl_libltdl_have_lt_dladvise _ACEOF if test "$opal_dl_libltdl_happy" = "yes"; then : opal_dl_libltdl_ADD_CPPFLAGS=$opal_dl_libltdl_CPPFLAGS opal_dl_libltdl_ADD_LDFLAGS=$opal_dl_libltdl_LDFLAGS opal_dl_libltdl_ADD_LIBS=$opal_dl_libltdl_LIBS should_build=$should_build else if test ! -z "$with_libltdl" && \ test "$with_libltdl" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libltdl support requested (via --with-libltdl) but not found." >&5 $as_echo "$as_me: WARNING: Libltdl support requested (via --with-libltdl) but not found." >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi should_build=0 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/dl/libltdl/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components libltdl" if test "$compile_mode" = "dso" ; then dso_components="$dso_components libltdl" else if test "dl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/dl/libltdl/lib${OPAL_LIB_PREFIX}mca_dl_libltdl.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/dl/libltdl/libmca_dl_libltdl.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_dl_libltdl_component;" >> $outfile.extern echo " &mca_dl_libltdl_component, " >> $outfile.struct static_components="$static_components libltdl" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component dl:libltdl can compile" >&5 $as_echo_n "checking if MCA component dl:libltdl can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_dl" = "libltdl" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_dl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** dl component libltdl was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_dl" = "libltdl" ; then as_fn_error $? "*** dl component libltdl was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$dl_libltdl_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $dl_libltdl_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $dl_libltdl_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$dl_libltdl_WRAPPER_EXTRA_LIBS" = ""; 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_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 $dl_libltdl_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $dl_libltdl_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$dl_libltdl_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $dl_libltdl_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring dl_libltdl_WRAPPER_EXTRA_CPPFLAGS ($dl_libltdl_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring dl_libltdl_WRAPPER_EXTRA_CPPFLAGS ($dl_libltdl_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component dl:libltdl can compile" >&5 $as_echo_n "checking if MCA component dl:libltdl can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_dl" = "libltdl" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"libltdl\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"libltdl\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_dl" ; then if test "$DIRECT_dl" = "libltdl" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"libltdl\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"libltdl\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components libltdl" fi # If we won, then do all the rest of the setup if test "$should_build" = "1"; then : # Add some stuff to CPPFLAGS so that the rest of the source # tree can be built LDFLAGS="$LDFLAGS $opal_dl_libltdl_ADD_LDFLAGS" LIBS="$LIBS $opal_dl_libltdl_ADD_LIBS" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_dl_libltdl_DSO=1 else BUILD_opal_dl_libltdl_DSO=0 fi if test "$BUILD_opal_dl_libltdl_DSO" = "1"; then MCA_BUILD_opal_dl_libltdl_DSO_TRUE= MCA_BUILD_opal_dl_libltdl_DSO_FALSE='#' else MCA_BUILD_opal_dl_libltdl_DSO_TRUE='#' MCA_BUILD_opal_dl_libltdl_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_dl_ALL_COMPONENTS="$all_components" MCA_opal_dl_STATIC_COMPONENTS="$static_components" MCA_opal_dl_DSO_COMPONENTS="$dso_components" MCA_opal_dl_STATIC_LTLIBS="$static_ltlibs" MCA_opal_dl_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_dl_ALL_SUBDIRS="$MCA_opal_dl_ALL_SUBDIRS mca/dl/$item" done MCA_opal_dl_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_dl_STATIC_SUBDIRS="$MCA_opal_dl_STATIC_SUBDIRS mca/dl/$item" done MCA_opal_dl_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_dl_DSO_SUBDIRS="$MCA_opal_dl_DSO_SUBDIRS mca/dl/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "dl" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # If we found no suitable static dl component and dlopen support # was not specifically disabled, this is an error. if test "$MCA_opal_dl_STATIC_COMPONENTS" = "" && \ test "$enable_dlopen" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find a suitable static opal dl component" >&5 $as_echo "$as_me: WARNING: Did not find a suitable static opal dl component" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You might need to install libltld (and its headers) or" >&5 $as_echo "$as_me: WARNING: You might need to install libltld (and its headers) or" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: specify --disable-dlopen to configure." >&5 $as_echo "$as_me: WARNING: specify --disable-dlopen to configure." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # If we have a winning component (which, per above, will only # happen if --disable-dlopen was *not* specified), do some more # logic. if test "$MCA_opal_dl_STATIC_COMPONENTS" != ""; then : # We had a winner -- w00t! OPAL_HAVE_DL_SUPPORT=1 # If we added any -L flags to ADD_LDFLAGS, then we (might) # need to add those directories to LD_LIBRARY_PATH. # Otherwise, if we try to AC RUN_IFELSE anything here in # configure, it might die because it can't find the libraries # we just linked against. # 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_dl_base_found_l opal_dl_base_token opal_dl_base_tmp opal_dl_base_dir; 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_dl_base_found_l opal_dl_base_token opal_dl_base_tmp opal_dl_base_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_dl_base_found_l=0 eval "opal_dl_base_tmp=\$opal_dl_${opal_dl_winner}_ADD_LIBS" for opal_dl_base_token in $opal_dl_base_tmp; do case $opal_dl_base_token in -l*) opal_dl_base_found_l=1 ;; esac done if test $opal_dl_base_found_l -eq 1; then : eval "opal_dl_base_tmp=\$opal_dl_${opal_dl_winner}_ADD_LDFLAGS" for opal_dl_base_token in $opal_dl_base_tmp; do case $opal_dl_base_token in -L*) opal_dl_base_dir=`echo $opal_dl_base_token | cut -c3-` export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$opal_dl_base_dir { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Adding to LD_LIBRARY_PATH: $opal_dl_base_dir" >&5 $as_echo "$as_me: WARNING: Adding to LD_LIBRARY_PATH: $opal_dl_base_dir" >&2;} ;; esac done 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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_DL_SUPPORT $OPAL_HAVE_DL_SUPPORT _ACEOF MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS event" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/event" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_event_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_event_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_event_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/event/libmca_event.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_event_STATIC_LTLIBS)" opal_event_base_include= # Check whether --with-libevent was given. if test "${with_libevent+set}" = set; then : withval=$with_libevent; fi # Bozo check if test "$with_libevent" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It is not possible to configure Open MPI --without-libevent" >&5 $as_echo "$as_me: WARNING: It is not possible to configure Open MPI --without-libevent" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$with_libevent" = "yes"; then : with_libevent= fi # Check whether --with-libevent-libdir was given. if test "${with_libevent_libdir+set}" = set; then : withval=$with_libevent_libdir; fi # Make sure the user didn't specify --with-libevent=internal and # --with-libevent-libdir=whatever (because you can only specify # --with-libevent-libdir when external libevent is being used). if test "$with_libevent" = "internal" && test -n "$with_libevent_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both --with-libevent=internal and --with-libevent-libdir=DIR" >&5 $as_echo "$as_me: WARNING: Both --with-libevent=internal and --with-libevent-libdir=DIR" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: were specified, which does not make sense." >&5 $as_echo "$as_me: WARNING: were specified, which does not make sense." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # configure all the components opal_show_subsubtitle "Configuring MCA framework event" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/event/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/event/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework event" >&5 $as_echo_n "checking for no configure components in framework event... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework event" >&5 $as_echo_n "checking for m4 configure components in framework event... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: external, libevent2022" >&5 $as_echo "external, libevent2022" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component event:external (m4 configuration macro, priority 90)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/event/external" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_event" ; then if test "$DIRECT_event" = "external" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_event" = "1"; then : want_component=0 fi if test "$DISABLE_event_external" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component event:external compile mode" >&5 $as_echo_n "checking for MCA component event:external compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/event/external/Makefile" # 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_event_external_CPPFLAGS_save opal_event_external_CFLAGS_save opal_event_external_LDFLAGS_save opal_event_external_LIBS_save opal_event_dir opal_event_summary_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=\"opal_event_external_CPPFLAGS_save opal_event_external_CFLAGS_save opal_event_external_LDFLAGS_save opal_event_external_LIBS_save opal_event_dir opal_event_summary_msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_event_summary_msg="internal" # Check the value of $with_libevent_libdir. This macro safely # handles "yes", "no", blank, and directory name values. { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libevent-libdir value" >&5 $as_echo_n "checking --with-libevent-libdir value... " >&6; } if test "$with_libevent_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-libevent-libdir)" >&5 $as_echo "simple no (specified --without-libevent-libdir)" >&6; } else if test "$with_libevent_libdir" = "yes" || test "x$with_libevent_libdir" = "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_libevent_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libevent_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_libevent_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_libevent_libdir/libevent.* 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_libevent_libdir/libevent.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_libevent_libdir/libevent.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libevent_libdir)" >&5 $as_echo "sanity check ok ($with_libevent_libdir)" >&6; } fi fi fi fi # Did the user want us to check for libevent in a specific location? { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libevent in" >&5 $as_echo_n "checking for external libevent in... " >&6; } if test -n "$with_libevent" && \ test "$with_libevent" != "external" && \ test "$with_libevent" != "internal" && \ test "$with_libevent" != "yes" && \ test "$with_libevent" != "no"; then : opal_event_dir=$with_libevent { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_event_dir" >&5 $as_echo "$opal_event_dir" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-libevent value" >&5 $as_echo_n "checking --with-libevent value... " >&6; } if test "$opal_event_dir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-libevent)" >&5 $as_echo "simple no (specified --without-libevent)" >&6; } else if test "$opal_event_dir" = "yes" || test "x$opal_event_dir" = "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 "$opal_event_dir"; 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 $opal_event_dir not found" >&5 $as_echo "$as_me: WARNING: Directory $opal_event_dir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $opal_event_dir/include/event2/event.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 $opal_event_dir/include/event2/event.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $opal_event_dir/include/event2/event.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($opal_event_dir)" >&5 $as_echo "sanity check ok ($opal_event_dir)" >&6; } fi fi fi fi if test -z "$with_libevent_libdir" || test "$with_libevent_libdir" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $with_libevent/lib64" >&5 $as_echo_n "checking for $with_libevent/lib64... " >&6; } if test -d "$with_libevent/lib64"; then : opal_event_libdir_found=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 $as_echo "found" >&6; } else opal_event_libdir_found=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } fi if test "$opal_event_libdir_found" != "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $with_libevent/lib" >&5 $as_echo_n "checking for $with_libevent/lib... " >&6; } if test -d "$with_libevent/lib"; 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}: WARNING: Library directories were not found:" >&5 $as_echo "$as_me: WARNING: Library directories were not found:" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_libevent/lib64" >&5 $as_echo "$as_me: WARNING: $with_libevent/lib64" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_libevent/lib" >&5 $as_echo "$as_me: WARNING: $with_libevent/lib" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-libevent-libdir to identify it." >&5 $as_echo "$as_me: WARNING: Please use --with-libevent-libdir to identify it." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 $as_echo "(default search paths)" >&6; } fi if test ! -z "$with_libevent_libdir" && test "$with_libevent_libdir" != "yes"; then : opal_event_libdir="$with_libevent_libdir" fi if test "$with_libevent" != "internal"; then : opal_event_external_CPPFLAGS_save=$CPPFLAGS opal_event_external_CFLAGS_save=$CFLAGS opal_event_external_LDFLAGS_save=$LDFLAGS opal_event_external_LIBS_save=$LIBS opal_check_package_opal_event_external_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_event_external_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_event_external_save_LIBS="$LIBS" opal_check_package_opal_event_external_orig_CPPFLAGS="$opal_event_external_CPPFLAGS" opal_check_package_opal_event_external_orig_LDFLAGS="$opal_event_external_LDFLAGS" opal_check_package_opal_event_external_orig_LIBS="$opal_event_external_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_event2_event_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_event_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 event2/event.h do : ac_fn_c_check_header_mongrel "$LINENO" "event2/event.h" "ac_cv_header_event2_event_h" "$ac_includes_default" if test "x$ac_cv_header_event2_event_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_EVENT2_EVENT_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_event2_event_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_event_external_CPPFLAGS="$opal_event_external_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in event2/event.h do : ac_fn_c_check_header_mongrel "$LINENO" "event2/event.h" "ac_cv_header_event2_event_h" "$ac_includes_default" if test "x$ac_cv_header_event2_event_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_EVENT2_EVENT_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_event_config_new opal_check_package_lib_happy="no" if test "$opal_event_libdir" != ""; then : # libdir was specified - search only there opal_event_external_LDFLAGS="$opal_event_external_LDFLAGS -L$opal_event_libdir" LDFLAGS="$LDFLAGS -L$opal_event_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5 $as_echo_n "checking for library containing event_config_new... " >&6; } if ${ac_cv_search_event_config_new+:} 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 event_config_new (); int main () { return event_config_new (); ; return 0; } _ACEOF for ac_lib in '' event_core; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_event_config_new=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_event_config_new+:} false; then : break fi done if ${ac_cv_search_event_config_new+:} false; then : else ac_cv_search_event_config_new=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 $as_echo "$ac_cv_search_event_config_new" >&6; } ac_res=$ac_cv_search_event_config_new 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_event_external_save_LDFLAGS" opal_event_external_LDFLAGS="$opal_check_package_opal_event_external_orig_LDFLAGS" unset ac_cv_search_event_config_new fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_event_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 event_config_new" >&5 $as_echo_n "checking for library containing event_config_new... " >&6; } if ${ac_cv_search_event_config_new+:} 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 event_config_new (); int main () { return event_config_new (); ; return 0; } _ACEOF for ac_lib in '' event_core; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_event_config_new=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_event_config_new+:} false; then : break fi done if ${ac_cv_search_event_config_new+:} false; then : else ac_cv_search_event_config_new=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 $as_echo "$ac_cv_search_event_config_new" >&6; } ac_res=$ac_cv_search_event_config_new 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_event_external_save_LDFLAGS" opal_event_external_LDFLAGS="$opal_check_package_opal_event_external_orig_LDFLAGS" unset ac_cv_search_event_config_new fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_event_external_LDFLAGS="$opal_event_external_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 event_config_new" >&5 $as_echo_n "checking for library containing event_config_new... " >&6; } if ${ac_cv_search_event_config_new+:} 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 event_config_new (); int main () { return event_config_new (); ; return 0; } _ACEOF for ac_lib in '' event_core; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_event_config_new=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_event_config_new+:} false; then : break fi done if ${ac_cv_search_event_config_new+:} false; then : else ac_cv_search_event_config_new=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 $as_echo "$ac_cv_search_event_config_new" >&6; } ac_res=$ac_cv_search_event_config_new 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_event_external_save_LDFLAGS" opal_event_external_LDFLAGS="$opal_check_package_opal_event_external_orig_LDFLAGS" unset ac_cv_search_event_config_new fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_event_external_LDFLAGS="$opal_event_external_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 event_config_new" >&5 $as_echo_n "checking for library containing event_config_new... " >&6; } if ${ac_cv_search_event_config_new+:} 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 event_config_new (); int main () { return event_config_new (); ; return 0; } _ACEOF for ac_lib in '' event_core; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_event_config_new=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_event_config_new+:} false; then : break fi done if ${ac_cv_search_event_config_new+:} false; then : else ac_cv_search_event_config_new=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 $as_echo "$ac_cv_search_event_config_new" >&6; } ac_res=$ac_cv_search_event_config_new 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_event_external_save_LDFLAGS" opal_event_external_LDFLAGS="$opal_check_package_opal_event_external_orig_LDFLAGS" unset ac_cv_search_event_config_new 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 libevent_core requires libnl v1 or v3" >&5 $as_echo_n "checking if libevent_core requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void event_config_new (void); int main(int argc, char *argv[]) { event_config_new (); 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:145870: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -levent_core $LIBS $opal_event_external_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -levent_core $LIBS $opal_event_external_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:145877: \$? = $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 event_core" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib event_core" >&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, libevent_core links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libevent_core 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 libevent_core (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libevent_core (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libevent_core." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libevent_core." >&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 event_core requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas event_core 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 libevent_core (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libevent_core (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libevent_core." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libevent_core." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs event_core" # 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 libevent_core requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libevent_core 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 libevent_core (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libevent_core (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libevent_core." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libevent_core." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs event_core" # 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_event_config_new" != "no" && test "$ac_cv_search_event_config_new" != "none required"; then : opal_event_external_LIBS="$ac_cv_search_event_config_new -levent_pthreads" else opal_event_external_LIBS="-levent_pthreads" 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_event_config_new opal_check_package_lib_happy="no" if test "$opal_event_libdir" != ""; then : # libdir was specified - search only there opal_event_external_LDFLAGS="$opal_event_external_LDFLAGS -L$opal_event_libdir" LDFLAGS="$LDFLAGS -L$opal_event_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5 $as_echo_n "checking for library containing event_config_new... " >&6; } if ${ac_cv_search_event_config_new+:} 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 event_config_new (); int main () { return event_config_new (); ; return 0; } _ACEOF for ac_lib in '' event_core; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_event_config_new=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_event_config_new+:} false; then : break fi done if ${ac_cv_search_event_config_new+:} false; then : else ac_cv_search_event_config_new=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 $as_echo "$ac_cv_search_event_config_new" >&6; } ac_res=$ac_cv_search_event_config_new 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_event_external_save_LDFLAGS" opal_event_external_LDFLAGS="$opal_check_package_opal_event_external_orig_LDFLAGS" unset ac_cv_search_event_config_new fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_event_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 event_config_new" >&5 $as_echo_n "checking for library containing event_config_new... " >&6; } if ${ac_cv_search_event_config_new+:} 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 event_config_new (); int main () { return event_config_new (); ; return 0; } _ACEOF for ac_lib in '' event_core; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_event_config_new=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_event_config_new+:} false; then : break fi done if ${ac_cv_search_event_config_new+:} false; then : else ac_cv_search_event_config_new=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 $as_echo "$ac_cv_search_event_config_new" >&6; } ac_res=$ac_cv_search_event_config_new 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_event_external_save_LDFLAGS" opal_event_external_LDFLAGS="$opal_check_package_opal_event_external_orig_LDFLAGS" unset ac_cv_search_event_config_new fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_event_external_LDFLAGS="$opal_event_external_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 event_config_new" >&5 $as_echo_n "checking for library containing event_config_new... " >&6; } if ${ac_cv_search_event_config_new+:} 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 event_config_new (); int main () { return event_config_new (); ; return 0; } _ACEOF for ac_lib in '' event_core; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_event_config_new=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_event_config_new+:} false; then : break fi done if ${ac_cv_search_event_config_new+:} false; then : else ac_cv_search_event_config_new=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 $as_echo "$ac_cv_search_event_config_new" >&6; } ac_res=$ac_cv_search_event_config_new 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_event_external_save_LDFLAGS" opal_event_external_LDFLAGS="$opal_check_package_opal_event_external_orig_LDFLAGS" unset ac_cv_search_event_config_new fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_event_external_LDFLAGS="$opal_event_external_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 event_config_new" >&5 $as_echo_n "checking for library containing event_config_new... " >&6; } if ${ac_cv_search_event_config_new+:} 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 event_config_new (); int main () { return event_config_new (); ; return 0; } _ACEOF for ac_lib in '' event_core; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -levent_pthreads $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_event_config_new=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_event_config_new+:} false; then : break fi done if ${ac_cv_search_event_config_new+:} false; then : else ac_cv_search_event_config_new=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5 $as_echo "$ac_cv_search_event_config_new" >&6; } ac_res=$ac_cv_search_event_config_new 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_event_external_save_LDFLAGS" opal_event_external_LDFLAGS="$opal_check_package_opal_event_external_orig_LDFLAGS" unset ac_cv_search_event_config_new 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 libevent_core requires libnl v1 or v3" >&5 $as_echo_n "checking if libevent_core requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void event_config_new (void); int main(int argc, char *argv[]) { event_config_new (); 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:146595: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -levent_core $LIBS $opal_event_external_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -levent_core $LIBS $opal_event_external_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:146602: \$? = $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 event_core" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib event_core" >&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, libevent_core links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libevent_core 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 libevent_core (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libevent_core (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libevent_core." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libevent_core." >&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 event_core requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas event_core 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 libevent_core (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libevent_core (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libevent_core." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libevent_core." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs event_core" # 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 libevent_core requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libevent_core 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 libevent_core (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libevent_core (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libevent_core." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libevent_core." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs event_core" # 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_event_config_new" != "no" && test "$ac_cv_search_event_config_new" != "none required"; then : opal_event_external_LIBS="$ac_cv_search_event_config_new -levent_pthreads" else opal_event_external_LIBS="-levent_pthreads" 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_event_external_support=yes else opal_event_external_CPPFLAGS="$opal_check_package_opal_event_external_orig_CPPFLAGS" opal_event_external_LDFLAGS="$opal_check_package_opal_event_external_orig_LDFLAGS" opal_event_external_LIBS="$opal_check_package_opal_event_external_orig_LIBS" opal_event_external_support=no fi CPPFLAGS="$opal_check_package_opal_event_external_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_event_external_save_LDFLAGS" LIBS="$opal_check_package_opal_event_external_save_LIBS" # Check to see if the above check failed because it conflicted with LSF's libevent.so # This can happen if LSF's library is in the LDFLAGS envar or default search # path. The 'event_getcode4name' function is only defined in LSF's libevent.so and not # in Libevent's libevent.so if test "$opal_event_external_support" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_getcode4name in -levent" >&5 $as_echo_n "checking for event_getcode4name in -levent... " >&6; } if ${ac_cv_lib_event_event_getcode4name+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-levent $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 event_getcode4name (); int main () { return event_getcode4name (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_event_event_getcode4name=yes else ac_cv_lib_event_event_getcode4name=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_event_event_getcode4name" >&5 $as_echo "$ac_cv_lib_event_event_getcode4name" >&6; } if test "x$ac_cv_lib_event_event_getcode4name" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 $as_echo "$as_me: WARNING: ===================================================================" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Possible conflicting libevent.so libraries detected on the system." >&5 $as_echo "$as_me: WARNING: Possible conflicting libevent.so libraries detected on the system." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 $as_echo "$as_me: WARNING: " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&5 $as_echo "$as_me: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library path. It is possible that you have installed Libevent" >&5 $as_echo "$as_me: WARNING: library path. It is possible that you have installed Libevent" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the system, but the linker is picking up the wrong version." >&5 $as_echo "$as_me: WARNING: on the system, but the linker is picking up the wrong version." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 $as_echo "$as_me: WARNING: " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configure may continue and attempt to use the 'internal' libevent" >&5 $as_echo "$as_me: WARNING: Configure may continue and attempt to use the 'internal' libevent" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: instead of the 'external' libevent if you did not explicitly request" >&5 $as_echo "$as_me: WARNING: instead of the 'external' libevent if you did not explicitly request" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the 'external' component." >&5 $as_echo "$as_me: WARNING: the 'external' component." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 $as_echo "$as_me: WARNING: " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If your intention was to use the 'external' libevent then you need" >&5 $as_echo "$as_me: WARNING: If your intention was to use the 'external' libevent then you need" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to address this linker path ordering issue. One way to do so is" >&5 $as_echo "$as_me: WARNING: to address this linker path ordering issue. One way to do so is" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to make sure the libevent system library path occurs before the" >&5 $as_echo "$as_me: WARNING: to make sure the libevent system library path occurs before the" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF library path." >&5 $as_echo "$as_me: WARNING: LSF library path." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 $as_echo "$as_me: WARNING: ===================================================================" >&2;} opal_event_external_support=no fi fi if test "$opal_event_external_support" = "yes"; then : LDFLAGS="$opal_event_external_LDFLAGS $LDFLAGS" CPPFLAGS="$opal_event_external_CPPFLAGS $CPPFLAGS" fi if test "$opal_event_external_support" = "yes"; then : # Ensure that this libevent has the symbol # "evthread_set_lock_callbacks", which will only exist if # libevent was configured with thread support. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evthread_set_lock_callbacks in -levent_core" >&5 $as_echo_n "checking for evthread_set_lock_callbacks in -levent_core... " >&6; } if ${ac_cv_lib_event_core_evthread_set_lock_callbacks+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-levent_core $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 evthread_set_lock_callbacks (); int main () { return evthread_set_lock_callbacks (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_event_core_evthread_set_lock_callbacks=yes else ac_cv_lib_event_core_evthread_set_lock_callbacks=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_event_core_evthread_set_lock_callbacks" >&5 $as_echo "$ac_cv_lib_event_core_evthread_set_lock_callbacks" >&6; } if test "x$ac_cv_lib_event_core_evthread_set_lock_callbacks" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBEVENT_CORE 1 _ACEOF LIBS="-levent_core $LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External libevent does not have thread support" >&5 $as_echo "$as_me: WARNING: External libevent does not have thread support" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI requires libevent to be compiled with" >&5 $as_echo "$as_me: WARNING: Open MPI requires libevent to be compiled with" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread support enabled" >&5 $as_echo "$as_me: WARNING: thread support enabled" >&2;} opal_event_external_support=no fi fi if test "$opal_event_external_support" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evthread_use_pthreads in -levent_pthreads" >&5 $as_echo_n "checking for evthread_use_pthreads in -levent_pthreads... " >&6; } if ${ac_cv_lib_event_pthreads_evthread_use_pthreads+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-levent_pthreads $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 evthread_use_pthreads (); int main () { return evthread_use_pthreads (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_event_pthreads_evthread_use_pthreads=yes else ac_cv_lib_event_pthreads_evthread_use_pthreads=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_event_pthreads_evthread_use_pthreads" >&5 $as_echo "$ac_cv_lib_event_pthreads_evthread_use_pthreads" >&6; } if test "x$ac_cv_lib_event_pthreads_evthread_use_pthreads" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBEVENT_PTHREADS 1 _ACEOF LIBS="-levent_pthreads $LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External libevent does not have thread support" >&5 $as_echo "$as_me: WARNING: External libevent does not have thread support" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI requires libevent to be compiled with" >&5 $as_echo "$as_me: WARNING: Open MPI requires libevent to be compiled with" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread support enabled" >&5 $as_echo "$as_me: WARNING: thread support enabled" >&2;} opal_event_external_support=no fi fi if test "$opal_event_external_support" = "yes"; then : if test -z "$with_libevent" || test "$with_libevent" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external libevent version is 2.0.22 or greater" >&5 $as_echo_n "checking if external libevent version is 2.0.22 or greater... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(_EVENT_NUMERIC_VERSION) && _EVENT_NUMERIC_VERSION < 0x02001600 #error "libevent API version is less than 0x02001600" #elif defined(EVENT__NUMERIC_VERSION) && EVENT__NUMERIC_VERSION < 0x02001600 #error "libevent API version is less than 0x02001600" #endif ; 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; } opal_event_summary_msg="internal (external libevent version is less that internal version 2.0.22)" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: external libevent version is less than internal version (2.0.22)" >&5 $as_echo "$as_me: WARNING: external libevent version is less than internal version (2.0.22)" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using internal libevent" >&5 $as_echo "$as_me: WARNING: using internal libevent" >&2;} opal_event_external_support=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi CPPFLAGS=$opal_event_external_CPPFLAGS_save CFLAGS=$opal_event_external_CFLAGS_save LDFLAGS=$opal_event_external_LDFLAGS_save LIBS=$opal_event_external_LIBS_save # These flags need to get passed to the wrapper compilers # (this is unnecessary for the internal/embedded event) event_external_WRAPPER_EXTRA_CPPFLAGS=$opal_event_external_CPPFLAGS # Finally, add some flags to the wrapper compiler if we're # building with developer headers so that our headers can # be found. event_external_WRAPPER_EXTRA_LDFLAGS=$opal_event_external_LDFLAGS event_external_WRAPPER_EXTRA_LIBS=$opal_event_external_LIBS fi ################################################################## # Done! if test "$opal_event_external_support" = "yes"; then : # If we configured successfully, set # OPAL_HAVE_WORKING_EVENTOPS to 1 (it's a calculated value # in the embedded Open MPI libevent, so we can only assume # what it is in the installed libevent :-\ ). file=$opal_event_dir/include/libevent/config.h OPAL_HAVE_WORKING_EVENTOPS=1 opal_event_summary_msg="external" should_build=$should_build else OPAL_HAVE_WORKING_EVENTOPS=0 if test "$with_libevent" != internal && test -n "$with_libevent"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: external libevent requested but cannot be built" >&5 $as_echo "$as_me: WARNING: external libevent requested but cannot be built" >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi should_build=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="Libevent support: $opal_event_summary_msg" 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 # 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/event/external/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components external" if test "$compile_mode" = "dso" ; then dso_components="$dso_components external" else if test "event" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/event/external/lib${OPAL_LIB_PREFIX}mca_event_external.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/event/external/libmca_event_external.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_event_external_component;" >> $outfile.extern echo " &mca_event_external_component, " >> $outfile.struct static_components="$static_components external" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component event:external can compile" >&5 $as_echo_n "checking if MCA component event:external can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_event" = "external" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_event_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** event component external was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_event" = "external" ; then as_fn_error $? "*** event component external was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$event_external_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $event_external_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $event_external_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$event_external_WRAPPER_EXTRA_LIBS" = ""; 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_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 $event_external_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $event_external_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$event_external_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $event_external_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring event_external_WRAPPER_EXTRA_CPPFLAGS ($event_external_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring event_external_WRAPPER_EXTRA_CPPFLAGS ($event_external_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component event:external can compile" >&5 $as_echo_n "checking if MCA component event:external can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_event" = "external" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"external\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"external\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_event" ; then if test "$DIRECT_event" = "external" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"external\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"external\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components external" fi # If we won, then do all the rest of the setup if test "$should_build" = "1"; then : cat >>confdefs.h <<_ACEOF #define EVENT_EXTERNAL_EVENT_VERSION external _ACEOF # Set this variable so that the framework m4 knows what # file to include in opal/mca/event/event.h opal_event_external_basedir=opal/mca/event/external opal_event_base_include="external/external.h" # Add some stuff to CPPFLAGS so that the rest of the source # tree can be built CPPFLAGS="$CPPFLAGS $opal_event_external_CPPFLAGS" LDFLAGS="$LDFLAGS $opal_event_external_LDFLAGS" LIBS="$LIBS $opal_event_external_LIBS" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_event_external_DSO=1 else BUILD_opal_event_external_DSO=0 fi if test "$BUILD_opal_event_external_DSO" = "1"; then MCA_BUILD_opal_event_external_DSO_TRUE= MCA_BUILD_opal_event_external_DSO_FALSE='#' else MCA_BUILD_opal_event_external_DSO_TRUE='#' MCA_BUILD_opal_event_external_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component event:libevent2022 (m4 configuration macro, priority 80)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/event/libevent2022" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_event" ; then if test "$DIRECT_event" = "libevent2022" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_event" = "1"; then : want_component=0 fi if test "$DISABLE_event_libevent2022" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component event:libevent2022 compile mode" >&5 $as_echo_n "checking for MCA component event:libevent2022 compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/event/libevent2022/Makefile" opal_event_libevent2022_basedir="opal/mca/event/libevent2022" # We know that the external event component will be configured # before this one because of its priority. This component is only # needed if the external component was not successful in selecting # itself. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if event external component succeeded" >&5 $as_echo_n "checking if event external component succeeded... " >&6; } if test "$opal_event_external_support" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: event:external succeeded, so this component will be configured, but then will be skipped" >&5 $as_echo "$as_me: event:external succeeded, so this component will be configured, but then will be skipped" >&6;} # We define "random" to be "opal_random" so that Libevent will not # use random(3) internally (and potentially unexpectedly perturb # values returned by rand(3) to the application). # 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # $opal_event_libevent2022_basedir/libevent is the directory to invoke in # $opal_subdir_args 'CPPFLAGS=$CPPFLAGS' is the list of arguments to pass # is actions to execute upon success # is actions to execute upon failure # subdir_dir="$opal_event_libevent2022_basedir/libevent" subdir_args=" $opal_subdir_args 'CPPFLAGS=$CPPFLAGS'" subdir_success="" subdir_failure="" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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}: remember: event:external will be used; this component was configured, but will be skipped" >&5 $as_echo "$as_me: remember: event:external will be used; this component was configured, but will be skipped" >&6;} should_build=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: event:external failed, so this component will be used" >&5 $as_echo "$as_me: event:external failed, so this component will be used" >&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 CFLAGS_save CPPFLAGS_save libevent_file event_args libevent_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=\"CFLAGS_save CPPFLAGS_save libevent_file event_args libevent_happy\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` CFLAGS_save="$CFLAGS" CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS" CPPFLAGS_save="$CPPFLAGS" CPPFLAGS="-I$OPAL_TOP_SRCDIR -I$OPAL_TOP_BUILDDIR -I$OPAL_TOP_SRCDIR/opal/include $CPPFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking libevent configuration args" >&5 $as_echo_n "checking libevent configuration args... " >&6; } event_args="--disable-dns --disable-http --disable-rpc --disable-openssl --enable-thread-support" # Check whether --enable-event-rtsig was given. if test "${enable_event_rtsig+set}" = set; then : enableval=$enable_event_rtsig; fi if test "$enable_event_rtsig" = "yes"; then event_args="$event_args --enable-rtsig" fi # Check whether --enable-event-select was given. if test "${enable_event_select+set}" = set; then : enableval=$enable_event_select; fi if test "$enable_event_select" = "no"; then event_args="$event_args --disable-select" fi # Check whether --enable-event-poll was given. if test "${enable_event_poll+set}" = set; then : enableval=$enable_event_poll; fi if test "$enable_event_poll" = "no"; then event_args="$event_args --disable-poll" fi # Check whether --enable-event-devpoll was given. if test "${enable_event_devpoll+set}" = set; then : enableval=$enable_event_devpoll; fi if test "$enable_event_devpoll" = "no"; then event_args="$event_args --disable-devpoll" fi # Check whether --enable-event-kqueue was given. if test "${enable_event_kqueue+set}" = set; then : enableval=$enable_event_kqueue; fi if test "$enable_event_kqueue" = "no"; then event_args="$event_args --disable-kqueue" fi # Check whether --enable-event-epoll was given. if test "${enable_event_epoll+set}" = set; then : enableval=$enable_event_epoll; fi if test "$enable_event_epoll" = "no"; then event_args="$event_args --disable-epoll" fi # Check whether --enable-event-evport was given. if test "${enable_event_evport+set}" = set; then : enableval=$enable_event_evport; fi if test "$enable_event_evport" = "yes"; then event_args="$event_args --enable-evport" else event_args="$event_args --disable-evport" fi # Check whether --enable-event-signal was given. if test "${enable_event_signal+set}" = set; then : enableval=$enable_event_signal; fi if test "$enable_event_signal" = "no"; then event_args="$event_args --disable-signal" fi # Check whether --enable-event-debug was given. if test "${enable_event_debug+set}" = set; then : enableval=$enable_event_debug; fi if test "$enable_event_debug" = "yes"; then event_args="$event_args --enable-debug-mode" CFLAGS="-DUSE_DEBUG $CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $event_args" >&5 $as_echo "$event_args" >&6; } # Invoke the embedded configure script. # We define "random" to be "opal_random" so that Libevent will not # use random(3) internally (and potentially unexpectedly perturb # values returned by rand(3) to the application). CPPFLAGS="$CPPFLAGS -Drandom=opal_random" # We define "random" to be "opal_random" so that Libevent will not # use random(3) internally (and potentially unexpectedly perturb # values returned by rand(3) to the application). # 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # $opal_event_libevent2022_basedir/libevent is the directory to invoke in # $event_args $opal_subdir_args 'CPPFLAGS=$CPPFLAGS' is the list of arguments to pass # libevent_happy="yes" is actions to execute upon success # libevent_happy="no" is actions to execute upon failure # subdir_dir="$opal_event_libevent2022_basedir/libevent" subdir_args="$event_args $opal_subdir_args 'CPPFLAGS=$CPPFLAGS'" subdir_success="libevent_happy="yes"" subdir_failure="libevent_happy="no"" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 "$libevent_happy" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Event library failed to configure" >&5 $as_echo "$as_me: WARNING: Event library failed to configure" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # Finally, add some flags to the wrapper compiler if we're # building with developer headers so that our headers can # be found. event_libevent2022_WRAPPER_EXTRA_CPPFLAGS='-I${pkgincludedir}/opal/mca/event/libevent2022/libevent -I${pkgincludedir}/opal/mca/event/libevent2022/libevent/include' CFLAGS="$CFLAGS_save" CPPFLAGS="$CPPFLAGS_save" # If we configured successfully, set OPAL_HAVE_WORKING_EVENTOPS to # the value in the generated libevent/config.h (NOT # libevent/include/event2/event-config.h!). Otherwise, set it to # 0. libevent_file=$opal_event_libevent2022_basedir/libevent/config.h if test "$libevent_happy" = "yes" && test -r $libevent_file; then : OPAL_HAVE_WORKING_EVENTOPS=`grep HAVE_WORKING_EVENTOPS $libevent_file | awk '{print $3 }'` should_build=$should_build else should_build=0 OPAL_HAVE_WORKING_EVENTOPS=0 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_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/event/libevent2022/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components libevent2022" if test "$compile_mode" = "dso" ; then dso_components="$dso_components libevent2022" else if test "event" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/event/libevent2022/lib${OPAL_LIB_PREFIX}mca_event_libevent2022.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/event/libevent2022/libmca_event_libevent2022.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_event_libevent2022_component;" >> $outfile.extern echo " &mca_event_libevent2022_component, " >> $outfile.struct static_components="$static_components libevent2022" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component event:libevent2022 can compile" >&5 $as_echo_n "checking if MCA component event:libevent2022 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_event" = "libevent2022" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_event_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** event component libevent2022 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_event" = "libevent2022" ; then as_fn_error $? "*** event component libevent2022 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$event_libevent2022_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $event_libevent2022_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $event_libevent2022_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$event_libevent2022_WRAPPER_EXTRA_LIBS" = ""; 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_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 $event_libevent2022_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $event_libevent2022_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$event_libevent2022_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $event_libevent2022_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring event_libevent2022_WRAPPER_EXTRA_CPPFLAGS ($event_libevent2022_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring event_libevent2022_WRAPPER_EXTRA_CPPFLAGS ($event_libevent2022_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component event:libevent2022 can compile" >&5 $as_echo_n "checking if MCA component event:libevent2022 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_event" = "libevent2022" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"libevent2022\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"libevent2022\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_event" ; then if test "$DIRECT_event" = "libevent2022" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"libevent2022\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"libevent2022\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components libevent2022" fi if test "$enable_event_thread_support" = "yes"; then OPAL_EVENT_HAVE_THREAD_SUPPORT_TRUE= OPAL_EVENT_HAVE_THREAD_SUPPORT_FALSE='#' else OPAL_EVENT_HAVE_THREAD_SUPPORT_TRUE='#' OPAL_EVENT_HAVE_THREAD_SUPPORT_FALSE= fi if test "$should_build" = "1"; then : # Build libevent/include/event2/event-config.h. If we # don't do it here, then libevent's Makefile.am will build # it during "make all", which is too late for us (because # other things are built before the event framework that # end up including event-config.h). The steps below were # copied from libevent's Makefile.am. ac_config_commands="$ac_config_commands opal/mca/event/libevent2022/libevent/include/event2/event-config.h" # Must set this variable so that the framework m4 knows # what file to include in opal/mca/event/event.h opal_event_base_include="libevent2022/libevent2022.h" # Add some stuff to CPPFLAGS so that the rest of the source # tree can be built libevent_file=$opal_event_libevent2022_basedir/libevent CPPFLAGS="-I$OPAL_TOP_SRCDIR/$libevent_file -I$OPAL_TOP_SRCDIR/$libevent_file/include $CPPFLAGS" if test "$OPAL_TOP_BUILDDIR" != "$OPAL_TOP_SRCDIR"; then : CPPFLAGS="-I$OPAL_TOP_BUILDDIR/$libevent_file/include $CPPFLAGS" fi unset libevent_file fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_event_libevent2022_DSO=1 else BUILD_opal_event_libevent2022_DSO=0 fi if test "$BUILD_opal_event_libevent2022_DSO" = "1"; then MCA_BUILD_opal_event_libevent2022_DSO_TRUE= MCA_BUILD_opal_event_libevent2022_DSO_FALSE='#' else MCA_BUILD_opal_event_libevent2022_DSO_TRUE='#' MCA_BUILD_opal_event_libevent2022_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_event_ALL_COMPONENTS="$all_components" MCA_opal_event_STATIC_COMPONENTS="$static_components" MCA_opal_event_DSO_COMPONENTS="$dso_components" MCA_opal_event_STATIC_LTLIBS="$static_ltlibs" MCA_opal_event_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_event_ALL_SUBDIRS="$MCA_opal_event_ALL_SUBDIRS mca/event/$item" done MCA_opal_event_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_event_STATIC_SUBDIRS="$MCA_opal_event_STATIC_SUBDIRS mca/event/$item" done MCA_opal_event_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_event_DSO_SUBDIRS="$MCA_opal_event_DSO_SUBDIRS mca/event/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "event" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # We must have found exactly 1 static component, or we can't # continue. STOP_AT_FIRST will guarantee that we find at most # one. We need to check here that we found *at least* one. if test "$MCA_opal_event_STATIC_COMPONENTS" = ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find a suitable static opal event component" >&5 $as_echo "$as_me: WARNING: Did not find a suitable static opal event component" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # We need to find out what the underlying component set # HAVE_WORKING_EVENTOPS was set to. This is for systems that # don't have working poll(), etc. (e.g., Cray) -- we still need an # event component (for timers, etc.), but we don't have working # event ops. Ensure that it was set by the component. echo " " { $as_echo "$as_me:${as_lineno-$LINENO}: checking if have working event ops for the event framework" >&5 $as_echo_n "checking if have working event ops for the event framework... " >&6; } if test "$OPAL_HAVE_WORKING_EVENTOPS" = ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 $as_echo "unknown" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Event component did not set OPAL_HAVE_WORKING_EVENTOPS" >&5 $as_echo "$as_me: WARNING: Event component did not set OPAL_HAVE_WORKING_EVENTOPS" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "$OPAL_HAVE_WORKING_EVENTOPS" = "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 cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_WORKING_EVENTOPS $OPAL_HAVE_WORKING_EVENTOPS _ACEOF # The winning component will have told us where their header file # is located { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winning event component header file" >&5 $as_echo_n "checking for winning event component header file... " >&6; } if test "$opal_event_base_include" = ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 $as_echo "missing" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing implementation header" >&5 $as_echo "$as_me: WARNING: Missing implementation header" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi cat >>confdefs.h <<_ACEOF #define MCA_event_IMPLEMENTATION_HEADER "opal/mca/event/$opal_event_base_include" _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_event_base_include" >&5 $as_echo "$opal_event_base_include" >&6; } MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS hwloc" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/hwloc" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_hwloc_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_hwloc_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_hwloc_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/hwloc/libmca_hwloc.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_hwloc_STATIC_LTLIBS)" # Use a crude shell variable to know whether this component is # being required "early". See below. opal_hwloc_its_time_to_configure=1 MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS if" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/if" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_if_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_if_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_if_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/if/libmca_if.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_if_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework if" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/if/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/if/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework if" >&5 $as_echo_n "checking for no configure components in framework if... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework if" >&5 $as_echo_n "checking for m4 configure components in framework if... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsdx_ipv4, bsdx_ipv6, linux_ipv6, posix_ipv4, solaris_ipv6" >&5 $as_echo "bsdx_ipv4, bsdx_ipv6, linux_ipv6, posix_ipv4, solaris_ipv6" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component if:bsdx_ipv4 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/if/bsdx_ipv4" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "bsdx_ipv4" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_if" = "1"; then : want_component=0 fi if test "$DISABLE_if_bsdx_ipv4" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component if:bsdx_ipv4 compile mode" >&5 $as_echo_n "checking for MCA component if:bsdx_ipv4 compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/if/bsdx_ipv4/Makefile" # If we found struct sockaddr and we're on any of the BSDs, we're # happy. I.e., this: #if defined(__NetBSD__) || defined(__FreeBSD__) || \ # defined(__OpenBSD__) || defined(__DragonFly__) { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr" >&5 $as_echo_n "checking struct sockaddr... " >&6; } if test "$opal_found_sockaddr" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cached)" >&5 $as_echo "yes (cached)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking NetBSD, FreeBSD, OpenBSD, or DragonFly" >&5 $as_echo_n "checking NetBSD, FreeBSD, OpenBSD, or DragonFly... " >&6; } if test "$opal_found_netbsd" = "yes" || \ test "$opal_found_freebsd" = "yes" || \ test "$opal_found_openbsd" = "yes" || \ test "$opal_found_dragonfly" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } should_build=$should_build else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } should_build=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cached)" >&5 $as_echo "no (cached)" >&6; } should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/if/bsdx_ipv4/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components bsdx_ipv4" if test "$compile_mode" = "dso" ; then dso_components="$dso_components bsdx_ipv4" else if test "if" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/if/bsdx_ipv4/lib${OPAL_LIB_PREFIX}mca_if_bsdx_ipv4.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/if/bsdx_ipv4/libmca_if_bsdx_ipv4.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_if_bsdx_ipv4_component;" >> $outfile.extern echo " &mca_if_bsdx_ipv4_component, " >> $outfile.struct static_components="$static_components bsdx_ipv4" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:bsdx_ipv4 can compile" >&5 $as_echo_n "checking if MCA component if:bsdx_ipv4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_if" = "bsdx_ipv4" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_if_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** if component bsdx_ipv4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_if" = "bsdx_ipv4" ; then as_fn_error $? "*** if component bsdx_ipv4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$if_bsdx_ipv4_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $if_bsdx_ipv4_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $if_bsdx_ipv4_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$if_bsdx_ipv4_WRAPPER_EXTRA_LIBS" = ""; 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_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 $if_bsdx_ipv4_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $if_bsdx_ipv4_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$if_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $if_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring if_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS ($if_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring if_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS ($if_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:bsdx_ipv4 can compile" >&5 $as_echo_n "checking if MCA component if:bsdx_ipv4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_if" = "bsdx_ipv4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "bsdx_ipv4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components bsdx_ipv4" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_if_bsdx_ipv4_DSO=1 else BUILD_opal_if_bsdx_ipv4_DSO=0 fi if test "$BUILD_opal_if_bsdx_ipv4_DSO" = "1"; then MCA_BUILD_opal_if_bsdx_ipv4_DSO_TRUE= MCA_BUILD_opal_if_bsdx_ipv4_DSO_FALSE='#' else MCA_BUILD_opal_if_bsdx_ipv4_DSO_TRUE='#' MCA_BUILD_opal_if_bsdx_ipv4_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component if:bsdx_ipv6 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/if/bsdx_ipv6" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "bsdx_ipv6" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_if" = "1"; then : want_component=0 fi if test "$DISABLE_if_bsdx_ipv6" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component if:bsdx_ipv6 compile mode" >&5 $as_echo_n "checking for MCA component if:bsdx_ipv6 compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/if/bsdx_ipv6/Makefile" # If we found struct sockaddr and we're on any of the BSDs, we're # happy. I.e., this: #if defined( __NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || \ # defined(__386BSD__) || defined(__bsdi__) || defined(__APPLE__) { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr" >&5 $as_echo_n "checking struct sockaddr... " >&6; } if test "$opal_found_sockaddr" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cached)" >&5 $as_echo "yes (cached)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking some flavor of BSD" >&5 $as_echo_n "checking some flavor of BSD... " >&6; } if test "$opal_found_netbsd" = "yes" || \ test "$opal_found_freebsd" = "yes" || \ test "$opal_found_openbsd" = "yes" || \ test "$opal_found_386bsd" = "yes" || \ test "$opal_found_bsdi" = "yes" || test "$opal_found_apple" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } should_build=$should_build else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } should_build=0 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cached)" >&5 $as_echo "no (cached)" >&6; } should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/if/bsdx_ipv6/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components bsdx_ipv6" if test "$compile_mode" = "dso" ; then dso_components="$dso_components bsdx_ipv6" else if test "if" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/if/bsdx_ipv6/lib${OPAL_LIB_PREFIX}mca_if_bsdx_ipv6.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/if/bsdx_ipv6/libmca_if_bsdx_ipv6.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_if_bsdx_ipv6_component;" >> $outfile.extern echo " &mca_if_bsdx_ipv6_component, " >> $outfile.struct static_components="$static_components bsdx_ipv6" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:bsdx_ipv6 can compile" >&5 $as_echo_n "checking if MCA component if:bsdx_ipv6 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_if" = "bsdx_ipv6" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_if_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** if component bsdx_ipv6 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_if" = "bsdx_ipv6" ; then as_fn_error $? "*** if component bsdx_ipv6 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$if_bsdx_ipv6_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $if_bsdx_ipv6_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $if_bsdx_ipv6_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$if_bsdx_ipv6_WRAPPER_EXTRA_LIBS" = ""; 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_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 $if_bsdx_ipv6_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $if_bsdx_ipv6_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$if_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $if_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring if_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS ($if_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring if_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS ($if_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:bsdx_ipv6 can compile" >&5 $as_echo_n "checking if MCA component if:bsdx_ipv6 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_if" = "bsdx_ipv6" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "bsdx_ipv6" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components bsdx_ipv6" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_if_bsdx_ipv6_DSO=1 else BUILD_opal_if_bsdx_ipv6_DSO=0 fi if test "$BUILD_opal_if_bsdx_ipv6_DSO" = "1"; then MCA_BUILD_opal_if_bsdx_ipv6_DSO_TRUE= MCA_BUILD_opal_if_bsdx_ipv6_DSO_FALSE='#' else MCA_BUILD_opal_if_bsdx_ipv6_DSO_TRUE='#' MCA_BUILD_opal_if_bsdx_ipv6_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component if:linux_ipv6 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/if/linux_ipv6" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "linux_ipv6" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_if" = "1"; then : want_component=0 fi if test "$DISABLE_if_linux_ipv6" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component if:linux_ipv6 compile mode" >&5 $as_echo_n "checking for MCA component if:linux_ipv6 compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/if/linux_ipv6/Makefile" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on Linux with TCP" >&5 $as_echo_n "checking if we are on Linux with TCP... " >&6; } # If we have struct sockaddr and we're on Linux, then we're # happy. if test "$opal_found_sockaddr" = "yes" && test "$opal_found_linux" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } should_build=$should_build else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/if/linux_ipv6/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components linux_ipv6" if test "$compile_mode" = "dso" ; then dso_components="$dso_components linux_ipv6" else if test "if" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/if/linux_ipv6/lib${OPAL_LIB_PREFIX}mca_if_linux_ipv6.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/if/linux_ipv6/libmca_if_linux_ipv6.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_if_linux_ipv6_component;" >> $outfile.extern echo " &mca_if_linux_ipv6_component, " >> $outfile.struct static_components="$static_components linux_ipv6" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:linux_ipv6 can compile" >&5 $as_echo_n "checking if MCA component if:linux_ipv6 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_if" = "linux_ipv6" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_if_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** if component linux_ipv6 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_if" = "linux_ipv6" ; then as_fn_error $? "*** if component linux_ipv6 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$if_linux_ipv6_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $if_linux_ipv6_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $if_linux_ipv6_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$if_linux_ipv6_WRAPPER_EXTRA_LIBS" = ""; 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_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 $if_linux_ipv6_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $if_linux_ipv6_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$if_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $if_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring if_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS ($if_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring if_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS ($if_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:linux_ipv6 can compile" >&5 $as_echo_n "checking if MCA component if:linux_ipv6 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_if" = "linux_ipv6" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "linux_ipv6" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components linux_ipv6" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_if_linux_ipv6_DSO=1 else BUILD_opal_if_linux_ipv6_DSO=0 fi if test "$BUILD_opal_if_linux_ipv6_DSO" = "1"; then MCA_BUILD_opal_if_linux_ipv6_DSO_TRUE= MCA_BUILD_opal_if_linux_ipv6_DSO_FALSE='#' else MCA_BUILD_opal_if_linux_ipv6_DSO_TRUE='#' MCA_BUILD_opal_if_linux_ipv6_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component if:posix_ipv4 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/if/posix_ipv4" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "posix_ipv4" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_if" = "1"; then : want_component=0 fi if test "$DISABLE_if_posix_ipv4" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component if:posix_ipv4 compile mode" >&5 $as_echo_n "checking for MCA component if:posix_ipv4 compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/if/posix_ipv4/Makefile" # 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_if_posix_ipv4_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=\"opal_if_posix_ipv4_happy\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_if_posix_ipv4_happy=no # If we found struct sockaddr and we're NOT on most of the BSDs, # we're happy. I.e., if posix but not: #if defined(__NetBSD__) || defined(__FreeBSD__) || \ # defined(__OpenBSD__) || defined(__DragonFly__) { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr" >&5 $as_echo_n "checking struct sockaddr... " >&6; } if test "$opal_found_sockaddr" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cached)" >&5 $as_echo "yes (cached)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking not NetBSD, FreeBSD, OpenBSD, or DragonFly" >&5 $as_echo_n "checking not NetBSD, FreeBSD, OpenBSD, or DragonFly... " >&6; } if test "$opal_found_netbsd" = "no" && test "$opal_found_freebsd" = "no" && test "$opal_found_openbsd" = "no" && test "$opal_found_dragonfly" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_if_posix_ipv4_happy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cached)" >&5 $as_echo "no (cached)" >&6; } fi if test "$opal_if_posix_ipv4_happy" = "yes"; then : ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#include " if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 _ACEOF fi ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_mtu" "ac_cv_member_struct_ifreq_ifr_mtu" "#include " if test "x$ac_cv_member_struct_ifreq_ifr_mtu" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_IFREQ_IFR_MTU 1 _ACEOF fi fi if test "$opal_if_posix_ipv4_happy" = "yes"; then : should_build=$should_build else should_build=0 fi; opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/if/posix_ipv4/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components posix_ipv4" if test "$compile_mode" = "dso" ; then dso_components="$dso_components posix_ipv4" else if test "if" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/if/posix_ipv4/lib${OPAL_LIB_PREFIX}mca_if_posix_ipv4.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/if/posix_ipv4/libmca_if_posix_ipv4.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_if_posix_ipv4_component;" >> $outfile.extern echo " &mca_if_posix_ipv4_component, " >> $outfile.struct static_components="$static_components posix_ipv4" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:posix_ipv4 can compile" >&5 $as_echo_n "checking if MCA component if:posix_ipv4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_if" = "posix_ipv4" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_if_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** if component posix_ipv4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_if" = "posix_ipv4" ; then as_fn_error $? "*** if component posix_ipv4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$if_posix_ipv4_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $if_posix_ipv4_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $if_posix_ipv4_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$if_posix_ipv4_WRAPPER_EXTRA_LIBS" = ""; 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_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 $if_posix_ipv4_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $if_posix_ipv4_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$if_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $if_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring if_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS ($if_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring if_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS ($if_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:posix_ipv4 can compile" >&5 $as_echo_n "checking if MCA component if:posix_ipv4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_if" = "posix_ipv4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "posix_ipv4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components posix_ipv4" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_if_posix_ipv4_DSO=1 else BUILD_opal_if_posix_ipv4_DSO=0 fi if test "$BUILD_opal_if_posix_ipv4_DSO" = "1"; then MCA_BUILD_opal_if_posix_ipv4_DSO_TRUE= MCA_BUILD_opal_if_posix_ipv4_DSO_FALSE='#' else MCA_BUILD_opal_if_posix_ipv4_DSO_TRUE='#' MCA_BUILD_opal_if_posix_ipv4_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component if:solaris_ipv6 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/if/solaris_ipv6" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "solaris_ipv6" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_if" = "1"; then : want_component=0 fi if test "$DISABLE_if_solaris_ipv6" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component if:solaris_ipv6 compile mode" >&5 $as_echo_n "checking for MCA component if:solaris_ipv6 compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/if/solaris_ipv6/Makefile" # check to see if we are on a solaris machine if test "$opal_found_sun" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/if/solaris_ipv6/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components solaris_ipv6" if test "$compile_mode" = "dso" ; then dso_components="$dso_components solaris_ipv6" else if test "if" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/if/solaris_ipv6/lib${OPAL_LIB_PREFIX}mca_if_solaris_ipv6.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/if/solaris_ipv6/libmca_if_solaris_ipv6.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_if_solaris_ipv6_component;" >> $outfile.extern echo " &mca_if_solaris_ipv6_component, " >> $outfile.struct static_components="$static_components solaris_ipv6" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:solaris_ipv6 can compile" >&5 $as_echo_n "checking if MCA component if:solaris_ipv6 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_if" = "solaris_ipv6" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_if_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** if component solaris_ipv6 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_if" = "solaris_ipv6" ; then as_fn_error $? "*** if component solaris_ipv6 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$if_solaris_ipv6_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $if_solaris_ipv6_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $if_solaris_ipv6_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$if_solaris_ipv6_WRAPPER_EXTRA_LIBS" = ""; 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_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 $if_solaris_ipv6_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $if_solaris_ipv6_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$if_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $if_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring if_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS ($if_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring if_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS ($if_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:solaris_ipv6 can compile" >&5 $as_echo_n "checking if MCA component if:solaris_ipv6 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_if" = "solaris_ipv6" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "solaris_ipv6" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components solaris_ipv6" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_if_solaris_ipv6_DSO=1 else BUILD_opal_if_solaris_ipv6_DSO=0 fi if test "$BUILD_opal_if_solaris_ipv6_DSO" = "1"; then MCA_BUILD_opal_if_solaris_ipv6_DSO_TRUE= MCA_BUILD_opal_if_solaris_ipv6_DSO_FALSE='#' else MCA_BUILD_opal_if_solaris_ipv6_DSO_TRUE='#' MCA_BUILD_opal_if_solaris_ipv6_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/if/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component if:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/if/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_if" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_if_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_if" str="SHARED_COMPONENT=\$DSO_if_$component" eval $str STATIC_FRAMEWORK="$STATIC_if" str="STATIC_COMPONENT=\$STATIC_if_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component if:$component compile mode" >&5 $as_echo_n "checking for MCA component if:$component compile mode... " >&6; } if test "$DIRECT_if" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/if/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/if/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/if/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then if_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then if_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/if/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "if" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/if/$component/lib${OPAL_LIB_PREFIX}mca_if_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/if/$component/libmca_if_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_if_$component_component;" >> $outfile.extern echo " &mca_if_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:$component can compile" >&5 $as_echo_n "checking if MCA component if:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_if" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_if_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** if component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_if" = "$component" ; then as_fn_error $? "*** if component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$if_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$if_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component if:$component can compile" >&5 $as_echo_n "checking if MCA component if:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_if" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_if" ; then if test "$DIRECT_if" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_if_ALL_COMPONENTS="$all_components" MCA_opal_if_STATIC_COMPONENTS="$static_components" MCA_opal_if_DSO_COMPONENTS="$dso_components" MCA_opal_if_STATIC_LTLIBS="$static_ltlibs" MCA_opal_if_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_if_ALL_SUBDIRS="$MCA_opal_if_ALL_SUBDIRS mca/if/$item" done MCA_opal_if_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_if_STATIC_SUBDIRS="$MCA_opal_if_STATIC_SUBDIRS mca/if/$item" done MCA_opal_if_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_if_DSO_SUBDIRS="$MCA_opal_if_DSO_SUBDIRS mca/if/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "if" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS installdirs" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/installdirs" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_installdirs_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_installdirs_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_installdirs_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/installdirs/libmca_installdirs.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_installdirs_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework installdirs" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/installdirs/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/installdirs/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework installdirs" >&5 $as_echo_n "checking for no configure components in framework installdirs... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework installdirs" >&5 $as_echo_n "checking for m4 configure components in framework installdirs... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: config, env" >&5 $as_echo "config, env" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component installdirs:env (m4 configuration macro, priority 10)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/installdirs/env" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_installdirs" ; then if test "$DIRECT_installdirs" = "env" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_installdirs" = "1"; then : want_component=0 fi if test "$DISABLE_installdirs_env" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component installdirs:env compile mode" >&5 $as_echo_n "checking for MCA component installdirs:env compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/installdirs/env/Makefile" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/installdirs/env/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components env" if test "$compile_mode" = "dso" ; then dso_components="$dso_components env" else if test "installdirs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/installdirs/env/lib${OPAL_LIB_PREFIX}mca_installdirs_env.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/installdirs/env/libmca_installdirs_env.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_installdirs_env_component;" >> $outfile.extern echo " &mca_installdirs_env_component, " >> $outfile.struct static_components="$static_components env" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component installdirs:env can compile" >&5 $as_echo_n "checking if MCA component installdirs:env can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_installdirs" = "env" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_installdirs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** installdirs component env was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_installdirs" = "env" ; then as_fn_error $? "*** installdirs component env was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$installdirs_env_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $installdirs_env_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $installdirs_env_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$installdirs_env_WRAPPER_EXTRA_LIBS" = ""; 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_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 $installdirs_env_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $installdirs_env_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$installdirs_env_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $installdirs_env_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring installdirs_env_WRAPPER_EXTRA_CPPFLAGS ($installdirs_env_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring installdirs_env_WRAPPER_EXTRA_CPPFLAGS ($installdirs_env_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component installdirs:env can compile" >&5 $as_echo_n "checking if MCA component installdirs:env can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_installdirs" = "env" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_installdirs" ; then if test "$DIRECT_installdirs" = "env" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components env" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_installdirs_env_DSO=1 else BUILD_opal_installdirs_env_DSO=0 fi if test "$BUILD_opal_installdirs_env_DSO" = "1"; then MCA_BUILD_opal_installdirs_env_DSO_TRUE= MCA_BUILD_opal_installdirs_env_DSO_FALSE='#' else MCA_BUILD_opal_installdirs_env_DSO_TRUE='#' MCA_BUILD_opal_installdirs_env_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component installdirs:config (m4 configuration macro, priority 0)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/installdirs/config" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_installdirs" ; then if test "$DIRECT_installdirs" = "config" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_installdirs" = "1"; then : want_component=0 fi if test "$DISABLE_installdirs_config" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component installdirs:config compile mode" >&5 $as_echo_n "checking for MCA component installdirs:config compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/installdirs/config/Makefile opal/mca/installdirs/config/install_dirs.h" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/installdirs/config/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components config" if test "$compile_mode" = "dso" ; then dso_components="$dso_components config" else if test "installdirs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/installdirs/config/lib${OPAL_LIB_PREFIX}mca_installdirs_config.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/installdirs/config/libmca_installdirs_config.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_installdirs_config_component;" >> $outfile.extern echo " &mca_installdirs_config_component, " >> $outfile.struct static_components="$static_components config" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component installdirs:config can compile" >&5 $as_echo_n "checking if MCA component installdirs:config can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_installdirs" = "config" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_installdirs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** installdirs component config was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_installdirs" = "config" ; then as_fn_error $? "*** installdirs component config was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$installdirs_config_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $installdirs_config_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $installdirs_config_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$installdirs_config_WRAPPER_EXTRA_LIBS" = ""; 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_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 $installdirs_config_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $installdirs_config_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$installdirs_config_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $installdirs_config_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring installdirs_config_WRAPPER_EXTRA_CPPFLAGS ($installdirs_config_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring installdirs_config_WRAPPER_EXTRA_CPPFLAGS ($installdirs_config_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component installdirs:config can compile" >&5 $as_echo_n "checking if MCA component installdirs:config can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_installdirs" = "config" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"config\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_installdirs" ; then if test "$DIRECT_installdirs" = "config" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"config\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components config" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_installdirs_config_DSO=1 else BUILD_opal_installdirs_config_DSO=0 fi if test "$BUILD_opal_installdirs_config_DSO" = "1"; then MCA_BUILD_opal_installdirs_config_DSO_TRUE= MCA_BUILD_opal_installdirs_config_DSO_FALSE='#' else MCA_BUILD_opal_installdirs_config_DSO_TRUE='#' MCA_BUILD_opal_installdirs_config_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_installdirs_ALL_COMPONENTS="$all_components" MCA_opal_installdirs_STATIC_COMPONENTS="$static_components" MCA_opal_installdirs_DSO_COMPONENTS="$dso_components" MCA_opal_installdirs_STATIC_LTLIBS="$static_ltlibs" MCA_opal_installdirs_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_installdirs_ALL_SUBDIRS="$MCA_opal_installdirs_ALL_SUBDIRS mca/installdirs/$item" done MCA_opal_installdirs_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_installdirs_STATIC_SUBDIRS="$MCA_opal_installdirs_STATIC_SUBDIRS mca/installdirs/$item" done MCA_opal_installdirs_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_installdirs_DSO_SUBDIRS="$MCA_opal_installdirs_DSO_SUBDIRS mca/installdirs/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "installdirs" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memchecker" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memchecker" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_memchecker_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_memchecker_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_memchecker_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memchecker/libmca_memchecker.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_memchecker_STATIC_LTLIBS)" opal_show_subsubtitle "Pre-configuring the framework memchecker" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-memchecker was specified" >&5 $as_echo_n "checking if --enable-memchecker was specified... " >&6; } # Check whether --enable-memchecker was given. if test "${enable_memchecker+set}" = set; then : enableval=$enable_memchecker; fi if test "$enable_memchecker" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } WANT_MEMCHECKER=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (adding \"memchecker\" to --enable-mca-no-build list)" >&5 $as_echo "no (adding \"memchecker\" to --enable-mca-no-build list)" >&6; } WANT_MEMCHECKER=0 # Setting this environment variable causes # MCA_COMONENT_BUILD_CHECK (in opal_mca.m4, invoked by # MCA_CONFIGURE_FRAMEWORK, below) to rule that the component # should not be built. It is effectively the same as adding # "memchecker" to the --enable-mca-no-build list. DISABLE_memchecker=1 fi cat >>confdefs.h <<_ACEOF #define OPAL_WANT_MEMCHECKER $WANT_MEMCHECKER _ACEOF if test "$WANT_MEMCHECKER" = "1"; then OPAL_WANT_MEMCHECKER_TRUE= OPAL_WANT_MEMCHECKER_FALSE='#' else OPAL_WANT_MEMCHECKER_TRUE='#' OPAL_WANT_MEMCHECKER_FALSE= fi # first, compile all the components opal_show_subsubtitle "Configuring MCA framework memchecker" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/memchecker/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/memchecker/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework memchecker" >&5 $as_echo_n "checking for no configure components in framework memchecker... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework memchecker" >&5 $as_echo_n "checking for m4 configure components in framework memchecker... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind" >&5 $as_echo "valgrind" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component memchecker:valgrind (m4 configuration macro, priority 10)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/memchecker/valgrind" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_memchecker" ; then if test "$DIRECT_memchecker" = "valgrind" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_memchecker" = "1"; then : want_component=0 fi if test "$DISABLE_memchecker_valgrind" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component memchecker:valgrind compile mode" >&5 $as_echo_n "checking for MCA component memchecker:valgrind compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/memchecker/valgrind/Makefile" # 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_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS; 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_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-valgrind was given. if test "${with_valgrind+set}" = set; then : withval=$with_valgrind; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-valgrind value" >&5 $as_echo_n "checking --with-valgrind value... " >&6; } if test "$with_valgrind" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-valgrind)" >&5 $as_echo "simple no (specified --without-valgrind)" >&6; } else if test "$with_valgrind" = "yes" || test "x$with_valgrind" = "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_valgrind"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_valgrind not found" >&5 $as_echo "$as_me: WARNING: Directory $with_valgrind not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_valgrind/include/valgrind/valgrind.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_valgrind/include/valgrind/valgrind.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_valgrind/include/valgrind/valgrind.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_valgrind)" >&5 $as_echo "sanity check ok ($with_valgrind)" >&6; } fi fi fi fi opal_memchecker_valgrind_CPPFLAGS= opal_memchecker_valgrind_save_CPPFLAGS="$CPPFLAGS" opal_memchecker_valgrind_happy=no if test "$with_valgrind" != "no"; then : if test -n "$with_valgrind" && test "$with_valgrind" != "yes"; then : opal_memchecker_valgrind_CPPFLAGS="-I$with_valgrind/include" # We need this -I to stay in CPPFLAGS when we're done CPPFLAGS="$CPPFLAGS -I$with_valgrind/include" opal_memchecker_valgrind_save_CPPFLAGS=$CPPFLAGS fi for ac_header in valgrind/valgrind.h do : ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VALGRIND_VALGRIND_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE" >&5 $as_echo_n "checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "valgrind/memcheck.h" int main () { char buffer = 0x0f; VALGRIND_CHECK_MEM_IS_ADDRESSABLE(&buffer, sizeof(buffer)); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_memchecker_valgrind_happy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need Valgrind version 3.2.0 or later. Can not build component." >&5 $as_echo "$as_me: WARNING: Need Valgrind version 3.2.0 or later. Can not build component." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling; assume yes...?" >&5 $as_echo "cross-compiling; assume yes...?" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&5 $as_echo "$as_me: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&2;} opal_memchecker_valgrind_happy=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext, else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: valgrind.h not found" >&5 $as_echo "$as_me: WARNING: valgrind.h not found" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot compile this component" >&5 $as_echo "$as_me: WARNING: Cannot compile this component" >&2;} fi done fi CPPFLAGS="$opal_memchecker_valgrind_save_CPPFLAGS" # If we specifically requested this component and can't build it, error if test "$with_valgrind" != "no" && test -n "$with_valgrind" && test "$opal_memchecker_valgrind_happy" != "yes"; then : as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$opal_memchecker_valgrind_happy" = "yes"; then : should_build=$should_build else should_build=0 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/memchecker/valgrind/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components valgrind" if test "$compile_mode" = "dso" ; then dso_components="$dso_components valgrind" else if test "memchecker" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/memchecker/valgrind/lib${OPAL_LIB_PREFIX}mca_memchecker_valgrind.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/memchecker/valgrind/libmca_memchecker_valgrind.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_memchecker_valgrind_component;" >> $outfile.extern echo " &mca_memchecker_valgrind_component, " >> $outfile.struct static_components="$static_components valgrind" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memchecker:valgrind can compile" >&5 $as_echo_n "checking if MCA component memchecker:valgrind can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_memchecker" = "valgrind" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_memchecker_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** memchecker component valgrind was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_memchecker" = "valgrind" ; then as_fn_error $? "*** memchecker component valgrind was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$memchecker_valgrind_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $memchecker_valgrind_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $memchecker_valgrind_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$memchecker_valgrind_WRAPPER_EXTRA_LIBS" = ""; 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_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 $memchecker_valgrind_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $memchecker_valgrind_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$memchecker_valgrind_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $memchecker_valgrind_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring memchecker_valgrind_WRAPPER_EXTRA_CPPFLAGS ($memchecker_valgrind_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring memchecker_valgrind_WRAPPER_EXTRA_CPPFLAGS ($memchecker_valgrind_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memchecker:valgrind can compile" >&5 $as_echo_n "checking if MCA component memchecker:valgrind can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_memchecker" = "valgrind" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"valgrind\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_memchecker" ; then if test "$DIRECT_memchecker" = "valgrind" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"valgrind\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components valgrind" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_memchecker_valgrind_DSO=1 else BUILD_opal_memchecker_valgrind_DSO=0 fi if test "$BUILD_opal_memchecker_valgrind_DSO" = "1"; then MCA_BUILD_opal_memchecker_valgrind_DSO_TRUE= MCA_BUILD_opal_memchecker_valgrind_DSO_FALSE='#' else MCA_BUILD_opal_memchecker_valgrind_DSO_TRUE='#' MCA_BUILD_opal_memchecker_valgrind_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_memchecker_ALL_COMPONENTS="$all_components" MCA_opal_memchecker_STATIC_COMPONENTS="$static_components" MCA_opal_memchecker_DSO_COMPONENTS="$dso_components" MCA_opal_memchecker_STATIC_LTLIBS="$static_ltlibs" MCA_opal_memchecker_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_memchecker_ALL_SUBDIRS="$MCA_opal_memchecker_ALL_SUBDIRS mca/memchecker/$item" done MCA_opal_memchecker_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_memchecker_STATIC_SUBDIRS="$MCA_opal_memchecker_STATIC_SUBDIRS mca/memchecker/$item" done MCA_opal_memchecker_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_memchecker_DSO_SUBDIRS="$MCA_opal_memchecker_DSO_SUBDIRS mca/memchecker/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "memchecker" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real if test "$MCA_opal_memchecker_STATIC_COMPONENTS" != "" || test "$MCA_opal_memchecker_DSO_COMPONENTS" != ""; then : memchecker_base_found=1 else memchecker_base_found=0 fi if test $WANT_MEMCHECKER -eq 1 && test $memchecker_base_found -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Memchecker support requested, but no memchecker" >&5 $as_echo "$as_me: WARNING: Memchecker support requested, but no memchecker" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: components configured successfully. Did you" >&5 $as_echo "$as_me: WARNING: components configured successfully. Did you" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: forget --with-valgrind?" >&5 $as_echo "$as_me: WARNING: forget --with-valgrind?" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memcpy" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memcpy" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_memcpy_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_memcpy_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_memcpy_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memcpy/libmca_memcpy.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_memcpy_STATIC_LTLIBS)" memcpy_base_include= # first, compile all the components opal_show_subsubtitle "Configuring MCA framework memcpy" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/memcpy/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/memcpy/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework memcpy" >&5 $as_echo_n "checking for no configure components in framework memcpy... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework memcpy" >&5 $as_echo_n "checking for m4 configure components in framework memcpy... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_memcpy_ALL_COMPONENTS="$all_components" MCA_opal_memcpy_STATIC_COMPONENTS="$static_components" MCA_opal_memcpy_DSO_COMPONENTS="$dso_components" MCA_opal_memcpy_STATIC_LTLIBS="$static_ltlibs" MCA_opal_memcpy_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_memcpy_ALL_SUBDIRS="$MCA_opal_memcpy_ALL_SUBDIRS mca/memcpy/$item" done MCA_opal_memcpy_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_memcpy_STATIC_SUBDIRS="$MCA_opal_memcpy_STATIC_SUBDIRS mca/memcpy/$item" done MCA_opal_memcpy_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_memcpy_DSO_SUBDIRS="$MCA_opal_memcpy_DSO_SUBDIRS mca/memcpy/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "memcpy" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # someone should have set this... if test "$memcpy_base_include" = "" ; then memcpy_base_include="base/memcpy_base_default.h" fi cat >>confdefs.h <<_ACEOF #define MCA_memcpy_IMPLEMENTATION_HEADER "opal/mca/memcpy/$memcpy_base_include" _ACEOF MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memory" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memory" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_memory_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_memory_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_memory_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memory/libmca_memory.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_memory_STATIC_LTLIBS)" # Check whether --with-memory-manager was given. if test "${with_memory_manager+set}" = set; then : withval=$with_memory_manager; fi memory_base_found=0 memory_base_want=1 if test "$with_memory_manager" = "no"; then : memory_base_want=0 fi opal_show_subsubtitle "Configuring MCA framework memory" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/memory/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/memory/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework memory" >&5 $as_echo_n "checking for no configure components in framework memory... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework memory" >&5 $as_echo_n "checking for m4 configure components in framework memory... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_solaris, patcher" >&5 $as_echo "malloc_solaris, patcher" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=$memory_base_want components_last_result=0 opal_show_subsubsubtitle "MCA component memory:patcher (m4 configuration macro, priority 41)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/memory/patcher" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_memory" ; then if test "$DIRECT_memory" = "patcher" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_memory" = "1"; then : want_component=0 fi if test "$DISABLE_memory_patcher" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component memory:patcher compile mode" >&5 $as_echo_n "checking for MCA component memory:patcher compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component # disable on MacOS/Darwin where it isn't used and the deprecated # syscall interface causes compiler warnings. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memory patcher supports $host_os" >&5 $as_echo_n "checking if memory patcher supports $host_os... " >&6; } case $host_os in darwin*) opal_memory_patcher_happy=no ;; *) opal_memory_patcher_happy=yes ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_memory_patcher_happy" >&5 $as_echo "$opal_memory_patcher_happy" >&6; } if test "$opal_memory_patcher_happy" == "yes"; then : for ac_func in __curbrk do : ac_fn_c_check_func "$LINENO" "__curbrk" "ac_cv_func___curbrk" if test "x$ac_cv_func___curbrk" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE___CURBRK 1 _ACEOF fi done for ac_header in linux/mman.h sys/syscall.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_decl "$LINENO" "__mmap" "ac_cv_have_decl___mmap" "#include " if test "x$ac_cv_have_decl___mmap" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL___MMAP $ac_have_decl _ACEOF for ac_func in __mmap do : ac_fn_c_check_func "$LINENO" "__mmap" "ac_cv_func___mmap" if test "x$ac_cv_func___mmap" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE___MMAP 1 _ACEOF fi done ac_fn_c_check_decl "$LINENO" "__syscall" "ac_cv_have_decl___syscall" "#include " if test "x$ac_cv_have_decl___syscall" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL___SYSCALL $ac_have_decl _ACEOF for ac_func in __syscall do : ac_fn_c_check_func "$LINENO" "__syscall" "ac_cv_func___syscall" if test "x$ac_cv_func___syscall" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE___SYSCALL 1 _ACEOF fi done should_build=$should_build else should_build=0 fi ac_config_files="$ac_config_files opal/mca/memory/patcher/Makefile" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/memory/patcher/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components patcher" if test "$compile_mode" = "dso" ; then dso_components="$dso_components patcher" else if test "memory" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/memory/patcher/lib${OPAL_LIB_PREFIX}mca_memory_patcher.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/memory/patcher/libmca_memory_patcher.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_memory_patcher_component;" >> $outfile.extern echo " &mca_memory_patcher_component, " >> $outfile.struct static_components="$static_components patcher" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memory:patcher can compile" >&5 $as_echo_n "checking if MCA component memory:patcher can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_memory" = "patcher" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_memory_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** memory component patcher was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_memory" = "patcher" ; then as_fn_error $? "*** memory component patcher was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$memory_patcher_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $memory_patcher_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $memory_patcher_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$memory_patcher_WRAPPER_EXTRA_LIBS" = ""; 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_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 $memory_patcher_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $memory_patcher_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$memory_patcher_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $memory_patcher_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring memory_patcher_WRAPPER_EXTRA_CPPFLAGS ($memory_patcher_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring memory_patcher_WRAPPER_EXTRA_CPPFLAGS ($memory_patcher_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memory:patcher can compile" >&5 $as_echo_n "checking if MCA component memory:patcher can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_memory" = "patcher" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"patcher\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"patcher\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_memory" ; then if test "$DIRECT_memory" = "patcher" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"patcher\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"patcher\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components patcher" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_memory_patcher_DSO=1 else BUILD_opal_memory_patcher_DSO=0 fi if test "$BUILD_opal_memory_patcher_DSO" = "1"; then MCA_BUILD_opal_memory_patcher_DSO_TRUE= MCA_BUILD_opal_memory_patcher_DSO_FALSE='#' else MCA_BUILD_opal_memory_patcher_DSO_TRUE='#' MCA_BUILD_opal_memory_patcher_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component memory:malloc_solaris (m4 configuration macro, priority 0)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/memory/malloc_solaris" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_memory" ; then if test "$DIRECT_memory" = "malloc_solaris" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_memory" = "1"; then : want_component=0 fi if test "$DISABLE_memory_malloc_solaris" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component memory:malloc_solaris compile mode" >&5 $as_echo_n "checking for MCA component memory:malloc_solaris compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/memory/malloc_solaris/Makefile" # 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 memory_malloc_solaris_happy memory_malloc_solaris_should_use memory_malloc_solaris_munmap memory_alloc_solaris_legacy; 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=\"memory_malloc_solaris_happy memory_malloc_solaris_should_use memory_malloc_solaris_munmap memory_alloc_solaris_legacy\"" 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 Solaris" >&5 $as_echo_n "checking for Solaris... " >&6; } case "$host" in *solaris*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test "$with_memory_manager" = "malloc_solaris"; then : memory_malloc_solaris_happy="yes" memory_malloc_solaris_should_use=1 else memory_malloc_solaris_should_use=0 if test "$with_memory_manager" = ""; then : memory_malloc_solaris_happy="yes" else memory_malloc_solaris_happy="no" fi fi if test "$memory_malloc_solaris_happy" = "yes"; then : ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" if test "x$ac_cv_header_malloc_h" = xyes; then : else memory_malloc_solaris_happy="no" fi fi if test "$memory_malloc_solaris_happy" = "yes"; then : memory_malloc_solaris_munmap=0 ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" if test "x$ac_cv_header_sys_syscall_h" = xyes; then : for ac_func in syscall do : ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall" if test "x$ac_cv_func_syscall" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYSCALL 1 _ACEOF memory_malloc_solaris_munmap=1 fi done fi for ac_func in __munmap do : ac_fn_c_check_func "$LINENO" "__munmap" "ac_cv_func___munmap" if test "x$ac_cv_func___munmap" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE___MUNMAP 1 _ACEOF memory_malloc_solaris_munmap=1 fi done # only allow dlsym (and therefore add -ldl) if we # really need to if test "$memory_malloc_solaris_munmap" = "0"; then : memory_malloc_solaris_LIBS_SAVE="$LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 $as_echo_n "checking for dlsym in -ldl... " >&6; } if ${ac_cv_lib_dl_dlsym+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlsym (); int main () { return dlsym (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlsym=yes else ac_cv_lib_dl_dlsym=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 $as_echo "$ac_cv_lib_dl_dlsym" >&6; } if test "x$ac_cv_lib_dl_dlsym" = xyes; then : memory_malloc_solaris_LIBS="-ldl" memory_malloc_solaris_munmap=1 fi for ac_func in dlsym do : ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" if test "x$ac_cv_func_dlsym" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLSYM 1 _ACEOF fi done LIBS="$memory_malloc_solaris_LIBS_SAVE" fi if test "$memory_malloc_solaris_munmap" = "0"; then : memory_malloc_solaris_happy="no" fi fi # There is a difference in the munmap prototypes for different # Solaris versions. So determine whether we are to use Legacy # S10 or later prototypes. memory_alloc_solaris_legacy=0 if test "$memory_malloc_solaris_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris Legacy MUNMAP" >&5 $as_echo_n "checking for Solaris Legacy MUNMAP... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char *addr; extern int munmap(caddr_t addr, size_t len); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : memory_alloc_solaris_legacy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat >>confdefs.h <<_ACEOF #define USE_SOLARIS_LEGACY_MUNMAP_PROTOTYPE $memory_alloc_solaris_legacy _ACEOF fi if test "$memory_malloc_solaris_happy" = "no" && \ test "$memory_malloc_solaris_should_use" = "1"; then : as_fn_error $? "malloc_solaris memory management requested but not available. Aborting." "$LINENO" 5 fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$with_memory_manager" = "malloc_solaris"; then : memory_malloc_solaris_happy="no" memory_malloc_solaris_should_use=0 fi ;; esac if test "$memory_malloc_solaris_happy" = "yes"; then : memory_base_found=1 should_build=$should_build else should_build=0 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/memory/malloc_solaris/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components malloc_solaris" if test "$compile_mode" = "dso" ; then dso_components="$dso_components malloc_solaris" else if test "memory" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/memory/malloc_solaris/lib${OPAL_LIB_PREFIX}mca_memory_malloc_solaris.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/memory/malloc_solaris/libmca_memory_malloc_solaris.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_memory_malloc_solaris_component;" >> $outfile.extern echo " &mca_memory_malloc_solaris_component, " >> $outfile.struct static_components="$static_components malloc_solaris" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memory:malloc_solaris can compile" >&5 $as_echo_n "checking if MCA component memory:malloc_solaris can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_memory" = "malloc_solaris" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_memory_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** memory component malloc_solaris was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_memory" = "malloc_solaris" ; then as_fn_error $? "*** memory component malloc_solaris was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$memory_malloc_solaris_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $memory_malloc_solaris_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $memory_malloc_solaris_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$memory_malloc_solaris_WRAPPER_EXTRA_LIBS" = ""; 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_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 $memory_malloc_solaris_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $memory_malloc_solaris_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$memory_malloc_solaris_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $memory_malloc_solaris_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring memory_malloc_solaris_WRAPPER_EXTRA_CPPFLAGS ($memory_malloc_solaris_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring memory_malloc_solaris_WRAPPER_EXTRA_CPPFLAGS ($memory_malloc_solaris_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memory:malloc_solaris can compile" >&5 $as_echo_n "checking if MCA component memory:malloc_solaris can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_memory" = "malloc_solaris" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_memory" ; then if test "$DIRECT_memory" = "malloc_solaris" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components malloc_solaris" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_memory_malloc_solaris_DSO=1 else BUILD_opal_memory_malloc_solaris_DSO=0 fi if test "$BUILD_opal_memory_malloc_solaris_DSO" = "1"; then MCA_BUILD_opal_memory_malloc_solaris_DSO_TRUE= MCA_BUILD_opal_memory_malloc_solaris_DSO_FALSE='#' else MCA_BUILD_opal_memory_malloc_solaris_DSO_TRUE='#' MCA_BUILD_opal_memory_malloc_solaris_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_memory_ALL_COMPONENTS="$all_components" MCA_opal_memory_STATIC_COMPONENTS="$static_components" MCA_opal_memory_DSO_COMPONENTS="$dso_components" MCA_opal_memory_STATIC_LTLIBS="$static_ltlibs" MCA_opal_memory_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_memory_ALL_SUBDIRS="$MCA_opal_memory_ALL_SUBDIRS mca/memory/$item" done MCA_opal_memory_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_memory_STATIC_SUBDIRS="$MCA_opal_memory_STATIC_SUBDIRS mca/memory/$item" done MCA_opal_memory_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_memory_DSO_SUBDIRS="$MCA_opal_memory_DSO_SUBDIRS mca/memory/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "memory" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real cat >>confdefs.h <<_ACEOF #define OPAL_MEMORY_HAVE_COMPONENT $memory_base_found _ACEOF # See if someone set to use their header file if test "$memory_base_include" = "" ; then memory_base_include="base/empty.h" fi cat >>confdefs.h <<_ACEOF #define MCA_memory_IMPLEMENTATION_HEADER "opal/mca/memory/$memory_base_include" _ACEOF MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS mpool" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/mpool" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_mpool_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_mpool_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_mpool_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/mpool/libmca_mpool.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_mpool_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework mpool" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/mpool/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/mpool/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework mpool" >&5 $as_echo_n "checking for no configure components in framework mpool... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: hugepage" >&5 $as_echo "hugepage" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework mpool" >&5 $as_echo_n "checking for m4 configure components in framework mpool... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: memkind" >&5 $as_echo "memkind" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component mpool:hugepage (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/mpool/hugepage" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_mpool" ; then if test "$DIRECT_mpool" = "hugepage" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_mpool" = "1"; then : want_component=0 fi if test "$DISABLE_mpool_hugepage" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_mpool" SHARED_COMPONENT="$DSO_mpool_hugepage" STATIC_FRAMEWORK="$STATIC_mpool" STATIC_COMPONENT="$STATIC_mpool_hugepage" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component mpool:hugepage compile mode" >&5 $as_echo_n "checking for MCA component mpool:hugepage compile mode... " >&6; } if test "$DIRECT_mpool" = "hugepage" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/mpool/hugepage/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components hugepage" if test "$compile_mode" = "dso" ; then dso_components="$dso_components hugepage" else if test "mpool" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/mpool/hugepage/lib${OPAL_LIB_PREFIX}mca_mpool_hugepage.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/mpool/hugepage/libmca_mpool_hugepage.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_mpool_hugepage_component;" >> $outfile.extern echo " &mca_mpool_hugepage_component, " >> $outfile.struct static_components="$static_components hugepage" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:hugepage can compile" >&5 $as_echo_n "checking if MCA component mpool:hugepage can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_mpool" = "hugepage" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_mpool_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** mpool component hugepage was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_mpool" = "hugepage" ; then as_fn_error $? "*** mpool component hugepage was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$mpool_hugepage_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $mpool_hugepage_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $mpool_hugepage_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$mpool_hugepage_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mpool_hugepage_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $mpool_hugepage_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$mpool_hugepage_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $mpool_hugepage_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring mpool_hugepage_WRAPPER_EXTRA_CPPFLAGS ($mpool_hugepage_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring mpool_hugepage_WRAPPER_EXTRA_CPPFLAGS ($mpool_hugepage_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:hugepage can compile" >&5 $as_echo_n "checking if MCA component mpool:hugepage can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_mpool" = "hugepage" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hugepage\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hugepage\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_mpool" ; then if test "$DIRECT_mpool" = "hugepage" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hugepage\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hugepage\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components hugepage" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_mpool_hugepage_DSO=1 else BUILD_opal_mpool_hugepage_DSO=0 fi if test "$BUILD_opal_mpool_hugepage_DSO" = "1"; then MCA_BUILD_opal_mpool_hugepage_DSO_TRUE= MCA_BUILD_opal_mpool_hugepage_DSO_FALSE='#' else MCA_BUILD_opal_mpool_hugepage_DSO_TRUE='#' MCA_BUILD_opal_mpool_hugepage_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/mpool/hugepage/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component mpool:memkind (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/mpool/memkind" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_mpool" ; then if test "$DIRECT_mpool" = "memkind" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_mpool" = "1"; then : want_component=0 fi if test "$DISABLE_mpool_memkind" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_mpool" SHARED_COMPONENT="$DSO_mpool_memkind" STATIC_FRAMEWORK="$STATIC_mpool" STATIC_COMPONENT="$STATIC_mpool_memkind" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component mpool:memkind compile mode" >&5 $as_echo_n "checking for MCA component mpool:memkind compile mode... " >&6; } if test "$DIRECT_mpool" = "memkind" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component # 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_mpool_memkind_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=\"opal_mpool_memkind_happy\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ac_config_files="$ac_config_files opal/mca/mpool/memkind/Makefile" # Check whether --with-memkind was given. if test "${with_memkind+set}" = set; then : withval=$with_memkind; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-memkind value" >&5 $as_echo_n "checking --with-memkind value... " >&6; } if test "$with_memkind" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-memkind)" >&5 $as_echo "simple no (specified --without-memkind)" >&6; } else if test "$with_memkind" = "yes" || test "x$with_memkind" = "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_memkind"; 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_memkind not found" >&5 $as_echo "$as_me: WARNING: Directory $with_memkind not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_memkind/include/memkind.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_memkind/include/memkind.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_memkind/include/memkind.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_memkind)" >&5 $as_echo "sanity check ok ($with_memkind)" >&6; } fi fi fi fi opal_mpool_memkind_happy="no" if test "$with_memkind" != "no" ; then if test -n "$with_memkind" -a "$with_memkind" != "yes" ; then opal_check_memkind_dir=$with_memkind fi # # memkind_create_kind was introduced with memkind v1.4.0 release # opal_check_package_mpool_memkind_save_CPPFLAGS="$CPPFLAGS" opal_check_package_mpool_memkind_save_LDFLAGS="$LDFLAGS" opal_check_package_mpool_memkind_save_LIBS="$LIBS" opal_check_package_mpool_memkind_orig_CPPFLAGS="$mpool_memkind_CPPFLAGS" opal_check_package_mpool_memkind_orig_LDFLAGS="$mpool_memkind_LDFLAGS" opal_check_package_mpool_memkind_orig_LIBS="$mpool_memkind_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_memkind_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_check_memkind_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 memkind.h do : ac_fn_c_check_header_mongrel "$LINENO" "memkind.h" "ac_cv_header_memkind_h" "$ac_includes_default" if test "x$ac_cv_header_memkind_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MEMKIND_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_memkind_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : mpool_memkind_CPPFLAGS="$mpool_memkind_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in memkind.h do : ac_fn_c_check_header_mongrel "$LINENO" "memkind.h" "ac_cv_header_memkind_h" "$ac_includes_default" if test "x$ac_cv_header_memkind_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MEMKIND_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_memkind_create_kind opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there mpool_memkind_LDFLAGS="$mpool_memkind_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memkind_create_kind" >&5 $as_echo_n "checking for library containing memkind_create_kind... " >&6; } if ${ac_cv_search_memkind_create_kind+:} 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 memkind_create_kind (); int main () { return memkind_create_kind (); ; return 0; } _ACEOF for ac_lib in '' memkind; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lnuma $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_memkind_create_kind=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_memkind_create_kind+:} false; then : break fi done if ${ac_cv_search_memkind_create_kind+:} false; then : else ac_cv_search_memkind_create_kind=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memkind_create_kind" >&5 $as_echo "$ac_cv_search_memkind_create_kind" >&6; } ac_res=$ac_cv_search_memkind_create_kind 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_mpool_memkind_save_LDFLAGS" mpool_memkind_LDFLAGS="$opal_check_package_mpool_memkind_orig_LDFLAGS" unset ac_cv_search_memkind_create_kind fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_check_memkind_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 memkind_create_kind" >&5 $as_echo_n "checking for library containing memkind_create_kind... " >&6; } if ${ac_cv_search_memkind_create_kind+:} 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 memkind_create_kind (); int main () { return memkind_create_kind (); ; return 0; } _ACEOF for ac_lib in '' memkind; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lnuma $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_memkind_create_kind=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_memkind_create_kind+:} false; then : break fi done if ${ac_cv_search_memkind_create_kind+:} false; then : else ac_cv_search_memkind_create_kind=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memkind_create_kind" >&5 $as_echo "$ac_cv_search_memkind_create_kind" >&6; } ac_res=$ac_cv_search_memkind_create_kind 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_mpool_memkind_save_LDFLAGS" mpool_memkind_LDFLAGS="$opal_check_package_mpool_memkind_orig_LDFLAGS" unset ac_cv_search_memkind_create_kind fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : mpool_memkind_LDFLAGS="$mpool_memkind_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 memkind_create_kind" >&5 $as_echo_n "checking for library containing memkind_create_kind... " >&6; } if ${ac_cv_search_memkind_create_kind+:} 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 memkind_create_kind (); int main () { return memkind_create_kind (); ; return 0; } _ACEOF for ac_lib in '' memkind; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lnuma $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_memkind_create_kind=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_memkind_create_kind+:} false; then : break fi done if ${ac_cv_search_memkind_create_kind+:} false; then : else ac_cv_search_memkind_create_kind=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memkind_create_kind" >&5 $as_echo "$ac_cv_search_memkind_create_kind" >&6; } ac_res=$ac_cv_search_memkind_create_kind 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_mpool_memkind_save_LDFLAGS" mpool_memkind_LDFLAGS="$opal_check_package_mpool_memkind_orig_LDFLAGS" unset ac_cv_search_memkind_create_kind fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : mpool_memkind_LDFLAGS="$mpool_memkind_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 memkind_create_kind" >&5 $as_echo_n "checking for library containing memkind_create_kind... " >&6; } if ${ac_cv_search_memkind_create_kind+:} 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 memkind_create_kind (); int main () { return memkind_create_kind (); ; return 0; } _ACEOF for ac_lib in '' memkind; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lnuma $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_memkind_create_kind=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_memkind_create_kind+:} false; then : break fi done if ${ac_cv_search_memkind_create_kind+:} false; then : else ac_cv_search_memkind_create_kind=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memkind_create_kind" >&5 $as_echo "$ac_cv_search_memkind_create_kind" >&6; } ac_res=$ac_cv_search_memkind_create_kind 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_mpool_memkind_save_LDFLAGS" mpool_memkind_LDFLAGS="$opal_check_package_mpool_memkind_orig_LDFLAGS" unset ac_cv_search_memkind_create_kind 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 libmemkind requires libnl v1 or v3" >&5 $as_echo_n "checking if libmemkind requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void memkind_create_kind (void); int main(int argc, char *argv[]) { memkind_create_kind (); 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:159135: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmemkind $LIBS $mpool_memkind_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmemkind $LIBS $mpool_memkind_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:159142: \$? = $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 memkind" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib memkind" >&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, libmemkind links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libmemkind 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 libmemkind (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmemkind (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmemkind." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmemkind." >&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 memkind requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas memkind 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 libmemkind (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmemkind (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmemkind." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmemkind." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs memkind" # 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 libmemkind requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libmemkind 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 libmemkind (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmemkind (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmemkind." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmemkind." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs memkind" # 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_memkind_create_kind" != "no" && test "$ac_cv_search_memkind_create_kind" != "none required"; then : mpool_memkind_LIBS="$ac_cv_search_memkind_create_kind -lnuma" else mpool_memkind_LIBS=" -lnuma" 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_memkind_create_kind opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there mpool_memkind_LDFLAGS="$mpool_memkind_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memkind_create_kind" >&5 $as_echo_n "checking for library containing memkind_create_kind... " >&6; } if ${ac_cv_search_memkind_create_kind+:} 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 memkind_create_kind (); int main () { return memkind_create_kind (); ; return 0; } _ACEOF for ac_lib in '' memkind; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lnuma $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_memkind_create_kind=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_memkind_create_kind+:} false; then : break fi done if ${ac_cv_search_memkind_create_kind+:} false; then : else ac_cv_search_memkind_create_kind=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memkind_create_kind" >&5 $as_echo "$ac_cv_search_memkind_create_kind" >&6; } ac_res=$ac_cv_search_memkind_create_kind 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_mpool_memkind_save_LDFLAGS" mpool_memkind_LDFLAGS="$opal_check_package_mpool_memkind_orig_LDFLAGS" unset ac_cv_search_memkind_create_kind fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_check_memkind_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 memkind_create_kind" >&5 $as_echo_n "checking for library containing memkind_create_kind... " >&6; } if ${ac_cv_search_memkind_create_kind+:} 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 memkind_create_kind (); int main () { return memkind_create_kind (); ; return 0; } _ACEOF for ac_lib in '' memkind; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lnuma $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_memkind_create_kind=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_memkind_create_kind+:} false; then : break fi done if ${ac_cv_search_memkind_create_kind+:} false; then : else ac_cv_search_memkind_create_kind=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memkind_create_kind" >&5 $as_echo "$ac_cv_search_memkind_create_kind" >&6; } ac_res=$ac_cv_search_memkind_create_kind 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_mpool_memkind_save_LDFLAGS" mpool_memkind_LDFLAGS="$opal_check_package_mpool_memkind_orig_LDFLAGS" unset ac_cv_search_memkind_create_kind fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : mpool_memkind_LDFLAGS="$mpool_memkind_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 memkind_create_kind" >&5 $as_echo_n "checking for library containing memkind_create_kind... " >&6; } if ${ac_cv_search_memkind_create_kind+:} 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 memkind_create_kind (); int main () { return memkind_create_kind (); ; return 0; } _ACEOF for ac_lib in '' memkind; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lnuma $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_memkind_create_kind=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_memkind_create_kind+:} false; then : break fi done if ${ac_cv_search_memkind_create_kind+:} false; then : else ac_cv_search_memkind_create_kind=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memkind_create_kind" >&5 $as_echo "$ac_cv_search_memkind_create_kind" >&6; } ac_res=$ac_cv_search_memkind_create_kind 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_mpool_memkind_save_LDFLAGS" mpool_memkind_LDFLAGS="$opal_check_package_mpool_memkind_orig_LDFLAGS" unset ac_cv_search_memkind_create_kind fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : mpool_memkind_LDFLAGS="$mpool_memkind_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 memkind_create_kind" >&5 $as_echo_n "checking for library containing memkind_create_kind... " >&6; } if ${ac_cv_search_memkind_create_kind+:} 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 memkind_create_kind (); int main () { return memkind_create_kind (); ; return 0; } _ACEOF for ac_lib in '' memkind; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lnuma $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_memkind_create_kind=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_memkind_create_kind+:} false; then : break fi done if ${ac_cv_search_memkind_create_kind+:} false; then : else ac_cv_search_memkind_create_kind=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memkind_create_kind" >&5 $as_echo "$ac_cv_search_memkind_create_kind" >&6; } ac_res=$ac_cv_search_memkind_create_kind 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_mpool_memkind_save_LDFLAGS" mpool_memkind_LDFLAGS="$opal_check_package_mpool_memkind_orig_LDFLAGS" unset ac_cv_search_memkind_create_kind 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 libmemkind requires libnl v1 or v3" >&5 $as_echo_n "checking if libmemkind requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void memkind_create_kind (void); int main(int argc, char *argv[]) { memkind_create_kind (); 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:159860: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmemkind $LIBS $mpool_memkind_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmemkind $LIBS $mpool_memkind_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:159867: \$? = $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 memkind" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib memkind" >&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, libmemkind links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libmemkind 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 libmemkind (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmemkind (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmemkind." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmemkind." >&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 memkind requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas memkind 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 libmemkind (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmemkind (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmemkind." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmemkind." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs memkind" # 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 libmemkind requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libmemkind 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 libmemkind (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmemkind (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmemkind." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmemkind." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs memkind" # 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_memkind_create_kind" != "no" && test "$ac_cv_search_memkind_create_kind" != "none required"; then : mpool_memkind_LIBS="$ac_cv_search_memkind_create_kind -lnuma" else mpool_memkind_LIBS=" -lnuma" 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_mpool_memkind_happy="yes" else mpool_memkind_CPPFLAGS="$opal_check_package_mpool_memkind_orig_CPPFLAGS" mpool_memkind_LDFLAGS="$opal_check_package_mpool_memkind_orig_LDFLAGS" mpool_memkind_LIBS="$opal_check_package_mpool_memkind_orig_LIBS" fi CPPFLAGS="$opal_check_package_mpool_memkind_save_CPPFLAGS" LDFLAGS="$opal_check_package_mpool_memkind_save_LDFLAGS" LIBS="$opal_check_package_mpool_memkind_save_LIBS" if test "$opal_mpool_memkind_happy" != "yes" -a -n "$with_memkind" ; then as_fn_error $? "MEMKIND support requested but not found. Aborting" "$LINENO" 5 fi fi if test "$opal_mpool_memkind_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build memkind # 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/mpool/memkind/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components memkind" if test "$compile_mode" = "dso" ; then dso_components="$dso_components memkind" else if test "mpool" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/mpool/memkind/lib${OPAL_LIB_PREFIX}mca_mpool_memkind.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/mpool/memkind/libmca_mpool_memkind.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_mpool_memkind_component;" >> $outfile.extern echo " &mca_mpool_memkind_component, " >> $outfile.struct static_components="$static_components memkind" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:memkind can compile" >&5 $as_echo_n "checking if MCA component mpool:memkind can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_mpool" = "memkind" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_mpool_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** mpool component memkind was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_mpool" = "memkind" ; then as_fn_error $? "*** mpool component memkind was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$mpool_memkind_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $mpool_memkind_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $mpool_memkind_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$mpool_memkind_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mpool_memkind_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $mpool_memkind_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$mpool_memkind_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $mpool_memkind_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring mpool_memkind_WRAPPER_EXTRA_CPPFLAGS ($mpool_memkind_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring mpool_memkind_WRAPPER_EXTRA_CPPFLAGS ($mpool_memkind_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:memkind can compile" >&5 $as_echo_n "checking if MCA component mpool:memkind can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_mpool" = "memkind" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"memkind\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"memkind\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_mpool" ; then if test "$DIRECT_mpool" = "memkind" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"memkind\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"memkind\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components memkind" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_mpool_memkind_DSO=1 else BUILD_opal_mpool_memkind_DSO=0 fi if test "$BUILD_opal_mpool_memkind_DSO" = "1"; then MCA_BUILD_opal_mpool_memkind_DSO_TRUE= MCA_BUILD_opal_mpool_memkind_DSO_FALSE='#' else MCA_BUILD_opal_mpool_memkind_DSO_TRUE='#' MCA_BUILD_opal_mpool_memkind_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/mpool/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component mpool:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/mpool/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_mpool" ; then if test "$DIRECT_mpool" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_mpool" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_mpool_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_mpool" str="SHARED_COMPONENT=\$DSO_mpool_$component" eval $str STATIC_FRAMEWORK="$STATIC_mpool" str="STATIC_COMPONENT=\$STATIC_mpool_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component mpool:$component compile mode" >&5 $as_echo_n "checking for MCA component mpool:$component compile mode... " >&6; } if test "$DIRECT_mpool" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/mpool/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/mpool/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/mpool/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then mpool_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then mpool_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/mpool/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "mpool" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/mpool/$component/lib${OPAL_LIB_PREFIX}mca_mpool_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/mpool/$component/libmca_mpool_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_mpool_$component_component;" >> $outfile.extern echo " &mca_mpool_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:$component can compile" >&5 $as_echo_n "checking if MCA component mpool:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_mpool" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_mpool_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** mpool component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_mpool" = "$component" ; then as_fn_error $? "*** mpool component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$mpool_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$mpool_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mpool:$component can compile" >&5 $as_echo_n "checking if MCA component mpool:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_mpool" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_mpool" ; then if test "$DIRECT_mpool" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_mpool_ALL_COMPONENTS="$all_components" MCA_opal_mpool_STATIC_COMPONENTS="$static_components" MCA_opal_mpool_DSO_COMPONENTS="$dso_components" MCA_opal_mpool_STATIC_LTLIBS="$static_ltlibs" MCA_opal_mpool_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_mpool_ALL_SUBDIRS="$MCA_opal_mpool_ALL_SUBDIRS mca/mpool/$item" done MCA_opal_mpool_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_mpool_STATIC_SUBDIRS="$MCA_opal_mpool_STATIC_SUBDIRS mca/mpool/$item" done MCA_opal_mpool_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_mpool_DSO_SUBDIRS="$MCA_opal_mpool_DSO_SUBDIRS mca/mpool/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "mpool" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS patcher" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/patcher" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_patcher_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_patcher_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_patcher_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/patcher/libmca_patcher.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_patcher_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework patcher" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/patcher/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/patcher/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework patcher" >&5 $as_echo_n "checking for no configure components in framework patcher... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework patcher" >&5 $as_echo_n "checking for m4 configure components in framework patcher... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux, overwrite" >&5 $as_echo "linux, overwrite" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component patcher:linux (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/patcher/linux" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_patcher" ; then if test "$DIRECT_patcher" = "linux" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_patcher" = "1"; then : want_component=0 fi if test "$DISABLE_patcher_linux" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_patcher" SHARED_COMPONENT="$DSO_patcher_linux" STATIC_FRAMEWORK="$STATIC_patcher" STATIC_COMPONENT="$STATIC_patcher_linux" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component patcher:linux compile mode" >&5 $as_echo_n "checking for MCA component patcher:linux compile mode... " >&6; } if test "$DIRECT_patcher" = "linux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/patcher/linux/Makefile" # 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_patcher_linux_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=\"opal_patcher_linux_CPPFLAGS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_patcher_linux_happy=no if test $OPAL_ENABLE_DLOPEN_SUPPORT = 1 ; then # Only enable on Linux for now. In the future this component might # be modified to work on FreeBSD. case $host in *-linux*) opal_patcher_linux_happy=yes; ;; esac if test $opal_patcher_linux_happy = yes ; then opal_check_package_patcher_linux_save_CPPFLAGS="$CPPFLAGS" opal_check_package_patcher_linux_save_LDFLAGS="$LDFLAGS" opal_check_package_patcher_linux_save_LIBS="$LIBS" opal_check_package_patcher_linux_orig_CPPFLAGS="$patcher_linux_CPPFLAGS" opal_check_package_patcher_linux_orig_LDFLAGS="$patcher_linux_LDFLAGS" opal_check_package_patcher_linux_orig_LIBS="$patcher_linux_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_dlfcn_h # get rid of the trailing slash(es) dir_prefix=$(echo | 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 dlfcn.h do : ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_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_dlfcn_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : patcher_linux_CPPFLAGS="$patcher_linux_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in dlfcn.h do : ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_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_dl_iterate_phdr opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there patcher_linux_LDFLAGS="$patcher_linux_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dl_iterate_phdr" >&5 $as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } if ${ac_cv_search_dl_iterate_phdr+:} 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 dl_iterate_phdr (); int main () { return dl_iterate_phdr (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dl_iterate_phdr=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dl_iterate_phdr+:} false; then : break fi done if ${ac_cv_search_dl_iterate_phdr+:} false; then : else ac_cv_search_dl_iterate_phdr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 $as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } ac_res=$ac_cv_search_dl_iterate_phdr 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_patcher_linux_save_LDFLAGS" patcher_linux_LDFLAGS="$opal_check_package_patcher_linux_orig_LDFLAGS" unset ac_cv_search_dl_iterate_phdr fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 dl_iterate_phdr" >&5 $as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } if ${ac_cv_search_dl_iterate_phdr+:} 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 dl_iterate_phdr (); int main () { return dl_iterate_phdr (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dl_iterate_phdr=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dl_iterate_phdr+:} false; then : break fi done if ${ac_cv_search_dl_iterate_phdr+:} false; then : else ac_cv_search_dl_iterate_phdr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 $as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } ac_res=$ac_cv_search_dl_iterate_phdr 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_patcher_linux_save_LDFLAGS" patcher_linux_LDFLAGS="$opal_check_package_patcher_linux_orig_LDFLAGS" unset ac_cv_search_dl_iterate_phdr fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : patcher_linux_LDFLAGS="$patcher_linux_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 dl_iterate_phdr" >&5 $as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } if ${ac_cv_search_dl_iterate_phdr+:} 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 dl_iterate_phdr (); int main () { return dl_iterate_phdr (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dl_iterate_phdr=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dl_iterate_phdr+:} false; then : break fi done if ${ac_cv_search_dl_iterate_phdr+:} false; then : else ac_cv_search_dl_iterate_phdr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 $as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } ac_res=$ac_cv_search_dl_iterate_phdr 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_patcher_linux_save_LDFLAGS" patcher_linux_LDFLAGS="$opal_check_package_patcher_linux_orig_LDFLAGS" unset ac_cv_search_dl_iterate_phdr fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : patcher_linux_LDFLAGS="$patcher_linux_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 dl_iterate_phdr" >&5 $as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } if ${ac_cv_search_dl_iterate_phdr+:} 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 dl_iterate_phdr (); int main () { return dl_iterate_phdr (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dl_iterate_phdr=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dl_iterate_phdr+:} false; then : break fi done if ${ac_cv_search_dl_iterate_phdr+:} false; then : else ac_cv_search_dl_iterate_phdr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 $as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } ac_res=$ac_cv_search_dl_iterate_phdr 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_patcher_linux_save_LDFLAGS" patcher_linux_LDFLAGS="$opal_check_package_patcher_linux_orig_LDFLAGS" unset ac_cv_search_dl_iterate_phdr 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 libdl requires libnl v1 or v3" >&5 $as_echo_n "checking if libdl requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void dl_iterate_phdr (void); int main(int argc, char *argv[]) { dl_iterate_phdr (); 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:162195: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ldl $LIBS $patcher_linux_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ldl $LIBS $patcher_linux_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:162202: \$? = $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 dl" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib dl" >&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, libdl links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libdl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&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 dl requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas dl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs dl" # 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 libdl requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libdl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs dl" # 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_dl_iterate_phdr" != "no" && test "$ac_cv_search_dl_iterate_phdr" != "none required"; then : patcher_linux_LIBS="$ac_cv_search_dl_iterate_phdr " else patcher_linux_LIBS="" 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_dl_iterate_phdr opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there patcher_linux_LDFLAGS="$patcher_linux_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dl_iterate_phdr" >&5 $as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } if ${ac_cv_search_dl_iterate_phdr+:} 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 dl_iterate_phdr (); int main () { return dl_iterate_phdr (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dl_iterate_phdr=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dl_iterate_phdr+:} false; then : break fi done if ${ac_cv_search_dl_iterate_phdr+:} false; then : else ac_cv_search_dl_iterate_phdr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 $as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } ac_res=$ac_cv_search_dl_iterate_phdr 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_patcher_linux_save_LDFLAGS" patcher_linux_LDFLAGS="$opal_check_package_patcher_linux_orig_LDFLAGS" unset ac_cv_search_dl_iterate_phdr fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 dl_iterate_phdr" >&5 $as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } if ${ac_cv_search_dl_iterate_phdr+:} 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 dl_iterate_phdr (); int main () { return dl_iterate_phdr (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dl_iterate_phdr=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dl_iterate_phdr+:} false; then : break fi done if ${ac_cv_search_dl_iterate_phdr+:} false; then : else ac_cv_search_dl_iterate_phdr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 $as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } ac_res=$ac_cv_search_dl_iterate_phdr 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_patcher_linux_save_LDFLAGS" patcher_linux_LDFLAGS="$opal_check_package_patcher_linux_orig_LDFLAGS" unset ac_cv_search_dl_iterate_phdr fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : patcher_linux_LDFLAGS="$patcher_linux_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 dl_iterate_phdr" >&5 $as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } if ${ac_cv_search_dl_iterate_phdr+:} 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 dl_iterate_phdr (); int main () { return dl_iterate_phdr (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dl_iterate_phdr=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dl_iterate_phdr+:} false; then : break fi done if ${ac_cv_search_dl_iterate_phdr+:} false; then : else ac_cv_search_dl_iterate_phdr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 $as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } ac_res=$ac_cv_search_dl_iterate_phdr 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_patcher_linux_save_LDFLAGS" patcher_linux_LDFLAGS="$opal_check_package_patcher_linux_orig_LDFLAGS" unset ac_cv_search_dl_iterate_phdr fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : patcher_linux_LDFLAGS="$patcher_linux_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 dl_iterate_phdr" >&5 $as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } if ${ac_cv_search_dl_iterate_phdr+:} 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 dl_iterate_phdr (); int main () { return dl_iterate_phdr (); ; return 0; } _ACEOF for ac_lib in '' dl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_dl_iterate_phdr=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_dl_iterate_phdr+:} false; then : break fi done if ${ac_cv_search_dl_iterate_phdr+:} false; then : else ac_cv_search_dl_iterate_phdr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 $as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } ac_res=$ac_cv_search_dl_iterate_phdr 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_patcher_linux_save_LDFLAGS" patcher_linux_LDFLAGS="$opal_check_package_patcher_linux_orig_LDFLAGS" unset ac_cv_search_dl_iterate_phdr 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 libdl requires libnl v1 or v3" >&5 $as_echo_n "checking if libdl requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void dl_iterate_phdr (void); int main(int argc, char *argv[]) { dl_iterate_phdr (); 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:162920: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ldl $LIBS $patcher_linux_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ldl $LIBS $patcher_linux_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:162927: \$? = $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 dl" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib dl" >&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, libdl links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libdl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&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 dl requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas dl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs dl" # 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 libdl requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libdl 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 libdl (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libdl (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libdl." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libdl." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs dl" # 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_dl_iterate_phdr" != "no" && test "$ac_cv_search_dl_iterate_phdr" != "none required"; then : patcher_linux_LIBS="$ac_cv_search_dl_iterate_phdr " else patcher_linux_LIBS="" 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 : else patcher_linux_CPPFLAGS="$opal_check_package_patcher_linux_orig_CPPFLAGS" patcher_linux_LDFLAGS="$opal_check_package_patcher_linux_orig_LDFLAGS" patcher_linux_LIBS="$opal_check_package_patcher_linux_orig_LIBS" opal_patcher_linux_happy=no fi CPPFLAGS="$opal_check_package_patcher_linux_save_CPPFLAGS" LDFLAGS="$opal_check_package_patcher_linux_save_LDFLAGS" LIBS="$opal_check_package_patcher_linux_save_LIBS" for ac_header in elf.h do : ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" if test "x$ac_cv_header_elf_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ELF_H 1 _ACEOF else opal_patcher_linux_happy=no fi done for ac_header in sys/auxv.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default" if test "x$ac_cv_header_sys_auxv_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_AUXV_H 1 _ACEOF fi done fi fi # this component can not be used until we can determine a way to hook munmap, etc inside # glibc. this is needed to catch munmap called by free opal_patcher_linux_happy=no if test $opal_patcher_linux_happy = yes; then : should_build=$should_build else should_build=0 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/patcher/linux/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components linux" if test "$compile_mode" = "dso" ; then dso_components="$dso_components linux" else if test "patcher" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/patcher/linux/lib${OPAL_LIB_PREFIX}mca_patcher_linux.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/patcher/linux/libmca_patcher_linux.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_patcher_linux_component;" >> $outfile.extern echo " &mca_patcher_linux_component, " >> $outfile.struct static_components="$static_components linux" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component patcher:linux can compile" >&5 $as_echo_n "checking if MCA component patcher:linux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_patcher" = "linux" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_patcher_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** patcher component linux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_patcher" = "linux" ; then as_fn_error $? "*** patcher component linux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$patcher_linux_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $patcher_linux_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $patcher_linux_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$patcher_linux_WRAPPER_EXTRA_LIBS" = ""; 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_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 $patcher_linux_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $patcher_linux_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$patcher_linux_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $patcher_linux_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring patcher_linux_WRAPPER_EXTRA_CPPFLAGS ($patcher_linux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring patcher_linux_WRAPPER_EXTRA_CPPFLAGS ($patcher_linux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component patcher:linux can compile" >&5 $as_echo_n "checking if MCA component patcher:linux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_patcher" = "linux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_patcher" ; then if test "$DIRECT_patcher" = "linux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components linux" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_patcher_linux_DSO=1 else BUILD_opal_patcher_linux_DSO=0 fi if test "$BUILD_opal_patcher_linux_DSO" = "1"; then MCA_BUILD_opal_patcher_linux_DSO_TRUE= MCA_BUILD_opal_patcher_linux_DSO_FALSE='#' else MCA_BUILD_opal_patcher_linux_DSO_TRUE='#' MCA_BUILD_opal_patcher_linux_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component patcher:overwrite (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/patcher/overwrite" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_patcher" ; then if test "$DIRECT_patcher" = "overwrite" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_patcher" = "1"; then : want_component=0 fi if test "$DISABLE_patcher_overwrite" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_patcher" SHARED_COMPONENT="$DSO_patcher_overwrite" STATIC_FRAMEWORK="$STATIC_patcher" STATIC_COMPONENT="$STATIC_patcher_overwrite" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component patcher:overwrite compile mode" >&5 $as_echo_n "checking for MCA component patcher:overwrite compile mode... " >&6; } if test "$DIRECT_patcher" = "overwrite" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/patcher/overwrite/Makefile" opal_patcher_overwrite_happy=no if test $OPAL_ENABLE_DLOPEN_SUPPORT = 1; then # Disable ia64 for now. We can revive it later if anyone cares cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !defined(__i386__) && !defined(__x86_64__) && !defined(__PPC__) && !defined(__aarch64__) #error "platform not supported" #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : opal_patcher_overwrite_happy=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $opal_patcher_overwrite_happy = yes; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/patcher/overwrite/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components overwrite" if test "$compile_mode" = "dso" ; then dso_components="$dso_components overwrite" else if test "patcher" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/patcher/overwrite/lib${OPAL_LIB_PREFIX}mca_patcher_overwrite.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/patcher/overwrite/libmca_patcher_overwrite.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_patcher_overwrite_component;" >> $outfile.extern echo " &mca_patcher_overwrite_component, " >> $outfile.struct static_components="$static_components overwrite" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component patcher:overwrite can compile" >&5 $as_echo_n "checking if MCA component patcher:overwrite can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_patcher" = "overwrite" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_patcher_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** patcher component overwrite was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_patcher" = "overwrite" ; then as_fn_error $? "*** patcher component overwrite was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$patcher_overwrite_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $patcher_overwrite_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $patcher_overwrite_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$patcher_overwrite_WRAPPER_EXTRA_LIBS" = ""; 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_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 $patcher_overwrite_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $patcher_overwrite_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$patcher_overwrite_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $patcher_overwrite_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring patcher_overwrite_WRAPPER_EXTRA_CPPFLAGS ($patcher_overwrite_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring patcher_overwrite_WRAPPER_EXTRA_CPPFLAGS ($patcher_overwrite_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component patcher:overwrite can compile" >&5 $as_echo_n "checking if MCA component patcher:overwrite can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_patcher" = "overwrite" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"overwrite\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"overwrite\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_patcher" ; then if test "$DIRECT_patcher" = "overwrite" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"overwrite\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"overwrite\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components overwrite" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_patcher_overwrite_DSO=1 else BUILD_opal_patcher_overwrite_DSO=0 fi if test "$BUILD_opal_patcher_overwrite_DSO" = "1"; then MCA_BUILD_opal_patcher_overwrite_DSO_TRUE= MCA_BUILD_opal_patcher_overwrite_DSO_FALSE='#' else MCA_BUILD_opal_patcher_overwrite_DSO_TRUE='#' MCA_BUILD_opal_patcher_overwrite_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/patcher/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component patcher:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/patcher/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_patcher" ; then if test "$DIRECT_patcher" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_patcher" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_patcher_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_patcher" str="SHARED_COMPONENT=\$DSO_patcher_$component" eval $str STATIC_FRAMEWORK="$STATIC_patcher" str="STATIC_COMPONENT=\$STATIC_patcher_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component patcher:$component compile mode" >&5 $as_echo_n "checking for MCA component patcher:$component compile mode... " >&6; } if test "$DIRECT_patcher" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/patcher/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/patcher/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/patcher/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then patcher_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then patcher_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/patcher/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "patcher" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/patcher/$component/lib${OPAL_LIB_PREFIX}mca_patcher_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/patcher/$component/libmca_patcher_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_patcher_$component_component;" >> $outfile.extern echo " &mca_patcher_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component patcher:$component can compile" >&5 $as_echo_n "checking if MCA component patcher:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_patcher" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_patcher_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** patcher component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_patcher" = "$component" ; then as_fn_error $? "*** patcher component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$patcher_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$patcher_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component patcher:$component can compile" >&5 $as_echo_n "checking if MCA component patcher:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_patcher" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_patcher" ; then if test "$DIRECT_patcher" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_patcher_ALL_COMPONENTS="$all_components" MCA_opal_patcher_STATIC_COMPONENTS="$static_components" MCA_opal_patcher_DSO_COMPONENTS="$dso_components" MCA_opal_patcher_STATIC_LTLIBS="$static_ltlibs" MCA_opal_patcher_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_patcher_ALL_SUBDIRS="$MCA_opal_patcher_ALL_SUBDIRS mca/patcher/$item" done MCA_opal_patcher_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_patcher_STATIC_SUBDIRS="$MCA_opal_patcher_STATIC_SUBDIRS mca/patcher/$item" done MCA_opal_patcher_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_patcher_DSO_SUBDIRS="$MCA_opal_patcher_DSO_SUBDIRS mca/patcher/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "patcher" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS pmix" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/pmix" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_pmix_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_pmix_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_pmix_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/pmix/libmca_pmix.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_pmix_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework pmix" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/pmix/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/pmix/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pmix" >&5 $as_echo_n "checking for no configure components in framework pmix... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: isolated" >&5 $as_echo "isolated" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pmix" >&5 $as_echo_n "checking for m4 configure components in framework pmix... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: cray, ext1x, ext2x, ext3x, flux, pmix3x, s1, s2" >&5 $as_echo "cray, ext1x, ext2x, ext3x, flux, pmix3x, s1, s2" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component pmix:isolated (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/pmix/isolated" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "isolated" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi if test "$DISABLE_pmix_isolated" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_pmix" SHARED_COMPONENT="$DSO_pmix_isolated" STATIC_FRAMEWORK="$STATIC_pmix" STATIC_COMPONENT="$STATIC_pmix_isolated" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:isolated compile mode" >&5 $as_echo_n "checking for MCA component pmix:isolated compile mode... " >&6; } if test "$DIRECT_pmix" = "isolated" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/isolated/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components isolated" if test "$compile_mode" = "dso" ; then dso_components="$dso_components isolated" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/isolated/lib${OPAL_LIB_PREFIX}mca_pmix_isolated.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/isolated/libmca_pmix_isolated.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_isolated_component;" >> $outfile.extern echo " &mca_pmix_isolated_component, " >> $outfile.struct static_components="$static_components isolated" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:isolated can compile" >&5 $as_echo_n "checking if MCA component pmix:isolated can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "isolated" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component isolated was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "isolated" ; then as_fn_error $? "*** pmix component isolated was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pmix_isolated_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pmix_isolated_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pmix_isolated_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pmix_isolated_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pmix_isolated_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pmix_isolated_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pmix_isolated_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pmix_isolated_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pmix_isolated_WRAPPER_EXTRA_CPPFLAGS ($pmix_isolated_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pmix_isolated_WRAPPER_EXTRA_CPPFLAGS ($pmix_isolated_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:isolated can compile" >&5 $as_echo_n "checking if MCA component pmix:isolated can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "isolated" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"isolated\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"isolated\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "isolated" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"isolated\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"isolated\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components isolated" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_pmix_isolated_DSO=1 else BUILD_opal_pmix_isolated_DSO=0 fi if test "$BUILD_opal_pmix_isolated_DSO" = "1"; then MCA_BUILD_opal_pmix_isolated_DSO_TRUE= MCA_BUILD_opal_pmix_isolated_DSO_FALSE='#' else MCA_BUILD_opal_pmix_isolated_DSO_TRUE='#' MCA_BUILD_opal_pmix_isolated_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/pmix/isolated/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component pmix:cray (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pmix/cray" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "cray" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi if test "$DISABLE_pmix_cray" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pmix" SHARED_COMPONENT="$DSO_pmix_cray" STATIC_FRAMEWORK="$STATIC_pmix" STATIC_COMPONENT="$STATIC_pmix_cray" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:cray compile mode" >&5 $as_echo_n "checking for MCA component pmix:cray compile mode... " >&6; } if test "$DIRECT_pmix" = "cray" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pmix/cray/Makefile" # # check specifically for Cray PMI here # # Check whether --with-cray_pmi was given. if test "${with_cray_pmi+set}" = set; then : withval=$with_cray_pmi; else with_cray_pmi=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cray PMI support" >&5 $as_echo_n "checking for Cray PMI support... " >&6; } if test "$with_cray_pmi" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } pmix_cray_good=0 else if test "$with_cray_pmi" = "auto" || test "$with_cray_pmi" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_PMI" >&5 $as_echo_n "checking for CRAY_PMI... " >&6; } if test -n "$CRAY_PMI_CFLAGS"; then pkg_cv_CRAY_PMI_CFLAGS="$CRAY_PMI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-pmi\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-pmi") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_PMI_CFLAGS=`$PKG_CONFIG --cflags "cray-pmi" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_PMI_LIBS"; then pkg_cv_CRAY_PMI_LIBS="$CRAY_PMI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-pmi\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-pmi") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_PMI_LIBS=`$PKG_CONFIG --libs "cray-pmi" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_PMI_STATIC_LIBS"; then pkg_cv_CRAY_PMI_STATIC_LIBS="$CRAY_PMI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-pmi\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-pmi") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_PMI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-pmi" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_PMI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-pmi" 2>&1` else CRAY_PMI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-pmi" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_PMI_PKG_ERRORS" >&5 opal_check_cray_pmi_happy="no" if test "$with_cray_pmi" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cray PMI support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: Cray PMI support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate cray pmi directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate cray pmi directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-cray-pmi option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-cray-pmi option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_pmi_happy="no" if test "$with_cray_pmi" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cray PMI support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: Cray PMI support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate cray pmi directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate cray pmi directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-cray-pmi option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-cray-pmi option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_PMI_CFLAGS=$pkg_cv_CRAY_PMI_CFLAGS CRAY_PMI_LIBS=$pkg_cv_CRAY_PMI_LIBS CRAY_PMI_STATIC_LIBS=$pkg_cv_CRAY_PMI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_pmi_happy="yes" fi else opal_cray_pmi_lib_good=0 opal_cray_pmi_include_good=0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for Cray PMI with explicit path $with_cray_pmi" >&5 $as_echo_n "checking Checking for Cray PMI with explicit path $with_cray_pmi... " >&6; } if test -d "$with_cray_pmi/lib64"; then : opal_cray_pmi_lib_good=1 else opal_cray_pmi_lib_good=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No libpmi in path specified by $with_cray_pmi" >&5 $as_echo "$as_me: WARNING: No libpmi in path specified by $with_cray_pmi" >&2;} fi if test -f "$with_cray_pmi/include/pmi.h"; then : opal_cray_pmi_include_good=1 else opal_cray_pmi_include_good=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No pmi.h in path specified by $with_cray_pmi" >&5 $as_echo "$as_me: WARNING: No pmi.h in path specified by $with_cray_pmi" >&2;} fi if test "$opal_cray_pmi_lib_good" -eq 1 && test "$opal_cray_pmi_include_good" -eq 1; then : CRAY_PMI_LDFLAGS="-L$with_cray_pmi/lib64 -L/usr/lib/alps" CRAY_PMI_LIBS="-L$with_cray_pmi/lib64 -lpmi" CRAY_PMI_CFLAGS="-I $with_cray_pmi/include" opal_check_cray_pmi_happy="yes" else opal_check_cray_pmi_happy="no" fi # # this logic assumes knowledge about all the dependencies of the Cray PMI library, # something that Cray doesn't generally document # if test "$enable_static" = "yes"; then : if test -d /usr/lib/alps; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected presence of /usr/lib/alps" >&5 $as_echo "Detected presence of /usr/lib/alps" >&6; } CRAY_PMI_LDFLAGS="$CRAY_PMI_LDFLAGS -L/usr/lib/alps -lalpslli -lalpsutil" CRAY_PMI_LIBS="$CRAY_PMI_LIBS -L/usr/lib/alps -lalpslli -lalpsutil" else if test -d /opt/cray/xe-sysroot/default/usr/lib/alps; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected presence of /opt/cray/xe-sysroot/default/usr/lib/alps" >&5 $as_echo "Detected presence of /opt/cray/xe-sysroot/default/usr/lib/alps" >&6; } CRAY_PMI_LDFLAGS="$CRAY_PMI_LDFLAGS -L/opt/cray/xe-sysroot/default/usr/lib/alps -lalpslli -lalpsutil" CRAY_PMI_LIBS="$CRAY_PMI_LIBS -L/opt/cray/xe-sysroot/default/usr/lib/alps -lalpslli -lalpsutil" else as_fn_error $? "Requested enabling static linking but unable to local libalpslli and libalpsutil" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: opal_chack_cray_pmi_happy = $opal_check_cray_pmi_happy" >&5 $as_echo "$as_me: WARNING: opal_chack_cray_pmi_happy = $opal_check_cray_pmi_happy" >&2;} fi fi if test "$opal_check_cray_pmi_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_PMI_LIBS = $CRAY_PMI_STATIC_LIBS fi if test "$opal_check_cray_pmi_happy" = "yes"; then : pmix_cray_LDFLAGS="$CRAY_PMI_LIBS" pmix_cray_CPPFLAGS="$CRAY_PMI_CFLAGS" pmix_cray_LIBS="$CRAY_PMI_LIBS" pmix_cray_good=1 else pmix_cray_good=0 fi if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no pmix_alps_happy=0 else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : pmix_alps_LDFLAGS="$pmix_alps_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" pmix_alps_CPPFLAGS="$pmix_alps_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" pmix_alps_LIBS="$pmix_alps_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" pmix_alps_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" pmix_alps_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" pmix_alps_happy=1 else pmix_alps_happy=0 fi # Evaluate succeed / fail if test "$pmix_cray_good" = 1 && test "$pmix_alps_happy" = 1; then : should_build=$should_build # need to set the wrapper flags for static builds pmix_cray_WRAPPER_EXTRA_LDFLAGS="$pmix_cray_LDFLAGS $pmix_alps_LDFLAGS" pmix_cray_WRAPPER_EXTRA_LIBS="$pmix_cray_LIBS $pmix_alps_LIBS" else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/cray/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components cray" if test "$compile_mode" = "dso" ; then dso_components="$dso_components cray" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/cray/lib${OPAL_LIB_PREFIX}mca_pmix_cray.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/cray/libmca_pmix_cray.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_cray_component;" >> $outfile.extern echo " &mca_pmix_cray_component, " >> $outfile.struct static_components="$static_components cray" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:cray can compile" >&5 $as_echo_n "checking if MCA component pmix:cray can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "cray" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component cray was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "cray" ; then as_fn_error $? "*** pmix component cray was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pmix_cray_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pmix_cray_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pmix_cray_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pmix_cray_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pmix_cray_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pmix_cray_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pmix_cray_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pmix_cray_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pmix_cray_WRAPPER_EXTRA_CPPFLAGS ($pmix_cray_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pmix_cray_WRAPPER_EXTRA_CPPFLAGS ($pmix_cray_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:cray can compile" >&5 $as_echo_n "checking if MCA component pmix:cray can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "cray" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cray\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"cray\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "cray" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cray\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"cray\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components cray" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pmix_cray_DSO=1 else BUILD_opal_pmix_cray_DSO=0 fi if test "$BUILD_opal_pmix_cray_DSO" = "1"; then MCA_BUILD_opal_pmix_cray_DSO_TRUE= MCA_BUILD_opal_pmix_cray_DSO_FALSE='#' else MCA_BUILD_opal_pmix_cray_DSO_TRUE='#' MCA_BUILD_opal_pmix_cray_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pmix:ext1x (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pmix/ext1x" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "ext1x" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi if test "$DISABLE_pmix_ext1x" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pmix" SHARED_COMPONENT="$DSO_pmix_ext1x" STATIC_FRAMEWORK="$STATIC_pmix" STATIC_COMPONENT="$STATIC_pmix_ext1x" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:ext1x compile mode" >&5 $as_echo_n "checking for MCA component pmix:ext1x compile mode... " >&6; } if test "$DIRECT_pmix" = "ext1x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pmix/ext1x/Makefile" if test "$opal_external_pmix_happy" = "yes"; then : # check for the 1.x version ( >= 1.1.4 ?) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external component is version 1.x" >&5 $as_echo_n "checking if external component is version 1.x... " >&6; } if test "$opal_external_pmix_version" = "1x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test "$opal_event_external_support" != "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXTERNAL PMIX SUPPORT REQUIRES USE OF EXTERNAL LIBEVENT" >&5 $as_echo "$as_me: WARNING: EXTERNAL PMIX SUPPORT REQUIRES USE OF EXTERNAL LIBEVENT" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBRARY. THIS LIBRARY MUST POINT TO THE SAME ONE USED" >&5 $as_echo "$as_me: WARNING: LIBRARY. THIS LIBRARY MUST POINT TO THE SAME ONE USED" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TO BUILD PMIX OR ELSE UNPREDICTABLE BEHAVIOR MAY RESULT" >&5 $as_echo "$as_me: WARNING: TO BUILD PMIX OR ELSE UNPREDICTABLE BEHAVIOR MAY RESULT" >&2;} as_fn_error $? "PLEASE CORRECT THE CONFIGURE COMMAND LINE AND REBUILD" "$LINENO" 5 fi if test "$opal_hwloc_external_support" != "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXTERNAL PMIX SUPPORT REQUIRES USE OF EXTERNAL HWLOC" >&5 $as_echo "$as_me: WARNING: EXTERNAL PMIX SUPPORT REQUIRES USE OF EXTERNAL HWLOC" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBRARY THIS LIBRARY MUST POINT TO THE SAME ONE USED " >&5 $as_echo "$as_me: WARNING: LIBRARY THIS LIBRARY MUST POINT TO THE SAME ONE USED " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TO BUILD PMIX OR ELSE UNPREDICTABLE BEHAVIOR MAY RESULT" >&5 $as_echo "$as_me: WARNING: TO BUILD PMIX OR ELSE UNPREDICTABLE BEHAVIOR MAY RESULT" >&2;} as_fn_error $? "PLEASE CORRECT THE CONFIGURE COMMAND LINE AND REBUILD" "$LINENO" 5 fi opal_pmix_external_1x_happy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_pmix_external_1x_happy=no fi if test "$opal_pmix_external_1x_happy" = "yes"; then : should_build=$should_build # need to set the wrapper flags for static builds pmix_ext1x_WRAPPER_EXTRA_LDFLAGS=$opal_external_pmix_LDFLAGS pmix_ext1x_WRAPPER_EXTRA_LIBS=$opal_external_pmix_LIBS else should_build=0 fi else should_build=0 fi opal_pmix_ext1x_CPPFLAGS=$opal_external_pmix_CPPFLAGS opal_pmix_ext1x_LDFLAGS=$opal_external_pmix_LDFLAGS opal_pmix_ext1x_LIBS=$opal_external_pmix_LIBS opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/ext1x/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ext1x" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ext1x" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/ext1x/lib${OPAL_LIB_PREFIX}mca_pmix_ext1x.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/ext1x/libmca_pmix_ext1x.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_ext1x_component;" >> $outfile.extern echo " &mca_pmix_ext1x_component, " >> $outfile.struct static_components="$static_components ext1x" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:ext1x can compile" >&5 $as_echo_n "checking if MCA component pmix:ext1x can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "ext1x" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component ext1x was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "ext1x" ; then as_fn_error $? "*** pmix component ext1x was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pmix_ext1x_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pmix_ext1x_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pmix_ext1x_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pmix_ext1x_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pmix_ext1x_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pmix_ext1x_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pmix_ext1x_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pmix_ext1x_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pmix_ext1x_WRAPPER_EXTRA_CPPFLAGS ($pmix_ext1x_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pmix_ext1x_WRAPPER_EXTRA_CPPFLAGS ($pmix_ext1x_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:ext1x can compile" >&5 $as_echo_n "checking if MCA component pmix:ext1x can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "ext1x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ext1x\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ext1x\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "ext1x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ext1x\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ext1x\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ext1x" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pmix_ext1x_DSO=1 else BUILD_opal_pmix_ext1x_DSO=0 fi if test "$BUILD_opal_pmix_ext1x_DSO" = "1"; then MCA_BUILD_opal_pmix_ext1x_DSO_TRUE= MCA_BUILD_opal_pmix_ext1x_DSO_FALSE='#' else MCA_BUILD_opal_pmix_ext1x_DSO_TRUE='#' MCA_BUILD_opal_pmix_ext1x_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pmix:ext2x (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pmix/ext2x" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "ext2x" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi if test "$DISABLE_pmix_ext2x" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pmix" SHARED_COMPONENT="$DSO_pmix_ext2x" STATIC_FRAMEWORK="$STATIC_pmix" STATIC_COMPONENT="$STATIC_pmix_ext2x" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:ext2x compile mode" >&5 $as_echo_n "checking for MCA component pmix:ext2x compile mode... " >&6; } if test "$DIRECT_pmix" = "ext2x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pmix/ext2x/Makefile" if test "$opal_external_pmix_happy" = "yes"; then : # check for the 2.x version { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external component is version 2.x" >&5 $as_echo_n "checking if external component is version 2.x... " >&6; } if test "$opal_external_pmix_version" = "2x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test "$opal_event_external_support" != "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXTERNAL PMIX SUPPORT REQUIRES USE OF EXTERNAL LIBEVENT" >&5 $as_echo "$as_me: WARNING: EXTERNAL PMIX SUPPORT REQUIRES USE OF EXTERNAL LIBEVENT" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBRARY. THIS LIBRARY MUST POINT TO THE SAME ONE USED" >&5 $as_echo "$as_me: WARNING: LIBRARY. THIS LIBRARY MUST POINT TO THE SAME ONE USED" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TO BUILD PMIX OR ELSE UNPREDICTABLE BEHAVIOR MAY RESULT" >&5 $as_echo "$as_me: WARNING: TO BUILD PMIX OR ELSE UNPREDICTABLE BEHAVIOR MAY RESULT" >&2;} as_fn_error $? "PLEASE CORRECT THE CONFIGURE COMMAND LINE AND REBUILD" "$LINENO" 5 fi opal_pmix_external_2x_happy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_pmix_external_2x_happy=no fi if test "$opal_pmix_external_2x_happy" = "yes"; then : should_build=$should_build # need to set the wrapper flags for static builds pmix_ext2x_WRAPPER_EXTRA_LDFLAGS=$opal_external_pmix_LDFLAGS pmix_ext2x_WRAPPER_EXTRA_LIBS=$opal_external_pmix_LIBS else should_build=0 fi else should_build=0 fi opal_pmix_ext2x_CPPFLAGS=$opal_external_pmix_CPPFLAGS opal_pmix_ext2x_LDFLAGS=$opal_external_pmix_LDFLAGS opal_pmix_ext2x_LIBS=$opal_external_pmix_LIBS opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/ext2x/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ext2x" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ext2x" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/ext2x/lib${OPAL_LIB_PREFIX}mca_pmix_ext2x.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/ext2x/libmca_pmix_ext2x.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_ext2x_component;" >> $outfile.extern echo " &mca_pmix_ext2x_component, " >> $outfile.struct static_components="$static_components ext2x" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:ext2x can compile" >&5 $as_echo_n "checking if MCA component pmix:ext2x can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "ext2x" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component ext2x was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "ext2x" ; then as_fn_error $? "*** pmix component ext2x was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pmix_ext2x_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pmix_ext2x_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pmix_ext2x_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pmix_ext2x_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pmix_ext2x_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pmix_ext2x_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pmix_ext2x_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pmix_ext2x_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pmix_ext2x_WRAPPER_EXTRA_CPPFLAGS ($pmix_ext2x_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pmix_ext2x_WRAPPER_EXTRA_CPPFLAGS ($pmix_ext2x_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:ext2x can compile" >&5 $as_echo_n "checking if MCA component pmix:ext2x can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "ext2x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ext2x\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ext2x\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "ext2x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ext2x\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ext2x\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ext2x" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pmix_ext2x_DSO=1 else BUILD_opal_pmix_ext2x_DSO=0 fi if test "$BUILD_opal_pmix_ext2x_DSO" = "1"; then MCA_BUILD_opal_pmix_ext2x_DSO_TRUE= MCA_BUILD_opal_pmix_ext2x_DSO_FALSE='#' else MCA_BUILD_opal_pmix_ext2x_DSO_TRUE='#' MCA_BUILD_opal_pmix_ext2x_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pmix:ext3x (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pmix/ext3x" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "ext3x" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi if test "$DISABLE_pmix_ext3x" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pmix" SHARED_COMPONENT="$DSO_pmix_ext3x" STATIC_FRAMEWORK="$STATIC_pmix" STATIC_COMPONENT="$STATIC_pmix_ext3x" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:ext3x compile mode" >&5 $as_echo_n "checking for MCA component pmix:ext3x compile mode... " >&6; } if test "$DIRECT_pmix" = "ext3x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pmix/ext3x/Makefile" if test "$opal_external_pmix_happy" = "yes"; then : # check for the 3.x version { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external component is version 3.x or higher" >&5 $as_echo_n "checking if external component is version 3.x or higher... " >&6; } if test $opal_external_pmix_version_major -ge 3 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test "$opal_event_external_support" != "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EXTERNAL PMIX SUPPORT REQUIRES USE OF EXTERNAL LIBEVENT" >&5 $as_echo "$as_me: WARNING: EXTERNAL PMIX SUPPORT REQUIRES USE OF EXTERNAL LIBEVENT" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBRARY. THIS LIBRARY MUST POINT TO THE SAME ONE USED" >&5 $as_echo "$as_me: WARNING: LIBRARY. THIS LIBRARY MUST POINT TO THE SAME ONE USED" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TO BUILD PMIX OR ELSE UNPREDICTABLE BEHAVIOR MAY RESULT" >&5 $as_echo "$as_me: WARNING: TO BUILD PMIX OR ELSE UNPREDICTABLE BEHAVIOR MAY RESULT" >&2;} as_fn_error $? "PLEASE CORRECT THE CONFIGURE COMMAND LINE AND REBUILD" "$LINENO" 5 fi opal_pmix_external_3x_happy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_pmix_external_3x_happy=no fi if test "$opal_pmix_external_3x_happy" = "yes"; then : should_build=$should_build # need to set the wrapper flags for static builds pmix_ext3x_WRAPPER_EXTRA_LDFLAGS=$opal_external_pmix_LDFLAGS pmix_ext3x_WRAPPER_EXTRA_LIBS=$opal_external_pmix_LIBS else should_build=0 fi else should_build=0 fi opal_pmix_ext3x_CPPFLAGS=$opal_external_pmix_CPPFLAGS opal_pmix_ext3x_LDFLAGS=$opal_external_pmix_LDFLAGS opal_pmix_ext3x_LIBS=$opal_external_pmix_LIBS opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/ext3x/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ext3x" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ext3x" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/ext3x/lib${OPAL_LIB_PREFIX}mca_pmix_ext3x.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/ext3x/libmca_pmix_ext3x.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_ext3x_component;" >> $outfile.extern echo " &mca_pmix_ext3x_component, " >> $outfile.struct static_components="$static_components ext3x" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:ext3x can compile" >&5 $as_echo_n "checking if MCA component pmix:ext3x can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "ext3x" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component ext3x was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "ext3x" ; then as_fn_error $? "*** pmix component ext3x was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pmix_ext3x_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pmix_ext3x_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pmix_ext3x_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pmix_ext3x_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pmix_ext3x_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pmix_ext3x_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pmix_ext3x_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pmix_ext3x_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pmix_ext3x_WRAPPER_EXTRA_CPPFLAGS ($pmix_ext3x_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pmix_ext3x_WRAPPER_EXTRA_CPPFLAGS ($pmix_ext3x_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:ext3x can compile" >&5 $as_echo_n "checking if MCA component pmix:ext3x can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "ext3x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ext3x\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ext3x\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "ext3x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ext3x\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ext3x\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ext3x" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pmix_ext3x_DSO=1 else BUILD_opal_pmix_ext3x_DSO=0 fi if test "$BUILD_opal_pmix_ext3x_DSO" = "1"; then MCA_BUILD_opal_pmix_ext3x_DSO_TRUE= MCA_BUILD_opal_pmix_ext3x_DSO_FALSE='#' else MCA_BUILD_opal_pmix_ext3x_DSO_TRUE='#' MCA_BUILD_opal_pmix_ext3x_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pmix:flux (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pmix/flux" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "flux" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi if test "$DISABLE_pmix_flux" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pmix" SHARED_COMPONENT="$DSO_pmix_flux" STATIC_FRAMEWORK="$STATIC_pmix" STATIC_COMPONENT="$STATIC_pmix_flux" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:flux compile mode" >&5 $as_echo_n "checking for MCA component pmix:flux compile mode... " >&6; } if test "$DIRECT_pmix" = "flux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pmix/flux/Makefile" # Check whether --with-flux-pmi was given. if test "${with_flux_pmi+set}" = set; then : withval=$with_flux_pmi; fi # Check whether --with-flux-pmi-library was given. if test "${with_flux_pmi_library+set}" = set; then : withval=$with_flux_pmi_library; fi # pkg-config check aborts configure on failure { $as_echo "$as_me:${as_lineno-$LINENO}: checking if user wants Flux support to link against PMI library" >&5 $as_echo_n "checking if user wants Flux support to link against PMI library... " >&6; } if test "x$with_flux_pmi_library" != "xyes"; 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; } pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLUX_PMI" >&5 $as_echo_n "checking for FLUX_PMI... " >&6; } if test -n "$FLUX_PMI_CFLAGS"; then pkg_cv_FLUX_PMI_CFLAGS="$FLUX_PMI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flux-pmi\""; } >&5 ($PKG_CONFIG --exists --print-errors "flux-pmi") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FLUX_PMI_CFLAGS=`$PKG_CONFIG --cflags "flux-pmi" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$FLUX_PMI_LIBS"; then pkg_cv_FLUX_PMI_LIBS="$FLUX_PMI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flux-pmi\""; } >&5 ($PKG_CONFIG --exists --print-errors "flux-pmi") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FLUX_PMI_LIBS=`$PKG_CONFIG --libs "flux-pmi" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then FLUX_PMI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "flux-pmi" 2>&1` else FLUX_PMI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "flux-pmi" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$FLUX_PMI_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (flux-pmi) were not met: $FLUX_PMI_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables FLUX_PMI_CFLAGS and FLUX_PMI_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables FLUX_PMI_CFLAGS and FLUX_PMI_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else FLUX_PMI_CFLAGS=$pkg_cv_FLUX_PMI_CFLAGS FLUX_PMI_LIBS=$pkg_cv_FLUX_PMI_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi have_flux_pmi_library=yes $as_echo "#define HAVE_FLUX_PMI_LIBRARY 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Flux support allowed to use dlopen" >&5 $as_echo_n "checking if Flux support allowed to use dlopen... " >&6; } if test $OPAL_ENABLE_DLOPEN_SUPPORT -eq 1 && test "x$compile_mode" = "xdso"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } flux_can_dlopen=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking if Flux PMI support can be built" >&5 $as_echo_n "checking Checking if Flux PMI support can be built... " >&6; } if test "x$with_flux_pmi" != "xno" && ( test "x$have_flux_pmi_library" = "xyes" || test "x$flux_can_dlopen" = "xyes" ) ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_enable_flux=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "x$with_flux_pmi" = "xyes"; then : as_fn_error $? "Aborting since Flux PMI support was requested" "$LINENO" 5 fi fi # Evaluate succeed / fail if test "x$opal_enable_flux" = "xyes"; then : should_build=$should_build # need to set the wrapper flags for static builds pmix_flux_WRAPPER_EXTRA_LIBS="$FLUX_PMI_LIBS" else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/flux/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components flux" if test "$compile_mode" = "dso" ; then dso_components="$dso_components flux" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/flux/lib${OPAL_LIB_PREFIX}mca_pmix_flux.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/flux/libmca_pmix_flux.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_flux_component;" >> $outfile.extern echo " &mca_pmix_flux_component, " >> $outfile.struct static_components="$static_components flux" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:flux can compile" >&5 $as_echo_n "checking if MCA component pmix:flux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "flux" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component flux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "flux" ; then as_fn_error $? "*** pmix component flux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pmix_flux_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pmix_flux_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pmix_flux_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pmix_flux_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pmix_flux_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pmix_flux_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pmix_flux_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pmix_flux_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pmix_flux_WRAPPER_EXTRA_CPPFLAGS ($pmix_flux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pmix_flux_WRAPPER_EXTRA_CPPFLAGS ($pmix_flux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:flux can compile" >&5 $as_echo_n "checking if MCA component pmix:flux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "flux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"flux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"flux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "flux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"flux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"flux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components flux" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pmix_flux_DSO=1 else BUILD_opal_pmix_flux_DSO=0 fi if test "$BUILD_opal_pmix_flux_DSO" = "1"; then MCA_BUILD_opal_pmix_flux_DSO_TRUE= MCA_BUILD_opal_pmix_flux_DSO_FALSE='#' else MCA_BUILD_opal_pmix_flux_DSO_TRUE='#' MCA_BUILD_opal_pmix_flux_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pmix:pmix3x (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pmix/pmix3x" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "pmix3x" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi if test "$DISABLE_pmix_pmix3x" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pmix" SHARED_COMPONENT="$DSO_pmix_pmix3x" STATIC_FRAMEWORK="$STATIC_pmix" STATIC_COMPONENT="$STATIC_pmix_pmix3x" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:pmix3x compile mode" >&5 $as_echo_n "checking for MCA component pmix:pmix3x compile mode... " >&6; } if test "$DIRECT_pmix" = "pmix3x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pmix/pmix3x/Makefile" # 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 PMIX_VERSION opal_pmix_pmix3x_save_CPPFLAGS opal_pmix_pmix2_save_CFLAGS opal_pmix_pmix3x_save_LDFLAGS opal_pmix_pmix3x_save_LIBS opal_pmix_pmix3x_basedir opal_pmix_pmix3x_args opal_pmix_pmix3x_happy pmix_pmix3x_status_filename; 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=\"PMIX_VERSION opal_pmix_pmix3x_save_CPPFLAGS opal_pmix_pmix2_save_CFLAGS opal_pmix_pmix3x_save_LDFLAGS opal_pmix_pmix3x_save_LIBS opal_pmix_pmix3x_basedir opal_pmix_pmix3x_args opal_pmix_pmix3x_happy pmix_pmix3x_status_filename\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_pmix_pmix3x_basedir=opal/mca/pmix/pmix3x opal_pmix_pmix3x_save_CFLAGS=$CFLAGS opal_pmix_pmix3x_save_CPPFLAGS=$CPPFLAGS opal_pmix_pmix3x_save_LDFLAGS=$LDFLAGS opal_pmix_pmix3x_save_LIBS=$LIBS # Check whether --enable-pmix-timing was given. if test "${enable_pmix_timing+set}" = set; then : enableval=$enable_pmix_timing; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PMIx timing is enabled" >&5 $as_echo_n "checking if PMIx timing is enabled... " >&6; } if test "$enable_pmix_timing" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_pmix_pmix3x_timing_flag=--enable-pmix-timing else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5 $as_echo "no (disabled)" >&6; } opal_pmix_pmix3x_timing_flag=--disable-pmix-timing fi opal_pmix_pmix3x_args="$opal_pmix_pmix3x_timing_flag --without-tests-examples --disable-pmix-binaries --disable-pmix-backward-compatibility --disable-visibility --enable-embedded-libevent --with-libevent-header=\\\"opal/mca/event/$opal_event_base_include\\\" --enable-embedded-hwloc --with-hwloc-header=\\\"$opal_hwloc_base_include\\\"" opal_pmix_pmix3x_args="--with-pmix-symbol-rename=OPAL_MCA_PMIX3X_ --enable-embedded-mode $opal_pmix_pmix3x_args" if test "$enable_debug" = "yes"; then : opal_pmix_pmix3x_args="--enable-debug $opal_pmix_pmix3x_args" CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS -g" else opal_pmix_pmix3x_args="--disable-debug $opal_pmix_pmix3x_args" CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS" fi if test "$with_devel_headers" = "yes"; then : opal_pmix_pmix3x_args="--with-devel-headers $opal_pmix_pmix3x_args" fi CPPFLAGS="-I$OPAL_TOP_SRCDIR -I$OPAL_TOP_BUILDDIR -I$OPAL_TOP_SRCDIR/opal/include -I$OPAL_TOP_BUILDDIR/opal/include $CPPFLAGS" # OpenPMIx Man pages are not needed when embedded. Avoids pandoc check opal_pmix_pmix3x_args="--disable-man-pages $opal_pmix_pmix3x_args" # 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # $opal_pmix_pmix3x_basedir/pmix is the directory to invoke in # $opal_pmix_pmix3x_args $opal_subdir_args 'CFLAGS=$CFLAGS' 'CPPFLAGS=$CPPFLAGS' is the list of arguments to pass # opal_pmix_pmix3x_happy=1 is actions to execute upon success # opal_pmix_pmix3x_happy=0 is actions to execute upon failure # subdir_dir="$opal_pmix_pmix3x_basedir/pmix" subdir_args="$opal_pmix_pmix3x_args $opal_subdir_args 'CFLAGS=$CFLAGS' 'CPPFLAGS=$CPPFLAGS'" subdir_success="opal_pmix_pmix3x_happy=1" subdir_failure="opal_pmix_pmix3x_happy=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 CFLAGS=$opal_pmix_pmix3x_save_CFLAGS CPPFLAGS=$opal_pmix_pmix3x_save_CPPFLAGS LDFLAGS=$opal_pmix_pmix3x_save_LDFLAGS LIBS=$opal_pmix_pmix3x_save_LIBS # See if we are using the internal version. NOTE: we still did all the # above configury so that all the proper GNU Autotools # infrastructure is setup properly (e.g., w.r.t. SUBDIRS=pmix in # this directory's Makefile.am, we still need the Autotools "make # distclean" infrastructure to work properly). { $as_echo "$as_me:${as_lineno-$LINENO}: checking if v3.x component is to be used" >&5 $as_echo_n "checking if v3.x component is to be used... " >&6; } if test "$opal_external_pmix_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - disqualifying this component" >&5 $as_echo "no - disqualifying this component" >&6; } opal_pmix_pmix3x_happy=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - using the internal v3.x library" >&5 $as_echo "yes - using the internal v3.x library" >&6; } if test "$opal_pmix_pmix3x_happy" = "0"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INTERNAL PMIX FAILED TO CONFIGURE" >&5 $as_echo "$as_me: WARNING: INTERNAL PMIX FAILED TO CONFIGURE" >&2;} as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5 fi # Build flags for our Makefile.am opal_pmix_pmix3x_LDFLAGS= opal_pmix_pmix3x_LIBS="$OPAL_TOP_BUILDDIR/$opal_pmix_pmix3x_basedir/pmix/src/libpmix.la" opal_pmix_pmix3x_CPPFLAGS="-I$OPAL_TOP_BUILDDIR/$opal_pmix_pmix3x_basedir/pmix/include -I$OPAL_TOP_BUILDDIR/$opal_pmix_pmix3x_basedir/pmix -I$OPAL_TOP_SRCDIR/$opal_pmix_pmix3x_basedir/pmix/include -I$OPAL_TOP_SRCDIR/$opal_pmix_pmix3x_basedir/pmix" opal_pmix_pmix3x_DEPENDENCIES="$OPAL_TOP_BUILDDIR/$opal_pmix_pmix3x_basedir/pmix/src/libpmix.la" fi # Finally, add some flags to the wrapper compiler so that our # headers can be found. Do not grab them from config.status, # because the value is located in an area that is part of an awk # script, and sometimes autoconf decides to break up super-long # lines into multiple lines (awk has line continuation syntax). # Instead, grab it from the generated Makefile. pmix_pmix3x_makefile_filename="$OPAL_TOP_BUILDDIR/$opal_pmix_pmix3x_basedir/pmix/Makefile" pmix_pmix3x_WRAPPER_EXTRA_CPPFLAGS=`egrep PMIX_EMBEDDED_CPPFLAGS $pmix_pmix3x_makefile_filename | cut -d= -f2-` pmix_pmix3x_WRAPPER_EXTRA_LDFLAGS=`egrep PMIX_EMBEDDED_LDFLAGS $pmix_pmix3x_makefile_filename | cut -d= -f2-` pmix_pmix3x_WRAPPER_EXTRA_LIBS=`egrep PMIX_EMBEDDED_LIBS $pmix_pmix3x_makefile_filename | cut -d= -f2-` { $as_echo "$as_me:${as_lineno-$LINENO}: checking PMIx extra wrapper CPPFLAGS" >&5 $as_echo_n "checking PMIx extra wrapper CPPFLAGS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_pmix3x_WRAPPER_EXTRA_CPPFLAGS" >&5 $as_echo "$pmix_pmix3x_WRAPPER_EXTRA_CPPFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking PMIx extra wrapper LDFLAGS" >&5 $as_echo_n "checking PMIx extra wrapper LDFLAGS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_pmix3x_WRAPPER_EXTRA_LDFLAGS" >&5 $as_echo "$pmix_pmix3x_WRAPPER_EXTRA_LDFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking PMIx extra wrapper LIBS" >&5 $as_echo_n "checking PMIx extra wrapper LIBS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_pmix3x_WRAPPER_EXTRA_LIBS" >&5 $as_echo "$pmix_pmix3x_WRAPPER_EXTRA_LIBS" >&6; } if test $opal_pmix_pmix3x_happy -eq 1; then : should_build=$should_build else should_build=0 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/pmix3x/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components pmix3x" if test "$compile_mode" = "dso" ; then dso_components="$dso_components pmix3x" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/pmix3x/lib${OPAL_LIB_PREFIX}mca_pmix_pmix3x.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/pmix3x/libmca_pmix_pmix3x.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_pmix3x_component;" >> $outfile.extern echo " &mca_pmix_pmix3x_component, " >> $outfile.struct static_components="$static_components pmix3x" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:pmix3x can compile" >&5 $as_echo_n "checking if MCA component pmix:pmix3x can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "pmix3x" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component pmix3x was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "pmix3x" ; then as_fn_error $? "*** pmix component pmix3x was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pmix_pmix3x_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pmix_pmix3x_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pmix_pmix3x_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pmix_pmix3x_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pmix_pmix3x_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pmix_pmix3x_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pmix_pmix3x_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pmix_pmix3x_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pmix_pmix3x_WRAPPER_EXTRA_CPPFLAGS ($pmix_pmix3x_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pmix_pmix3x_WRAPPER_EXTRA_CPPFLAGS ($pmix_pmix3x_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:pmix3x can compile" >&5 $as_echo_n "checking if MCA component pmix:pmix3x can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "pmix3x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pmix3x\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pmix3x\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "pmix3x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pmix3x\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pmix3x\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components pmix3x" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pmix_pmix3x_DSO=1 else BUILD_opal_pmix_pmix3x_DSO=0 fi if test "$BUILD_opal_pmix_pmix3x_DSO" = "1"; then MCA_BUILD_opal_pmix_pmix3x_DSO_TRUE= MCA_BUILD_opal_pmix_pmix3x_DSO_FALSE='#' else MCA_BUILD_opal_pmix_pmix3x_DSO_TRUE='#' MCA_BUILD_opal_pmix_pmix3x_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pmix:s1 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pmix/s1" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "s1" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi if test "$DISABLE_pmix_s1" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pmix" SHARED_COMPONENT="$DSO_pmix_s1" STATIC_FRAMEWORK="$STATIC_pmix" STATIC_COMPONENT="$STATIC_pmix_s1" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:s1 compile mode" >&5 $as_echo_n "checking for MCA component pmix:s1 compile mode... " >&6; } if test "$DIRECT_pmix" = "s1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pmix/s1/Makefile" # Evaluate succeed / fail if test "$opal_enable_pmi1" = "yes" && test "$opal_check_ugni_happy" = "no"; then : should_build=$should_build # need to set the wrapper flags for static builds pmix_s1_WRAPPER_EXTRA_LDFLAGS="$opal_pmi1_LDFLAGS" pmix_s1_WRAPPER_EXTRA_LIBS="$opal_pmi1_LIBS" else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/s1/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components s1" if test "$compile_mode" = "dso" ; then dso_components="$dso_components s1" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/s1/lib${OPAL_LIB_PREFIX}mca_pmix_s1.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/s1/libmca_pmix_s1.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_s1_component;" >> $outfile.extern echo " &mca_pmix_s1_component, " >> $outfile.struct static_components="$static_components s1" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:s1 can compile" >&5 $as_echo_n "checking if MCA component pmix:s1 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "s1" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component s1 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "s1" ; then as_fn_error $? "*** pmix component s1 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pmix_s1_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pmix_s1_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pmix_s1_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pmix_s1_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pmix_s1_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pmix_s1_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pmix_s1_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pmix_s1_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pmix_s1_WRAPPER_EXTRA_CPPFLAGS ($pmix_s1_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pmix_s1_WRAPPER_EXTRA_CPPFLAGS ($pmix_s1_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:s1 can compile" >&5 $as_echo_n "checking if MCA component pmix:s1 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "s1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"s1\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"s1\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "s1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"s1\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"s1\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components s1" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pmix_s1_DSO=1 else BUILD_opal_pmix_s1_DSO=0 fi if test "$BUILD_opal_pmix_s1_DSO" = "1"; then MCA_BUILD_opal_pmix_s1_DSO_TRUE= MCA_BUILD_opal_pmix_s1_DSO_FALSE='#' else MCA_BUILD_opal_pmix_s1_DSO_TRUE='#' MCA_BUILD_opal_pmix_s1_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pmix:s2 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pmix/s2" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "s2" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi if test "$DISABLE_pmix_s2" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pmix" SHARED_COMPONENT="$DSO_pmix_s2" STATIC_FRAMEWORK="$STATIC_pmix" STATIC_COMPONENT="$STATIC_pmix_s2" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:s2 compile mode" >&5 $as_echo_n "checking for MCA component pmix:s2 compile mode... " >&6; } if test "$DIRECT_pmix" = "s2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pmix/s2/Makefile" # Evaluate succeed / fail if test "$opal_enable_pmi2" = "yes" && test "$opal_check_ugni_happy" = "no"; then : should_build=$should_build # need to set the wrapper flags for static builds pmix_s2_WRAPPER_EXTRA_LDFLAGS="$opal_pmi2_LDFLAGS" pmix_s2_WRAPPER_EXTRA_LIBS="$opal_pmi2_LIBS" else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/s2/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components s2" if test "$compile_mode" = "dso" ; then dso_components="$dso_components s2" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/s2/lib${OPAL_LIB_PREFIX}mca_pmix_s2.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/s2/libmca_pmix_s2.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_s2_component;" >> $outfile.extern echo " &mca_pmix_s2_component, " >> $outfile.struct static_components="$static_components s2" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:s2 can compile" >&5 $as_echo_n "checking if MCA component pmix:s2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "s2" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component s2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "s2" ; then as_fn_error $? "*** pmix component s2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pmix_s2_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pmix_s2_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pmix_s2_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pmix_s2_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pmix_s2_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pmix_s2_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pmix_s2_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pmix_s2_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pmix_s2_WRAPPER_EXTRA_CPPFLAGS ($pmix_s2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pmix_s2_WRAPPER_EXTRA_CPPFLAGS ($pmix_s2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:s2 can compile" >&5 $as_echo_n "checking if MCA component pmix:s2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "s2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"s2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"s2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "s2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"s2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"s2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components s2" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pmix_s2_DSO=1 else BUILD_opal_pmix_s2_DSO=0 fi if test "$BUILD_opal_pmix_s2_DSO" = "1"; then MCA_BUILD_opal_pmix_s2_DSO_TRUE= MCA_BUILD_opal_pmix_s2_DSO_FALSE='#' else MCA_BUILD_opal_pmix_s2_DSO_TRUE='#' MCA_BUILD_opal_pmix_s2_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/pmix/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component pmix:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/pmix/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pmix" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_pmix_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_pmix" str="SHARED_COMPONENT=\$DSO_pmix_$component" eval $str STATIC_FRAMEWORK="$STATIC_pmix" str="STATIC_COMPONENT=\$STATIC_pmix_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pmix:$component compile mode" >&5 $as_echo_n "checking for MCA component pmix:$component compile mode... " >&6; } if test "$DIRECT_pmix" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/pmix/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/pmix/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/pmix/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then pmix_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then pmix_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pmix/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "pmix" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pmix/$component/lib${OPAL_LIB_PREFIX}mca_pmix_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pmix/$component/libmca_pmix_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pmix_$component_component;" >> $outfile.extern echo " &mca_pmix_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:$component can compile" >&5 $as_echo_n "checking if MCA component pmix:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pmix" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pmix_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pmix component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pmix" = "$component" ; then as_fn_error $? "*** pmix component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$pmix_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$pmix_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pmix:$component can compile" >&5 $as_echo_n "checking if MCA component pmix:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pmix" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pmix" ; then if test "$DIRECT_pmix" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_pmix_ALL_COMPONENTS="$all_components" MCA_opal_pmix_STATIC_COMPONENTS="$static_components" MCA_opal_pmix_DSO_COMPONENTS="$dso_components" MCA_opal_pmix_STATIC_LTLIBS="$static_ltlibs" MCA_opal_pmix_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_pmix_ALL_SUBDIRS="$MCA_opal_pmix_ALL_SUBDIRS mca/pmix/$item" done MCA_opal_pmix_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_pmix_STATIC_SUBDIRS="$MCA_opal_pmix_STATIC_SUBDIRS mca/pmix/$item" done MCA_opal_pmix_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_pmix_DSO_SUBDIRS="$MCA_opal_pmix_DSO_SUBDIRS mca/pmix/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "pmix" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS pstat" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/pstat" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_pstat_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_pstat_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_pstat_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/pstat/libmca_pstat.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_pstat_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework pstat" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/pstat/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/pstat/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pstat" >&5 $as_echo_n "checking for no configure components in framework pstat... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pstat" >&5 $as_echo_n "checking for m4 configure components in framework pstat... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux, test" >&5 $as_echo "linux, test" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 if test $best_mca_component_priority -gt 60; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component pstat:linux (m4 configuration macro, priority 60)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pstat/linux" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pstat" ; then if test "$DIRECT_pstat" = "linux" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pstat" = "1"; then : want_component=0 fi if test "$DISABLE_pstat_linux" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pstat" SHARED_COMPONENT="$DSO_pstat_linux" STATIC_FRAMEWORK="$STATIC_pstat" STATIC_COMPONENT="$STATIC_pstat_linux" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pstat:linux compile mode" >&5 $as_echo_n "checking for MCA component pstat:linux compile mode... " >&6; } if test "$DIRECT_pstat" = "linux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pstat/linux/Makefile" case "${host}" in i?86-*linux*|x86_64*linux*|ia64-*linux*|powerpc-*linux*|powerpc64-*linux*|powerpc64le-*linux*|powerpcle-*linux*|sparc*-*linux*) if test -r "/proc/cpuinfo"; then : pstat_linux_happy="yes" else pstat_linux_happy="no" fi ;; *) pstat_linux_happy="no" ;; esac if test "$pstat_linux_happy" = "yes"; then : ac_fn_c_check_decl "$LINENO" "HZ" "ac_cv_have_decl_HZ" "$ac_includes_default #include " if test "x$ac_cv_have_decl_HZ" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_HZ $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else pstat_linux_happy="no" fi fi if test "$pstat_linux_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pstat/linux/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components linux" if test "$compile_mode" = "dso" ; then dso_components="$dso_components linux" else if test "pstat" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pstat/linux/lib${OPAL_LIB_PREFIX}mca_pstat_linux.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pstat/linux/libmca_pstat_linux.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pstat_linux_component;" >> $outfile.extern echo " &mca_pstat_linux_component, " >> $outfile.struct static_components="$static_components linux" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pstat:linux can compile" >&5 $as_echo_n "checking if MCA component pstat:linux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pstat" = "linux" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pstat_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pstat component linux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pstat" = "linux" ; then as_fn_error $? "*** pstat component linux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pstat_linux_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pstat_linux_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pstat_linux_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pstat_linux_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pstat_linux_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pstat_linux_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pstat_linux_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pstat_linux_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pstat_linux_WRAPPER_EXTRA_CPPFLAGS ($pstat_linux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pstat_linux_WRAPPER_EXTRA_CPPFLAGS ($pstat_linux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pstat:linux can compile" >&5 $as_echo_n "checking if MCA component pstat:linux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pstat" = "linux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pstat" ; then if test "$DIRECT_pstat" = "linux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components linux" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pstat_linux_DSO=1 else BUILD_opal_pstat_linux_DSO=0 fi if test "$BUILD_opal_pstat_linux_DSO" = "1"; then MCA_BUILD_opal_pstat_linux_DSO_TRUE= MCA_BUILD_opal_pstat_linux_DSO_FALSE='#' else MCA_BUILD_opal_pstat_linux_DSO_TRUE='#' MCA_BUILD_opal_pstat_linux_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : best_mca_component_priority=60 fi if test $best_mca_component_priority -gt 10; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component pstat:test (m4 configuration macro, priority 10)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/pstat/test" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pstat" ; then if test "$DIRECT_pstat" = "test" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pstat" = "1"; then : want_component=0 fi if test "$DISABLE_pstat_test" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pstat" SHARED_COMPONENT="$DSO_pstat_test" STATIC_FRAMEWORK="$STATIC_pstat" STATIC_COMPONENT="$STATIC_pstat_test" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pstat:test compile mode" >&5 $as_echo_n "checking for MCA component pstat:test compile mode... " >&6; } if test "$DIRECT_pstat" = "test" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/pstat/test/Makefile" pstat_test_happy="yes" if test "$pstat_test_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/pstat/test/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components test" if test "$compile_mode" = "dso" ; then dso_components="$dso_components test" else if test "pstat" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pstat/test/lib${OPAL_LIB_PREFIX}mca_pstat_test.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pstat/test/libmca_pstat_test.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pstat_test_component;" >> $outfile.extern echo " &mca_pstat_test_component, " >> $outfile.struct static_components="$static_components test" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pstat:test can compile" >&5 $as_echo_n "checking if MCA component pstat:test can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pstat" = "test" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_pstat_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pstat component test was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pstat" = "test" ; then as_fn_error $? "*** pstat component test was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pstat_test_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pstat_test_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pstat_test_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pstat_test_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pstat_test_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pstat_test_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pstat_test_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pstat_test_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pstat_test_WRAPPER_EXTRA_CPPFLAGS ($pstat_test_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pstat_test_WRAPPER_EXTRA_CPPFLAGS ($pstat_test_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pstat:test can compile" >&5 $as_echo_n "checking if MCA component pstat:test can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pstat" = "test" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"test\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"test\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pstat" ; then if test "$DIRECT_pstat" = "test" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"test\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"test\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components test" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_pstat_test_DSO=1 else BUILD_opal_pstat_test_DSO=0 fi if test "$BUILD_opal_pstat_test_DSO" = "1"; then MCA_BUILD_opal_pstat_test_DSO_TRUE= MCA_BUILD_opal_pstat_test_DSO_FALSE='#' else MCA_BUILD_opal_pstat_test_DSO_TRUE='#' MCA_BUILD_opal_pstat_test_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : best_mca_component_priority=10 fi # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_pstat_ALL_COMPONENTS="$all_components" MCA_opal_pstat_STATIC_COMPONENTS="$static_components" MCA_opal_pstat_DSO_COMPONENTS="$dso_components" MCA_opal_pstat_STATIC_LTLIBS="$static_ltlibs" MCA_opal_pstat_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_pstat_ALL_SUBDIRS="$MCA_opal_pstat_ALL_SUBDIRS mca/pstat/$item" done MCA_opal_pstat_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_pstat_STATIC_SUBDIRS="$MCA_opal_pstat_STATIC_SUBDIRS mca/pstat/$item" done MCA_opal_pstat_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_pstat_DSO_SUBDIRS="$MCA_opal_pstat_DSO_SUBDIRS mca/pstat/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "pstat" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS rcache" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/rcache" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_rcache_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_rcache_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_rcache_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/rcache/libmca_rcache.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_rcache_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework rcache" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/rcache/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/rcache/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework rcache" >&5 $as_echo_n "checking for no configure components in framework rcache... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: grdma" >&5 $as_echo "grdma" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework rcache" >&5 $as_echo_n "checking for m4 configure components in framework rcache... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: gpusm, rgpusm, udreg" >&5 $as_echo "gpusm, rgpusm, udreg" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component rcache:grdma (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/rcache/grdma" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "grdma" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rcache" = "1"; then : want_component=0 fi if test "$DISABLE_rcache_grdma" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rcache" SHARED_COMPONENT="$DSO_rcache_grdma" STATIC_FRAMEWORK="$STATIC_rcache" STATIC_COMPONENT="$STATIC_rcache_grdma" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rcache:grdma compile mode" >&5 $as_echo_n "checking for MCA component rcache:grdma compile mode... " >&6; } if test "$DIRECT_rcache" = "grdma" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/rcache/grdma/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components grdma" if test "$compile_mode" = "dso" ; then dso_components="$dso_components grdma" else if test "rcache" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rcache/grdma/lib${OPAL_LIB_PREFIX}mca_rcache_grdma.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rcache/grdma/libmca_rcache_grdma.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rcache_grdma_component;" >> $outfile.extern echo " &mca_rcache_grdma_component, " >> $outfile.struct static_components="$static_components grdma" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:grdma can compile" >&5 $as_echo_n "checking if MCA component rcache:grdma can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rcache" = "grdma" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_rcache_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rcache component grdma was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rcache" = "grdma" ; then as_fn_error $? "*** rcache component grdma was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rcache_grdma_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rcache_grdma_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rcache_grdma_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rcache_grdma_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rcache_grdma_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rcache_grdma_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rcache_grdma_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rcache_grdma_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rcache_grdma_WRAPPER_EXTRA_CPPFLAGS ($rcache_grdma_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rcache_grdma_WRAPPER_EXTRA_CPPFLAGS ($rcache_grdma_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:grdma can compile" >&5 $as_echo_n "checking if MCA component rcache:grdma can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rcache" = "grdma" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"grdma\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"grdma\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "grdma" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"grdma\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"grdma\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components grdma" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_rcache_grdma_DSO=1 else BUILD_opal_rcache_grdma_DSO=0 fi if test "$BUILD_opal_rcache_grdma_DSO" = "1"; then MCA_BUILD_opal_rcache_grdma_DSO_TRUE= MCA_BUILD_opal_rcache_grdma_DSO_FALSE='#' else MCA_BUILD_opal_rcache_grdma_DSO_TRUE='#' MCA_BUILD_opal_rcache_grdma_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/rcache/grdma/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component rcache:gpusm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/rcache/gpusm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "gpusm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rcache" = "1"; then : want_component=0 fi if test "$DISABLE_rcache_gpusm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_rcache" SHARED_COMPONENT="$DSO_rcache_gpusm" STATIC_FRAMEWORK="$STATIC_rcache" STATIC_COMPONENT="$STATIC_rcache_gpusm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rcache:gpusm compile mode" >&5 $as_echo_n "checking for MCA component rcache:gpusm compile mode... " >&6; } if test "$DIRECT_rcache" = "gpusm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/rcache/gpusm/Makefile" # Use CUDA_SUPPORT which was filled in by the opal configure code. if test "x$CUDA_SUPPORT" = "x1"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/rcache/gpusm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components gpusm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components gpusm" else if test "rcache" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rcache/gpusm/lib${OPAL_LIB_PREFIX}mca_rcache_gpusm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rcache/gpusm/libmca_rcache_gpusm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rcache_gpusm_component;" >> $outfile.extern echo " &mca_rcache_gpusm_component, " >> $outfile.struct static_components="$static_components gpusm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:gpusm can compile" >&5 $as_echo_n "checking if MCA component rcache:gpusm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rcache" = "gpusm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_rcache_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rcache component gpusm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rcache" = "gpusm" ; then as_fn_error $? "*** rcache component gpusm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rcache_gpusm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rcache_gpusm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rcache_gpusm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rcache_gpusm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rcache_gpusm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rcache_gpusm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rcache_gpusm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rcache_gpusm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rcache_gpusm_WRAPPER_EXTRA_CPPFLAGS ($rcache_gpusm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rcache_gpusm_WRAPPER_EXTRA_CPPFLAGS ($rcache_gpusm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:gpusm can compile" >&5 $as_echo_n "checking if MCA component rcache:gpusm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rcache" = "gpusm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gpusm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"gpusm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "gpusm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gpusm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"gpusm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components gpusm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_rcache_gpusm_DSO=1 else BUILD_opal_rcache_gpusm_DSO=0 fi if test "$BUILD_opal_rcache_gpusm_DSO" = "1"; then MCA_BUILD_opal_rcache_gpusm_DSO_TRUE= MCA_BUILD_opal_rcache_gpusm_DSO_FALSE='#' else MCA_BUILD_opal_rcache_gpusm_DSO_TRUE='#' MCA_BUILD_opal_rcache_gpusm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component rcache:rgpusm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/rcache/rgpusm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "rgpusm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rcache" = "1"; then : want_component=0 fi if test "$DISABLE_rcache_rgpusm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_rcache" SHARED_COMPONENT="$DSO_rcache_rgpusm" STATIC_FRAMEWORK="$STATIC_rcache" STATIC_COMPONENT="$STATIC_rcache_rgpusm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rcache:rgpusm compile mode" >&5 $as_echo_n "checking for MCA component rcache:rgpusm compile mode... " >&6; } if test "$DIRECT_rcache" = "rgpusm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/rcache/rgpusm/Makefile" # Use CUDA_SUPPORT which was filled in by the opal configure code. if test "x$CUDA_SUPPORT" = "x1"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/rcache/rgpusm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components rgpusm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components rgpusm" else if test "rcache" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rcache/rgpusm/lib${OPAL_LIB_PREFIX}mca_rcache_rgpusm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rcache/rgpusm/libmca_rcache_rgpusm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rcache_rgpusm_component;" >> $outfile.extern echo " &mca_rcache_rgpusm_component, " >> $outfile.struct static_components="$static_components rgpusm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:rgpusm can compile" >&5 $as_echo_n "checking if MCA component rcache:rgpusm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rcache" = "rgpusm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_rcache_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rcache component rgpusm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rcache" = "rgpusm" ; then as_fn_error $? "*** rcache component rgpusm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rcache_rgpusm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rcache_rgpusm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rcache_rgpusm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rcache_rgpusm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rcache_rgpusm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rcache_rgpusm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rcache_rgpusm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rcache_rgpusm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rcache_rgpusm_WRAPPER_EXTRA_CPPFLAGS ($rcache_rgpusm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rcache_rgpusm_WRAPPER_EXTRA_CPPFLAGS ($rcache_rgpusm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:rgpusm can compile" >&5 $as_echo_n "checking if MCA component rcache:rgpusm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rcache" = "rgpusm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rgpusm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"rgpusm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "rgpusm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rgpusm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"rgpusm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components rgpusm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_rcache_rgpusm_DSO=1 else BUILD_opal_rcache_rgpusm_DSO=0 fi if test "$BUILD_opal_rcache_rgpusm_DSO" = "1"; then MCA_BUILD_opal_rcache_rgpusm_DSO_TRUE= MCA_BUILD_opal_rcache_rgpusm_DSO_FALSE='#' else MCA_BUILD_opal_rcache_rgpusm_DSO_TRUE='#' MCA_BUILD_opal_rcache_rgpusm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component rcache:udreg (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/rcache/udreg" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "udreg" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rcache" = "1"; then : want_component=0 fi if test "$DISABLE_rcache_udreg" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_rcache" SHARED_COMPONENT="$DSO_rcache_udreg" STATIC_FRAMEWORK="$STATIC_rcache" STATIC_COMPONENT="$STATIC_rcache_udreg" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rcache:udreg compile mode" >&5 $as_echo_n "checking for MCA component rcache:udreg compile mode... " >&6; } if test "$DIRECT_rcache" = "udreg" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/rcache/udreg/Makefile" # Check whether --with-udreg was given. if test "${with_udreg+set}" = set; then : withval=$with_udreg; fi rcache_udreg_happy="no" if test "$with_udreg" = "no"; then : rcache_udreg_happy="no" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_UDREG" >&5 $as_echo_n "checking for CRAY_UDREG... " >&6; } if test -n "$CRAY_UDREG_CFLAGS"; then pkg_cv_CRAY_UDREG_CFLAGS="$CRAY_UDREG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-udreg\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-udreg") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_UDREG_CFLAGS=`$PKG_CONFIG --cflags "cray-udreg" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_UDREG_LIBS"; then pkg_cv_CRAY_UDREG_LIBS="$CRAY_UDREG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-udreg\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-udreg") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_UDREG_LIBS=`$PKG_CONFIG --libs "cray-udreg" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_UDREG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-udreg" 2>&1` else CRAY_UDREG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-udreg" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_UDREG_PKG_ERRORS" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } rcache_udreg_happ="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } rcache_udreg_happ="no" else CRAY_UDREG_CFLAGS=$pkg_cv_CRAY_UDREG_CFLAGS CRAY_UDREG_LIBS=$pkg_cv_CRAY_UDREG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } rcache_udreg_LDFLAGS="$CRAY_UDREG_LIBS" rcache_udreg_CPPFLAGS="$CRAY_UDREG_CFLAGS" rcache_udreg_happy="yes" fi fi if test "$rcache_udreg_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build udreg/rcache opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/rcache/udreg/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components udreg" if test "$compile_mode" = "dso" ; then dso_components="$dso_components udreg" else if test "rcache" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rcache/udreg/lib${OPAL_LIB_PREFIX}mca_rcache_udreg.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rcache/udreg/libmca_rcache_udreg.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rcache_udreg_component;" >> $outfile.extern echo " &mca_rcache_udreg_component, " >> $outfile.struct static_components="$static_components udreg" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:udreg can compile" >&5 $as_echo_n "checking if MCA component rcache:udreg can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rcache" = "udreg" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_rcache_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rcache component udreg was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rcache" = "udreg" ; then as_fn_error $? "*** rcache component udreg was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rcache_udreg_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rcache_udreg_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rcache_udreg_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rcache_udreg_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rcache_udreg_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rcache_udreg_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rcache_udreg_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rcache_udreg_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rcache_udreg_WRAPPER_EXTRA_CPPFLAGS ($rcache_udreg_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rcache_udreg_WRAPPER_EXTRA_CPPFLAGS ($rcache_udreg_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:udreg can compile" >&5 $as_echo_n "checking if MCA component rcache:udreg can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rcache" = "udreg" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"udreg\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"udreg\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "udreg" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"udreg\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"udreg\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components udreg" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_rcache_udreg_DSO=1 else BUILD_opal_rcache_udreg_DSO=0 fi if test "$BUILD_opal_rcache_udreg_DSO" = "1"; then MCA_BUILD_opal_rcache_udreg_DSO_TRUE= MCA_BUILD_opal_rcache_udreg_DSO_FALSE='#' else MCA_BUILD_opal_rcache_udreg_DSO_TRUE='#' MCA_BUILD_opal_rcache_udreg_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/rcache/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component rcache:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/rcache/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rcache" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_rcache_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rcache" str="SHARED_COMPONENT=\$DSO_rcache_$component" eval $str STATIC_FRAMEWORK="$STATIC_rcache" str="STATIC_COMPONENT=\$STATIC_rcache_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rcache:$component compile mode" >&5 $as_echo_n "checking for MCA component rcache:$component compile mode... " >&6; } if test "$DIRECT_rcache" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/rcache/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/rcache/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/rcache/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then rcache_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then rcache_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/rcache/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "rcache" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rcache/$component/lib${OPAL_LIB_PREFIX}mca_rcache_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rcache/$component/libmca_rcache_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rcache_$component_component;" >> $outfile.extern echo " &mca_rcache_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:$component can compile" >&5 $as_echo_n "checking if MCA component rcache:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rcache" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_rcache_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rcache component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rcache" = "$component" ; then as_fn_error $? "*** rcache component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$rcache_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$rcache_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rcache:$component can compile" >&5 $as_echo_n "checking if MCA component rcache:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rcache" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rcache" ; then if test "$DIRECT_rcache" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_rcache_ALL_COMPONENTS="$all_components" MCA_opal_rcache_STATIC_COMPONENTS="$static_components" MCA_opal_rcache_DSO_COMPONENTS="$dso_components" MCA_opal_rcache_STATIC_LTLIBS="$static_ltlibs" MCA_opal_rcache_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_rcache_ALL_SUBDIRS="$MCA_opal_rcache_ALL_SUBDIRS mca/rcache/$item" done MCA_opal_rcache_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_rcache_STATIC_SUBDIRS="$MCA_opal_rcache_STATIC_SUBDIRS mca/rcache/$item" done MCA_opal_rcache_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_rcache_DSO_SUBDIRS="$MCA_opal_rcache_DSO_SUBDIRS mca/rcache/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "rcache" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS reachable" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/reachable" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_reachable_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_reachable_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_reachable_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/reachable/libmca_reachable.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_reachable_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework reachable" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/reachable/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/reachable/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework reachable" >&5 $as_echo_n "checking for no configure components in framework reachable... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: weighted" >&5 $as_echo "weighted" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework reachable" >&5 $as_echo_n "checking for m4 configure components in framework reachable... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5 $as_echo "netlink" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component reachable:weighted (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/opal/mca/reachable/weighted" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_reachable" ; then if test "$DIRECT_reachable" = "weighted" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_reachable" = "1"; then : want_component=0 fi if test "$DISABLE_reachable_weighted" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_reachable" SHARED_COMPONENT="$DSO_reachable_weighted" STATIC_FRAMEWORK="$STATIC_reachable" STATIC_COMPONENT="$STATIC_reachable_weighted" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component reachable:weighted compile mode" >&5 $as_echo_n "checking for MCA component reachable:weighted compile mode... " >&6; } if test "$DIRECT_reachable" = "weighted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/reachable/weighted/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components weighted" if test "$compile_mode" = "dso" ; then dso_components="$dso_components weighted" else if test "reachable" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/reachable/weighted/lib${OPAL_LIB_PREFIX}mca_reachable_weighted.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/reachable/weighted/libmca_reachable_weighted.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_reachable_weighted_component;" >> $outfile.extern echo " &mca_reachable_weighted_component, " >> $outfile.struct static_components="$static_components weighted" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component reachable:weighted can compile" >&5 $as_echo_n "checking if MCA component reachable:weighted can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_reachable" = "weighted" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_reachable_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** reachable component weighted was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_reachable" = "weighted" ; then as_fn_error $? "*** reachable component weighted was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$reachable_weighted_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $reachable_weighted_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $reachable_weighted_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$reachable_weighted_WRAPPER_EXTRA_LIBS" = ""; 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_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 $reachable_weighted_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $reachable_weighted_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$reachable_weighted_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $reachable_weighted_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring reachable_weighted_WRAPPER_EXTRA_CPPFLAGS ($reachable_weighted_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring reachable_weighted_WRAPPER_EXTRA_CPPFLAGS ($reachable_weighted_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component reachable:weighted can compile" >&5 $as_echo_n "checking if MCA component reachable:weighted can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_reachable" = "weighted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"weighted\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"weighted\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_reachable" ; then if test "$DIRECT_reachable" = "weighted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"weighted\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"weighted\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components weighted" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_opal_reachable_weighted_DSO=1 else BUILD_opal_reachable_weighted_DSO=0 fi if test "$BUILD_opal_reachable_weighted_DSO" = "1"; then MCA_BUILD_opal_reachable_weighted_DSO_TRUE= MCA_BUILD_opal_reachable_weighted_DSO_FALSE='#' else MCA_BUILD_opal_reachable_weighted_DSO_TRUE='#' MCA_BUILD_opal_reachable_weighted_DSO_FALSE= fi ac_config_files="$ac_config_files opal/mca/reachable/weighted/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component reachable:netlink (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/reachable/netlink" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_reachable" ; then if test "$DIRECT_reachable" = "netlink" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_reachable" = "1"; then : want_component=0 fi if test "$DISABLE_reachable_netlink" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_reachable" SHARED_COMPONENT="$DSO_reachable_netlink" STATIC_FRAMEWORK="$STATIC_reachable" STATIC_COMPONENT="$STATIC_reachable_netlink" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component reachable:netlink compile mode" >&5 $as_echo_n "checking for MCA component reachable:netlink compile mode... " >&6; } if test "$DIRECT_reachable" = "netlink" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/reachable/netlink/Makefile" # 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_reachable_netlink_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=\"opal_reachable_netlink_happy\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_reachable_netlink_happy=1 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " #include #include " if test "x$ac_cv_header_linux_netlink_h" = xyes; then : else opal_reachable_netlink_happy=0 fi # this is terrible, but libnl-1 and libnl-3 are incompatible in # weird ways, and once there are libraries in LIBS for one, the # other is hard to get right. So if someone has already decided # we have libnl version 1, get out. Otherwise, see if we have # libnl-3, which is the only version supported by the netlink # component. if test $opal_libnl_version -eq 1; then : opal_reachable_netlink_happy=0 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 CPPFLAGS_save opal_tmp_CPPFLAGS LIBS_save LDFLAGS_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=\"CPPFLAGS_save opal_tmp_CPPFLAGS LIBS_save LDFLAGS_save\"" 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 libnl v3" >&5 $as_echo "$as_me: checking for libnl v3" >&6;} if test "$opal_want_libnl" != "no"; then : if test -z "$opal_libnl_location"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/libnl3" >&5 $as_echo_n "checking for /usr/include/libnl3... " >&6; } if test -d "/usr/include/libnl3"; then : opal_tmp_CPPFLAGS=-I/usr/include/libnl3 opal_libnlv3_happy=1 { $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 /usr/local/include/libnl3" >&5 $as_echo_n "checking for /usr/local/include/libnl3... " >&6; } if test -d "/usr/local/include/libnl3"; then : opal_tmp_CPPFLAGS=-I/usr/local/include/netlink3 opal_libnlv3_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 $as_echo "found" >&6; } else opal_libnlv3_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $opal_libnl_location/include/libnl3" >&5 $as_echo_n "checking for $opal_libnl_location/include/libnl3... " >&6; } if test -d "$opal_libnl_location/include/libnl3"; then : opal_tmp_CPPFLAGS="-I$opal_libnl_location/include/libnl3" opal_libnlv3_happy=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 $as_echo "found" >&6; } else opal_libnlv3_happy=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } fi fi CPPFLAGS_save=$CPPFLAGS CPPFLAGS="$opal_tmp_CPPFLAGS $CPPFLAGS" # Random note: netlink/version.h is only in libnl v3 - it is not in libnl v1. # Also, nl_recvmsgs_report is only in libnl v3. if test $opal_libnlv3_happy -eq 1; then : opal_check_package_reachable_netlink_save_CPPFLAGS="$CPPFLAGS" opal_check_package_reachable_netlink_save_LDFLAGS="$LDFLAGS" opal_check_package_reachable_netlink_save_LIBS="$LIBS" opal_check_package_reachable_netlink_orig_CPPFLAGS="$reachable_netlink_CPPFLAGS" opal_check_package_reachable_netlink_orig_LDFLAGS="$reachable_netlink_LDFLAGS" opal_check_package_reachable_netlink_orig_LIBS="$reachable_netlink_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_netlink_version_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_libnl_location | 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 netlink/version.h do : ac_fn_c_check_header_mongrel "$LINENO" "netlink/version.h" "ac_cv_header_netlink_version_h" "$ac_includes_default" if test "x$ac_cv_header_netlink_version_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NETLINK_VERSION_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_netlink_version_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : reachable_netlink_CPPFLAGS="$reachable_netlink_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in netlink/version.h do : ac_fn_c_check_header_mongrel "$LINENO" "netlink/version.h" "ac_cv_header_netlink_version_h" "$ac_includes_default" if test "x$ac_cv_header_netlink_version_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NETLINK_VERSION_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_nl_recvmsgs_report opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there reachable_netlink_LDFLAGS="$reachable_netlink_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_recvmsgs_report" >&5 $as_echo_n "checking for library containing nl_recvmsgs_report... " >&6; } if ${ac_cv_search_nl_recvmsgs_report+:} 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 nl_recvmsgs_report (); int main () { return nl_recvmsgs_report (); ; return 0; } _ACEOF for ac_lib in '' nl-3; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_nl_recvmsgs_report=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_nl_recvmsgs_report+:} false; then : break fi done if ${ac_cv_search_nl_recvmsgs_report+:} false; then : else ac_cv_search_nl_recvmsgs_report=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_recvmsgs_report" >&5 $as_echo "$ac_cv_search_nl_recvmsgs_report" >&6; } ac_res=$ac_cv_search_nl_recvmsgs_report 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_reachable_netlink_save_LDFLAGS" reachable_netlink_LDFLAGS="$opal_check_package_reachable_netlink_orig_LDFLAGS" unset ac_cv_search_nl_recvmsgs_report fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_libnl_location" 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 nl_recvmsgs_report" >&5 $as_echo_n "checking for library containing nl_recvmsgs_report... " >&6; } if ${ac_cv_search_nl_recvmsgs_report+:} 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 nl_recvmsgs_report (); int main () { return nl_recvmsgs_report (); ; return 0; } _ACEOF for ac_lib in '' nl-3; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_nl_recvmsgs_report=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_nl_recvmsgs_report+:} false; then : break fi done if ${ac_cv_search_nl_recvmsgs_report+:} false; then : else ac_cv_search_nl_recvmsgs_report=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_recvmsgs_report" >&5 $as_echo "$ac_cv_search_nl_recvmsgs_report" >&6; } ac_res=$ac_cv_search_nl_recvmsgs_report 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_reachable_netlink_save_LDFLAGS" reachable_netlink_LDFLAGS="$opal_check_package_reachable_netlink_orig_LDFLAGS" unset ac_cv_search_nl_recvmsgs_report fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : reachable_netlink_LDFLAGS="$reachable_netlink_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 nl_recvmsgs_report" >&5 $as_echo_n "checking for library containing nl_recvmsgs_report... " >&6; } if ${ac_cv_search_nl_recvmsgs_report+:} 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 nl_recvmsgs_report (); int main () { return nl_recvmsgs_report (); ; return 0; } _ACEOF for ac_lib in '' nl-3; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_nl_recvmsgs_report=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_nl_recvmsgs_report+:} false; then : break fi done if ${ac_cv_search_nl_recvmsgs_report+:} false; then : else ac_cv_search_nl_recvmsgs_report=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_recvmsgs_report" >&5 $as_echo "$ac_cv_search_nl_recvmsgs_report" >&6; } ac_res=$ac_cv_search_nl_recvmsgs_report 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_reachable_netlink_save_LDFLAGS" reachable_netlink_LDFLAGS="$opal_check_package_reachable_netlink_orig_LDFLAGS" unset ac_cv_search_nl_recvmsgs_report fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : reachable_netlink_LDFLAGS="$reachable_netlink_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 nl_recvmsgs_report" >&5 $as_echo_n "checking for library containing nl_recvmsgs_report... " >&6; } if ${ac_cv_search_nl_recvmsgs_report+:} 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 nl_recvmsgs_report (); int main () { return nl_recvmsgs_report (); ; return 0; } _ACEOF for ac_lib in '' nl-3; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_nl_recvmsgs_report=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_nl_recvmsgs_report+:} false; then : break fi done if ${ac_cv_search_nl_recvmsgs_report+:} false; then : else ac_cv_search_nl_recvmsgs_report=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_recvmsgs_report" >&5 $as_echo "$ac_cv_search_nl_recvmsgs_report" >&6; } ac_res=$ac_cv_search_nl_recvmsgs_report 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_reachable_netlink_save_LDFLAGS" reachable_netlink_LDFLAGS="$opal_check_package_reachable_netlink_orig_LDFLAGS" unset ac_cv_search_nl_recvmsgs_report 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 libnl-3 requires libnl v1 or v3" >&5 $as_echo_n "checking if libnl-3 requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void nl_recvmsgs_report (void); int main(int argc, char *argv[]) { nl_recvmsgs_report (); 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:179836: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lnl-3 $LIBS $reachable_netlink_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lnl-3 $LIBS $reachable_netlink_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:179843: \$? = $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 nl-3" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib nl-3" >&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, libnl-3 links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libnl-3 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 libnl-3 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libnl-3 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libnl-3." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libnl-3." >&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 nl-3 requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas nl-3 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 libnl-3 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libnl-3 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libnl-3." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libnl-3." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs nl-3" # 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 libnl-3 requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libnl-3 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 libnl-3 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libnl-3 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libnl-3." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libnl-3." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs nl-3" # 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_nl_recvmsgs_report" != "no" && test "$ac_cv_search_nl_recvmsgs_report" != "none required"; then : reachable_netlink_LIBS="$ac_cv_search_nl_recvmsgs_report " else reachable_netlink_LIBS="" 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_nl_recvmsgs_report opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there reachable_netlink_LDFLAGS="$reachable_netlink_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_recvmsgs_report" >&5 $as_echo_n "checking for library containing nl_recvmsgs_report... " >&6; } if ${ac_cv_search_nl_recvmsgs_report+:} 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 nl_recvmsgs_report (); int main () { return nl_recvmsgs_report (); ; return 0; } _ACEOF for ac_lib in '' nl-3; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_nl_recvmsgs_report=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_nl_recvmsgs_report+:} false; then : break fi done if ${ac_cv_search_nl_recvmsgs_report+:} false; then : else ac_cv_search_nl_recvmsgs_report=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_recvmsgs_report" >&5 $as_echo "$ac_cv_search_nl_recvmsgs_report" >&6; } ac_res=$ac_cv_search_nl_recvmsgs_report 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_reachable_netlink_save_LDFLAGS" reachable_netlink_LDFLAGS="$opal_check_package_reachable_netlink_orig_LDFLAGS" unset ac_cv_search_nl_recvmsgs_report fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_libnl_location" 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 nl_recvmsgs_report" >&5 $as_echo_n "checking for library containing nl_recvmsgs_report... " >&6; } if ${ac_cv_search_nl_recvmsgs_report+:} 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 nl_recvmsgs_report (); int main () { return nl_recvmsgs_report (); ; return 0; } _ACEOF for ac_lib in '' nl-3; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_nl_recvmsgs_report=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_nl_recvmsgs_report+:} false; then : break fi done if ${ac_cv_search_nl_recvmsgs_report+:} false; then : else ac_cv_search_nl_recvmsgs_report=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_recvmsgs_report" >&5 $as_echo "$ac_cv_search_nl_recvmsgs_report" >&6; } ac_res=$ac_cv_search_nl_recvmsgs_report 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_reachable_netlink_save_LDFLAGS" reachable_netlink_LDFLAGS="$opal_check_package_reachable_netlink_orig_LDFLAGS" unset ac_cv_search_nl_recvmsgs_report fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : reachable_netlink_LDFLAGS="$reachable_netlink_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 nl_recvmsgs_report" >&5 $as_echo_n "checking for library containing nl_recvmsgs_report... " >&6; } if ${ac_cv_search_nl_recvmsgs_report+:} 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 nl_recvmsgs_report (); int main () { return nl_recvmsgs_report (); ; return 0; } _ACEOF for ac_lib in '' nl-3; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_nl_recvmsgs_report=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_nl_recvmsgs_report+:} false; then : break fi done if ${ac_cv_search_nl_recvmsgs_report+:} false; then : else ac_cv_search_nl_recvmsgs_report=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_recvmsgs_report" >&5 $as_echo "$ac_cv_search_nl_recvmsgs_report" >&6; } ac_res=$ac_cv_search_nl_recvmsgs_report 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_reachable_netlink_save_LDFLAGS" reachable_netlink_LDFLAGS="$opal_check_package_reachable_netlink_orig_LDFLAGS" unset ac_cv_search_nl_recvmsgs_report fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : reachable_netlink_LDFLAGS="$reachable_netlink_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 nl_recvmsgs_report" >&5 $as_echo_n "checking for library containing nl_recvmsgs_report... " >&6; } if ${ac_cv_search_nl_recvmsgs_report+:} 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 nl_recvmsgs_report (); int main () { return nl_recvmsgs_report (); ; return 0; } _ACEOF for ac_lib in '' nl-3; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_nl_recvmsgs_report=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_nl_recvmsgs_report+:} false; then : break fi done if ${ac_cv_search_nl_recvmsgs_report+:} false; then : else ac_cv_search_nl_recvmsgs_report=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_recvmsgs_report" >&5 $as_echo "$ac_cv_search_nl_recvmsgs_report" >&6; } ac_res=$ac_cv_search_nl_recvmsgs_report 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_reachable_netlink_save_LDFLAGS" reachable_netlink_LDFLAGS="$opal_check_package_reachable_netlink_orig_LDFLAGS" unset ac_cv_search_nl_recvmsgs_report 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 libnl-3 requires libnl v1 or v3" >&5 $as_echo_n "checking if libnl-3 requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void nl_recvmsgs_report (void); int main(int argc, char *argv[]) { nl_recvmsgs_report (); 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:180561: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lnl-3 $LIBS $reachable_netlink_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lnl-3 $LIBS $reachable_netlink_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:180568: \$? = $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 nl-3" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib nl-3" >&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, libnl-3 links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libnl-3 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 libnl-3 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libnl-3 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libnl-3." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libnl-3." >&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 nl-3 requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas nl-3 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 libnl-3 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libnl-3 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libnl-3." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libnl-3." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs nl-3" # 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 libnl-3 requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libnl-3 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 libnl-3 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libnl-3 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libnl-3." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libnl-3." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs nl-3" # 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_nl_recvmsgs_report" != "no" && test "$ac_cv_search_nl_recvmsgs_report" != "none required"; then : reachable_netlink_LIBS="$ac_cv_search_nl_recvmsgs_report " else reachable_netlink_LIBS="" 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 : else reachable_netlink_CPPFLAGS="$opal_check_package_reachable_netlink_orig_CPPFLAGS" reachable_netlink_LDFLAGS="$opal_check_package_reachable_netlink_orig_LDFLAGS" reachable_netlink_LIBS="$opal_check_package_reachable_netlink_orig_LIBS" opal_libnlv3_happy=0 fi CPPFLAGS="$opal_check_package_reachable_netlink_save_CPPFLAGS" LDFLAGS="$opal_check_package_reachable_netlink_save_LDFLAGS" LIBS="$opal_check_package_reachable_netlink_save_LIBS" # Note that OPAL_CHECK_PACKAGE is going to add # -I$dir/include into reachable_netlink_CPPFLAGS. But because libnl v3 # puts the headers in $dir/include/libnl3, we need to # overwrite reachable_netlink_CPPFLAGS with -I$dir/include/libnl3. We can do # this unconditionally; we don't have to check for # success (checking for success occurs below). reachable_netlink_CPPFLAGS=$opal_tmp_CPPFLAGS fi # If we found libnl-3, we *also* need libnl-route-3 LIBS_save=$LIBS LDFLAGS_save=$LDFLAGS if test -n "$reachable_netlink_LDFLAGS"; then : LDFLAGS="$reachable_netlink_LDFLAGS $LDFLAGS" fi if test $opal_libnlv3_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_rtgen_request" >&5 $as_echo_n "checking for library containing nl_rtgen_request... " >&6; } if ${ac_cv_search_nl_rtgen_request+:} 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 nl_rtgen_request (); int main () { return nl_rtgen_request (); ; return 0; } _ACEOF for ac_lib in '' nl-route-3; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_nl_rtgen_request=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_nl_rtgen_request+:} false; then : break fi done if ${ac_cv_search_nl_rtgen_request+:} false; then : else ac_cv_search_nl_rtgen_request=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_rtgen_request" >&5 $as_echo "$ac_cv_search_nl_rtgen_request" >&6; } ac_res=$ac_cv_search_nl_rtgen_request if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else opal_libnlv3_happy=0 fi fi LIBS=$LIBS_save LDFLAGS=$LDFLAGS_save # Just because libnl* is evil, double check that the # netlink/version.h we found was for libnl v3. As far as we # know, netlink/version.h only first appeared in version # 3... but let's really be sure. if test $opal_libnlv3_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking to ensure these really are libnl v3 headers" >&5 $as_echo_n "checking to ensure these really are libnl v3 headers... " >&6; } if test -n "$reachable_netlink_CPPFLAGS"; then : CPPFLAGS="$reachable_netlink_CPPFLAGS $CPPFLAGS" fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef LIBNL_VER_MAJ #error "LIBNL_VER_MAJ not defined!" #endif /* to the best of our knowledge, version.h only exists in libnl v3 */ #if LIBNL_VER_MAJ != 3 #error "LIBNL_VER_MAJ != 3, I am sad" #endif int main () { ; 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; } opal_libnlv3_happy=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi CPPFLAGS=$CPPFLAGS_save else opal_libnlv3_happy=0 fi # If we found everything if test $opal_libnlv3_happy -eq 1; then : reachable_netlink_LIBS="-lnl-3 -lnl-route-3" OPAL_HAVE_LIBNL3=1 else # OPAL_CHECK_PACKAGE(...,nl_recvmsgs_report,...) might have set the variables below # so reset them if libnl v3 cannot be used reachable_netlink_CPPFLAGS="" reachable_netlink_LDFLAGS="" reachable_netlink_LIBS="" 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_HAVE_LIBNL3" != "1"; then : opal_reachable_netlink_happy=0 fi fi if test $opal_reachable_netlink_happy -eq 1; then : should_build=$should_build else should_build=0 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/reachable/netlink/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components netlink" if test "$compile_mode" = "dso" ; then dso_components="$dso_components netlink" else if test "reachable" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/reachable/netlink/lib${OPAL_LIB_PREFIX}mca_reachable_netlink.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/reachable/netlink/libmca_reachable_netlink.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_reachable_netlink_component;" >> $outfile.extern echo " &mca_reachable_netlink_component, " >> $outfile.struct static_components="$static_components netlink" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component reachable:netlink can compile" >&5 $as_echo_n "checking if MCA component reachable:netlink can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_reachable" = "netlink" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_reachable_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** reachable component netlink was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_reachable" = "netlink" ; then as_fn_error $? "*** reachable component netlink was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$reachable_netlink_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $reachable_netlink_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $reachable_netlink_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$reachable_netlink_WRAPPER_EXTRA_LIBS" = ""; 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_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 $reachable_netlink_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $reachable_netlink_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$reachable_netlink_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $reachable_netlink_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring reachable_netlink_WRAPPER_EXTRA_CPPFLAGS ($reachable_netlink_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring reachable_netlink_WRAPPER_EXTRA_CPPFLAGS ($reachable_netlink_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component reachable:netlink can compile" >&5 $as_echo_n "checking if MCA component reachable:netlink can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_reachable" = "netlink" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"netlink\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"netlink\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_reachable" ; then if test "$DIRECT_reachable" = "netlink" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"netlink\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"netlink\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components netlink" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_reachable_netlink_DSO=1 else BUILD_opal_reachable_netlink_DSO=0 fi if test "$BUILD_opal_reachable_netlink_DSO" = "1"; then MCA_BUILD_opal_reachable_netlink_DSO_TRUE= MCA_BUILD_opal_reachable_netlink_DSO_FALSE='#' else MCA_BUILD_opal_reachable_netlink_DSO_TRUE='#' MCA_BUILD_opal_reachable_netlink_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/reachable/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component reachable:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/reachable/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_reachable" ; then if test "$DIRECT_reachable" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_reachable" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_reachable_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_reachable" str="SHARED_COMPONENT=\$DSO_reachable_$component" eval $str STATIC_FRAMEWORK="$STATIC_reachable" str="STATIC_COMPONENT=\$STATIC_reachable_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component reachable:$component compile mode" >&5 $as_echo_n "checking for MCA component reachable:$component compile mode... " >&6; } if test "$DIRECT_reachable" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/reachable/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/reachable/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/reachable/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then reachable_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then reachable_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/reachable/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "reachable" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/reachable/$component/lib${OPAL_LIB_PREFIX}mca_reachable_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/reachable/$component/libmca_reachable_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_reachable_$component_component;" >> $outfile.extern echo " &mca_reachable_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component reachable:$component can compile" >&5 $as_echo_n "checking if MCA component reachable:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_reachable" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_reachable_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** reachable component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_reachable" = "$component" ; then as_fn_error $? "*** reachable component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$reachable_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$reachable_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component reachable:$component can compile" >&5 $as_echo_n "checking if MCA component reachable:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_reachable" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_reachable" ; then if test "$DIRECT_reachable" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_reachable_ALL_COMPONENTS="$all_components" MCA_opal_reachable_STATIC_COMPONENTS="$static_components" MCA_opal_reachable_DSO_COMPONENTS="$dso_components" MCA_opal_reachable_STATIC_LTLIBS="$static_ltlibs" MCA_opal_reachable_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_reachable_ALL_SUBDIRS="$MCA_opal_reachable_ALL_SUBDIRS mca/reachable/$item" done MCA_opal_reachable_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_reachable_STATIC_SUBDIRS="$MCA_opal_reachable_STATIC_SUBDIRS mca/reachable/$item" done MCA_opal_reachable_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_reachable_DSO_SUBDIRS="$MCA_opal_reachable_DSO_SUBDIRS mca/reachable/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "reachable" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS shmem" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/shmem" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_shmem_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_shmem_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_shmem_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/shmem/libmca_shmem.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_shmem_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework shmem" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/shmem/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/shmem/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework shmem" >&5 $as_echo_n "checking for no configure components in framework shmem... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework shmem" >&5 $as_echo_n "checking for m4 configure components in framework shmem... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: mmap, posix, sysv" >&5 $as_echo "mmap, posix, sysv" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component shmem:mmap (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/shmem/mmap" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_shmem" ; then if test "$DIRECT_shmem" = "mmap" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_shmem" = "1"; then : want_component=0 fi if test "$DISABLE_shmem_mmap" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_shmem" SHARED_COMPONENT="$DSO_shmem_mmap" STATIC_FRAMEWORK="$STATIC_shmem" STATIC_COMPONENT="$STATIC_shmem_mmap" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component shmem:mmap compile mode" >&5 $as_echo_n "checking for MCA component shmem:mmap compile mode... " >&6; } if test "$DIRECT_shmem" = "mmap" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/shmem/mmap/Makefile" # do we have the mmap shm stuff? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want mmap shared memory support" >&5 $as_echo_n "checking if want mmap shared memory support... " >&6; } # Check whether --enable-mmap-shmem was given. if test "${enable_mmap_shmem+set}" = set; then : enableval=$enable_mmap_shmem; fi if test "$enable_mmap_shmem" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } shmem_mmap_sm_build_mmap=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 library containing mmap" >&5 $as_echo_n "checking for library containing mmap... " >&6; } if ${ac_cv_search_mmap+:} 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 mmap (); int main () { return mmap (); ; return 0; } _ACEOF for ac_lib in '' c; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mmap=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mmap+:} false; then : break fi done if ${ac_cv_search_mmap+:} false; then : else ac_cv_search_mmap=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmap" >&5 $as_echo "$ac_cv_search_mmap" >&6; } ac_res=$ac_cv_search_mmap if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" shmem_mmap_sm_build_mmap=1 else shmem_mmap_sm_build_mmap=0 fi fi if test "$enable_mmap_shmem" = "yes" && test "$shmem_mmap_sm_build_mmap" = "0"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap shared memory support requested but not found" >&5 $as_echo "$as_me: WARNING: mmap shared memory support requested but not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$shmem_mmap_sm_build_mmap" = "1"; then : should_build=$should_build else should_build=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_SHMEM_MMAP $shmem_mmap_sm_build_mmap _ACEOF opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/shmem/mmap/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components mmap" if test "$compile_mode" = "dso" ; then dso_components="$dso_components mmap" else if test "shmem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/shmem/mmap/lib${OPAL_LIB_PREFIX}mca_shmem_mmap.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/shmem/mmap/libmca_shmem_mmap.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_shmem_mmap_component;" >> $outfile.extern echo " &mca_shmem_mmap_component, " >> $outfile.struct static_components="$static_components mmap" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component shmem:mmap can compile" >&5 $as_echo_n "checking if MCA component shmem:mmap can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_shmem" = "mmap" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_shmem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** shmem component mmap was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_shmem" = "mmap" ; then as_fn_error $? "*** shmem component mmap was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$shmem_mmap_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $shmem_mmap_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $shmem_mmap_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$shmem_mmap_WRAPPER_EXTRA_LIBS" = ""; 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_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 $shmem_mmap_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $shmem_mmap_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$shmem_mmap_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $shmem_mmap_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring shmem_mmap_WRAPPER_EXTRA_CPPFLAGS ($shmem_mmap_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring shmem_mmap_WRAPPER_EXTRA_CPPFLAGS ($shmem_mmap_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component shmem:mmap can compile" >&5 $as_echo_n "checking if MCA component shmem:mmap can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_shmem" = "mmap" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mmap\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mmap\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_shmem" ; then if test "$DIRECT_shmem" = "mmap" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mmap\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mmap\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components mmap" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_shmem_mmap_DSO=1 else BUILD_opal_shmem_mmap_DSO=0 fi if test "$BUILD_opal_shmem_mmap_DSO" = "1"; then MCA_BUILD_opal_shmem_mmap_DSO_TRUE= MCA_BUILD_opal_shmem_mmap_DSO_FALSE='#' else MCA_BUILD_opal_shmem_mmap_DSO_TRUE='#' MCA_BUILD_opal_shmem_mmap_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component shmem:posix (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/shmem/posix" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_shmem" ; then if test "$DIRECT_shmem" = "posix" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_shmem" = "1"; then : want_component=0 fi if test "$DISABLE_shmem_posix" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_shmem" SHARED_COMPONENT="$DSO_shmem_posix" STATIC_FRAMEWORK="$STATIC_shmem" STATIC_COMPONENT="$STATIC_shmem_posix" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component shmem:posix compile mode" >&5 $as_echo_n "checking for MCA component shmem:posix compile mode... " >&6; } if test "$DIRECT_shmem" = "posix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/shmem/posix/Makefile" # do we have the posix shm stuff? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want POSIX shared memory support" >&5 $as_echo_n "checking if want POSIX shared memory support... " >&6; } # Check whether --enable-posix-shmem was given. if test "${enable_posix_shmem+set}" = set; then : enableval=$enable_posix_shmem; fi if test "$enable_posix_shmem" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } shmem_posix_sm_build_posix=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 $as_echo_n "checking for library containing shm_open... " >&6; } if ${ac_cv_search_shm_open+:} 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 shm_open (); int main () { return shm_open (); ; return 0; } _ACEOF for ac_lib in '' rt; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_shm_open=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_shm_open+:} false; then : break fi done if ${ac_cv_search_shm_open+:} false; then : else ac_cv_search_shm_open=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 $as_echo "$ac_cv_search_shm_open" >&6; } ac_res=$ac_cv_search_shm_open if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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 ${shmem_posix_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$shmem_posix_LIBS"; then : shmem_posix_LIBS=$arg else shmem_posix_LIBS="$shmem_posix_LIBS $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 shmem_posix_have_shm_open=1 shmem_posix_sm_build_posix=1 else shmem_posix_have_shm_open=0 shmem_posix_sm_build_posix=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SHMEM_POSIX $shmem_posix_have_shm_open _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 fi if test "$enable_posix_shmem" = "yes" && test "$shmem_posix_sm_build_posix" = "0"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: POSIX shared memory support requested but not found" >&5 $as_echo "$as_me: WARNING: POSIX shared memory support requested but not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$shmem_posix_sm_build_posix" = "1"; then : should_build=$should_build else should_build=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_SHMEM_POSIX $shmem_posix_sm_build_posix _ACEOF opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/shmem/posix/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components posix" if test "$compile_mode" = "dso" ; then dso_components="$dso_components posix" else if test "shmem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/shmem/posix/lib${OPAL_LIB_PREFIX}mca_shmem_posix.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/shmem/posix/libmca_shmem_posix.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_shmem_posix_component;" >> $outfile.extern echo " &mca_shmem_posix_component, " >> $outfile.struct static_components="$static_components posix" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component shmem:posix can compile" >&5 $as_echo_n "checking if MCA component shmem:posix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_shmem" = "posix" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_shmem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** shmem component posix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_shmem" = "posix" ; then as_fn_error $? "*** shmem component posix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$shmem_posix_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $shmem_posix_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $shmem_posix_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$shmem_posix_WRAPPER_EXTRA_LIBS" = ""; 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_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 $shmem_posix_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $shmem_posix_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$shmem_posix_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $shmem_posix_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring shmem_posix_WRAPPER_EXTRA_CPPFLAGS ($shmem_posix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring shmem_posix_WRAPPER_EXTRA_CPPFLAGS ($shmem_posix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component shmem:posix can compile" >&5 $as_echo_n "checking if MCA component shmem:posix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_shmem" = "posix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_shmem" ; then if test "$DIRECT_shmem" = "posix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components posix" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_shmem_posix_DSO=1 else BUILD_opal_shmem_posix_DSO=0 fi if test "$BUILD_opal_shmem_posix_DSO" = "1"; then MCA_BUILD_opal_shmem_posix_DSO_TRUE= MCA_BUILD_opal_shmem_posix_DSO_FALSE='#' else MCA_BUILD_opal_shmem_posix_DSO_TRUE='#' MCA_BUILD_opal_shmem_posix_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component shmem:sysv (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/shmem/sysv" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_shmem" ; then if test "$DIRECT_shmem" = "sysv" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_shmem" = "1"; then : want_component=0 fi if test "$DISABLE_shmem_sysv" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_shmem" SHARED_COMPONENT="$DSO_shmem_sysv" STATIC_FRAMEWORK="$STATIC_shmem" STATIC_COMPONENT="$STATIC_shmem_sysv" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component shmem:sysv compile mode" >&5 $as_echo_n "checking for MCA component shmem:sysv compile mode... " >&6; } if test "$DIRECT_shmem" = "sysv" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files opal/mca/shmem/sysv/Makefile" # do we have the sysv shm stuff? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want SYSV shared memory support" >&5 $as_echo_n "checking if want SYSV shared memory support... " >&6; } # Check whether --enable-sysv-shmem was given. if test "${enable_sysv_shmem+set}" = set; then : enableval=$enable_sysv_shmem; fi if test "$enable_sysv_shmem" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } shmem_sysv_sm_build_sysv=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget" if test "x$ac_cv_func_shmget" = xyes; then : shmem_sysv_sm_build_sysv=1 else shmem_sysv_sm_build_sysv=0 fi fi if test "$enable_sysv_shmem" = "yes" && test "$shmem_sysv_sm_build_sysv" = "0"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SYSV shared memory support requested but not found" >&5 $as_echo "$as_me: WARNING: SYSV shared memory support requested but not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$shmem_sysv_sm_build_sysv" = "1"; then : should_build=$should_build else should_build=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_SHMEM_SYSV $shmem_sysv_sm_build_sysv _ACEOF opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/shmem/sysv/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components sysv" if test "$compile_mode" = "dso" ; then dso_components="$dso_components sysv" else if test "shmem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/shmem/sysv/lib${OPAL_LIB_PREFIX}mca_shmem_sysv.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/shmem/sysv/libmca_shmem_sysv.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_shmem_sysv_component;" >> $outfile.extern echo " &mca_shmem_sysv_component, " >> $outfile.struct static_components="$static_components sysv" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component shmem:sysv can compile" >&5 $as_echo_n "checking if MCA component shmem:sysv can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_shmem" = "sysv" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_shmem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** shmem component sysv was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_shmem" = "sysv" ; then as_fn_error $? "*** shmem component sysv was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$shmem_sysv_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $shmem_sysv_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $shmem_sysv_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$shmem_sysv_WRAPPER_EXTRA_LIBS" = ""; 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_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 $shmem_sysv_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $shmem_sysv_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$shmem_sysv_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $shmem_sysv_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring shmem_sysv_WRAPPER_EXTRA_CPPFLAGS ($shmem_sysv_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring shmem_sysv_WRAPPER_EXTRA_CPPFLAGS ($shmem_sysv_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component shmem:sysv can compile" >&5 $as_echo_n "checking if MCA component shmem:sysv can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_shmem" = "sysv" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sysv\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sysv\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_shmem" ; then if test "$DIRECT_shmem" = "sysv" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sysv\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sysv\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components sysv" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_shmem_sysv_DSO=1 else BUILD_opal_shmem_sysv_DSO=0 fi if test "$BUILD_opal_shmem_sysv_DSO" = "1"; then MCA_BUILD_opal_shmem_sysv_DSO_TRUE= MCA_BUILD_opal_shmem_sysv_DSO_FALSE='#' else MCA_BUILD_opal_shmem_sysv_DSO_TRUE='#' MCA_BUILD_opal_shmem_sysv_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/opal/mca/shmem/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component shmem:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/opal/mca/shmem/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_shmem" ; then if test "$DIRECT_shmem" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_shmem" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_shmem_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_shmem" str="SHARED_COMPONENT=\$DSO_shmem_$component" eval $str STATIC_FRAMEWORK="$STATIC_shmem" str="STATIC_COMPONENT=\$STATIC_shmem_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component shmem:$component compile mode" >&5 $as_echo_n "checking for MCA component shmem:$component compile mode... " >&6; } if test "$DIRECT_shmem" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # opal/mca/shmem/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="opal/mca/shmem/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/opal/mca/shmem/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then shmem_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then shmem_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/shmem/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "shmem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/shmem/$component/lib${OPAL_LIB_PREFIX}mca_shmem_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/shmem/$component/libmca_shmem_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_shmem_$component_component;" >> $outfile.extern echo " &mca_shmem_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component shmem:$component can compile" >&5 $as_echo_n "checking if MCA component shmem:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_shmem" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_shmem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** shmem component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_shmem" = "$component" ; then as_fn_error $? "*** shmem component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$shmem_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$shmem_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component shmem:$component can compile" >&5 $as_echo_n "checking if MCA component shmem:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_shmem" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_shmem" ; then if test "$DIRECT_shmem" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_opal_shmem_ALL_COMPONENTS="$all_components" MCA_opal_shmem_STATIC_COMPONENTS="$static_components" MCA_opal_shmem_DSO_COMPONENTS="$dso_components" MCA_opal_shmem_STATIC_LTLIBS="$static_ltlibs" MCA_opal_shmem_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_shmem_ALL_SUBDIRS="$MCA_opal_shmem_ALL_SUBDIRS mca/shmem/$item" done MCA_opal_shmem_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_shmem_STATIC_SUBDIRS="$MCA_opal_shmem_STATIC_SUBDIRS mca/shmem/$item" done MCA_opal_shmem_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_shmem_DSO_SUBDIRS="$MCA_opal_shmem_DSO_SUBDIRS mca/shmem/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "shmem" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS timer" MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/timer" MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_opal_timer_ALL_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_opal_timer_DSO_SUBDIRS)" MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_opal_timer_STATIC_SUBDIRS)" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/timer/libmca_timer.la" MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_opal_timer_STATIC_LTLIBS)" timer_base_include= # All components look at this value # Check whether --with-timer was given. if test "${with_timer+set}" = set; then : withval=$with_timer; fi # first, compile all the components opal_show_subsubtitle "Configuring MCA framework timer" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=opal/mca/timer/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files opal/mca/timer/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework timer" >&5 $as_echo_n "checking for no configure components in framework timer... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework timer" >&5 $as_echo_n "checking for m4 configure components in framework timer... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: altix, darwin, linux, solaris" >&5 $as_echo "altix, darwin, linux, solaris" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component timer:altix (m4 configuration macro, priority 100)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/timer/altix" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_timer" ; then if test "$DIRECT_timer" = "altix" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_timer" = "1"; then : want_component=0 fi if test "$DISABLE_timer_altix" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:altix compile mode" >&5 $as_echo_n "checking for MCA component timer:altix compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/timer/altix/Makefile" if test "$with_timer" = "altix"; then : timer_altix_happy="yes" timer_altix_should_use=1 else timer_altix_should_use=0 if test "$with_timer" = ""; then : timer_altix_happy="yes" else timer_altix_happy="no" fi fi if test "$timer_altix_happy" = "yes"; then : ac_fn_c_check_header_mongrel "$LINENO" "sn/mmtimer.h" "ac_cv_header_sn_mmtimer_h" "$ac_includes_default" if test "x$ac_cv_header_sn_mmtimer_h" = xyes; then : timer_altix_happy="yes" else timer_altix_happy="no" fi fi if test "$timer_altix_happy" = "yes"; then : for ac_header in sys/ioctl.h sys/mman.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 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 fi if test "$timer_altix_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MM timer can be opened" >&5 $as_echo_n "checking if MM timer can be opened... " >&6; } if ${ompi_cv_mm_timer_mmap+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include #include int main () { int fd; fd = open(MMTIMER_FULLNAME, O_RDONLY); if (-1 ==fd) return 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_cv_mm_timer_mmap="yes" else ompi_cv_mm_timer_mmap="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_mm_timer_mmap" >&5 $as_echo "$ompi_cv_mm_timer_mmap" >&6; } if test "$ompi_cv_mm_timer_mmap" = "yes"; then : timer_altix_happy="yes" else timer_altix_happy="no" fi fi if test "$timer_altix_happy" = "no" && \ test "$timer_altix_should_use" = "1"; then : as_fn_error $? "Altix timer requested but not available. Aborting." "$LINENO" 5 fi if test "$timer_altix_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/timer/altix/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components altix" if test "$compile_mode" = "dso" ; then dso_components="$dso_components altix" else if test "timer" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/timer/altix/lib${OPAL_LIB_PREFIX}mca_timer_altix.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/timer/altix/libmca_timer_altix.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_timer_altix_component;" >> $outfile.extern echo " &mca_timer_altix_component, " >> $outfile.struct static_components="$static_components altix" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:altix can compile" >&5 $as_echo_n "checking if MCA component timer:altix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_timer" = "altix" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_timer_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** timer component altix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_timer" = "altix" ; then as_fn_error $? "*** timer component altix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$timer_altix_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $timer_altix_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $timer_altix_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$timer_altix_WRAPPER_EXTRA_LIBS" = ""; 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_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 $timer_altix_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $timer_altix_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$timer_altix_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $timer_altix_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring timer_altix_WRAPPER_EXTRA_CPPFLAGS ($timer_altix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring timer_altix_WRAPPER_EXTRA_CPPFLAGS ($timer_altix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:altix can compile" >&5 $as_echo_n "checking if MCA component timer:altix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_timer" = "altix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"altix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_timer" ; then if test "$DIRECT_timer" = "altix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"altix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components altix" fi if test "$should_build" = "1"; then : timer_base_include="altix/timer_altix.h" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_timer_altix_DSO=1 else BUILD_opal_timer_altix_DSO=0 fi if test "$BUILD_opal_timer_altix_DSO" = "1"; then MCA_BUILD_opal_timer_altix_DSO_TRUE= MCA_BUILD_opal_timer_altix_DSO_FALSE='#' else MCA_BUILD_opal_timer_altix_DSO_TRUE='#' MCA_BUILD_opal_timer_altix_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component timer:darwin (m4 configuration macro, priority 30)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/timer/darwin" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_timer" ; then if test "$DIRECT_timer" = "darwin" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_timer" = "1"; then : want_component=0 fi if test "$DISABLE_timer_darwin" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:darwin compile mode" >&5 $as_echo_n "checking for MCA component timer:darwin compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/timer/darwin/Makefile" if test "$with_timer" = "darwin"; then : timer_darwin_happy="yes" timer_darwin_should_use=1 else timer_darwin_should_use=0 if test "$with_timer" = ""; then : timer_darwin_happy="yes" else timer_darwin_happy="no" fi fi if test "$timer_darwin_happy" = "yes"; then : for ac_header in mach/mach_time.h do : ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default" if test "x$ac_cv_header_mach_mach_time_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MACH_MACH_TIME_H 1 _ACEOF fi done ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time" if test "x$ac_cv_func_mach_absolute_time" = xyes; then : timer_darwin_happy="yes" else timer_darwin_happy="no" fi fi if test "$timer_darwin_happy" = "no" && \ test "$timer_darwin_should_use" = "1"; then : as_fn_error $? "Darwin timer requested but not available. Aborting." "$LINENO" 5 fi if test "$timer_darwin_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/timer/darwin/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components darwin" if test "$compile_mode" = "dso" ; then dso_components="$dso_components darwin" else if test "timer" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/timer/darwin/lib${OPAL_LIB_PREFIX}mca_timer_darwin.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/timer/darwin/libmca_timer_darwin.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_timer_darwin_component;" >> $outfile.extern echo " &mca_timer_darwin_component, " >> $outfile.struct static_components="$static_components darwin" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:darwin can compile" >&5 $as_echo_n "checking if MCA component timer:darwin can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_timer" = "darwin" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_timer_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** timer component darwin was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_timer" = "darwin" ; then as_fn_error $? "*** timer component darwin was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$timer_darwin_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $timer_darwin_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $timer_darwin_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$timer_darwin_WRAPPER_EXTRA_LIBS" = ""; 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_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 $timer_darwin_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $timer_darwin_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$timer_darwin_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $timer_darwin_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring timer_darwin_WRAPPER_EXTRA_CPPFLAGS ($timer_darwin_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring timer_darwin_WRAPPER_EXTRA_CPPFLAGS ($timer_darwin_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:darwin can compile" >&5 $as_echo_n "checking if MCA component timer:darwin can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_timer" = "darwin" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_timer" ; then if test "$DIRECT_timer" = "darwin" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"darwin\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components darwin" fi if test "$should_build" = "1"; then : timer_base_include="darwin/timer_darwin.h" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_timer_darwin_DSO=1 else BUILD_opal_timer_darwin_DSO=0 fi if test "$BUILD_opal_timer_darwin_DSO" = "1"; then MCA_BUILD_opal_timer_darwin_DSO_TRUE= MCA_BUILD_opal_timer_darwin_DSO_FALSE='#' else MCA_BUILD_opal_timer_darwin_DSO_TRUE='#' MCA_BUILD_opal_timer_darwin_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component timer:linux (m4 configuration macro, priority 30)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/timer/linux" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_timer" ; then if test "$DIRECT_timer" = "linux" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_timer" = "1"; then : want_component=0 fi if test "$DISABLE_timer_linux" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:linux compile mode" >&5 $as_echo_n "checking for MCA component timer:linux compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/timer/linux/Makefile" if test "$with_timer" = "linux"; then : timer_linux_happy="yes" timer_linux_should_use=1 else timer_linux_should_use=0 if test "$with_timer" = ""; then : timer_linux_happy="yes" else timer_linux_happy="no" fi fi case "${host}" in i?86-*linux*|x86_64*linux*|ia64-*linux*|powerpc-*linux*|powerpc64-*linux*|powerpc64le-*linux*|powerpcle-*linux*|sparc*-*linux*|aarch64-*linux*) if test "$timer_linux_happy" = "yes"; then : if test -r "/proc/cpuinfo"; then : timer_linux_happy="yes" else timer_linux_happy="no" fi fi ;; *) timer_linux_happy="no" ;; esac if test "$timer_linux_happy" = "no" && \ test "$timer_linux_should_use" = "1"; then : as_fn_error $? "Linux timer requested but not available. Aborting." "$LINENO" 5 fi if test "$timer_linux_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/timer/linux/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components linux" if test "$compile_mode" = "dso" ; then dso_components="$dso_components linux" else if test "timer" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/timer/linux/lib${OPAL_LIB_PREFIX}mca_timer_linux.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/timer/linux/libmca_timer_linux.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_timer_linux_component;" >> $outfile.extern echo " &mca_timer_linux_component, " >> $outfile.struct static_components="$static_components linux" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:linux can compile" >&5 $as_echo_n "checking if MCA component timer:linux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_timer" = "linux" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_timer_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** timer component linux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_timer" = "linux" ; then as_fn_error $? "*** timer component linux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$timer_linux_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $timer_linux_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $timer_linux_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$timer_linux_WRAPPER_EXTRA_LIBS" = ""; 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_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 $timer_linux_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $timer_linux_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$timer_linux_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $timer_linux_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring timer_linux_WRAPPER_EXTRA_CPPFLAGS ($timer_linux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring timer_linux_WRAPPER_EXTRA_CPPFLAGS ($timer_linux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:linux can compile" >&5 $as_echo_n "checking if MCA component timer:linux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_timer" = "linux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_timer" ; then if test "$DIRECT_timer" = "linux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components linux" fi if test "$should_build" = "1"; then : timer_base_include="linux/timer_linux.h" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_timer_linux_DSO=1 else BUILD_opal_timer_linux_DSO=0 fi if test "$BUILD_opal_timer_linux_DSO" = "1"; then MCA_BUILD_opal_timer_linux_DSO_TRUE= MCA_BUILD_opal_timer_linux_DSO_FALSE='#' else MCA_BUILD_opal_timer_linux_DSO_TRUE='#' MCA_BUILD_opal_timer_linux_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component timer:solaris (m4 configuration macro, priority 30)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/opal/mca/timer/solaris" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_timer" ; then if test "$DIRECT_timer" = "solaris" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_timer" = "1"; then : want_component=0 fi if test "$DISABLE_timer_solaris" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component timer:solaris compile mode" >&5 $as_echo_n "checking for MCA component timer:solaris compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files opal/mca/timer/solaris/Makefile" if test "$with_timer" = "solaris"; then : timer_solaris_happy="yes" timer_solaris_should_use=1 else timer_solaris_should_use=0 if test "$with_timer" = ""; then : timer_solaris_happy="yes" else timer_solaris_happy="no" fi fi if test "$timer_solaris_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime" if test "x$ac_cv_func_gethrtime" = xyes; then : timer_solaris_happy="yes" else timer_solaris_happy="no" fi fi if test "$timer_solaris_happy" = "no" && \ test "$timer_solaris_should_use" = "1"; then : as_fn_error $? "Solaris timer requested but not available. Aborting." "$LINENO" 5 fi if test "$timer_solaris_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/opal/mca/timer/solaris/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components solaris" if test "$compile_mode" = "dso" ; then dso_components="$dso_components solaris" else if test "timer" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/timer/solaris/lib${OPAL_LIB_PREFIX}mca_timer_solaris.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/timer/solaris/libmca_timer_solaris.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_timer_solaris_component;" >> $outfile.extern echo " &mca_timer_solaris_component, " >> $outfile.struct static_components="$static_components solaris" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:solaris can compile" >&5 $as_echo_n "checking if MCA component timer:solaris can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_timer" = "solaris" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_opal_timer_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** timer component solaris was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_timer" = "solaris" ; then as_fn_error $? "*** timer component solaris was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$timer_solaris_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $timer_solaris_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $timer_solaris_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$timer_solaris_WRAPPER_EXTRA_LIBS" = ""; 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_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 $timer_solaris_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $timer_solaris_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$timer_solaris_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $timer_solaris_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring timer_solaris_WRAPPER_EXTRA_CPPFLAGS ($timer_solaris_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring timer_solaris_WRAPPER_EXTRA_CPPFLAGS ($timer_solaris_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component timer:solaris can compile" >&5 $as_echo_n "checking if MCA component timer:solaris can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_timer" = "solaris" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_timer" ; then if test "$DIRECT_timer" = "solaris" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components solaris" fi if test "$should_build" = "1"; then : timer_base_include="solaris/timer_solaris.h" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_opal_timer_solaris_DSO=1 else BUILD_opal_timer_solaris_DSO=0 fi if test "$BUILD_opal_timer_solaris_DSO" = "1"; then MCA_BUILD_opal_timer_solaris_DSO_TRUE= MCA_BUILD_opal_timer_solaris_DSO_FALSE='#' else MCA_BUILD_opal_timer_solaris_DSO_TRUE='#' MCA_BUILD_opal_timer_solaris_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_opal_timer_ALL_COMPONENTS="$all_components" MCA_opal_timer_STATIC_COMPONENTS="$static_components" MCA_opal_timer_DSO_COMPONENTS="$dso_components" MCA_opal_timer_STATIC_LTLIBS="$static_ltlibs" MCA_opal_timer_ALL_SUBDIRS= for item in $all_components ; do MCA_opal_timer_ALL_SUBDIRS="$MCA_opal_timer_ALL_SUBDIRS mca/timer/$item" done MCA_opal_timer_STATIC_SUBDIRS= for item in $static_components ; do MCA_opal_timer_STATIC_SUBDIRS="$MCA_opal_timer_STATIC_SUBDIRS mca/timer/$item" done MCA_opal_timer_DSO_SUBDIRS= for item in $dso_components ; do MCA_opal_timer_DSO_SUBDIRS="$MCA_opal_timer_DSO_SUBDIRS mca/timer/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "timer" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # someone should have set this... if test "$timer_base_include" = "" ; then timer_base_include="base/timer_base_null.h" fi cat >>confdefs.h <<_ACEOF #define MCA_timer_IMPLEMENTATION_HEADER "opal/mca/timer/$timer_base_include" _ACEOF # note that mca_wrapper_extra_* is a running list, and we take checkpoints at the end of our project opal_mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags" opal_mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags" opal_mca_wrapper_extra_libs="$mca_wrapper_extra_libs" # BWB: Until projects have separate configure scripts # and can skip running all of ORTE, just avoid recursing # into orte sub directory if orte disabled if (test "orte" = "ompi" && test "$enable_mpi" != "no") || test "orte" = "opal" || test "orte" = "orte" || test "orte" = "oshmem"; then MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS orte" MCA_PROJECT_DIST_SUBDIRS="$MCA_PROJECT_DIST_SUBDIRS orte" fi # can't use a variable rename here because these need to be evaled # at auto* time. opal_show_subtitle "Configuring MCA for orte" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks for orte" >&5 $as_echo_n "checking for frameworks for orte... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: common, errmgr, ess, filem, grpcomm, iof, odls, oob, plm, ras, regx, rmaps, rml, routed, rtc, schizo, snapc, sstore, state" >&5 $as_echo "common, errmgr, ess, filem, grpcomm, iof, odls, oob, plm, ras, regx, rmaps, rml, routed, rtc, schizo, snapc, sstore, state" >&6; } # iterate through the list of frameworks. There is something # funky with m4 foreach if the list is defined, but empty. It # will call the 3rd argument once with an empty value for the # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK # with an empty second argument. Grrr.... # if there isn't a project list, abort # # Also setup two variables for Makefiles: # MCA_project_FRAMEWORKS - list of frameworks in that project # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing # to more libraries) that must be included # in the project's main library MCA_orte_FRAMEWORKS= MCA_orte_FRAMEWORKS_SUBDIRS= MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS= MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS= MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= MCA_orte_FRAMEWORK_LIBS= MCA_orte_FRAMEWORKS="common $MCA_orte_FRAMEWORKS" MCA_orte_FRAMEWORKS_SUBDIRS="mca/common $MCA_orte_FRAMEWORKS_SUBDIRS" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_orte_common_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_orte_common_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_orte_common_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_common_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework common" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/common as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/common/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework common" >&5 $as_echo_n "checking for no configure components in framework common... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework common" >&5 $as_echo_n "checking for m4 configure components in framework common... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: alps" >&5 $as_echo "alps" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component common:alps (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/common/alps" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "alps" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi if test "$DISABLE_common_alps" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_common" SHARED_COMPONENT="$DSO_common_alps" STATIC_FRAMEWORK="$STATIC_common" STATIC_COMPONENT="$STATIC_common_alps" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:alps compile mode" >&5 $as_echo_n "checking for MCA component common:alps compile mode... " >&6; } if test "$DIRECT_common" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/common/alps/Makefile" if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no common_alps_happy="no" else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : common_alps_LDFLAGS="$common_alps_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" common_alps_CPPFLAGS="$common_alps_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" common_alps_LIBS="$common_alps_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" common_alps_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" common_alps_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" common_alps_happy="yes" else common_alps_happy="no" fi if test "$common_alps_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/common/alps/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components alps" if test "$compile_mode" = "dso" ; then dso_components="$dso_components alps" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/alps/lib${ORTE_LIB_PREFIX}mca_common_alps.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/alps/libmca_common_alps.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_alps_component;" >> $outfile.extern echo " &mca_common_alps_component, " >> $outfile.struct static_components="$static_components alps" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:alps can compile" >&5 $as_echo_n "checking if MCA component common:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "alps" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "alps" ; then as_fn_error $? "*** common component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$common_alps_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $common_alps_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $common_alps_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$common_alps_WRAPPER_EXTRA_LIBS" = ""; 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_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 $common_alps_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $common_alps_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$common_alps_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $common_alps_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_alps_WRAPPER_EXTRA_CPPFLAGS ($common_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring common_alps_WRAPPER_EXTRA_CPPFLAGS ($common_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:alps can compile" >&5 $as_echo_n "checking if MCA component common:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components alps" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_common_alps_DSO=1 else BUILD_orte_common_alps_DSO=0 fi if test "$BUILD_orte_common_alps_DSO" = "1"; then MCA_BUILD_orte_common_alps_DSO_TRUE= MCA_BUILD_orte_common_alps_DSO_FALSE='#' else MCA_BUILD_orte_common_alps_DSO_TRUE='#' MCA_BUILD_orte_common_alps_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/common/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component common:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/common/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_common_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_common" str="SHARED_COMPONENT=\$DSO_common_$component" eval $str STATIC_FRAMEWORK="$STATIC_common" str="STATIC_COMPONENT=\$STATIC_common_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:$component compile mode" >&5 $as_echo_n "checking for MCA component common:$component compile mode... " >&6; } if test "$DIRECT_common" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/common/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/common/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/common/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then common_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then common_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/common/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/$component/lib${ORTE_LIB_PREFIX}mca_common_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/$component/libmca_common_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_$component_component;" >> $outfile.extern echo " &mca_common_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5 $as_echo_n "checking if MCA component common:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "$component" ; then as_fn_error $? "*** common component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$common_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$common_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5 $as_echo_n "checking if MCA component common:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_common_ALL_COMPONENTS="$all_components" MCA_orte_common_STATIC_COMPONENTS="$static_components" MCA_orte_common_DSO_COMPONENTS="$dso_components" MCA_orte_common_STATIC_LTLIBS="$static_ltlibs" MCA_orte_common_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_common_ALL_SUBDIRS="$MCA_orte_common_ALL_SUBDIRS mca/common/$item" done MCA_orte_common_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_common_STATIC_SUBDIRS="$MCA_orte_common_STATIC_SUBDIRS mca/common/$item" done MCA_orte_common_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_common_DSO_SUBDIRS="$MCA_orte_common_DSO_SUBDIRS mca/common/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "common" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS errmgr" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/errmgr" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_errmgr_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_errmgr_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_errmgr_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/errmgr/libmca_errmgr.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_errmgr_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework errmgr" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/errmgr/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/errmgr/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework errmgr" >&5 $as_echo_n "checking for no configure components in framework errmgr... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: default_app, default_hnp, default_orted, default_tool" >&5 $as_echo "default_app, default_hnp, default_orted, default_tool" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework errmgr" >&5 $as_echo_n "checking for m4 configure components in framework errmgr... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component errmgr:default_app (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/errmgr/default_app" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "default_app" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_errmgr" = "1"; then : want_component=0 fi if test "$DISABLE_errmgr_default_app" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_errmgr" SHARED_COMPONENT="$DSO_errmgr_default_app" STATIC_FRAMEWORK="$STATIC_errmgr" STATIC_COMPONENT="$STATIC_errmgr_default_app" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component errmgr:default_app compile mode" >&5 $as_echo_n "checking for MCA component errmgr:default_app compile mode... " >&6; } if test "$DIRECT_errmgr" = "default_app" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/errmgr/default_app/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components default_app" if test "$compile_mode" = "dso" ; then dso_components="$dso_components default_app" else if test "errmgr" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/errmgr/default_app/lib${ORTE_LIB_PREFIX}mca_errmgr_default_app.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/errmgr/default_app/libmca_errmgr_default_app.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_errmgr_default_app_component;" >> $outfile.extern echo " &mca_errmgr_default_app_component, " >> $outfile.struct static_components="$static_components default_app" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:default_app can compile" >&5 $as_echo_n "checking if MCA component errmgr:default_app can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_errmgr" = "default_app" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_errmgr_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** errmgr component default_app was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_errmgr" = "default_app" ; then as_fn_error $? "*** errmgr component default_app was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$errmgr_default_app_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $errmgr_default_app_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $errmgr_default_app_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$errmgr_default_app_WRAPPER_EXTRA_LIBS" = ""; 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_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 $errmgr_default_app_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $errmgr_default_app_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$errmgr_default_app_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $errmgr_default_app_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring errmgr_default_app_WRAPPER_EXTRA_CPPFLAGS ($errmgr_default_app_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring errmgr_default_app_WRAPPER_EXTRA_CPPFLAGS ($errmgr_default_app_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:default_app can compile" >&5 $as_echo_n "checking if MCA component errmgr:default_app can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_errmgr" = "default_app" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default_app\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default_app\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "default_app" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default_app\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default_app\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components default_app" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_errmgr_default_app_DSO=1 else BUILD_orte_errmgr_default_app_DSO=0 fi if test "$BUILD_orte_errmgr_default_app_DSO" = "1"; then MCA_BUILD_orte_errmgr_default_app_DSO_TRUE= MCA_BUILD_orte_errmgr_default_app_DSO_FALSE='#' else MCA_BUILD_orte_errmgr_default_app_DSO_TRUE='#' MCA_BUILD_orte_errmgr_default_app_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/errmgr/default_app/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component errmgr:default_hnp (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/errmgr/default_hnp" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "default_hnp" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_errmgr" = "1"; then : want_component=0 fi if test "$DISABLE_errmgr_default_hnp" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_errmgr" SHARED_COMPONENT="$DSO_errmgr_default_hnp" STATIC_FRAMEWORK="$STATIC_errmgr" STATIC_COMPONENT="$STATIC_errmgr_default_hnp" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component errmgr:default_hnp compile mode" >&5 $as_echo_n "checking for MCA component errmgr:default_hnp compile mode... " >&6; } if test "$DIRECT_errmgr" = "default_hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/errmgr/default_hnp/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components default_hnp" if test "$compile_mode" = "dso" ; then dso_components="$dso_components default_hnp" else if test "errmgr" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/errmgr/default_hnp/lib${ORTE_LIB_PREFIX}mca_errmgr_default_hnp.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/errmgr/default_hnp/libmca_errmgr_default_hnp.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_errmgr_default_hnp_component;" >> $outfile.extern echo " &mca_errmgr_default_hnp_component, " >> $outfile.struct static_components="$static_components default_hnp" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:default_hnp can compile" >&5 $as_echo_n "checking if MCA component errmgr:default_hnp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_errmgr" = "default_hnp" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_errmgr_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** errmgr component default_hnp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_errmgr" = "default_hnp" ; then as_fn_error $? "*** errmgr component default_hnp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$errmgr_default_hnp_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $errmgr_default_hnp_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $errmgr_default_hnp_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$errmgr_default_hnp_WRAPPER_EXTRA_LIBS" = ""; 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_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 $errmgr_default_hnp_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $errmgr_default_hnp_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$errmgr_default_hnp_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $errmgr_default_hnp_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring errmgr_default_hnp_WRAPPER_EXTRA_CPPFLAGS ($errmgr_default_hnp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring errmgr_default_hnp_WRAPPER_EXTRA_CPPFLAGS ($errmgr_default_hnp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:default_hnp can compile" >&5 $as_echo_n "checking if MCA component errmgr:default_hnp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_errmgr" = "default_hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default_hnp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default_hnp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "default_hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default_hnp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default_hnp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components default_hnp" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_errmgr_default_hnp_DSO=1 else BUILD_orte_errmgr_default_hnp_DSO=0 fi if test "$BUILD_orte_errmgr_default_hnp_DSO" = "1"; then MCA_BUILD_orte_errmgr_default_hnp_DSO_TRUE= MCA_BUILD_orte_errmgr_default_hnp_DSO_FALSE='#' else MCA_BUILD_orte_errmgr_default_hnp_DSO_TRUE='#' MCA_BUILD_orte_errmgr_default_hnp_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/errmgr/default_hnp/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component errmgr:default_orted (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/errmgr/default_orted" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "default_orted" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_errmgr" = "1"; then : want_component=0 fi if test "$DISABLE_errmgr_default_orted" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_errmgr" SHARED_COMPONENT="$DSO_errmgr_default_orted" STATIC_FRAMEWORK="$STATIC_errmgr" STATIC_COMPONENT="$STATIC_errmgr_default_orted" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component errmgr:default_orted compile mode" >&5 $as_echo_n "checking for MCA component errmgr:default_orted compile mode... " >&6; } if test "$DIRECT_errmgr" = "default_orted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/errmgr/default_orted/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components default_orted" if test "$compile_mode" = "dso" ; then dso_components="$dso_components default_orted" else if test "errmgr" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/errmgr/default_orted/lib${ORTE_LIB_PREFIX}mca_errmgr_default_orted.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/errmgr/default_orted/libmca_errmgr_default_orted.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_errmgr_default_orted_component;" >> $outfile.extern echo " &mca_errmgr_default_orted_component, " >> $outfile.struct static_components="$static_components default_orted" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:default_orted can compile" >&5 $as_echo_n "checking if MCA component errmgr:default_orted can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_errmgr" = "default_orted" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_errmgr_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** errmgr component default_orted was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_errmgr" = "default_orted" ; then as_fn_error $? "*** errmgr component default_orted was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$errmgr_default_orted_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $errmgr_default_orted_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $errmgr_default_orted_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$errmgr_default_orted_WRAPPER_EXTRA_LIBS" = ""; 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_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 $errmgr_default_orted_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $errmgr_default_orted_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$errmgr_default_orted_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $errmgr_default_orted_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring errmgr_default_orted_WRAPPER_EXTRA_CPPFLAGS ($errmgr_default_orted_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring errmgr_default_orted_WRAPPER_EXTRA_CPPFLAGS ($errmgr_default_orted_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:default_orted can compile" >&5 $as_echo_n "checking if MCA component errmgr:default_orted can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_errmgr" = "default_orted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default_orted\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default_orted\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "default_orted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default_orted\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default_orted\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components default_orted" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_errmgr_default_orted_DSO=1 else BUILD_orte_errmgr_default_orted_DSO=0 fi if test "$BUILD_orte_errmgr_default_orted_DSO" = "1"; then MCA_BUILD_orte_errmgr_default_orted_DSO_TRUE= MCA_BUILD_orte_errmgr_default_orted_DSO_FALSE='#' else MCA_BUILD_orte_errmgr_default_orted_DSO_TRUE='#' MCA_BUILD_orte_errmgr_default_orted_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/errmgr/default_orted/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component errmgr:default_tool (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/errmgr/default_tool" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "default_tool" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_errmgr" = "1"; then : want_component=0 fi if test "$DISABLE_errmgr_default_tool" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_errmgr" SHARED_COMPONENT="$DSO_errmgr_default_tool" STATIC_FRAMEWORK="$STATIC_errmgr" STATIC_COMPONENT="$STATIC_errmgr_default_tool" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component errmgr:default_tool compile mode" >&5 $as_echo_n "checking for MCA component errmgr:default_tool compile mode... " >&6; } if test "$DIRECT_errmgr" = "default_tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/errmgr/default_tool/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components default_tool" if test "$compile_mode" = "dso" ; then dso_components="$dso_components default_tool" else if test "errmgr" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/errmgr/default_tool/lib${ORTE_LIB_PREFIX}mca_errmgr_default_tool.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/errmgr/default_tool/libmca_errmgr_default_tool.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_errmgr_default_tool_component;" >> $outfile.extern echo " &mca_errmgr_default_tool_component, " >> $outfile.struct static_components="$static_components default_tool" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:default_tool can compile" >&5 $as_echo_n "checking if MCA component errmgr:default_tool can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_errmgr" = "default_tool" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_errmgr_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** errmgr component default_tool was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_errmgr" = "default_tool" ; then as_fn_error $? "*** errmgr component default_tool was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$errmgr_default_tool_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $errmgr_default_tool_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $errmgr_default_tool_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$errmgr_default_tool_WRAPPER_EXTRA_LIBS" = ""; 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_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 $errmgr_default_tool_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $errmgr_default_tool_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$errmgr_default_tool_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $errmgr_default_tool_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring errmgr_default_tool_WRAPPER_EXTRA_CPPFLAGS ($errmgr_default_tool_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring errmgr_default_tool_WRAPPER_EXTRA_CPPFLAGS ($errmgr_default_tool_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:default_tool can compile" >&5 $as_echo_n "checking if MCA component errmgr:default_tool can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_errmgr" = "default_tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default_tool\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default_tool\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "default_tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default_tool\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default_tool\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components default_tool" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_errmgr_default_tool_DSO=1 else BUILD_orte_errmgr_default_tool_DSO=0 fi if test "$BUILD_orte_errmgr_default_tool_DSO" = "1"; then MCA_BUILD_orte_errmgr_default_tool_DSO_TRUE= MCA_BUILD_orte_errmgr_default_tool_DSO_FALSE='#' else MCA_BUILD_orte_errmgr_default_tool_DSO_TRUE='#' MCA_BUILD_orte_errmgr_default_tool_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/errmgr/default_tool/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/errmgr/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component errmgr:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/errmgr/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_errmgr" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_errmgr_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_errmgr" str="SHARED_COMPONENT=\$DSO_errmgr_$component" eval $str STATIC_FRAMEWORK="$STATIC_errmgr" str="STATIC_COMPONENT=\$STATIC_errmgr_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component errmgr:$component compile mode" >&5 $as_echo_n "checking for MCA component errmgr:$component compile mode... " >&6; } if test "$DIRECT_errmgr" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/errmgr/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/errmgr/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/errmgr/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then errmgr_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then errmgr_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/errmgr/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "errmgr" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/errmgr/$component/lib${ORTE_LIB_PREFIX}mca_errmgr_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/errmgr/$component/libmca_errmgr_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_errmgr_$component_component;" >> $outfile.extern echo " &mca_errmgr_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:$component can compile" >&5 $as_echo_n "checking if MCA component errmgr:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_errmgr" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_errmgr_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** errmgr component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_errmgr" = "$component" ; then as_fn_error $? "*** errmgr component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$errmgr_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$errmgr_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component errmgr:$component can compile" >&5 $as_echo_n "checking if MCA component errmgr:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_errmgr" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_errmgr" ; then if test "$DIRECT_errmgr" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_errmgr_ALL_COMPONENTS="$all_components" MCA_orte_errmgr_STATIC_COMPONENTS="$static_components" MCA_orte_errmgr_DSO_COMPONENTS="$dso_components" MCA_orte_errmgr_STATIC_LTLIBS="$static_ltlibs" MCA_orte_errmgr_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_errmgr_ALL_SUBDIRS="$MCA_orte_errmgr_ALL_SUBDIRS mca/errmgr/$item" done MCA_orte_errmgr_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_errmgr_STATIC_SUBDIRS="$MCA_orte_errmgr_STATIC_SUBDIRS mca/errmgr/$item" done MCA_orte_errmgr_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_errmgr_DSO_SUBDIRS="$MCA_orte_errmgr_DSO_SUBDIRS mca/errmgr/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "errmgr" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ess" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ess" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_ess_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_ess_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_ess_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ess/libmca_ess.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_ess_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework ess" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/ess/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/ess/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework ess" >&5 $as_echo_n "checking for no configure components in framework ess... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: env, hnp, pmi, singleton, tool" >&5 $as_echo "env, hnp, pmi, singleton, tool" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework ess" >&5 $as_echo_n "checking for m4 configure components in framework ess... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: alps, lsf, slurm, tm" >&5 $as_echo "alps, lsf, slurm, tm" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component ess:env (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/ess/env" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "env" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi if test "$DISABLE_ess_env" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_ess" SHARED_COMPONENT="$DSO_ess_env" STATIC_FRAMEWORK="$STATIC_ess" STATIC_COMPONENT="$STATIC_ess_env" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:env compile mode" >&5 $as_echo_n "checking for MCA component ess:env compile mode... " >&6; } if test "$DIRECT_ess" = "env" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/env/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components env" if test "$compile_mode" = "dso" ; then dso_components="$dso_components env" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/env/lib${ORTE_LIB_PREFIX}mca_ess_env.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/env/libmca_ess_env.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_env_component;" >> $outfile.extern echo " &mca_ess_env_component, " >> $outfile.struct static_components="$static_components env" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:env can compile" >&5 $as_echo_n "checking if MCA component ess:env can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "env" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component env was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "env" ; then as_fn_error $? "*** ess component env was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ess_env_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ess_env_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ess_env_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ess_env_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ess_env_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ess_env_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ess_env_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ess_env_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ess_env_WRAPPER_EXTRA_CPPFLAGS ($ess_env_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ess_env_WRAPPER_EXTRA_CPPFLAGS ($ess_env_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:env can compile" >&5 $as_echo_n "checking if MCA component ess:env can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "env" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "env" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components env" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_ess_env_DSO=1 else BUILD_orte_ess_env_DSO=0 fi if test "$BUILD_orte_ess_env_DSO" = "1"; then MCA_BUILD_orte_ess_env_DSO_TRUE= MCA_BUILD_orte_ess_env_DSO_FALSE='#' else MCA_BUILD_orte_ess_env_DSO_TRUE='#' MCA_BUILD_orte_ess_env_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/ess/env/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component ess:hnp (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/ess/hnp" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "hnp" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi if test "$DISABLE_ess_hnp" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_ess" SHARED_COMPONENT="$DSO_ess_hnp" STATIC_FRAMEWORK="$STATIC_ess" STATIC_COMPONENT="$STATIC_ess_hnp" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:hnp compile mode" >&5 $as_echo_n "checking for MCA component ess:hnp compile mode... " >&6; } if test "$DIRECT_ess" = "hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/hnp/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components hnp" if test "$compile_mode" = "dso" ; then dso_components="$dso_components hnp" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/hnp/lib${ORTE_LIB_PREFIX}mca_ess_hnp.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/hnp/libmca_ess_hnp.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_hnp_component;" >> $outfile.extern echo " &mca_ess_hnp_component, " >> $outfile.struct static_components="$static_components hnp" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:hnp can compile" >&5 $as_echo_n "checking if MCA component ess:hnp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "hnp" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component hnp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "hnp" ; then as_fn_error $? "*** ess component hnp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ess_hnp_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ess_hnp_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ess_hnp_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ess_hnp_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ess_hnp_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ess_hnp_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ess_hnp_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ess_hnp_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ess_hnp_WRAPPER_EXTRA_CPPFLAGS ($ess_hnp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ess_hnp_WRAPPER_EXTRA_CPPFLAGS ($ess_hnp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:hnp can compile" >&5 $as_echo_n "checking if MCA component ess:hnp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components hnp" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_ess_hnp_DSO=1 else BUILD_orte_ess_hnp_DSO=0 fi if test "$BUILD_orte_ess_hnp_DSO" = "1"; then MCA_BUILD_orte_ess_hnp_DSO_TRUE= MCA_BUILD_orte_ess_hnp_DSO_FALSE='#' else MCA_BUILD_orte_ess_hnp_DSO_TRUE='#' MCA_BUILD_orte_ess_hnp_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/ess/hnp/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component ess:pmi (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/ess/pmi" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "pmi" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi if test "$DISABLE_ess_pmi" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_ess" SHARED_COMPONENT="$DSO_ess_pmi" STATIC_FRAMEWORK="$STATIC_ess" STATIC_COMPONENT="$STATIC_ess_pmi" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:pmi compile mode" >&5 $as_echo_n "checking for MCA component ess:pmi compile mode... " >&6; } if test "$DIRECT_ess" = "pmi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/pmi/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components pmi" if test "$compile_mode" = "dso" ; then dso_components="$dso_components pmi" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/pmi/lib${ORTE_LIB_PREFIX}mca_ess_pmi.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/pmi/libmca_ess_pmi.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_pmi_component;" >> $outfile.extern echo " &mca_ess_pmi_component, " >> $outfile.struct static_components="$static_components pmi" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:pmi can compile" >&5 $as_echo_n "checking if MCA component ess:pmi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "pmi" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component pmi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "pmi" ; then as_fn_error $? "*** ess component pmi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ess_pmi_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ess_pmi_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ess_pmi_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ess_pmi_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ess_pmi_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ess_pmi_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ess_pmi_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ess_pmi_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ess_pmi_WRAPPER_EXTRA_CPPFLAGS ($ess_pmi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ess_pmi_WRAPPER_EXTRA_CPPFLAGS ($ess_pmi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:pmi can compile" >&5 $as_echo_n "checking if MCA component ess:pmi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "pmi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pmi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pmi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "pmi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pmi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pmi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components pmi" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_ess_pmi_DSO=1 else BUILD_orte_ess_pmi_DSO=0 fi if test "$BUILD_orte_ess_pmi_DSO" = "1"; then MCA_BUILD_orte_ess_pmi_DSO_TRUE= MCA_BUILD_orte_ess_pmi_DSO_FALSE='#' else MCA_BUILD_orte_ess_pmi_DSO_TRUE='#' MCA_BUILD_orte_ess_pmi_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/ess/pmi/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component ess:singleton (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/ess/singleton" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "singleton" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi if test "$DISABLE_ess_singleton" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_ess" SHARED_COMPONENT="$DSO_ess_singleton" STATIC_FRAMEWORK="$STATIC_ess" STATIC_COMPONENT="$STATIC_ess_singleton" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:singleton compile mode" >&5 $as_echo_n "checking for MCA component ess:singleton compile mode... " >&6; } if test "$DIRECT_ess" = "singleton" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/singleton/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components singleton" if test "$compile_mode" = "dso" ; then dso_components="$dso_components singleton" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/singleton/lib${ORTE_LIB_PREFIX}mca_ess_singleton.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/singleton/libmca_ess_singleton.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_singleton_component;" >> $outfile.extern echo " &mca_ess_singleton_component, " >> $outfile.struct static_components="$static_components singleton" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:singleton can compile" >&5 $as_echo_n "checking if MCA component ess:singleton can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "singleton" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component singleton was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "singleton" ; then as_fn_error $? "*** ess component singleton was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ess_singleton_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ess_singleton_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ess_singleton_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ess_singleton_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ess_singleton_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ess_singleton_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ess_singleton_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ess_singleton_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ess_singleton_WRAPPER_EXTRA_CPPFLAGS ($ess_singleton_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ess_singleton_WRAPPER_EXTRA_CPPFLAGS ($ess_singleton_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:singleton can compile" >&5 $as_echo_n "checking if MCA component ess:singleton can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "singleton" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"singleton\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "singleton" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"singleton\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components singleton" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_ess_singleton_DSO=1 else BUILD_orte_ess_singleton_DSO=0 fi if test "$BUILD_orte_ess_singleton_DSO" = "1"; then MCA_BUILD_orte_ess_singleton_DSO_TRUE= MCA_BUILD_orte_ess_singleton_DSO_FALSE='#' else MCA_BUILD_orte_ess_singleton_DSO_TRUE='#' MCA_BUILD_orte_ess_singleton_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/ess/singleton/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component ess:tool (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/ess/tool" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "tool" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi if test "$DISABLE_ess_tool" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_ess" SHARED_COMPONENT="$DSO_ess_tool" STATIC_FRAMEWORK="$STATIC_ess" STATIC_COMPONENT="$STATIC_ess_tool" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:tool compile mode" >&5 $as_echo_n "checking for MCA component ess:tool compile mode... " >&6; } if test "$DIRECT_ess" = "tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/tool/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components tool" if test "$compile_mode" = "dso" ; then dso_components="$dso_components tool" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/tool/lib${ORTE_LIB_PREFIX}mca_ess_tool.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/tool/libmca_ess_tool.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_tool_component;" >> $outfile.extern echo " &mca_ess_tool_component, " >> $outfile.struct static_components="$static_components tool" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:tool can compile" >&5 $as_echo_n "checking if MCA component ess:tool can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "tool" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component tool was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "tool" ; then as_fn_error $? "*** ess component tool was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ess_tool_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ess_tool_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ess_tool_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ess_tool_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ess_tool_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ess_tool_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ess_tool_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ess_tool_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ess_tool_WRAPPER_EXTRA_CPPFLAGS ($ess_tool_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ess_tool_WRAPPER_EXTRA_CPPFLAGS ($ess_tool_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:tool can compile" >&5 $as_echo_n "checking if MCA component ess:tool can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components tool" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_ess_tool_DSO=1 else BUILD_orte_ess_tool_DSO=0 fi if test "$BUILD_orte_ess_tool_DSO" = "1"; then MCA_BUILD_orte_ess_tool_DSO_TRUE= MCA_BUILD_orte_ess_tool_DSO_FALSE='#' else MCA_BUILD_orte_ess_tool_DSO_TRUE='#' MCA_BUILD_orte_ess_tool_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/ess/tool/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component ess:alps (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/ess/alps" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "alps" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi if test "$DISABLE_ess_alps" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_ess" SHARED_COMPONENT="$DSO_ess_alps" STATIC_FRAMEWORK="$STATIC_ess" STATIC_COMPONENT="$STATIC_ess_alps" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:alps compile mode" >&5 $as_echo_n "checking for MCA component ess:alps compile mode... " >&6; } if test "$DIRECT_ess" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/ess/alps/Makefile" if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no ess_alps_happy="no" else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : ess_alps_LDFLAGS="$ess_alps_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" ess_alps_CPPFLAGS="$ess_alps_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" ess_alps_LIBS="$ess_alps_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" ess_alps_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" ess_alps_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" ess_alps_happy="yes" else ess_alps_happy="no" fi if test "$ess_alps_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/alps/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components alps" if test "$compile_mode" = "dso" ; then dso_components="$dso_components alps" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/alps/lib${ORTE_LIB_PREFIX}mca_ess_alps.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/alps/libmca_ess_alps.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_alps_component;" >> $outfile.extern echo " &mca_ess_alps_component, " >> $outfile.struct static_components="$static_components alps" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:alps can compile" >&5 $as_echo_n "checking if MCA component ess:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "alps" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "alps" ; then as_fn_error $? "*** ess component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ess_alps_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ess_alps_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ess_alps_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ess_alps_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ess_alps_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ess_alps_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ess_alps_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ess_alps_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ess_alps_WRAPPER_EXTRA_CPPFLAGS ($ess_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ess_alps_WRAPPER_EXTRA_CPPFLAGS ($ess_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:alps can compile" >&5 $as_echo_n "checking if MCA component ess:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components alps" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_ess_alps_DSO=1 else BUILD_orte_ess_alps_DSO=0 fi if test "$BUILD_orte_ess_alps_DSO" = "1"; then MCA_BUILD_orte_ess_alps_DSO_TRUE= MCA_BUILD_orte_ess_alps_DSO_FALSE='#' else MCA_BUILD_orte_ess_alps_DSO_TRUE='#' MCA_BUILD_orte_ess_alps_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component ess:lsf (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/ess/lsf" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "lsf" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi if test "$DISABLE_ess_lsf" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_ess" SHARED_COMPONENT="$DSO_ess_lsf" STATIC_FRAMEWORK="$STATIC_ess" STATIC_COMPONENT="$STATIC_ess_lsf" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:lsf compile mode" >&5 $as_echo_n "checking for MCA component ess:lsf compile mode... " >&6; } if test "$DIRECT_ess" = "lsf" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/ess/lsf/Makefile" if test -z "$orte_check_lsf_happy"; then : # Check whether --with-lsf was given. if test "${with_lsf+set}" = set; then : withval=$with_lsf; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf value" >&5 $as_echo_n "checking --with-lsf value... " >&6; } if test "$with_lsf" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-lsf)" >&5 $as_echo "simple no (specified --without-lsf)" >&6; } else if test "$with_lsf" = "yes" || test "x$with_lsf" = "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_lsf"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf not found" >&5 $as_echo "$as_me: WARNING: Directory $with_lsf not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_lsf/include/lsf/lsbatch.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf)" >&5 $as_echo "sanity check ok ($with_lsf)" >&6; } fi fi fi fi # Check whether --with-lsf-libdir was given. if test "${with_lsf_libdir+set}" = set; then : withval=$with_lsf_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf-libdir value" >&5 $as_echo_n "checking --with-lsf-libdir value... " >&6; } if test "$with_lsf_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-lsf-libdir)" >&5 $as_echo "simple no (specified --without-lsf-libdir)" >&6; } else if test "$with_lsf_libdir" = "yes" || test "x$with_lsf_libdir" = "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_lsf_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_lsf_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_lsf_libdir/libbat.* 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf_libdir)" >&5 $as_echo "sanity check ok ($with_lsf_libdir)" >&6; } fi fi fi fi if test "$with_lsf" != "no"; then : # Defaults orte_check_lsf_dir_msg="compiler default" orte_check_lsf_libdir_msg="linker default" # Save directory names if supplied if test ! -z "$with_lsf" && test "$with_lsf" != "yes"; then : orte_check_lsf_dir="$with_lsf" orte_check_lsf_dir_msg="$orte_check_lsf_dir (from --with-lsf)" fi if test ! -z "$with_lsf_libdir" && test "$with_lsf_libdir" != "yes"; then : orte_check_lsf_libdir="$with_lsf_libdir" orte_check_lsf_libdir_msg="$orte_check_lsf_libdir (from --with-lsf-libdir)" fi # If no directories were specified, look for LSF_LIBDIR, # LSF_INCLUDEDIR, and/or LSF_ENVDIR. if test -z "$orte_check_lsf_dir" && test -z "$orte_check_lsf_libdir"; then : if test ! -z "$LSF_ENVDIR" && test -z "$LSF_LIBDIR" && test -f "$LSF_ENVDIR/lsf.conf"; then : LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` fi if test ! -z "$LSF_ENVDIR" && test -z "$LSF_INCLUDEDIR" && test -f "$LSF_ENVDIR/lsf.conf"; then : LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` fi if test ! -z "$LSF_LIBDIR"; then : orte_check_lsf_libdir=$LSF_LIBDIR orte_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)" fi if test ! -z "$LSF_INCLUDEDIR"; then : orte_check_lsf_dir=`dirname $LSF_INCLUDEDIR` orte_check_lsf_dir_msg="$orte_check_lsf_dir (from \$LSF_INCLUDEDIR)" fi fi if test "$with_lsf" = "no"; then : orte_check_lsf_happy="no" else orte_check_lsf_happy="yes" fi orte_check_lsf_ess_lsf_save_CPPFLAGS="$CPPFLAGS" orte_check_lsf_ess_lsf_save_LDFLAGS="$LDFLAGS" orte_check_lsf_ess_lsf_save_LIBS="$LIBS" # liblsf requires yp_all, yp_get_default_domain, and ypprot_err # on Linux, Solaris, NEC, and Sony NEWSs these are found in libnsl # on AIX it should be in libbsd # on HP-UX it should be in libBSD # on IRIX < 6 it should be in libsun (IRIX 6 and later it is in libc) # on RHEL: libnsl, libnsl2 AND libnsl2-devel are required to link libnsl to get yp_all. if test "$orte_check_lsf_happy" = "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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_all" >&5 $as_echo_n "checking for library containing yp_all... " >&6; } if ${ac_cv_search_yp_all+:} 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 yp_all (); int main () { return yp_all (); ; return 0; } _ACEOF for ac_lib in '' nsl bsd BSD sun; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_yp_all=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_yp_all+:} false; then : break fi done if ${ac_cv_search_yp_all+:} false; then : else ac_cv_search_yp_all=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_all" >&5 $as_echo "$ac_cv_search_yp_all" >&6; } ac_res=$ac_cv_search_yp_all if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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 ${yp_all_nsl_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$yp_all_nsl_LIBS"; then : yp_all_nsl_LIBS=$arg else yp_all_nsl_LIBS="$yp_all_nsl_LIBS $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 yp_all_nsl_have_yp_all=1 orte_check_lsf_happy="yes" else yp_all_nsl_have_yp_all=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find yp_all. Please see https://www.open-mpi.org/faq/?category=building#build-rte-lsf for more details." >&5 $as_echo "$as_me: WARNING: Could not find yp_all. Please see https://www.open-mpi.org/faq/?category=building#build-rte-lsf for more details." >&2;} orte_check_lsf_happy="no" fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_YP_ALL_NSL $yp_all_nsl_have_yp_all _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 fi # liblsf requires shm_open, shm_unlink, which are in librt if test "$orte_check_lsf_happy" = "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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 $as_echo_n "checking for library containing shm_open... " >&6; } if ${ac_cv_search_shm_open+:} 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 shm_open (); int main () { return shm_open (); ; return 0; } _ACEOF for ac_lib in '' rt; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_shm_open=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_shm_open+:} false; then : break fi done if ${ac_cv_search_shm_open+:} false; then : else ac_cv_search_shm_open=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 $as_echo "$ac_cv_search_shm_open" >&6; } ac_res=$ac_cv_search_shm_open if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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 ${shm_open_rt_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$shm_open_rt_LIBS"; then : shm_open_rt_LIBS=$arg else shm_open_rt_LIBS="$shm_open_rt_LIBS $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 shm_open_rt_have_shm_open=1 orte_check_lsf_happy="yes" else shm_open_rt_have_shm_open=0 orte_check_lsf_happy="no" fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SHM_OPEN_RT $shm_open_rt_have_shm_open _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 fi # liblsb requires liblsf - using ls_info as a test for liblsf presence if test "$orte_check_lsf_happy" = "yes"; then : opal_check_package_ls_info_lsf_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ls_info_lsf_save_LDFLAGS="$LDFLAGS" opal_check_package_ls_info_lsf_save_LIBS="$LIBS" opal_check_package_ls_info_lsf_orig_CPPFLAGS="$ls_info_lsf_CPPFLAGS" opal_check_package_ls_info_lsf_orig_LDFLAGS="$ls_info_lsf_LDFLAGS" opal_check_package_ls_info_lsf_orig_LIBS="$ls_info_lsf_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_lsf_lsf_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_check_lsf_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 lsf/lsf.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsf.h" "ac_cv_header_lsf_lsf_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsf_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSF_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_lsf_lsf_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ls_info_lsf_CPPFLAGS="$ls_info_lsf_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in lsf/lsf.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsf.h" "ac_cv_header_lsf_lsf_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsf_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSF_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_ls_info opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there ls_info_lsf_LDFLAGS="$ls_info_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info 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 liblsf requires libnl v1 or v3" >&5 $as_echo_n "checking if liblsf requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ls_info (void); int main(int argc, char *argv[]) { ls_info (); 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:199488: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_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:199495: \$? = $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 lsf" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib lsf" >&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, liblsf links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&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 lsf requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas lsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs lsf" # 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 liblsf requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs lsf" # 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_ls_info" != "no" && test "$ac_cv_search_ls_info" != "none required"; then : ls_info_lsf_LIBS="$ac_cv_search_ls_info $yp_all_nsl_LIBS $shm_open_rt_LIBS" else ls_info_lsf_LIBS="$yp_all_nsl_LIBS $shm_open_rt_LIBS" 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_ls_info opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there ls_info_lsf_LDFLAGS="$ls_info_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info 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 liblsf requires libnl v1 or v3" >&5 $as_echo_n "checking if liblsf requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ls_info (void); int main(int argc, char *argv[]) { ls_info (); 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:200213: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_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:200220: \$? = $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 lsf" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib lsf" >&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, liblsf links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&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 lsf requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas lsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs lsf" # 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 liblsf requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs lsf" # 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_ls_info" != "no" && test "$ac_cv_search_ls_info" != "none required"; then : ls_info_lsf_LIBS="$ac_cv_search_ls_info $yp_all_nsl_LIBS $shm_open_rt_LIBS" else ls_info_lsf_LIBS="$yp_all_nsl_LIBS $shm_open_rt_LIBS" 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 : orte_check_lsf_happy="yes" else ls_info_lsf_CPPFLAGS="$opal_check_package_ls_info_lsf_orig_CPPFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" ls_info_lsf_LIBS="$opal_check_package_ls_info_lsf_orig_LIBS" orte_check_lsf_happy="no" fi CPPFLAGS="$opal_check_package_ls_info_lsf_save_CPPFLAGS" LDFLAGS="$opal_check_package_ls_info_lsf_save_LDFLAGS" LIBS="$opal_check_package_ls_info_lsf_save_LIBS" fi # test function of liblsb LSF package if test "$orte_check_lsf_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF dir" >&5 $as_echo_n "checking for LSF dir... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_dir_msg" >&5 $as_echo "$orte_check_lsf_dir_msg" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF library dir" >&5 $as_echo_n "checking for LSF library dir... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_libdir_msg" >&5 $as_echo "$orte_check_lsf_libdir_msg" >&6; } opal_check_package_orte_check_lsf_save_CPPFLAGS="$CPPFLAGS" opal_check_package_orte_check_lsf_save_LDFLAGS="$LDFLAGS" opal_check_package_orte_check_lsf_save_LIBS="$LIBS" opal_check_package_orte_check_lsf_orig_CPPFLAGS="$orte_check_lsf_CPPFLAGS" opal_check_package_orte_check_lsf_orig_LDFLAGS="$orte_check_lsf_LDFLAGS" opal_check_package_orte_check_lsf_orig_LIBS="$orte_check_lsf_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_lsf_lsbatch_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_check_lsf_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 lsf/lsbatch.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsbatch_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSBATCH_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_lsf_lsbatch_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : orte_check_lsf_CPPFLAGS="$orte_check_lsf_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in lsf/lsbatch.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsbatch_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSBATCH_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_lsb_launch opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there orte_check_lsf_LDFLAGS="$orte_check_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch 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 libbat requires libnl v1 or v3" >&5 $as_echo_n "checking if libbat requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void lsb_launch (void); int main(int argc, char *argv[]) { lsb_launch (); 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:201086: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_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:201093: \$? = $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 bat" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib bat" >&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, libbat links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&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 bat requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas bat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs bat" # 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 libbat requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs bat" # 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_lsb_launch" != "no" && test "$ac_cv_search_lsb_launch" != "none required"; then : orte_check_lsf_LIBS="$ac_cv_search_lsb_launch $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" else orte_check_lsf_LIBS="$ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" 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_lsb_launch opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there orte_check_lsf_LDFLAGS="$orte_check_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch 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 libbat requires libnl v1 or v3" >&5 $as_echo_n "checking if libbat requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void lsb_launch (void); int main(int argc, char *argv[]) { lsb_launch (); 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:201811: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_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:201818: \$? = $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 bat" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib bat" >&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, libbat links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&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 bat requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas bat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs bat" # 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 libbat requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs bat" # 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_lsb_launch" != "no" && test "$ac_cv_search_lsb_launch" != "none required"; then : orte_check_lsf_LIBS="$ac_cv_search_lsb_launch $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" else orte_check_lsf_LIBS="$ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" 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 : orte_check_lsf_happy="yes" else orte_check_lsf_CPPFLAGS="$opal_check_package_orte_check_lsf_orig_CPPFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" orte_check_lsf_LIBS="$opal_check_package_orte_check_lsf_orig_LIBS" orte_check_lsf_happy="no" fi CPPFLAGS="$opal_check_package_orte_check_lsf_save_CPPFLAGS" LDFLAGS="$opal_check_package_orte_check_lsf_save_LDFLAGS" LIBS="$opal_check_package_orte_check_lsf_save_LIBS" fi # Some versions of LSF ship with a libevent.so in their library path. # This is _not_ a copy of Libevent, but something specific to their project. # The Open MPI components should not need to link against LSF's libevent.so # However, the presence of it in the linker search path can cause a problem # if there is a system installed Libevent and Open MPI chooses the 'external' # event component prior to this stage. # # Add a check here to see if we are in a scenario where the two are conflicting. # In which case the earlier checks for successful compile of an LSF program will # have failed with messages like: # lib64/libevent_pthreads.so: undefined reference to `evthread_set_condition_callbacks' # lib64/libevent_pthreads.so: undefined reference to `event_mm_malloc_' # lib64/libevent_pthreads.so: undefined reference to `event_mm_free_' # lib64/libevent_pthreads.so: undefined reference to `evthread_set_id_callback' # lib64/libevent_pthreads.so: undefined reference to `evthread_set_lock_callbacks' # Because it picked up -levent from LSF, but -levent_pthreads from Libevent. # # So look for a function that libevent_pthreads is looking for from libevent.so. # If it does appears then we have the correct libevent.so, otherwise then we picked # up the LSF version and a conflict has been detected. # If the external libevent component used 'event_core' instead of 'event' orte_check_lsf_event_conflict=na # Split libs into an array, see if -levent is in that list orte_check_lsf_libevent_present=`echo "$LIBS" | awk '{split($0, a, " "); {for (k in a) {if (a[k] == "-levent") {print a[k]}}}}' | wc -l | tr -d '[:space:]'` # (1) LSF check must have failed above. We need to know why... if test "$orte_check_lsf_happy" = "no"; then : # (2) If there is a -levent in the $LIBS then that might be the problem if test "$opal_event_external_support" = "yes" && test "$orte_check_lsf_libevent_present" != "0"; then : if test "$orte_check_lsf_libdir" = "" ; then : else LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" fi # Note that we do not want to set LIBS here to include -llsf since # the check is not for an LSF library, but for the conflict with # LDFLAGS. # (3) Check to see if the -levent is from Libevent (check for a symbol it has) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evthread_set_condition_callbacks in -levent" >&5 $as_echo_n "checking for evthread_set_condition_callbacks in -levent... " >&6; } if ${ac_cv_lib_event_evthread_set_condition_callbacks+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-levent $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 evthread_set_condition_callbacks (); int main () { return evthread_set_condition_callbacks (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_event_evthread_set_condition_callbacks=yes else ac_cv_lib_event_evthread_set_condition_callbacks=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_event_evthread_set_condition_callbacks" >&5 $as_echo "$ac_cv_lib_event_evthread_set_condition_callbacks" >&6; } if test "x$ac_cv_lib_event_evthread_set_condition_callbacks" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: No conflict found. The correct libevent.so was linked." >&5 $as_echo "No conflict found. The correct libevent.so was linked." >&6; } orte_check_lsf_event_conflict=no else # (4) The libevent.so is not from Libevent. Warn the user. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: Conflict found. Detected a libevent.so that is not from Libevent." >&5 $as_echo "Conflict found. Detected a libevent.so that is not from Libevent." >&6; } orte_check_lsf_event_conflict=yes fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: No conflict found. Internal Libevent or libevent_core is being used." >&5 $as_echo "No conflict found. Internal Libevent or libevent_core is being used." >&6; } orte_check_lsf_event_conflict=na fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: No conflict found. LSF checks passed." >&5 $as_echo "No conflict found. LSF checks passed." >&6; } orte_check_lsf_event_conflict=na fi if test "$orte_check_lsf_event_conflict" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 $as_echo "$as_me: WARNING: ===================================================================" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conflicting libevent.so libraries detected on the system." >&5 $as_echo "$as_me: WARNING: Conflicting libevent.so libraries detected on the system." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 $as_echo "$as_me: WARNING: " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A system-installed Libevent library was detected and the Open MPI" >&5 $as_echo "$as_me: WARNING: A system-installed Libevent library was detected and the Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: build system chose to use the 'external' component expecting to" >&5 $as_echo "$as_me: WARNING: build system chose to use the 'external' component expecting to" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: link against the Libevent in the linker search path." >&5 $as_echo "$as_me: WARNING: link against the Libevent in the linker search path." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If LSF is present on the system and in the default search path then" >&5 $as_echo "$as_me: WARNING: If LSF is present on the system and in the default search path then" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: it _may be_ the source of the conflict." >&5 $as_echo "$as_me: WARNING: it _may be_ the source of the conflict." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&5 $as_echo "$as_me: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library path. At this point the linker is attempting to resolve" >&5 $as_echo "$as_me: WARNING: library path. At this point the linker is attempting to resolve" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libevent symbols using the LSF library because of the lack of" >&5 $as_echo "$as_me: WARNING: Libevent symbols using the LSF library because of the lack of" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: an explicit linker path pointing to the system-installed Libevent." >&5 $as_echo "$as_me: WARNING: an explicit linker path pointing to the system-installed Libevent." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 $as_echo "$as_me: WARNING: " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: To resolve this issue either (A) explicitly pass the Libevent" >&5 $as_echo "$as_me: WARNING: To resolve this issue either (A) explicitly pass the Libevent" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library path on the configure line (--with-libevent-libdir), or" >&5 $as_echo "$as_me: WARNING: library path on the configure line (--with-libevent-libdir), or" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (B) use the internal libevent by requesting it from configure " >&5 $as_echo "$as_me: WARNING: (B) use the internal libevent by requesting it from configure " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with the --with-libevent=internal option." >&5 $as_echo "$as_me: WARNING: with the --with-libevent=internal option." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 $as_echo "$as_me: WARNING: ===================================================================" >&2;} fi CPPFLAGS="$orte_check_lsf_ess_lsf_save_CPPFLAGS" LDFLAGS="$orte_check_lsf_ess_lsf_save_LDFLAGS" LIBS="$orte_check_lsf_ess_lsf_save_LIBS" else orte_check_lsf_happy=no 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 Resource Managers | tr ' ' '_') ompi_summary_line="LSF: $orte_check_lsf_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 fi if test "$orte_check_lsf_happy" = "yes"; then : ess_lsf_LIBS="$ess_lsf_LIBS $orte_check_lsf_LIBS" ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS $orte_check_lsf_LDFLAGS" ess_lsf_CPPFLAGS="$ess_lsf_CPPFLAGS $orte_check_lsf_CPPFLAGS" # add the LSF libraries to static builds as they are required ess_lsf_WRAPPER_EXTRA_LDFLAGS=$ess_lsf_LDFLAGS ess_lsf_WRAPPER_EXTRA_LIBS=$ess_lsf_LIBS ess_lsf_good=1 else if test ! -z "$with_lsf" && test "$with_lsf" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF support requested (via --with-lsf) but not found." >&5 $as_echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;} as_fn_error $? "Aborting." "$LINENO" 5 fi ess_lsf_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$ess_lsf_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/lsf/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components lsf" if test "$compile_mode" = "dso" ; then dso_components="$dso_components lsf" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/lsf/lib${ORTE_LIB_PREFIX}mca_ess_lsf.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/lsf/libmca_ess_lsf.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_lsf_component;" >> $outfile.extern echo " &mca_ess_lsf_component, " >> $outfile.struct static_components="$static_components lsf" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:lsf can compile" >&5 $as_echo_n "checking if MCA component ess:lsf can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "lsf" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component lsf was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "lsf" ; then as_fn_error $? "*** ess component lsf was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ess_lsf_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ess_lsf_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ess_lsf_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ess_lsf_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ess_lsf_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ess_lsf_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ess_lsf_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ess_lsf_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ess_lsf_WRAPPER_EXTRA_CPPFLAGS ($ess_lsf_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ess_lsf_WRAPPER_EXTRA_CPPFLAGS ($ess_lsf_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:lsf can compile" >&5 $as_echo_n "checking if MCA component ess:lsf can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "lsf" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "lsf" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components lsf" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_ess_lsf_DSO=1 else BUILD_orte_ess_lsf_DSO=0 fi if test "$BUILD_orte_ess_lsf_DSO" = "1"; then MCA_BUILD_orte_ess_lsf_DSO_TRUE= MCA_BUILD_orte_ess_lsf_DSO_FALSE='#' else MCA_BUILD_orte_ess_lsf_DSO_TRUE='#' MCA_BUILD_orte_ess_lsf_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component ess:slurm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/ess/slurm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "slurm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi if test "$DISABLE_ess_slurm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_ess" SHARED_COMPONENT="$DSO_ess_slurm" STATIC_FRAMEWORK="$STATIC_ess" STATIC_COMPONENT="$STATIC_ess_slurm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:slurm compile mode" >&5 $as_echo_n "checking for MCA component ess:slurm compile mode... " >&6; } if test "$DIRECT_ess" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/ess/slurm/Makefile" if test -z "$orte_check_slurm_happy" ; then # Check whether --with-slurm was given. if test "${with_slurm+set}" = set; then : withval=$with_slurm; fi if test "$with_slurm" = "no" ; then orte_check_slurm_happy="no" elif test "$with_slurm" = "" ; then # unless user asked, only build slurm component on linux, AIX, # and OS X systems (these are the platforms that SLURM # supports) case $host in *-linux*|*-aix*|*-apple-darwin*) orte_check_slurm_happy="yes" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLURM srun in PATH" >&5 $as_echo_n "checking for SLURM srun in PATH... " >&6; } # 1 is the variable name to do "which" on # 2 is the variable name to assign the return value to # Is the private index set? If not, set it. if test "x$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=srun IFS_SAVE=$IFS IFS="$PATH_SEPARATOR" for opal_dir in $PATH; do if test -x "$opal_dir/$opal_prog"; then ORTE_CHECK_SLURM_SRUN="$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 "$ORTE_CHECK_SLURM_SRUN" = ""; then orte_check_slurm_happy="no" else orte_check_slurm_happy="yes" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_slurm_happy" >&5 $as_echo "$orte_check_slurm_happy" >&6; } ;; esac else orte_check_slurm_happy="yes" fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" if test "x$ac_cv_func_fork" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve" if test "x$ac_cv_func_execve" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" if test "x$ac_cv_func_setpgid" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi # check to see if this is a Cray nativized slurm env. slurm_cray_env=0 if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : orte_slurm_cray_LDFLAGS="$orte_slurm_cray_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" orte_slurm_cray_CPPFLAGS="$orte_slurm_cray_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" orte_slurm_cray_LIBS="$orte_slurm_cray_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" orte_slurm_cray_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" orte_slurm_cray_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" slurm_cray_env=1 fi cat >>confdefs.h <<_ACEOF #define SLURM_CRAY_ENV $slurm_cray_env _ACEOF # 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 Resource Managers | tr ' ' '_') ompi_summary_line="Slurm: $orte_check_slurm_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 fi if test "$orte_check_slurm_happy" = "yes"; then : ess_slurm_good=1 else ess_slurm_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$ess_slurm_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/slurm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components slurm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components slurm" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/slurm/lib${ORTE_LIB_PREFIX}mca_ess_slurm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/slurm/libmca_ess_slurm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_slurm_component;" >> $outfile.extern echo " &mca_ess_slurm_component, " >> $outfile.struct static_components="$static_components slurm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:slurm can compile" >&5 $as_echo_n "checking if MCA component ess:slurm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "slurm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component slurm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "slurm" ; then as_fn_error $? "*** ess component slurm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ess_slurm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ess_slurm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ess_slurm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ess_slurm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ess_slurm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ess_slurm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ess_slurm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ess_slurm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ess_slurm_WRAPPER_EXTRA_CPPFLAGS ($ess_slurm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ess_slurm_WRAPPER_EXTRA_CPPFLAGS ($ess_slurm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:slurm can compile" >&5 $as_echo_n "checking if MCA component ess:slurm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components slurm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_ess_slurm_DSO=1 else BUILD_orte_ess_slurm_DSO=0 fi if test "$BUILD_orte_ess_slurm_DSO" = "1"; then MCA_BUILD_orte_ess_slurm_DSO_TRUE= MCA_BUILD_orte_ess_slurm_DSO_FALSE='#' else MCA_BUILD_orte_ess_slurm_DSO_TRUE='#' MCA_BUILD_orte_ess_slurm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component ess:tm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/ess/tm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "tm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi if test "$DISABLE_ess_tm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_ess" SHARED_COMPONENT="$DSO_ess_tm" STATIC_FRAMEWORK="$STATIC_ess" STATIC_COMPONENT="$STATIC_ess_tm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:tm compile mode" >&5 $as_echo_n "checking for MCA component ess:tm compile mode... " >&6; } if test "$DIRECT_ess" = "tm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/ess/tm/Makefile" if test -z $orte_check_tm_happy ; 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 orte_check_tm_found orte_check_tm_dir orte_check_tm_pbs_config orte_check_tm_LDFLAGS_save orte_check_tm_CPPFLAGS_save orte_check_tm_LIBS_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=\"orte_check_tm_found orte_check_tm_dir orte_check_tm_pbs_config orte_check_tm_LDFLAGS_save orte_check_tm_CPPFLAGS_save orte_check_tm_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-tm was given. if test "${with_tm+set}" = set; then : withval=$with_tm; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tm value" >&5 $as_echo_n "checking --with-tm value... " >&6; } if test "$with_tm" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-tm)" >&5 $as_echo "simple no (specified --without-tm)" >&6; } else if test "$with_tm" = "yes" || test "x$with_tm" = "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_tm"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_tm not found" >&5 $as_echo "$as_me: WARNING: Directory $with_tm not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_tm/include/tm.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_tm/include/tm.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_tm/include/tm.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_tm)" >&5 $as_echo "sanity check ok ($with_tm)" >&6; } fi fi fi fi orte_check_tm_found=no if test "$with_tm" = "no"; then : orte_check_tm_happy="no" else orte_check_tm_happy="yes" if test ! -z "$with_tm" && test "$with_tm" != "yes"; then : orte_check_tm_dir="$with_tm" else orte_check_tm_dir="" fi fi if test "$orte_check_tm_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pbs-config" >&5 $as_echo_n "checking for pbs-config... " >&6; } orte_check_tm_pbs_config="not found" if test "$orte_check_tm_dir" != "" && test -d "$orte_check_tm_dir" && test -x "$orte_check_tm_dir/bin/pbs-config"; then : orte_check_tm_pbs_config="$orte_check_tm_dir/bin/pbs-config" else if pbs-config --prefix >/dev/null 2>&1; then : orte_check_tm_pbs_config="pbs-config" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_tm_pbs_config" >&5 $as_echo "$orte_check_tm_pbs_config" >&6; } fi # If we have pbs-config, get the flags we need from there and then # do simplistic tests looking for the tm headers and symbols if test "$orte_check_tm_happy" = "yes" && test "$orte_check_tm_pbs_config" != "not found"; then : orte_check_tm_CPPFLAGS=`$orte_check_tm_pbs_config --cflags` # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:204767: orte_check_tm_CPPFLAGS from pbs-config: $orte_check_tm_CPPFLAGS" >&5 else echo orte_check_tm_CPPFLAGS from pbs-config: $orte_check_tm_CPPFLAGS >&5 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 orte_check_tm_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=\"orte_check_tm_flags\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` orte_check_tm_flags=`$orte_check_tm_pbs_config --libs` for orte_check_tm_val in $orte_check_tm_flags; do if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then if test "LDFLAGS" = "LIBS"; then orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS $orte_check_tm_val" fi else if test "LDFLAGS" = "LDFLAGS"; then orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS $orte_check_tm_val" 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 message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:204848: orte_check_tm_LDFLAGS from pbs-config: $orte_check_tm_LDFLAGS" >&5 else echo orte_check_tm_LDFLAGS from pbs-config: $orte_check_tm_LDFLAGS >&5 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 orte_check_tm_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=\"orte_check_tm_flags\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` orte_check_tm_flags=`$orte_check_tm_pbs_config --libs` for orte_check_tm_val in $orte_check_tm_flags; do if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then if test "LIBS" = "LIBS"; then orte_check_tm_LIBS="$orte_check_tm_LIBS $orte_check_tm_val" fi else if test "LIBS" = "LDFLAGS"; then orte_check_tm_LIBS="$orte_check_tm_LIBS $orte_check_tm_val" 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 message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:204929: orte_check_tm_LIBS from pbs-config: $orte_check_tm_LIBS" >&5 else echo orte_check_tm_LIBS from pbs-config: $orte_check_tm_LIBS >&5 fi # Now that we supposedly have the right flags, try them out. orte_check_tm_CPPFLAGS_save="$CPPFLAGS" orte_check_tm_LDFLAGS_save="$LDFLAGS" orte_check_tm_LIBS_save="$LIBS" CPPFLAGS="$CPPFLAGS $orte_check_tm_CPPFLAGS" LIBS="$LIBS $orte_check_tm_LIBS" LDFLAGS="$LDFLAGS $orte_check_tm_LDFLAGS" ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default" if test "x$ac_cv_header_tm_h" = xyes; then : ac_fn_c_check_func "$LINENO" "tm_finalize" "ac_cv_func_tm_finalize" if test "x$ac_cv_func_tm_finalize" = xyes; then : orte_check_tm_found="yes" fi fi CPPFLAGS="$orte_check_tm_CPPFLAGS_save" LDFLAGS="$orte_check_tm_LDFLAGS_save" LIBS="$orte_check_tm_LIBS_save" fi # If we don't have pbs-config, then we have to look around # manually. # Note that Torque 2.1.0 changed the name of their back-end # library to "libtorque". So we have to check for both libpbs and # libtorque. First, check for libpbs. orte_check_package_ess_tm_save_CPPFLAGS="$CPPFLAGS" orte_check_package_ess_tm_save_LDFLAGS="$LDFLAGS" orte_check_package_ess_tm_save_LIBS="$LIBS" if test "$orte_check_tm_found" = "no"; then : if test "$orte_check_tm_happy" = "yes"; then : # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_tm_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_check_tm_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 tm.h do : ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default" if test "x$ac_cv_header_tm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TM_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_tm_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : orte_check_tm_CPPFLAGS="$orte_check_tm_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in tm.h do : ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default" if test "x$ac_cv_header_tm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TM_H 1 _ACEOF opal_check_package_header_happy="yes" fi done if test "$opal_check_package_header_happy" = "yes"; then : orte_check_tm_found="yes" else orte_check_tm_found="no" fi else orte_check_tm_found="yes" 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 fi if test "$orte_check_tm_found" = "yes"; then : # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # see comment above unset ac_cv_search_tm_init opal_check_package_lib_happy="no" if test "$orte_check_tm_libdir" != ""; then : # libdir was specified - search only there orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS -L$orte_check_tm_libdir" LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init 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 libpbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libpbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void tm_init (void); int main(int argc, char *argv[]) { tm_init (); 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:205505: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_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:205512: \$? = $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 pbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pbs" >&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, libpbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&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 pbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pbs" # 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 libpbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pbs" # 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_tm_init" != "no" && test "$ac_cv_search_tm_init" != "none required"; then : orte_check_tm_LIBS="$ac_cv_search_tm_init " else orte_check_tm_LIBS="" fi orte_check_tm_found="yes" else # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # see comment above unset ac_cv_search_tm_init opal_check_package_lib_happy="no" if test "$orte_check_tm_libdir" != ""; then : # libdir was specified - search only there orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS -L$orte_check_tm_libdir" LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init 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 libpbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libpbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void tm_init (void); int main(int argc, char *argv[]) { tm_init (); 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:206222: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_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:206229: \$? = $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 pbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pbs" >&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, libpbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&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 pbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pbs" # 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 libpbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pbs" # 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_tm_init" != "no" && test "$ac_cv_search_tm_init" != "none required"; then : orte_check_tm_LIBS="$ac_cv_search_tm_init -lcrypto" else orte_check_tm_LIBS="-lcrypto" fi orte_check_tm_found="yes" else # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # see comment above unset ac_cv_search_tm_init opal_check_package_lib_happy="no" if test "$orte_check_tm_libdir" != ""; then : # libdir was specified - search only there orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS -L$orte_check_tm_libdir" LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init 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 libtorque requires libnl v1 or v3" >&5 $as_echo_n "checking if libtorque requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void tm_init (void); int main(int argc, char *argv[]) { tm_init (); 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:206939: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltorque $LIBS $orte_check_tm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltorque $LIBS $orte_check_tm_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:206946: \$? = $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 torque" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib torque" >&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, libtorque links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libtorque 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 libtorque (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtorque (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtorque." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtorque." >&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 torque requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas torque 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 libtorque (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtorque (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtorque." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtorque." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs torque" # 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 libtorque requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libtorque 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 libtorque (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtorque (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtorque." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtorque." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs torque" # 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_tm_init" != "no" && test "$ac_cv_search_tm_init" != "none required"; then : orte_check_tm_LIBS="$ac_cv_search_tm_init " else orte_check_tm_LIBS="" fi orte_check_tm_found="yes" else orte_check_tm_found="no" fi fi fi fi fi CPPFLAGS="$orte_check_package_ess_tm_save_CPPFLAGS" LDFLAGS="$orte_check_package_ess_tm_save_LDFLAGS" LIBS="$orte_check_package_ess_tm_save_LIBS" if test "$orte_check_tm_found" = "no" ; then orte_check_tm_happy=no 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 Resource Managers | tr ' ' '_') ompi_summary_line="Torque: $orte_check_tm_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 # 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 # Did we find the right stuff? if test "$orte_check_tm_happy" = "yes"; then : ess_tm_LIBS="$ess_tm_LIBS $orte_check_tm_LIBS" ess_tm_LDFLAGS="$ess_tm_LDFLAGS $orte_check_tm_LDFLAGS" ess_tm_CPPFLAGS="$ess_tm_CPPFLAGS $orte_check_tm_CPPFLAGS" # add the TM libraries to static builds as they are required ess_tm_WRAPPER_EXTRA_LDFLAGS=$ess_tm_LDFLAGS ess_tm_WRAPPER_EXTRA_LIBS=$ess_tm_LIBS ess_tm_good=1 else if test ! -z "$with_tm" && test "$with_tm" != "no"; then : as_fn_error $? "TM support requested but not found. Aborting" "$LINENO" 5 fi orte_check_tm_happy="no" ess_tm_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$ess_tm_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/tm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components tm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components tm" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/tm/lib${ORTE_LIB_PREFIX}mca_ess_tm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/tm/libmca_ess_tm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_tm_component;" >> $outfile.extern echo " &mca_ess_tm_component, " >> $outfile.struct static_components="$static_components tm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:tm can compile" >&5 $as_echo_n "checking if MCA component ess:tm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "tm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component tm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "tm" ; then as_fn_error $? "*** ess component tm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ess_tm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ess_tm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ess_tm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ess_tm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ess_tm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ess_tm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ess_tm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ess_tm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ess_tm_WRAPPER_EXTRA_CPPFLAGS ($ess_tm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ess_tm_WRAPPER_EXTRA_CPPFLAGS ($ess_tm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:tm can compile" >&5 $as_echo_n "checking if MCA component ess:tm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "tm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "tm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components tm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_ess_tm_DSO=1 else BUILD_orte_ess_tm_DSO=0 fi if test "$BUILD_orte_ess_tm_DSO" = "1"; then MCA_BUILD_orte_ess_tm_DSO_TRUE= MCA_BUILD_orte_ess_tm_DSO_FALSE='#' else MCA_BUILD_orte_ess_tm_DSO_TRUE='#' MCA_BUILD_orte_ess_tm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/ess/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component ess:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/ess/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ess" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_ess_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_ess" str="SHARED_COMPONENT=\$DSO_ess_$component" eval $str STATIC_FRAMEWORK="$STATIC_ess" str="STATIC_COMPONENT=\$STATIC_ess_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ess:$component compile mode" >&5 $as_echo_n "checking for MCA component ess:$component compile mode... " >&6; } if test "$DIRECT_ess" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/ess/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/ess/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/ess/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then ess_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then ess_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ess/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "ess" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ess/$component/lib${ORTE_LIB_PREFIX}mca_ess_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ess/$component/libmca_ess_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ess_$component_component;" >> $outfile.extern echo " &mca_ess_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:$component can compile" >&5 $as_echo_n "checking if MCA component ess:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ess" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ess_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ess component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ess" = "$component" ; then as_fn_error $? "*** ess component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$ess_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$ess_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ess:$component can compile" >&5 $as_echo_n "checking if MCA component ess:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ess" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ess" ; then if test "$DIRECT_ess" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_ess_ALL_COMPONENTS="$all_components" MCA_orte_ess_STATIC_COMPONENTS="$static_components" MCA_orte_ess_DSO_COMPONENTS="$dso_components" MCA_orte_ess_STATIC_LTLIBS="$static_ltlibs" MCA_orte_ess_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_ess_ALL_SUBDIRS="$MCA_orte_ess_ALL_SUBDIRS mca/ess/$item" done MCA_orte_ess_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_ess_STATIC_SUBDIRS="$MCA_orte_ess_STATIC_SUBDIRS mca/ess/$item" done MCA_orte_ess_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_ess_DSO_SUBDIRS="$MCA_orte_ess_DSO_SUBDIRS mca/ess/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "ess" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS filem" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/filem" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_filem_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_filem_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_filem_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/filem/libmca_filem.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_filem_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework filem" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/filem/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/filem/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework filem" >&5 $as_echo_n "checking for no configure components in framework filem... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: raw" >&5 $as_echo "raw" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework filem" >&5 $as_echo_n "checking for m4 configure components in framework filem... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component filem:raw (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/filem/raw" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_filem" ; then if test "$DIRECT_filem" = "raw" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_filem" = "1"; then : want_component=0 fi if test "$DISABLE_filem_raw" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_filem" SHARED_COMPONENT="$DSO_filem_raw" STATIC_FRAMEWORK="$STATIC_filem" STATIC_COMPONENT="$STATIC_filem_raw" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component filem:raw compile mode" >&5 $as_echo_n "checking for MCA component filem:raw compile mode... " >&6; } if test "$DIRECT_filem" = "raw" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/filem/raw/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components raw" if test "$compile_mode" = "dso" ; then dso_components="$dso_components raw" else if test "filem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/filem/raw/lib${ORTE_LIB_PREFIX}mca_filem_raw.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/filem/raw/libmca_filem_raw.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_filem_raw_component;" >> $outfile.extern echo " &mca_filem_raw_component, " >> $outfile.struct static_components="$static_components raw" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component filem:raw can compile" >&5 $as_echo_n "checking if MCA component filem:raw can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_filem" = "raw" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_filem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** filem component raw was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_filem" = "raw" ; then as_fn_error $? "*** filem component raw was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$filem_raw_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $filem_raw_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $filem_raw_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$filem_raw_WRAPPER_EXTRA_LIBS" = ""; 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_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 $filem_raw_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $filem_raw_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$filem_raw_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $filem_raw_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring filem_raw_WRAPPER_EXTRA_CPPFLAGS ($filem_raw_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring filem_raw_WRAPPER_EXTRA_CPPFLAGS ($filem_raw_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component filem:raw can compile" >&5 $as_echo_n "checking if MCA component filem:raw can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_filem" = "raw" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"raw\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"raw\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_filem" ; then if test "$DIRECT_filem" = "raw" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"raw\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"raw\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components raw" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_filem_raw_DSO=1 else BUILD_orte_filem_raw_DSO=0 fi if test "$BUILD_orte_filem_raw_DSO" = "1"; then MCA_BUILD_orte_filem_raw_DSO_TRUE= MCA_BUILD_orte_filem_raw_DSO_FALSE='#' else MCA_BUILD_orte_filem_raw_DSO_TRUE='#' MCA_BUILD_orte_filem_raw_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/filem/raw/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/filem/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component filem:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/filem/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_filem" ; then if test "$DIRECT_filem" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_filem" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_filem_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_filem" str="SHARED_COMPONENT=\$DSO_filem_$component" eval $str STATIC_FRAMEWORK="$STATIC_filem" str="STATIC_COMPONENT=\$STATIC_filem_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component filem:$component compile mode" >&5 $as_echo_n "checking for MCA component filem:$component compile mode... " >&6; } if test "$DIRECT_filem" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/filem/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/filem/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/filem/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then filem_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then filem_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/filem/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "filem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/filem/$component/lib${ORTE_LIB_PREFIX}mca_filem_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/filem/$component/libmca_filem_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_filem_$component_component;" >> $outfile.extern echo " &mca_filem_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component filem:$component can compile" >&5 $as_echo_n "checking if MCA component filem:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_filem" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_filem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** filem component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_filem" = "$component" ; then as_fn_error $? "*** filem component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$filem_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$filem_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component filem:$component can compile" >&5 $as_echo_n "checking if MCA component filem:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_filem" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_filem" ; then if test "$DIRECT_filem" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_filem_ALL_COMPONENTS="$all_components" MCA_orte_filem_STATIC_COMPONENTS="$static_components" MCA_orte_filem_DSO_COMPONENTS="$dso_components" MCA_orte_filem_STATIC_LTLIBS="$static_ltlibs" MCA_orte_filem_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_filem_ALL_SUBDIRS="$MCA_orte_filem_ALL_SUBDIRS mca/filem/$item" done MCA_orte_filem_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_filem_STATIC_SUBDIRS="$MCA_orte_filem_STATIC_SUBDIRS mca/filem/$item" done MCA_orte_filem_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_filem_DSO_SUBDIRS="$MCA_orte_filem_DSO_SUBDIRS mca/filem/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "filem" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS grpcomm" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/grpcomm" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_grpcomm_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_grpcomm_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_grpcomm_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/grpcomm/libmca_grpcomm.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_grpcomm_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework grpcomm" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/grpcomm/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/grpcomm/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework grpcomm" >&5 $as_echo_n "checking for no configure components in framework grpcomm... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: direct" >&5 $as_echo "direct" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework grpcomm" >&5 $as_echo_n "checking for m4 configure components in framework grpcomm... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component grpcomm:direct (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/grpcomm/direct" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_grpcomm" ; then if test "$DIRECT_grpcomm" = "direct" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_grpcomm" = "1"; then : want_component=0 fi if test "$DISABLE_grpcomm_direct" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_grpcomm" SHARED_COMPONENT="$DSO_grpcomm_direct" STATIC_FRAMEWORK="$STATIC_grpcomm" STATIC_COMPONENT="$STATIC_grpcomm_direct" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component grpcomm:direct compile mode" >&5 $as_echo_n "checking for MCA component grpcomm:direct compile mode... " >&6; } if test "$DIRECT_grpcomm" = "direct" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/grpcomm/direct/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components direct" if test "$compile_mode" = "dso" ; then dso_components="$dso_components direct" else if test "grpcomm" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/grpcomm/direct/lib${ORTE_LIB_PREFIX}mca_grpcomm_direct.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/grpcomm/direct/libmca_grpcomm_direct.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_grpcomm_direct_component;" >> $outfile.extern echo " &mca_grpcomm_direct_component, " >> $outfile.struct static_components="$static_components direct" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component grpcomm:direct can compile" >&5 $as_echo_n "checking if MCA component grpcomm:direct can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_grpcomm" = "direct" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_grpcomm_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** grpcomm component direct was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_grpcomm" = "direct" ; then as_fn_error $? "*** grpcomm component direct was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$grpcomm_direct_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $grpcomm_direct_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $grpcomm_direct_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$grpcomm_direct_WRAPPER_EXTRA_LIBS" = ""; 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_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 $grpcomm_direct_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $grpcomm_direct_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$grpcomm_direct_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $grpcomm_direct_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring grpcomm_direct_WRAPPER_EXTRA_CPPFLAGS ($grpcomm_direct_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring grpcomm_direct_WRAPPER_EXTRA_CPPFLAGS ($grpcomm_direct_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component grpcomm:direct can compile" >&5 $as_echo_n "checking if MCA component grpcomm:direct can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_grpcomm" = "direct" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"direct\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_grpcomm" ; then if test "$DIRECT_grpcomm" = "direct" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"direct\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components direct" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_grpcomm_direct_DSO=1 else BUILD_orte_grpcomm_direct_DSO=0 fi if test "$BUILD_orte_grpcomm_direct_DSO" = "1"; then MCA_BUILD_orte_grpcomm_direct_DSO_TRUE= MCA_BUILD_orte_grpcomm_direct_DSO_FALSE='#' else MCA_BUILD_orte_grpcomm_direct_DSO_TRUE='#' MCA_BUILD_orte_grpcomm_direct_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/grpcomm/direct/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/grpcomm/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component grpcomm:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/grpcomm/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_grpcomm" ; then if test "$DIRECT_grpcomm" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_grpcomm" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_grpcomm_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_grpcomm" str="SHARED_COMPONENT=\$DSO_grpcomm_$component" eval $str STATIC_FRAMEWORK="$STATIC_grpcomm" str="STATIC_COMPONENT=\$STATIC_grpcomm_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component grpcomm:$component compile mode" >&5 $as_echo_n "checking for MCA component grpcomm:$component compile mode... " >&6; } if test "$DIRECT_grpcomm" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/grpcomm/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/grpcomm/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/grpcomm/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then grpcomm_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then grpcomm_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/grpcomm/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "grpcomm" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/grpcomm/$component/lib${ORTE_LIB_PREFIX}mca_grpcomm_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/grpcomm/$component/libmca_grpcomm_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_grpcomm_$component_component;" >> $outfile.extern echo " &mca_grpcomm_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component grpcomm:$component can compile" >&5 $as_echo_n "checking if MCA component grpcomm:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_grpcomm" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_grpcomm_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** grpcomm component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_grpcomm" = "$component" ; then as_fn_error $? "*** grpcomm component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$grpcomm_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$grpcomm_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component grpcomm:$component can compile" >&5 $as_echo_n "checking if MCA component grpcomm:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_grpcomm" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_grpcomm" ; then if test "$DIRECT_grpcomm" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_grpcomm_ALL_COMPONENTS="$all_components" MCA_orte_grpcomm_STATIC_COMPONENTS="$static_components" MCA_orte_grpcomm_DSO_COMPONENTS="$dso_components" MCA_orte_grpcomm_STATIC_LTLIBS="$static_ltlibs" MCA_orte_grpcomm_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_grpcomm_ALL_SUBDIRS="$MCA_orte_grpcomm_ALL_SUBDIRS mca/grpcomm/$item" done MCA_orte_grpcomm_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_grpcomm_STATIC_SUBDIRS="$MCA_orte_grpcomm_STATIC_SUBDIRS mca/grpcomm/$item" done MCA_orte_grpcomm_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_grpcomm_DSO_SUBDIRS="$MCA_orte_grpcomm_DSO_SUBDIRS mca/grpcomm/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "grpcomm" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS iof" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/iof" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_iof_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_iof_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_iof_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/iof/libmca_iof.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_iof_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework iof" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/iof/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/iof/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework iof" >&5 $as_echo_n "checking for no configure components in framework iof... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: hnp, orted, tool" >&5 $as_echo "hnp, orted, tool" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework iof" >&5 $as_echo_n "checking for m4 configure components in framework iof... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component iof:hnp (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/iof/hnp" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_iof" ; then if test "$DIRECT_iof" = "hnp" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_iof" = "1"; then : want_component=0 fi if test "$DISABLE_iof_hnp" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_iof" SHARED_COMPONENT="$DSO_iof_hnp" STATIC_FRAMEWORK="$STATIC_iof" STATIC_COMPONENT="$STATIC_iof_hnp" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component iof:hnp compile mode" >&5 $as_echo_n "checking for MCA component iof:hnp compile mode... " >&6; } if test "$DIRECT_iof" = "hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/iof/hnp/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components hnp" if test "$compile_mode" = "dso" ; then dso_components="$dso_components hnp" else if test "iof" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/iof/hnp/lib${ORTE_LIB_PREFIX}mca_iof_hnp.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/iof/hnp/libmca_iof_hnp.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_iof_hnp_component;" >> $outfile.extern echo " &mca_iof_hnp_component, " >> $outfile.struct static_components="$static_components hnp" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:hnp can compile" >&5 $as_echo_n "checking if MCA component iof:hnp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_iof" = "hnp" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_iof_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** iof component hnp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_iof" = "hnp" ; then as_fn_error $? "*** iof component hnp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$iof_hnp_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $iof_hnp_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $iof_hnp_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$iof_hnp_WRAPPER_EXTRA_LIBS" = ""; 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_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 $iof_hnp_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $iof_hnp_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$iof_hnp_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $iof_hnp_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring iof_hnp_WRAPPER_EXTRA_CPPFLAGS ($iof_hnp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring iof_hnp_WRAPPER_EXTRA_CPPFLAGS ($iof_hnp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:hnp can compile" >&5 $as_echo_n "checking if MCA component iof:hnp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_iof" = "hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_iof" ; then if test "$DIRECT_iof" = "hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components hnp" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_iof_hnp_DSO=1 else BUILD_orte_iof_hnp_DSO=0 fi if test "$BUILD_orte_iof_hnp_DSO" = "1"; then MCA_BUILD_orte_iof_hnp_DSO_TRUE= MCA_BUILD_orte_iof_hnp_DSO_FALSE='#' else MCA_BUILD_orte_iof_hnp_DSO_TRUE='#' MCA_BUILD_orte_iof_hnp_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/iof/hnp/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component iof:orted (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/iof/orted" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_iof" ; then if test "$DIRECT_iof" = "orted" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_iof" = "1"; then : want_component=0 fi if test "$DISABLE_iof_orted" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_iof" SHARED_COMPONENT="$DSO_iof_orted" STATIC_FRAMEWORK="$STATIC_iof" STATIC_COMPONENT="$STATIC_iof_orted" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component iof:orted compile mode" >&5 $as_echo_n "checking for MCA component iof:orted compile mode... " >&6; } if test "$DIRECT_iof" = "orted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/iof/orted/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components orted" if test "$compile_mode" = "dso" ; then dso_components="$dso_components orted" else if test "iof" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/iof/orted/lib${ORTE_LIB_PREFIX}mca_iof_orted.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/iof/orted/libmca_iof_orted.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_iof_orted_component;" >> $outfile.extern echo " &mca_iof_orted_component, " >> $outfile.struct static_components="$static_components orted" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:orted can compile" >&5 $as_echo_n "checking if MCA component iof:orted can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_iof" = "orted" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_iof_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** iof component orted was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_iof" = "orted" ; then as_fn_error $? "*** iof component orted was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$iof_orted_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $iof_orted_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $iof_orted_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$iof_orted_WRAPPER_EXTRA_LIBS" = ""; 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_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 $iof_orted_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $iof_orted_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$iof_orted_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $iof_orted_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring iof_orted_WRAPPER_EXTRA_CPPFLAGS ($iof_orted_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring iof_orted_WRAPPER_EXTRA_CPPFLAGS ($iof_orted_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:orted can compile" >&5 $as_echo_n "checking if MCA component iof:orted can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_iof" = "orted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orted\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_iof" ; then if test "$DIRECT_iof" = "orted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orted\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components orted" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_iof_orted_DSO=1 else BUILD_orte_iof_orted_DSO=0 fi if test "$BUILD_orte_iof_orted_DSO" = "1"; then MCA_BUILD_orte_iof_orted_DSO_TRUE= MCA_BUILD_orte_iof_orted_DSO_FALSE='#' else MCA_BUILD_orte_iof_orted_DSO_TRUE='#' MCA_BUILD_orte_iof_orted_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/iof/orted/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component iof:tool (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/iof/tool" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_iof" ; then if test "$DIRECT_iof" = "tool" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_iof" = "1"; then : want_component=0 fi if test "$DISABLE_iof_tool" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_iof" SHARED_COMPONENT="$DSO_iof_tool" STATIC_FRAMEWORK="$STATIC_iof" STATIC_COMPONENT="$STATIC_iof_tool" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component iof:tool compile mode" >&5 $as_echo_n "checking for MCA component iof:tool compile mode... " >&6; } if test "$DIRECT_iof" = "tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/iof/tool/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components tool" if test "$compile_mode" = "dso" ; then dso_components="$dso_components tool" else if test "iof" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/iof/tool/lib${ORTE_LIB_PREFIX}mca_iof_tool.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/iof/tool/libmca_iof_tool.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_iof_tool_component;" >> $outfile.extern echo " &mca_iof_tool_component, " >> $outfile.struct static_components="$static_components tool" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:tool can compile" >&5 $as_echo_n "checking if MCA component iof:tool can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_iof" = "tool" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_iof_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** iof component tool was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_iof" = "tool" ; then as_fn_error $? "*** iof component tool was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$iof_tool_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $iof_tool_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $iof_tool_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$iof_tool_WRAPPER_EXTRA_LIBS" = ""; 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_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 $iof_tool_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $iof_tool_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$iof_tool_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $iof_tool_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring iof_tool_WRAPPER_EXTRA_CPPFLAGS ($iof_tool_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring iof_tool_WRAPPER_EXTRA_CPPFLAGS ($iof_tool_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:tool can compile" >&5 $as_echo_n "checking if MCA component iof:tool can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_iof" = "tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_iof" ; then if test "$DIRECT_iof" = "tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components tool" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_iof_tool_DSO=1 else BUILD_orte_iof_tool_DSO=0 fi if test "$BUILD_orte_iof_tool_DSO" = "1"; then MCA_BUILD_orte_iof_tool_DSO_TRUE= MCA_BUILD_orte_iof_tool_DSO_FALSE='#' else MCA_BUILD_orte_iof_tool_DSO_TRUE='#' MCA_BUILD_orte_iof_tool_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/iof/tool/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/iof/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component iof:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/iof/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_iof" ; then if test "$DIRECT_iof" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_iof" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_iof_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_iof" str="SHARED_COMPONENT=\$DSO_iof_$component" eval $str STATIC_FRAMEWORK="$STATIC_iof" str="STATIC_COMPONENT=\$STATIC_iof_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component iof:$component compile mode" >&5 $as_echo_n "checking for MCA component iof:$component compile mode... " >&6; } if test "$DIRECT_iof" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/iof/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/iof/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/iof/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then iof_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then iof_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/iof/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "iof" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/iof/$component/lib${ORTE_LIB_PREFIX}mca_iof_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/iof/$component/libmca_iof_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_iof_$component_component;" >> $outfile.extern echo " &mca_iof_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:$component can compile" >&5 $as_echo_n "checking if MCA component iof:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_iof" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_iof_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** iof component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_iof" = "$component" ; then as_fn_error $? "*** iof component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$iof_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$iof_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component iof:$component can compile" >&5 $as_echo_n "checking if MCA component iof:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_iof" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_iof" ; then if test "$DIRECT_iof" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_iof_ALL_COMPONENTS="$all_components" MCA_orte_iof_STATIC_COMPONENTS="$static_components" MCA_orte_iof_DSO_COMPONENTS="$dso_components" MCA_orte_iof_STATIC_LTLIBS="$static_ltlibs" MCA_orte_iof_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_iof_ALL_SUBDIRS="$MCA_orte_iof_ALL_SUBDIRS mca/iof/$item" done MCA_orte_iof_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_iof_STATIC_SUBDIRS="$MCA_orte_iof_STATIC_SUBDIRS mca/iof/$item" done MCA_orte_iof_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_iof_DSO_SUBDIRS="$MCA_orte_iof_DSO_SUBDIRS mca/iof/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "iof" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS odls" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/odls" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_odls_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_odls_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_odls_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/odls/libmca_odls.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_odls_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework odls" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/odls/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/odls/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework odls" >&5 $as_echo_n "checking for no configure components in framework odls... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework odls" >&5 $as_echo_n "checking for m4 configure components in framework odls... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: alps, default, pspawn" >&5 $as_echo "alps, default, pspawn" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component odls:alps (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/odls/alps" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_odls" ; then if test "$DIRECT_odls" = "alps" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_odls" = "1"; then : want_component=0 fi if test "$DISABLE_odls_alps" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_odls" SHARED_COMPONENT="$DSO_odls_alps" STATIC_FRAMEWORK="$STATIC_odls" STATIC_COMPONENT="$STATIC_odls_alps" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component odls:alps compile mode" >&5 $as_echo_n "checking for MCA component odls:alps compile mode... " >&6; } if test "$DIRECT_odls" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/odls/alps/Makefile" if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no odls_alps_happy="no" else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : odls_alps_LDFLAGS="$odls_alps_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" odls_alps_CPPFLAGS="$odls_alps_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" odls_alps_LIBS="$odls_alps_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" odls_alps_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" odls_alps_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" odls_alps_happy="yes" else odls_alps_happy="no" fi if test "$odls_alps_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/odls/alps/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components alps" if test "$compile_mode" = "dso" ; then dso_components="$dso_components alps" else if test "odls" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/odls/alps/lib${ORTE_LIB_PREFIX}mca_odls_alps.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/odls/alps/libmca_odls_alps.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_odls_alps_component;" >> $outfile.extern echo " &mca_odls_alps_component, " >> $outfile.struct static_components="$static_components alps" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:alps can compile" >&5 $as_echo_n "checking if MCA component odls:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_odls" = "alps" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_odls_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** odls component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_odls" = "alps" ; then as_fn_error $? "*** odls component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$odls_alps_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $odls_alps_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $odls_alps_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$odls_alps_WRAPPER_EXTRA_LIBS" = ""; 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_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 $odls_alps_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $odls_alps_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$odls_alps_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $odls_alps_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring odls_alps_WRAPPER_EXTRA_CPPFLAGS ($odls_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring odls_alps_WRAPPER_EXTRA_CPPFLAGS ($odls_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:alps can compile" >&5 $as_echo_n "checking if MCA component odls:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_odls" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_odls" ; then if test "$DIRECT_odls" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components alps" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_odls_alps_DSO=1 else BUILD_orte_odls_alps_DSO=0 fi if test "$BUILD_orte_odls_alps_DSO" = "1"; then MCA_BUILD_orte_odls_alps_DSO_TRUE= MCA_BUILD_orte_odls_alps_DSO_FALSE='#' else MCA_BUILD_orte_odls_alps_DSO_TRUE='#' MCA_BUILD_orte_odls_alps_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component odls:default (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/odls/default" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_odls" ; then if test "$DIRECT_odls" = "default" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_odls" = "1"; then : want_component=0 fi if test "$DISABLE_odls_default" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_odls" SHARED_COMPONENT="$DSO_odls_default" STATIC_FRAMEWORK="$STATIC_odls" STATIC_COMPONENT="$STATIC_odls_default" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component odls:default compile mode" >&5 $as_echo_n "checking for MCA component odls:default compile mode... " >&6; } if test "$DIRECT_odls" = "default" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/odls/default/Makefile" ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" if test "x$ac_cv_func_fork" = xyes; then : odls_default_happy="yes" else odls_default_happy="no" fi if test "$odls_default_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/odls/default/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components default" if test "$compile_mode" = "dso" ; then dso_components="$dso_components default" else if test "odls" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/odls/default/lib${ORTE_LIB_PREFIX}mca_odls_default.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/odls/default/libmca_odls_default.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_odls_default_component;" >> $outfile.extern echo " &mca_odls_default_component, " >> $outfile.struct static_components="$static_components default" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:default can compile" >&5 $as_echo_n "checking if MCA component odls:default can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_odls" = "default" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_odls_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** odls component default was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_odls" = "default" ; then as_fn_error $? "*** odls component default was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$odls_default_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $odls_default_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $odls_default_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$odls_default_WRAPPER_EXTRA_LIBS" = ""; 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_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 $odls_default_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $odls_default_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$odls_default_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $odls_default_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring odls_default_WRAPPER_EXTRA_CPPFLAGS ($odls_default_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring odls_default_WRAPPER_EXTRA_CPPFLAGS ($odls_default_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:default can compile" >&5 $as_echo_n "checking if MCA component odls:default can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_odls" = "default" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_odls" ; then if test "$DIRECT_odls" = "default" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"default\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components default" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_odls_default_DSO=1 else BUILD_orte_odls_default_DSO=0 fi if test "$BUILD_orte_odls_default_DSO" = "1"; then MCA_BUILD_orte_odls_default_DSO_TRUE= MCA_BUILD_orte_odls_default_DSO_FALSE='#' else MCA_BUILD_orte_odls_default_DSO_TRUE='#' MCA_BUILD_orte_odls_default_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component odls:pspawn (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/odls/pspawn" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_odls" ; then if test "$DIRECT_odls" = "pspawn" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_odls" = "1"; then : want_component=0 fi if test "$DISABLE_odls_pspawn" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_odls" SHARED_COMPONENT="$DSO_odls_pspawn" STATIC_FRAMEWORK="$STATIC_odls" STATIC_COMPONENT="$STATIC_odls_pspawn" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component odls:pspawn compile mode" >&5 $as_echo_n "checking for MCA component odls:pspawn compile mode... " >&6; } if test "$DIRECT_odls" = "pspawn" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/odls/pspawn/Makefile" ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" if test "x$ac_cv_func_posix_spawn" = xyes; then : odls_pspawn_happy="yes" else odls_pspawn_happy="no" fi if test "$odls_pspawn_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/odls/pspawn/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components pspawn" if test "$compile_mode" = "dso" ; then dso_components="$dso_components pspawn" else if test "odls" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/odls/pspawn/lib${ORTE_LIB_PREFIX}mca_odls_pspawn.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/odls/pspawn/libmca_odls_pspawn.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_odls_pspawn_component;" >> $outfile.extern echo " &mca_odls_pspawn_component, " >> $outfile.struct static_components="$static_components pspawn" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:pspawn can compile" >&5 $as_echo_n "checking if MCA component odls:pspawn can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_odls" = "pspawn" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_odls_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** odls component pspawn was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_odls" = "pspawn" ; then as_fn_error $? "*** odls component pspawn was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$odls_pspawn_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $odls_pspawn_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $odls_pspawn_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$odls_pspawn_WRAPPER_EXTRA_LIBS" = ""; 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_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 $odls_pspawn_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $odls_pspawn_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$odls_pspawn_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $odls_pspawn_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring odls_pspawn_WRAPPER_EXTRA_CPPFLAGS ($odls_pspawn_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring odls_pspawn_WRAPPER_EXTRA_CPPFLAGS ($odls_pspawn_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:pspawn can compile" >&5 $as_echo_n "checking if MCA component odls:pspawn can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_odls" = "pspawn" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pspawn\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pspawn\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_odls" ; then if test "$DIRECT_odls" = "pspawn" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pspawn\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pspawn\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components pspawn" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_odls_pspawn_DSO=1 else BUILD_orte_odls_pspawn_DSO=0 fi if test "$BUILD_orte_odls_pspawn_DSO" = "1"; then MCA_BUILD_orte_odls_pspawn_DSO_TRUE= MCA_BUILD_orte_odls_pspawn_DSO_FALSE='#' else MCA_BUILD_orte_odls_pspawn_DSO_TRUE='#' MCA_BUILD_orte_odls_pspawn_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/odls/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component odls:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/odls/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_odls" ; then if test "$DIRECT_odls" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_odls" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_odls_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_odls" str="SHARED_COMPONENT=\$DSO_odls_$component" eval $str STATIC_FRAMEWORK="$STATIC_odls" str="STATIC_COMPONENT=\$STATIC_odls_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component odls:$component compile mode" >&5 $as_echo_n "checking for MCA component odls:$component compile mode... " >&6; } if test "$DIRECT_odls" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/odls/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/odls/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/odls/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then odls_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then odls_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/odls/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "odls" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/odls/$component/lib${ORTE_LIB_PREFIX}mca_odls_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/odls/$component/libmca_odls_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_odls_$component_component;" >> $outfile.extern echo " &mca_odls_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:$component can compile" >&5 $as_echo_n "checking if MCA component odls:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_odls" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_odls_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** odls component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_odls" = "$component" ; then as_fn_error $? "*** odls component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$odls_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$odls_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component odls:$component can compile" >&5 $as_echo_n "checking if MCA component odls:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_odls" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_odls" ; then if test "$DIRECT_odls" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_odls_ALL_COMPONENTS="$all_components" MCA_orte_odls_STATIC_COMPONENTS="$static_components" MCA_orte_odls_DSO_COMPONENTS="$dso_components" MCA_orte_odls_STATIC_LTLIBS="$static_ltlibs" MCA_orte_odls_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_odls_ALL_SUBDIRS="$MCA_orte_odls_ALL_SUBDIRS mca/odls/$item" done MCA_orte_odls_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_odls_STATIC_SUBDIRS="$MCA_orte_odls_STATIC_SUBDIRS mca/odls/$item" done MCA_orte_odls_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_odls_DSO_SUBDIRS="$MCA_orte_odls_DSO_SUBDIRS mca/odls/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "odls" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS oob" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/oob" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_oob_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_oob_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_oob_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/oob/libmca_oob.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_oob_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework oob" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/oob/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/oob/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework oob" >&5 $as_echo_n "checking for no configure components in framework oob... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework oob" >&5 $as_echo_n "checking for m4 configure components in framework oob... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: alps, tcp" >&5 $as_echo "alps, tcp" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component oob:alps (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/oob/alps" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_oob" ; then if test "$DIRECT_oob" = "alps" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_oob" = "1"; then : want_component=0 fi if test "$DISABLE_oob_alps" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_oob" SHARED_COMPONENT="$DSO_oob_alps" STATIC_FRAMEWORK="$STATIC_oob" STATIC_COMPONENT="$STATIC_oob_alps" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component oob:alps compile mode" >&5 $as_echo_n "checking for MCA component oob:alps compile mode... " >&6; } if test "$DIRECT_oob" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/oob/alps/Makefile" if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no oob_alps_happy="no" else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : oob_alps_LDFLAGS="$oob_alps_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" oob_alps_CPPFLAGS="$oob_alps_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" oob_alps_LIBS="$oob_alps_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" oob_alps_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" oob_alps_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" oob_alps_happy="yes" else oob_alps_happy="no" fi if test "$oob_alps_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/oob/alps/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components alps" if test "$compile_mode" = "dso" ; then dso_components="$dso_components alps" else if test "oob" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/oob/alps/lib${ORTE_LIB_PREFIX}mca_oob_alps.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/oob/alps/libmca_oob_alps.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_oob_alps_component;" >> $outfile.extern echo " &mca_oob_alps_component, " >> $outfile.struct static_components="$static_components alps" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component oob:alps can compile" >&5 $as_echo_n "checking if MCA component oob:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_oob" = "alps" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_oob_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** oob component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_oob" = "alps" ; then as_fn_error $? "*** oob component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$oob_alps_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $oob_alps_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $oob_alps_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$oob_alps_WRAPPER_EXTRA_LIBS" = ""; 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_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 $oob_alps_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $oob_alps_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$oob_alps_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $oob_alps_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring oob_alps_WRAPPER_EXTRA_CPPFLAGS ($oob_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring oob_alps_WRAPPER_EXTRA_CPPFLAGS ($oob_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component oob:alps can compile" >&5 $as_echo_n "checking if MCA component oob:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_oob" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_oob" ; then if test "$DIRECT_oob" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components alps" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_oob_alps_DSO=1 else BUILD_orte_oob_alps_DSO=0 fi if test "$BUILD_orte_oob_alps_DSO" = "1"; then MCA_BUILD_orte_oob_alps_DSO_TRUE= MCA_BUILD_orte_oob_alps_DSO_FALSE='#' else MCA_BUILD_orte_oob_alps_DSO_TRUE='#' MCA_BUILD_orte_oob_alps_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component oob:tcp (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/oob/tcp" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_oob" ; then if test "$DIRECT_oob" = "tcp" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_oob" = "1"; then : want_component=0 fi if test "$DISABLE_oob_tcp" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_oob" SHARED_COMPONENT="$DSO_oob_tcp" STATIC_FRAMEWORK="$STATIC_oob" STATIC_COMPONENT="$STATIC_oob_tcp" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component oob:tcp compile mode" >&5 $as_echo_n "checking for MCA component oob:tcp compile mode... " >&6; } if test "$DIRECT_oob" = "tcp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/oob/tcp/Makefile" # check for sockaddr_in (a good sign we have TCP) ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default #ifdef HAVE_NETINET_IN_H #include #endif " if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_SOCKADDR_IN 1 _ACEOF oob_tcp_happy="yes" else oob_tcp_happy="no" fi if test "$oob_tcp_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/oob/tcp/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components tcp" if test "$compile_mode" = "dso" ; then dso_components="$dso_components tcp" else if test "oob" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/oob/tcp/lib${ORTE_LIB_PREFIX}mca_oob_tcp.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/oob/tcp/libmca_oob_tcp.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_oob_tcp_component;" >> $outfile.extern echo " &mca_oob_tcp_component, " >> $outfile.struct static_components="$static_components tcp" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component oob:tcp can compile" >&5 $as_echo_n "checking if MCA component oob:tcp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_oob" = "tcp" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_oob_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** oob component tcp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_oob" = "tcp" ; then as_fn_error $? "*** oob component tcp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$oob_tcp_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $oob_tcp_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $oob_tcp_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$oob_tcp_WRAPPER_EXTRA_LIBS" = ""; 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_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 $oob_tcp_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $oob_tcp_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$oob_tcp_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $oob_tcp_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring oob_tcp_WRAPPER_EXTRA_CPPFLAGS ($oob_tcp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring oob_tcp_WRAPPER_EXTRA_CPPFLAGS ($oob_tcp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component oob:tcp can compile" >&5 $as_echo_n "checking if MCA component oob:tcp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_oob" = "tcp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_oob" ; then if test "$DIRECT_oob" = "tcp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components tcp" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_oob_tcp_DSO=1 else BUILD_orte_oob_tcp_DSO=0 fi if test "$BUILD_orte_oob_tcp_DSO" = "1"; then MCA_BUILD_orte_oob_tcp_DSO_TRUE= MCA_BUILD_orte_oob_tcp_DSO_FALSE='#' else MCA_BUILD_orte_oob_tcp_DSO_TRUE='#' MCA_BUILD_orte_oob_tcp_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/oob/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component oob:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/oob/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_oob" ; then if test "$DIRECT_oob" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_oob" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_oob_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_oob" str="SHARED_COMPONENT=\$DSO_oob_$component" eval $str STATIC_FRAMEWORK="$STATIC_oob" str="STATIC_COMPONENT=\$STATIC_oob_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component oob:$component compile mode" >&5 $as_echo_n "checking for MCA component oob:$component compile mode... " >&6; } if test "$DIRECT_oob" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/oob/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/oob/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/oob/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then oob_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then oob_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/oob/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "oob" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/oob/$component/lib${ORTE_LIB_PREFIX}mca_oob_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/oob/$component/libmca_oob_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_oob_$component_component;" >> $outfile.extern echo " &mca_oob_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component oob:$component can compile" >&5 $as_echo_n "checking if MCA component oob:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_oob" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_oob_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** oob component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_oob" = "$component" ; then as_fn_error $? "*** oob component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$oob_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$oob_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component oob:$component can compile" >&5 $as_echo_n "checking if MCA component oob:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_oob" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_oob" ; then if test "$DIRECT_oob" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_oob_ALL_COMPONENTS="$all_components" MCA_orte_oob_STATIC_COMPONENTS="$static_components" MCA_orte_oob_DSO_COMPONENTS="$dso_components" MCA_orte_oob_STATIC_LTLIBS="$static_ltlibs" MCA_orte_oob_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_oob_ALL_SUBDIRS="$MCA_orte_oob_ALL_SUBDIRS mca/oob/$item" done MCA_orte_oob_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_oob_STATIC_SUBDIRS="$MCA_orte_oob_STATIC_SUBDIRS mca/oob/$item" done MCA_orte_oob_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_oob_DSO_SUBDIRS="$MCA_orte_oob_DSO_SUBDIRS mca/oob/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "oob" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS plm" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/plm" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_plm_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_plm_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_plm_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/plm/libmca_plm.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_plm_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework plm" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/plm/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/plm/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework plm" >&5 $as_echo_n "checking for no configure components in framework plm... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework plm" >&5 $as_echo_n "checking for m4 configure components in framework plm... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: alps, isolated, lsf, rsh, slurm, tm" >&5 $as_echo "alps, isolated, lsf, rsh, slurm, tm" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component plm:alps (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/plm/alps" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "alps" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_plm" = "1"; then : want_component=0 fi if test "$DISABLE_plm_alps" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_plm" SHARED_COMPONENT="$DSO_plm_alps" STATIC_FRAMEWORK="$STATIC_plm" STATIC_COMPONENT="$STATIC_plm_alps" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plm:alps compile mode" >&5 $as_echo_n "checking for MCA component plm:alps compile mode... " >&6; } if test "$DIRECT_plm" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/plm/alps/Makefile" if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no plm_alps_happy="no" else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : plm_alps_LDFLAGS="$plm_alps_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" plm_alps_CPPFLAGS="$plm_alps_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" plm_alps_LIBS="$plm_alps_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" plm_alps_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" plm_alps_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" plm_alps_happy="yes" else plm_alps_happy="no" fi if test "$plm_alps_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/plm/alps/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components alps" if test "$compile_mode" = "dso" ; then dso_components="$dso_components alps" else if test "plm" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/plm/alps/lib${ORTE_LIB_PREFIX}mca_plm_alps.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/plm/alps/libmca_plm_alps.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_plm_alps_component;" >> $outfile.extern echo " &mca_plm_alps_component, " >> $outfile.struct static_components="$static_components alps" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:alps can compile" >&5 $as_echo_n "checking if MCA component plm:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_plm" = "alps" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_plm_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** plm component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_plm" = "alps" ; then as_fn_error $? "*** plm component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$plm_alps_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $plm_alps_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $plm_alps_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$plm_alps_WRAPPER_EXTRA_LIBS" = ""; 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_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 $plm_alps_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $plm_alps_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$plm_alps_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $plm_alps_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring plm_alps_WRAPPER_EXTRA_CPPFLAGS ($plm_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring plm_alps_WRAPPER_EXTRA_CPPFLAGS ($plm_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:alps can compile" >&5 $as_echo_n "checking if MCA component plm:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_plm" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components alps" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_plm_alps_DSO=1 else BUILD_orte_plm_alps_DSO=0 fi if test "$BUILD_orte_plm_alps_DSO" = "1"; then MCA_BUILD_orte_plm_alps_DSO_TRUE= MCA_BUILD_orte_plm_alps_DSO_FALSE='#' else MCA_BUILD_orte_plm_alps_DSO_TRUE='#' MCA_BUILD_orte_plm_alps_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component plm:isolated (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/plm/isolated" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "isolated" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_plm" = "1"; then : want_component=0 fi if test "$DISABLE_plm_isolated" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_plm" SHARED_COMPONENT="$DSO_plm_isolated" STATIC_FRAMEWORK="$STATIC_plm" STATIC_COMPONENT="$STATIC_plm_isolated" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plm:isolated compile mode" >&5 $as_echo_n "checking for MCA component plm:isolated compile mode... " >&6; } if test "$DIRECT_plm" = "isolated" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/plm/isolated/Makefile" ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" if test "x$ac_cv_func_fork" = xyes; then : plm_isolated_happy="yes" else plm_isolated_happy="no" fi if test "$plm_isolated_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/plm/isolated/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components isolated" if test "$compile_mode" = "dso" ; then dso_components="$dso_components isolated" else if test "plm" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/plm/isolated/lib${ORTE_LIB_PREFIX}mca_plm_isolated.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/plm/isolated/libmca_plm_isolated.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_plm_isolated_component;" >> $outfile.extern echo " &mca_plm_isolated_component, " >> $outfile.struct static_components="$static_components isolated" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:isolated can compile" >&5 $as_echo_n "checking if MCA component plm:isolated can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_plm" = "isolated" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_plm_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** plm component isolated was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_plm" = "isolated" ; then as_fn_error $? "*** plm component isolated was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$plm_isolated_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $plm_isolated_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $plm_isolated_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$plm_isolated_WRAPPER_EXTRA_LIBS" = ""; 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_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 $plm_isolated_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $plm_isolated_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$plm_isolated_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $plm_isolated_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring plm_isolated_WRAPPER_EXTRA_CPPFLAGS ($plm_isolated_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring plm_isolated_WRAPPER_EXTRA_CPPFLAGS ($plm_isolated_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:isolated can compile" >&5 $as_echo_n "checking if MCA component plm:isolated can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_plm" = "isolated" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"isolated\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"isolated\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "isolated" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"isolated\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"isolated\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components isolated" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_plm_isolated_DSO=1 else BUILD_orte_plm_isolated_DSO=0 fi if test "$BUILD_orte_plm_isolated_DSO" = "1"; then MCA_BUILD_orte_plm_isolated_DSO_TRUE= MCA_BUILD_orte_plm_isolated_DSO_FALSE='#' else MCA_BUILD_orte_plm_isolated_DSO_TRUE='#' MCA_BUILD_orte_plm_isolated_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component plm:lsf (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/plm/lsf" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "lsf" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_plm" = "1"; then : want_component=0 fi if test "$DISABLE_plm_lsf" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_plm" SHARED_COMPONENT="$DSO_plm_lsf" STATIC_FRAMEWORK="$STATIC_plm" STATIC_COMPONENT="$STATIC_plm_lsf" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plm:lsf compile mode" >&5 $as_echo_n "checking for MCA component plm:lsf compile mode... " >&6; } if test "$DIRECT_plm" = "lsf" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/plm/lsf/Makefile" if test -z "$orte_check_lsf_happy"; then : # Check whether --with-lsf was given. if test "${with_lsf+set}" = set; then : withval=$with_lsf; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf value" >&5 $as_echo_n "checking --with-lsf value... " >&6; } if test "$with_lsf" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-lsf)" >&5 $as_echo "simple no (specified --without-lsf)" >&6; } else if test "$with_lsf" = "yes" || test "x$with_lsf" = "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_lsf"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf not found" >&5 $as_echo "$as_me: WARNING: Directory $with_lsf not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_lsf/include/lsf/lsbatch.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf)" >&5 $as_echo "sanity check ok ($with_lsf)" >&6; } fi fi fi fi # Check whether --with-lsf-libdir was given. if test "${with_lsf_libdir+set}" = set; then : withval=$with_lsf_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf-libdir value" >&5 $as_echo_n "checking --with-lsf-libdir value... " >&6; } if test "$with_lsf_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-lsf-libdir)" >&5 $as_echo "simple no (specified --without-lsf-libdir)" >&6; } else if test "$with_lsf_libdir" = "yes" || test "x$with_lsf_libdir" = "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_lsf_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_lsf_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_lsf_libdir/libbat.* 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf_libdir)" >&5 $as_echo "sanity check ok ($with_lsf_libdir)" >&6; } fi fi fi fi if test "$with_lsf" != "no"; then : # Defaults orte_check_lsf_dir_msg="compiler default" orte_check_lsf_libdir_msg="linker default" # Save directory names if supplied if test ! -z "$with_lsf" && test "$with_lsf" != "yes"; then : orte_check_lsf_dir="$with_lsf" orte_check_lsf_dir_msg="$orte_check_lsf_dir (from --with-lsf)" fi if test ! -z "$with_lsf_libdir" && test "$with_lsf_libdir" != "yes"; then : orte_check_lsf_libdir="$with_lsf_libdir" orte_check_lsf_libdir_msg="$orte_check_lsf_libdir (from --with-lsf-libdir)" fi # If no directories were specified, look for LSF_LIBDIR, # LSF_INCLUDEDIR, and/or LSF_ENVDIR. if test -z "$orte_check_lsf_dir" && test -z "$orte_check_lsf_libdir"; then : if test ! -z "$LSF_ENVDIR" && test -z "$LSF_LIBDIR" && test -f "$LSF_ENVDIR/lsf.conf"; then : LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` fi if test ! -z "$LSF_ENVDIR" && test -z "$LSF_INCLUDEDIR" && test -f "$LSF_ENVDIR/lsf.conf"; then : LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` fi if test ! -z "$LSF_LIBDIR"; then : orte_check_lsf_libdir=$LSF_LIBDIR orte_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)" fi if test ! -z "$LSF_INCLUDEDIR"; then : orte_check_lsf_dir=`dirname $LSF_INCLUDEDIR` orte_check_lsf_dir_msg="$orte_check_lsf_dir (from \$LSF_INCLUDEDIR)" fi fi if test "$with_lsf" = "no"; then : orte_check_lsf_happy="no" else orte_check_lsf_happy="yes" fi orte_check_lsf_plm_lsf_save_CPPFLAGS="$CPPFLAGS" orte_check_lsf_plm_lsf_save_LDFLAGS="$LDFLAGS" orte_check_lsf_plm_lsf_save_LIBS="$LIBS" # liblsf requires yp_all, yp_get_default_domain, and ypprot_err # on Linux, Solaris, NEC, and Sony NEWSs these are found in libnsl # on AIX it should be in libbsd # on HP-UX it should be in libBSD # on IRIX < 6 it should be in libsun (IRIX 6 and later it is in libc) # on RHEL: libnsl, libnsl2 AND libnsl2-devel are required to link libnsl to get yp_all. if test "$orte_check_lsf_happy" = "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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_all" >&5 $as_echo_n "checking for library containing yp_all... " >&6; } if ${ac_cv_search_yp_all+:} 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 yp_all (); int main () { return yp_all (); ; return 0; } _ACEOF for ac_lib in '' nsl bsd BSD sun; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_yp_all=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_yp_all+:} false; then : break fi done if ${ac_cv_search_yp_all+:} false; then : else ac_cv_search_yp_all=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_all" >&5 $as_echo "$ac_cv_search_yp_all" >&6; } ac_res=$ac_cv_search_yp_all if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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 ${yp_all_nsl_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$yp_all_nsl_LIBS"; then : yp_all_nsl_LIBS=$arg else yp_all_nsl_LIBS="$yp_all_nsl_LIBS $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 yp_all_nsl_have_yp_all=1 orte_check_lsf_happy="yes" else yp_all_nsl_have_yp_all=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find yp_all. Please see https://www.open-mpi.org/faq/?category=building#build-rte-lsf for more details." >&5 $as_echo "$as_me: WARNING: Could not find yp_all. Please see https://www.open-mpi.org/faq/?category=building#build-rte-lsf for more details." >&2;} orte_check_lsf_happy="no" fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_YP_ALL_NSL $yp_all_nsl_have_yp_all _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 fi # liblsf requires shm_open, shm_unlink, which are in librt if test "$orte_check_lsf_happy" = "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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 $as_echo_n "checking for library containing shm_open... " >&6; } if ${ac_cv_search_shm_open+:} 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 shm_open (); int main () { return shm_open (); ; return 0; } _ACEOF for ac_lib in '' rt; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_shm_open=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_shm_open+:} false; then : break fi done if ${ac_cv_search_shm_open+:} false; then : else ac_cv_search_shm_open=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 $as_echo "$ac_cv_search_shm_open" >&6; } ac_res=$ac_cv_search_shm_open if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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 ${shm_open_rt_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$shm_open_rt_LIBS"; then : shm_open_rt_LIBS=$arg else shm_open_rt_LIBS="$shm_open_rt_LIBS $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 shm_open_rt_have_shm_open=1 orte_check_lsf_happy="yes" else shm_open_rt_have_shm_open=0 orte_check_lsf_happy="no" fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SHM_OPEN_RT $shm_open_rt_have_shm_open _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 fi # liblsb requires liblsf - using ls_info as a test for liblsf presence if test "$orte_check_lsf_happy" = "yes"; then : opal_check_package_ls_info_lsf_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ls_info_lsf_save_LDFLAGS="$LDFLAGS" opal_check_package_ls_info_lsf_save_LIBS="$LIBS" opal_check_package_ls_info_lsf_orig_CPPFLAGS="$ls_info_lsf_CPPFLAGS" opal_check_package_ls_info_lsf_orig_LDFLAGS="$ls_info_lsf_LDFLAGS" opal_check_package_ls_info_lsf_orig_LIBS="$ls_info_lsf_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_lsf_lsf_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_check_lsf_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 lsf/lsf.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsf.h" "ac_cv_header_lsf_lsf_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsf_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSF_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_lsf_lsf_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ls_info_lsf_CPPFLAGS="$ls_info_lsf_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in lsf/lsf.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsf.h" "ac_cv_header_lsf_lsf_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsf_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSF_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_ls_info opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there ls_info_lsf_LDFLAGS="$ls_info_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info 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 liblsf requires libnl v1 or v3" >&5 $as_echo_n "checking if liblsf requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ls_info (void); int main(int argc, char *argv[]) { ls_info (); 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:223385: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_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:223392: \$? = $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 lsf" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib lsf" >&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, liblsf links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&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 lsf requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas lsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs lsf" # 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 liblsf requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs lsf" # 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_ls_info" != "no" && test "$ac_cv_search_ls_info" != "none required"; then : ls_info_lsf_LIBS="$ac_cv_search_ls_info $yp_all_nsl_LIBS $shm_open_rt_LIBS" else ls_info_lsf_LIBS="$yp_all_nsl_LIBS $shm_open_rt_LIBS" 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_ls_info opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there ls_info_lsf_LDFLAGS="$ls_info_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info 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 liblsf requires libnl v1 or v3" >&5 $as_echo_n "checking if liblsf requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ls_info (void); int main(int argc, char *argv[]) { ls_info (); 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:224110: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_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:224117: \$? = $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 lsf" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib lsf" >&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, liblsf links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&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 lsf requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas lsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs lsf" # 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 liblsf requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs lsf" # 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_ls_info" != "no" && test "$ac_cv_search_ls_info" != "none required"; then : ls_info_lsf_LIBS="$ac_cv_search_ls_info $yp_all_nsl_LIBS $shm_open_rt_LIBS" else ls_info_lsf_LIBS="$yp_all_nsl_LIBS $shm_open_rt_LIBS" 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 : orte_check_lsf_happy="yes" else ls_info_lsf_CPPFLAGS="$opal_check_package_ls_info_lsf_orig_CPPFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" ls_info_lsf_LIBS="$opal_check_package_ls_info_lsf_orig_LIBS" orte_check_lsf_happy="no" fi CPPFLAGS="$opal_check_package_ls_info_lsf_save_CPPFLAGS" LDFLAGS="$opal_check_package_ls_info_lsf_save_LDFLAGS" LIBS="$opal_check_package_ls_info_lsf_save_LIBS" fi # test function of liblsb LSF package if test "$orte_check_lsf_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF dir" >&5 $as_echo_n "checking for LSF dir... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_dir_msg" >&5 $as_echo "$orte_check_lsf_dir_msg" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF library dir" >&5 $as_echo_n "checking for LSF library dir... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_libdir_msg" >&5 $as_echo "$orte_check_lsf_libdir_msg" >&6; } opal_check_package_orte_check_lsf_save_CPPFLAGS="$CPPFLAGS" opal_check_package_orte_check_lsf_save_LDFLAGS="$LDFLAGS" opal_check_package_orte_check_lsf_save_LIBS="$LIBS" opal_check_package_orte_check_lsf_orig_CPPFLAGS="$orte_check_lsf_CPPFLAGS" opal_check_package_orte_check_lsf_orig_LDFLAGS="$orte_check_lsf_LDFLAGS" opal_check_package_orte_check_lsf_orig_LIBS="$orte_check_lsf_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_lsf_lsbatch_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_check_lsf_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 lsf/lsbatch.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsbatch_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSBATCH_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_lsf_lsbatch_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : orte_check_lsf_CPPFLAGS="$orte_check_lsf_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in lsf/lsbatch.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsbatch_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSBATCH_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_lsb_launch opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there orte_check_lsf_LDFLAGS="$orte_check_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch 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 libbat requires libnl v1 or v3" >&5 $as_echo_n "checking if libbat requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void lsb_launch (void); int main(int argc, char *argv[]) { lsb_launch (); 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:224983: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_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:224990: \$? = $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 bat" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib bat" >&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, libbat links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&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 bat requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas bat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs bat" # 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 libbat requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs bat" # 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_lsb_launch" != "no" && test "$ac_cv_search_lsb_launch" != "none required"; then : orte_check_lsf_LIBS="$ac_cv_search_lsb_launch $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" else orte_check_lsf_LIBS="$ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" 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_lsb_launch opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there orte_check_lsf_LDFLAGS="$orte_check_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch 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 libbat requires libnl v1 or v3" >&5 $as_echo_n "checking if libbat requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void lsb_launch (void); int main(int argc, char *argv[]) { lsb_launch (); 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:225708: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_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:225715: \$? = $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 bat" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib bat" >&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, libbat links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&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 bat requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas bat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs bat" # 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 libbat requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs bat" # 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_lsb_launch" != "no" && test "$ac_cv_search_lsb_launch" != "none required"; then : orte_check_lsf_LIBS="$ac_cv_search_lsb_launch $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" else orte_check_lsf_LIBS="$ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" 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 : orte_check_lsf_happy="yes" else orte_check_lsf_CPPFLAGS="$opal_check_package_orte_check_lsf_orig_CPPFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" orte_check_lsf_LIBS="$opal_check_package_orte_check_lsf_orig_LIBS" orte_check_lsf_happy="no" fi CPPFLAGS="$opal_check_package_orte_check_lsf_save_CPPFLAGS" LDFLAGS="$opal_check_package_orte_check_lsf_save_LDFLAGS" LIBS="$opal_check_package_orte_check_lsf_save_LIBS" fi # Some versions of LSF ship with a libevent.so in their library path. # This is _not_ a copy of Libevent, but something specific to their project. # The Open MPI components should not need to link against LSF's libevent.so # However, the presence of it in the linker search path can cause a problem # if there is a system installed Libevent and Open MPI chooses the 'external' # event component prior to this stage. # # Add a check here to see if we are in a scenario where the two are conflicting. # In which case the earlier checks for successful compile of an LSF program will # have failed with messages like: # lib64/libevent_pthreads.so: undefined reference to `evthread_set_condition_callbacks' # lib64/libevent_pthreads.so: undefined reference to `event_mm_malloc_' # lib64/libevent_pthreads.so: undefined reference to `event_mm_free_' # lib64/libevent_pthreads.so: undefined reference to `evthread_set_id_callback' # lib64/libevent_pthreads.so: undefined reference to `evthread_set_lock_callbacks' # Because it picked up -levent from LSF, but -levent_pthreads from Libevent. # # So look for a function that libevent_pthreads is looking for from libevent.so. # If it does appears then we have the correct libevent.so, otherwise then we picked # up the LSF version and a conflict has been detected. # If the external libevent component used 'event_core' instead of 'event' orte_check_lsf_event_conflict=na # Split libs into an array, see if -levent is in that list orte_check_lsf_libevent_present=`echo "$LIBS" | awk '{split($0, a, " "); {for (k in a) {if (a[k] == "-levent") {print a[k]}}}}' | wc -l | tr -d '[:space:]'` # (1) LSF check must have failed above. We need to know why... if test "$orte_check_lsf_happy" = "no"; then : # (2) If there is a -levent in the $LIBS then that might be the problem if test "$opal_event_external_support" = "yes" && test "$orte_check_lsf_libevent_present" != "0"; then : if test "$orte_check_lsf_libdir" = "" ; then : else LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" fi # Note that we do not want to set LIBS here to include -llsf since # the check is not for an LSF library, but for the conflict with # LDFLAGS. # (3) Check to see if the -levent is from Libevent (check for a symbol it has) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evthread_set_condition_callbacks in -levent" >&5 $as_echo_n "checking for evthread_set_condition_callbacks in -levent... " >&6; } if ${ac_cv_lib_event_evthread_set_condition_callbacks+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-levent $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 evthread_set_condition_callbacks (); int main () { return evthread_set_condition_callbacks (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_event_evthread_set_condition_callbacks=yes else ac_cv_lib_event_evthread_set_condition_callbacks=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_event_evthread_set_condition_callbacks" >&5 $as_echo "$ac_cv_lib_event_evthread_set_condition_callbacks" >&6; } if test "x$ac_cv_lib_event_evthread_set_condition_callbacks" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: No conflict found. The correct libevent.so was linked." >&5 $as_echo "No conflict found. The correct libevent.so was linked." >&6; } orte_check_lsf_event_conflict=no else # (4) The libevent.so is not from Libevent. Warn the user. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: Conflict found. Detected a libevent.so that is not from Libevent." >&5 $as_echo "Conflict found. Detected a libevent.so that is not from Libevent." >&6; } orte_check_lsf_event_conflict=yes fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: No conflict found. Internal Libevent or libevent_core is being used." >&5 $as_echo "No conflict found. Internal Libevent or libevent_core is being used." >&6; } orte_check_lsf_event_conflict=na fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: No conflict found. LSF checks passed." >&5 $as_echo "No conflict found. LSF checks passed." >&6; } orte_check_lsf_event_conflict=na fi if test "$orte_check_lsf_event_conflict" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 $as_echo "$as_me: WARNING: ===================================================================" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conflicting libevent.so libraries detected on the system." >&5 $as_echo "$as_me: WARNING: Conflicting libevent.so libraries detected on the system." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 $as_echo "$as_me: WARNING: " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A system-installed Libevent library was detected and the Open MPI" >&5 $as_echo "$as_me: WARNING: A system-installed Libevent library was detected and the Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: build system chose to use the 'external' component expecting to" >&5 $as_echo "$as_me: WARNING: build system chose to use the 'external' component expecting to" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: link against the Libevent in the linker search path." >&5 $as_echo "$as_me: WARNING: link against the Libevent in the linker search path." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If LSF is present on the system and in the default search path then" >&5 $as_echo "$as_me: WARNING: If LSF is present on the system and in the default search path then" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: it _may be_ the source of the conflict." >&5 $as_echo "$as_me: WARNING: it _may be_ the source of the conflict." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&5 $as_echo "$as_me: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library path. At this point the linker is attempting to resolve" >&5 $as_echo "$as_me: WARNING: library path. At this point the linker is attempting to resolve" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libevent symbols using the LSF library because of the lack of" >&5 $as_echo "$as_me: WARNING: Libevent symbols using the LSF library because of the lack of" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: an explicit linker path pointing to the system-installed Libevent." >&5 $as_echo "$as_me: WARNING: an explicit linker path pointing to the system-installed Libevent." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 $as_echo "$as_me: WARNING: " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: To resolve this issue either (A) explicitly pass the Libevent" >&5 $as_echo "$as_me: WARNING: To resolve this issue either (A) explicitly pass the Libevent" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library path on the configure line (--with-libevent-libdir), or" >&5 $as_echo "$as_me: WARNING: library path on the configure line (--with-libevent-libdir), or" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (B) use the internal libevent by requesting it from configure " >&5 $as_echo "$as_me: WARNING: (B) use the internal libevent by requesting it from configure " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with the --with-libevent=internal option." >&5 $as_echo "$as_me: WARNING: with the --with-libevent=internal option." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 $as_echo "$as_me: WARNING: ===================================================================" >&2;} fi CPPFLAGS="$orte_check_lsf_plm_lsf_save_CPPFLAGS" LDFLAGS="$orte_check_lsf_plm_lsf_save_LDFLAGS" LIBS="$orte_check_lsf_plm_lsf_save_LIBS" else orte_check_lsf_happy=no 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 Resource Managers | tr ' ' '_') ompi_summary_line="LSF: $orte_check_lsf_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 fi if test "$orte_check_lsf_happy" = "yes"; then : plm_lsf_LIBS="$plm_lsf_LIBS $orte_check_lsf_LIBS" plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS $orte_check_lsf_LDFLAGS" plm_lsf_CPPFLAGS="$plm_lsf_CPPFLAGS $orte_check_lsf_CPPFLAGS" # add the LSF libraries to static builds as they are required plm_lsf_WRAPPER_EXTRA_LDFLAGS=$plm_lsf_LDFLAGS plm_lsf_WRAPPER_EXTRA_LIBS=$plm_lsf_LIBS plm_lsf_good=1 else if test ! -z "$with_lsf" && test "$with_lsf" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF support requested (via --with-lsf) but not found." >&5 $as_echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;} as_fn_error $? "Aborting." "$LINENO" 5 fi plm_lsf_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$plm_lsf_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/plm/lsf/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components lsf" if test "$compile_mode" = "dso" ; then dso_components="$dso_components lsf" else if test "plm" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/plm/lsf/lib${ORTE_LIB_PREFIX}mca_plm_lsf.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/plm/lsf/libmca_plm_lsf.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_plm_lsf_component;" >> $outfile.extern echo " &mca_plm_lsf_component, " >> $outfile.struct static_components="$static_components lsf" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:lsf can compile" >&5 $as_echo_n "checking if MCA component plm:lsf can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_plm" = "lsf" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_plm_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** plm component lsf was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_plm" = "lsf" ; then as_fn_error $? "*** plm component lsf was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$plm_lsf_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $plm_lsf_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $plm_lsf_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$plm_lsf_WRAPPER_EXTRA_LIBS" = ""; 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_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 $plm_lsf_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $plm_lsf_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$plm_lsf_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $plm_lsf_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring plm_lsf_WRAPPER_EXTRA_CPPFLAGS ($plm_lsf_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring plm_lsf_WRAPPER_EXTRA_CPPFLAGS ($plm_lsf_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:lsf can compile" >&5 $as_echo_n "checking if MCA component plm:lsf can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_plm" = "lsf" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "lsf" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components lsf" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_plm_lsf_DSO=1 else BUILD_orte_plm_lsf_DSO=0 fi if test "$BUILD_orte_plm_lsf_DSO" = "1"; then MCA_BUILD_orte_plm_lsf_DSO_TRUE= MCA_BUILD_orte_plm_lsf_DSO_FALSE='#' else MCA_BUILD_orte_plm_lsf_DSO_TRUE='#' MCA_BUILD_orte_plm_lsf_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component plm:rsh (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/plm/rsh" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "rsh" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_plm" = "1"; then : want_component=0 fi if test "$DISABLE_plm_rsh" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_plm" SHARED_COMPONENT="$DSO_plm_rsh" STATIC_FRAMEWORK="$STATIC_plm" STATIC_COMPONENT="$STATIC_plm_rsh" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plm:rsh compile mode" >&5 $as_echo_n "checking for MCA component plm:rsh compile mode... " >&6; } if test "$DIRECT_plm" = "rsh" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/plm/rsh/Makefile" ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" if test "x$ac_cv_func_fork" = xyes; then : plm_rsh_happy="yes" else plm_rsh_happy="no" 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 Resource Managers | tr ' ' '_') ompi_summary_line="ssh/rsh: $plm_rsh_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 "$plm_rsh_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/plm/rsh/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components rsh" if test "$compile_mode" = "dso" ; then dso_components="$dso_components rsh" else if test "plm" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/plm/rsh/lib${ORTE_LIB_PREFIX}mca_plm_rsh.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/plm/rsh/libmca_plm_rsh.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_plm_rsh_component;" >> $outfile.extern echo " &mca_plm_rsh_component, " >> $outfile.struct static_components="$static_components rsh" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:rsh can compile" >&5 $as_echo_n "checking if MCA component plm:rsh can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_plm" = "rsh" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_plm_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** plm component rsh was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_plm" = "rsh" ; then as_fn_error $? "*** plm component rsh was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$plm_rsh_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $plm_rsh_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $plm_rsh_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$plm_rsh_WRAPPER_EXTRA_LIBS" = ""; 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_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 $plm_rsh_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $plm_rsh_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$plm_rsh_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $plm_rsh_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring plm_rsh_WRAPPER_EXTRA_CPPFLAGS ($plm_rsh_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring plm_rsh_WRAPPER_EXTRA_CPPFLAGS ($plm_rsh_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:rsh can compile" >&5 $as_echo_n "checking if MCA component plm:rsh can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_plm" = "rsh" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rsh\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "rsh" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rsh\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components rsh" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_plm_rsh_DSO=1 else BUILD_orte_plm_rsh_DSO=0 fi if test "$BUILD_orte_plm_rsh_DSO" = "1"; then MCA_BUILD_orte_plm_rsh_DSO_TRUE= MCA_BUILD_orte_plm_rsh_DSO_FALSE='#' else MCA_BUILD_orte_plm_rsh_DSO_TRUE='#' MCA_BUILD_orte_plm_rsh_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component plm:slurm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/plm/slurm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "slurm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_plm" = "1"; then : want_component=0 fi if test "$DISABLE_plm_slurm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_plm" SHARED_COMPONENT="$DSO_plm_slurm" STATIC_FRAMEWORK="$STATIC_plm" STATIC_COMPONENT="$STATIC_plm_slurm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plm:slurm compile mode" >&5 $as_echo_n "checking for MCA component plm:slurm compile mode... " >&6; } if test "$DIRECT_plm" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/plm/slurm/Makefile" if test -z "$orte_check_slurm_happy" ; then # Check whether --with-slurm was given. if test "${with_slurm+set}" = set; then : withval=$with_slurm; fi if test "$with_slurm" = "no" ; then orte_check_slurm_happy="no" elif test "$with_slurm" = "" ; then # unless user asked, only build slurm component on linux, AIX, # and OS X systems (these are the platforms that SLURM # supports) case $host in *-linux*|*-aix*|*-apple-darwin*) orte_check_slurm_happy="yes" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLURM srun in PATH" >&5 $as_echo_n "checking for SLURM srun in PATH... " >&6; } # 1 is the variable name to do "which" on # 2 is the variable name to assign the return value to # Is the private index set? If not, set it. if test "x$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=srun IFS_SAVE=$IFS IFS="$PATH_SEPARATOR" for opal_dir in $PATH; do if test -x "$opal_dir/$opal_prog"; then ORTE_CHECK_SLURM_SRUN="$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 "$ORTE_CHECK_SLURM_SRUN" = ""; then orte_check_slurm_happy="no" else orte_check_slurm_happy="yes" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_slurm_happy" >&5 $as_echo "$orte_check_slurm_happy" >&6; } ;; esac else orte_check_slurm_happy="yes" fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" if test "x$ac_cv_func_fork" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve" if test "x$ac_cv_func_execve" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" if test "x$ac_cv_func_setpgid" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi # check to see if this is a Cray nativized slurm env. slurm_cray_env=0 if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : orte_slurm_cray_LDFLAGS="$orte_slurm_cray_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" orte_slurm_cray_CPPFLAGS="$orte_slurm_cray_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" orte_slurm_cray_LIBS="$orte_slurm_cray_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" orte_slurm_cray_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" orte_slurm_cray_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" slurm_cray_env=1 fi cat >>confdefs.h <<_ACEOF #define SLURM_CRAY_ENV $slurm_cray_env _ACEOF # 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 Resource Managers | tr ' ' '_') ompi_summary_line="Slurm: $orte_check_slurm_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 fi if test "$orte_check_slurm_happy" = "yes"; then : plm_slurm_good=1 else plm_slurm_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$plm_slurm_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/plm/slurm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components slurm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components slurm" else if test "plm" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/plm/slurm/lib${ORTE_LIB_PREFIX}mca_plm_slurm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/plm/slurm/libmca_plm_slurm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_plm_slurm_component;" >> $outfile.extern echo " &mca_plm_slurm_component, " >> $outfile.struct static_components="$static_components slurm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:slurm can compile" >&5 $as_echo_n "checking if MCA component plm:slurm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_plm" = "slurm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_plm_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** plm component slurm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_plm" = "slurm" ; then as_fn_error $? "*** plm component slurm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$plm_slurm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $plm_slurm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $plm_slurm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$plm_slurm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $plm_slurm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $plm_slurm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$plm_slurm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $plm_slurm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring plm_slurm_WRAPPER_EXTRA_CPPFLAGS ($plm_slurm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring plm_slurm_WRAPPER_EXTRA_CPPFLAGS ($plm_slurm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:slurm can compile" >&5 $as_echo_n "checking if MCA component plm:slurm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_plm" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components slurm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_plm_slurm_DSO=1 else BUILD_orte_plm_slurm_DSO=0 fi if test "$BUILD_orte_plm_slurm_DSO" = "1"; then MCA_BUILD_orte_plm_slurm_DSO_TRUE= MCA_BUILD_orte_plm_slurm_DSO_FALSE='#' else MCA_BUILD_orte_plm_slurm_DSO_TRUE='#' MCA_BUILD_orte_plm_slurm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component plm:tm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/plm/tm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "tm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_plm" = "1"; then : want_component=0 fi if test "$DISABLE_plm_tm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_plm" SHARED_COMPONENT="$DSO_plm_tm" STATIC_FRAMEWORK="$STATIC_plm" STATIC_COMPONENT="$STATIC_plm_tm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plm:tm compile mode" >&5 $as_echo_n "checking for MCA component plm:tm compile mode... " >&6; } if test "$DIRECT_plm" = "tm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/plm/tm/Makefile" if test -z $orte_check_tm_happy ; 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 orte_check_tm_found orte_check_tm_dir orte_check_tm_pbs_config orte_check_tm_LDFLAGS_save orte_check_tm_CPPFLAGS_save orte_check_tm_LIBS_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=\"orte_check_tm_found orte_check_tm_dir orte_check_tm_pbs_config orte_check_tm_LDFLAGS_save orte_check_tm_CPPFLAGS_save orte_check_tm_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-tm was given. if test "${with_tm+set}" = set; then : withval=$with_tm; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tm value" >&5 $as_echo_n "checking --with-tm value... " >&6; } if test "$with_tm" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-tm)" >&5 $as_echo "simple no (specified --without-tm)" >&6; } else if test "$with_tm" = "yes" || test "x$with_tm" = "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_tm"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_tm not found" >&5 $as_echo "$as_me: WARNING: Directory $with_tm not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_tm/include/tm.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_tm/include/tm.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_tm/include/tm.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_tm)" >&5 $as_echo "sanity check ok ($with_tm)" >&6; } fi fi fi fi orte_check_tm_found=no if test "$with_tm" = "no"; then : orte_check_tm_happy="no" else orte_check_tm_happy="yes" if test ! -z "$with_tm" && test "$with_tm" != "yes"; then : orte_check_tm_dir="$with_tm" else orte_check_tm_dir="" fi fi if test "$orte_check_tm_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pbs-config" >&5 $as_echo_n "checking for pbs-config... " >&6; } orte_check_tm_pbs_config="not found" if test "$orte_check_tm_dir" != "" && test -d "$orte_check_tm_dir" && test -x "$orte_check_tm_dir/bin/pbs-config"; then : orte_check_tm_pbs_config="$orte_check_tm_dir/bin/pbs-config" else if pbs-config --prefix >/dev/null 2>&1; then : orte_check_tm_pbs_config="pbs-config" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_tm_pbs_config" >&5 $as_echo "$orte_check_tm_pbs_config" >&6; } fi # If we have pbs-config, get the flags we need from there and then # do simplistic tests looking for the tm headers and symbols if test "$orte_check_tm_happy" = "yes" && test "$orte_check_tm_pbs_config" != "not found"; then : orte_check_tm_CPPFLAGS=`$orte_check_tm_pbs_config --cflags` # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:229410: orte_check_tm_CPPFLAGS from pbs-config: $orte_check_tm_CPPFLAGS" >&5 else echo orte_check_tm_CPPFLAGS from pbs-config: $orte_check_tm_CPPFLAGS >&5 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 orte_check_tm_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=\"orte_check_tm_flags\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` orte_check_tm_flags=`$orte_check_tm_pbs_config --libs` for orte_check_tm_val in $orte_check_tm_flags; do if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then if test "LDFLAGS" = "LIBS"; then orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS $orte_check_tm_val" fi else if test "LDFLAGS" = "LDFLAGS"; then orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS $orte_check_tm_val" 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 message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:229491: orte_check_tm_LDFLAGS from pbs-config: $orte_check_tm_LDFLAGS" >&5 else echo orte_check_tm_LDFLAGS from pbs-config: $orte_check_tm_LDFLAGS >&5 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 orte_check_tm_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=\"orte_check_tm_flags\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` orte_check_tm_flags=`$orte_check_tm_pbs_config --libs` for orte_check_tm_val in $orte_check_tm_flags; do if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then if test "LIBS" = "LIBS"; then orte_check_tm_LIBS="$orte_check_tm_LIBS $orte_check_tm_val" fi else if test "LIBS" = "LDFLAGS"; then orte_check_tm_LIBS="$orte_check_tm_LIBS $orte_check_tm_val" 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 message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:229572: orte_check_tm_LIBS from pbs-config: $orte_check_tm_LIBS" >&5 else echo orte_check_tm_LIBS from pbs-config: $orte_check_tm_LIBS >&5 fi # Now that we supposedly have the right flags, try them out. orte_check_tm_CPPFLAGS_save="$CPPFLAGS" orte_check_tm_LDFLAGS_save="$LDFLAGS" orte_check_tm_LIBS_save="$LIBS" CPPFLAGS="$CPPFLAGS $orte_check_tm_CPPFLAGS" LIBS="$LIBS $orte_check_tm_LIBS" LDFLAGS="$LDFLAGS $orte_check_tm_LDFLAGS" ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default" if test "x$ac_cv_header_tm_h" = xyes; then : ac_fn_c_check_func "$LINENO" "tm_finalize" "ac_cv_func_tm_finalize" if test "x$ac_cv_func_tm_finalize" = xyes; then : orte_check_tm_found="yes" fi fi CPPFLAGS="$orte_check_tm_CPPFLAGS_save" LDFLAGS="$orte_check_tm_LDFLAGS_save" LIBS="$orte_check_tm_LIBS_save" fi # If we don't have pbs-config, then we have to look around # manually. # Note that Torque 2.1.0 changed the name of their back-end # library to "libtorque". So we have to check for both libpbs and # libtorque. First, check for libpbs. orte_check_package_plm_tm_save_CPPFLAGS="$CPPFLAGS" orte_check_package_plm_tm_save_LDFLAGS="$LDFLAGS" orte_check_package_plm_tm_save_LIBS="$LIBS" if test "$orte_check_tm_found" = "no"; then : if test "$orte_check_tm_happy" = "yes"; then : # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_tm_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_check_tm_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 tm.h do : ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default" if test "x$ac_cv_header_tm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TM_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_tm_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : orte_check_tm_CPPFLAGS="$orte_check_tm_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in tm.h do : ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default" if test "x$ac_cv_header_tm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TM_H 1 _ACEOF opal_check_package_header_happy="yes" fi done if test "$opal_check_package_header_happy" = "yes"; then : orte_check_tm_found="yes" else orte_check_tm_found="no" fi else orte_check_tm_found="yes" 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 fi if test "$orte_check_tm_found" = "yes"; then : # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # see comment above unset ac_cv_search_tm_init opal_check_package_lib_happy="no" if test "$orte_check_tm_libdir" != ""; then : # libdir was specified - search only there orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS -L$orte_check_tm_libdir" LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init 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 libpbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libpbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void tm_init (void); int main(int argc, char *argv[]) { tm_init (); 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:230148: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_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:230155: \$? = $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 pbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pbs" >&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, libpbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&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 pbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pbs" # 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 libpbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pbs" # 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_tm_init" != "no" && test "$ac_cv_search_tm_init" != "none required"; then : orte_check_tm_LIBS="$ac_cv_search_tm_init " else orte_check_tm_LIBS="" fi orte_check_tm_found="yes" else # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # see comment above unset ac_cv_search_tm_init opal_check_package_lib_happy="no" if test "$orte_check_tm_libdir" != ""; then : # libdir was specified - search only there orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS -L$orte_check_tm_libdir" LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init 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 libpbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libpbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void tm_init (void); int main(int argc, char *argv[]) { tm_init (); 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:230865: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_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:230872: \$? = $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 pbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pbs" >&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, libpbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&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 pbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pbs" # 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 libpbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pbs" # 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_tm_init" != "no" && test "$ac_cv_search_tm_init" != "none required"; then : orte_check_tm_LIBS="$ac_cv_search_tm_init -lcrypto" else orte_check_tm_LIBS="-lcrypto" fi orte_check_tm_found="yes" else # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # see comment above unset ac_cv_search_tm_init opal_check_package_lib_happy="no" if test "$orte_check_tm_libdir" != ""; then : # libdir was specified - search only there orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS -L$orte_check_tm_libdir" LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init 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 libtorque requires libnl v1 or v3" >&5 $as_echo_n "checking if libtorque requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void tm_init (void); int main(int argc, char *argv[]) { tm_init (); 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:231582: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltorque $LIBS $orte_check_tm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltorque $LIBS $orte_check_tm_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:231589: \$? = $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 torque" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib torque" >&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, libtorque links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libtorque 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 libtorque (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtorque (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtorque." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtorque." >&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 torque requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas torque 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 libtorque (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtorque (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtorque." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtorque." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs torque" # 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 libtorque requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libtorque 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 libtorque (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtorque (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtorque." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtorque." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs torque" # 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_tm_init" != "no" && test "$ac_cv_search_tm_init" != "none required"; then : orte_check_tm_LIBS="$ac_cv_search_tm_init " else orte_check_tm_LIBS="" fi orte_check_tm_found="yes" else orte_check_tm_found="no" fi fi fi fi fi CPPFLAGS="$orte_check_package_plm_tm_save_CPPFLAGS" LDFLAGS="$orte_check_package_plm_tm_save_LDFLAGS" LIBS="$orte_check_package_plm_tm_save_LIBS" if test "$orte_check_tm_found" = "no" ; then orte_check_tm_happy=no 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 Resource Managers | tr ' ' '_') ompi_summary_line="Torque: $orte_check_tm_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 # 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 # Did we find the right stuff? if test "$orte_check_tm_happy" = "yes"; then : plm_tm_LIBS="$plm_tm_LIBS $orte_check_tm_LIBS" plm_tm_LDFLAGS="$plm_tm_LDFLAGS $orte_check_tm_LDFLAGS" plm_tm_CPPFLAGS="$plm_tm_CPPFLAGS $orte_check_tm_CPPFLAGS" # add the TM libraries to static builds as they are required plm_tm_WRAPPER_EXTRA_LDFLAGS=$plm_tm_LDFLAGS plm_tm_WRAPPER_EXTRA_LIBS=$plm_tm_LIBS plm_tm_good=1 else if test ! -z "$with_tm" && test "$with_tm" != "no"; then : as_fn_error $? "TM support requested but not found. Aborting" "$LINENO" 5 fi orte_check_tm_happy="no" plm_tm_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$plm_tm_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/plm/tm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components tm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components tm" else if test "plm" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/plm/tm/lib${ORTE_LIB_PREFIX}mca_plm_tm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/plm/tm/libmca_plm_tm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_plm_tm_component;" >> $outfile.extern echo " &mca_plm_tm_component, " >> $outfile.struct static_components="$static_components tm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:tm can compile" >&5 $as_echo_n "checking if MCA component plm:tm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_plm" = "tm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_plm_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** plm component tm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_plm" = "tm" ; then as_fn_error $? "*** plm component tm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$plm_tm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $plm_tm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $plm_tm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$plm_tm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $plm_tm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $plm_tm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$plm_tm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $plm_tm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring plm_tm_WRAPPER_EXTRA_CPPFLAGS ($plm_tm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring plm_tm_WRAPPER_EXTRA_CPPFLAGS ($plm_tm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:tm can compile" >&5 $as_echo_n "checking if MCA component plm:tm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_plm" = "tm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "tm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components tm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_plm_tm_DSO=1 else BUILD_orte_plm_tm_DSO=0 fi if test "$BUILD_orte_plm_tm_DSO" = "1"; then MCA_BUILD_orte_plm_tm_DSO_TRUE= MCA_BUILD_orte_plm_tm_DSO_FALSE='#' else MCA_BUILD_orte_plm_tm_DSO_TRUE='#' MCA_BUILD_orte_plm_tm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/plm/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component plm:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/plm/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_plm" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_plm_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_plm" str="SHARED_COMPONENT=\$DSO_plm_$component" eval $str STATIC_FRAMEWORK="$STATIC_plm" str="STATIC_COMPONENT=\$STATIC_plm_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component plm:$component compile mode" >&5 $as_echo_n "checking for MCA component plm:$component compile mode... " >&6; } if test "$DIRECT_plm" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/plm/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/plm/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/plm/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then plm_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then plm_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/plm/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "plm" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/plm/$component/lib${ORTE_LIB_PREFIX}mca_plm_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/plm/$component/libmca_plm_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_plm_$component_component;" >> $outfile.extern echo " &mca_plm_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:$component can compile" >&5 $as_echo_n "checking if MCA component plm:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_plm" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_plm_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** plm component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_plm" = "$component" ; then as_fn_error $? "*** plm component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$plm_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$plm_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component plm:$component can compile" >&5 $as_echo_n "checking if MCA component plm:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_plm" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_plm" ; then if test "$DIRECT_plm" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_plm_ALL_COMPONENTS="$all_components" MCA_orte_plm_STATIC_COMPONENTS="$static_components" MCA_orte_plm_DSO_COMPONENTS="$dso_components" MCA_orte_plm_STATIC_LTLIBS="$static_ltlibs" MCA_orte_plm_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_plm_ALL_SUBDIRS="$MCA_orte_plm_ALL_SUBDIRS mca/plm/$item" done MCA_orte_plm_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_plm_STATIC_SUBDIRS="$MCA_orte_plm_STATIC_SUBDIRS mca/plm/$item" done MCA_orte_plm_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_plm_DSO_SUBDIRS="$MCA_orte_plm_DSO_SUBDIRS mca/plm/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "plm" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ras" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ras" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_ras_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_ras_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_ras_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ras/libmca_ras.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_ras_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework ras" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/ras/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/ras/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework ras" >&5 $as_echo_n "checking for no configure components in framework ras... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: simulator" >&5 $as_echo "simulator" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework ras" >&5 $as_echo_n "checking for m4 configure components in framework ras... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: alps, gridengine, lsf, slurm, tm" >&5 $as_echo "alps, gridengine, lsf, slurm, tm" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component ras:simulator (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/ras/simulator" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "simulator" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ras" = "1"; then : want_component=0 fi if test "$DISABLE_ras_simulator" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_ras" SHARED_COMPONENT="$DSO_ras_simulator" STATIC_FRAMEWORK="$STATIC_ras" STATIC_COMPONENT="$STATIC_ras_simulator" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ras:simulator compile mode" >&5 $as_echo_n "checking for MCA component ras:simulator compile mode... " >&6; } if test "$DIRECT_ras" = "simulator" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ras/simulator/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components simulator" if test "$compile_mode" = "dso" ; then dso_components="$dso_components simulator" else if test "ras" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ras/simulator/lib${ORTE_LIB_PREFIX}mca_ras_simulator.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ras/simulator/libmca_ras_simulator.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ras_simulator_component;" >> $outfile.extern echo " &mca_ras_simulator_component, " >> $outfile.struct static_components="$static_components simulator" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:simulator can compile" >&5 $as_echo_n "checking if MCA component ras:simulator can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ras" = "simulator" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ras_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ras component simulator was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ras" = "simulator" ; then as_fn_error $? "*** ras component simulator was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ras_simulator_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ras_simulator_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ras_simulator_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ras_simulator_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ras_simulator_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ras_simulator_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ras_simulator_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ras_simulator_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ras_simulator_WRAPPER_EXTRA_CPPFLAGS ($ras_simulator_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ras_simulator_WRAPPER_EXTRA_CPPFLAGS ($ras_simulator_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:simulator can compile" >&5 $as_echo_n "checking if MCA component ras:simulator can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ras" = "simulator" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"simulator\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"simulator\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "simulator" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"simulator\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"simulator\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components simulator" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_ras_simulator_DSO=1 else BUILD_orte_ras_simulator_DSO=0 fi if test "$BUILD_orte_ras_simulator_DSO" = "1"; then MCA_BUILD_orte_ras_simulator_DSO_TRUE= MCA_BUILD_orte_ras_simulator_DSO_FALSE='#' else MCA_BUILD_orte_ras_simulator_DSO_TRUE='#' MCA_BUILD_orte_ras_simulator_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/ras/simulator/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component ras:alps (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/ras/alps" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "alps" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ras" = "1"; then : want_component=0 fi if test "$DISABLE_ras_alps" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_ras" SHARED_COMPONENT="$DSO_ras_alps" STATIC_FRAMEWORK="$STATIC_ras" STATIC_COMPONENT="$STATIC_ras_alps" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ras:alps compile mode" >&5 $as_echo_n "checking for MCA component ras:alps compile mode... " >&6; } if test "$DIRECT_ras" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/ras/alps/Makefile" if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no ras_alps_happy="no" else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : ras_alps_LDFLAGS="$ras_alps_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" ras_alps_CPPFLAGS="$ras_alps_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" ras_alps_LIBS="$ras_alps_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" ras_alps_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" ras_alps_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" ras_alps_happy="yes" else ras_alps_happy="no" fi # check for alps/apInfo.h # save current CPPFLAGS MCA_orte_ras_save_CPPFLAGS="$CPPFLAGS" # add flags obtained from OPAL_CHECK_ALPS CPPFLAGS="$CPPFLAGS $ras_alps_CPPFLAGS" for ac_header in alps/apInfo.h do : ac_fn_c_check_header_mongrel "$LINENO" "alps/apInfo.h" "ac_cv_header_alps_apInfo_h" "$ac_includes_default" if test "x$ac_cv_header_alps_apInfo_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ALPS_APINFO_H 1 _ACEOF else ras_alps_happy="no" fi done # restore CPPFLAGS CPPFLAGS="$MCA_orte_ras_save_CPPFLAGS" if test "$ras_alps_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ras/alps/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components alps" if test "$compile_mode" = "dso" ; then dso_components="$dso_components alps" else if test "ras" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ras/alps/lib${ORTE_LIB_PREFIX}mca_ras_alps.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ras/alps/libmca_ras_alps.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ras_alps_component;" >> $outfile.extern echo " &mca_ras_alps_component, " >> $outfile.struct static_components="$static_components alps" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:alps can compile" >&5 $as_echo_n "checking if MCA component ras:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ras" = "alps" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ras_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ras component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ras" = "alps" ; then as_fn_error $? "*** ras component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ras_alps_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ras_alps_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ras_alps_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ras_alps_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ras_alps_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ras_alps_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ras_alps_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ras_alps_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ras_alps_WRAPPER_EXTRA_CPPFLAGS ($ras_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ras_alps_WRAPPER_EXTRA_CPPFLAGS ($ras_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:alps can compile" >&5 $as_echo_n "checking if MCA component ras:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ras" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components alps" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_ras_alps_DSO=1 else BUILD_orte_ras_alps_DSO=0 fi if test "$BUILD_orte_ras_alps_DSO" = "1"; then MCA_BUILD_orte_ras_alps_DSO_TRUE= MCA_BUILD_orte_ras_alps_DSO_FALSE='#' else MCA_BUILD_orte_ras_alps_DSO_TRUE='#' MCA_BUILD_orte_ras_alps_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component ras:gridengine (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/ras/gridengine" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "gridengine" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ras" = "1"; then : want_component=0 fi if test "$DISABLE_ras_gridengine" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_ras" SHARED_COMPONENT="$DSO_ras_gridengine" STATIC_FRAMEWORK="$STATIC_ras" STATIC_COMPONENT="$STATIC_ras_gridengine" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ras:gridengine compile mode" >&5 $as_echo_n "checking for MCA component ras:gridengine compile mode... " >&6; } if test "$DIRECT_ras" = "gridengine" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/ras/gridengine/Makefile" if test -z "$orte_gridengine_build" ; then # Check whether --with-sge was given. if test "${with_sge+set}" = set; then : withval=$with_sge; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if user requested SGE build" >&5 $as_echo_n "checking if user requested SGE build... " >&6; } orte_gridengine_build="no" if test "$with_sge" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } orte_gridengine_build=yes else if test "$with_sge" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified; checking environment" >&5 $as_echo "not specified; checking environment" >&6; } # Extract the first word of "qrsh", so it can be a program name with args. set dummy qrsh; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_QRSH+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$QRSH"; then ac_cv_prog_QRSH="$QRSH" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_QRSH="qrsh" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi QRSH=$ac_cv_prog_QRSH if test -n "$QRSH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QRSH" >&5 $as_echo "$QRSH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$QRSH" != ""; then : orte_gridengine_build=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGE_ROOT environment variable" >&5 $as_echo_n "checking for SGE_ROOT environment variable... " >&6; } if test "$SGE_ROOT" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 $as_echo "found" >&6; } orte_gridengine_build=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } fi fi fi fi # 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 Resource Managers | tr ' ' '_') ompi_summary_line="Grid Engine: $orte_gridengine_build" 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 if test "$orte_gridengine_build" = "yes"; then : ras_gridengine_happy="yes" else ras_gridengine_happy="no" fi if test "$ras_gridengine_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ras/gridengine/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components gridengine" if test "$compile_mode" = "dso" ; then dso_components="$dso_components gridengine" else if test "ras" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ras/gridengine/lib${ORTE_LIB_PREFIX}mca_ras_gridengine.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ras/gridengine/libmca_ras_gridengine.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ras_gridengine_component;" >> $outfile.extern echo " &mca_ras_gridengine_component, " >> $outfile.struct static_components="$static_components gridengine" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:gridengine can compile" >&5 $as_echo_n "checking if MCA component ras:gridengine can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ras" = "gridengine" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ras_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ras component gridengine was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ras" = "gridengine" ; then as_fn_error $? "*** ras component gridengine was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ras_gridengine_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ras_gridengine_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ras_gridengine_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ras_gridengine_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ras_gridengine_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ras_gridengine_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ras_gridengine_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ras_gridengine_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ras_gridengine_WRAPPER_EXTRA_CPPFLAGS ($ras_gridengine_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ras_gridengine_WRAPPER_EXTRA_CPPFLAGS ($ras_gridengine_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:gridengine can compile" >&5 $as_echo_n "checking if MCA component ras:gridengine can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ras" = "gridengine" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gridengine\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "gridengine" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gridengine\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components gridengine" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_ras_gridengine_DSO=1 else BUILD_orte_ras_gridengine_DSO=0 fi if test "$BUILD_orte_ras_gridengine_DSO" = "1"; then MCA_BUILD_orte_ras_gridengine_DSO_TRUE= MCA_BUILD_orte_ras_gridengine_DSO_FALSE='#' else MCA_BUILD_orte_ras_gridengine_DSO_TRUE='#' MCA_BUILD_orte_ras_gridengine_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component ras:lsf (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/ras/lsf" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "lsf" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ras" = "1"; then : want_component=0 fi if test "$DISABLE_ras_lsf" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_ras" SHARED_COMPONENT="$DSO_ras_lsf" STATIC_FRAMEWORK="$STATIC_ras" STATIC_COMPONENT="$STATIC_ras_lsf" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ras:lsf compile mode" >&5 $as_echo_n "checking for MCA component ras:lsf compile mode... " >&6; } if test "$DIRECT_ras" = "lsf" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/ras/lsf/Makefile" if test -z "$orte_check_lsf_happy"; then : # Check whether --with-lsf was given. if test "${with_lsf+set}" = set; then : withval=$with_lsf; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf value" >&5 $as_echo_n "checking --with-lsf value... " >&6; } if test "$with_lsf" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-lsf)" >&5 $as_echo "simple no (specified --without-lsf)" >&6; } else if test "$with_lsf" = "yes" || test "x$with_lsf" = "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_lsf"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf not found" >&5 $as_echo "$as_me: WARNING: Directory $with_lsf not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_lsf/include/lsf/lsbatch.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf)" >&5 $as_echo "sanity check ok ($with_lsf)" >&6; } fi fi fi fi # Check whether --with-lsf-libdir was given. if test "${with_lsf_libdir+set}" = set; then : withval=$with_lsf_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lsf-libdir value" >&5 $as_echo_n "checking --with-lsf-libdir value... " >&6; } if test "$with_lsf_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-lsf-libdir)" >&5 $as_echo "simple no (specified --without-lsf-libdir)" >&6; } else if test "$with_lsf_libdir" = "yes" || test "x$with_lsf_libdir" = "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_lsf_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_lsf_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_lsf_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_lsf_libdir/libbat.* 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lsf_libdir)" >&5 $as_echo "sanity check ok ($with_lsf_libdir)" >&6; } fi fi fi fi if test "$with_lsf" != "no"; then : # Defaults orte_check_lsf_dir_msg="compiler default" orte_check_lsf_libdir_msg="linker default" # Save directory names if supplied if test ! -z "$with_lsf" && test "$with_lsf" != "yes"; then : orte_check_lsf_dir="$with_lsf" orte_check_lsf_dir_msg="$orte_check_lsf_dir (from --with-lsf)" fi if test ! -z "$with_lsf_libdir" && test "$with_lsf_libdir" != "yes"; then : orte_check_lsf_libdir="$with_lsf_libdir" orte_check_lsf_libdir_msg="$orte_check_lsf_libdir (from --with-lsf-libdir)" fi # If no directories were specified, look for LSF_LIBDIR, # LSF_INCLUDEDIR, and/or LSF_ENVDIR. if test -z "$orte_check_lsf_dir" && test -z "$orte_check_lsf_libdir"; then : if test ! -z "$LSF_ENVDIR" && test -z "$LSF_LIBDIR" && test -f "$LSF_ENVDIR/lsf.conf"; then : LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` fi if test ! -z "$LSF_ENVDIR" && test -z "$LSF_INCLUDEDIR" && test -f "$LSF_ENVDIR/lsf.conf"; then : LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` fi if test ! -z "$LSF_LIBDIR"; then : orte_check_lsf_libdir=$LSF_LIBDIR orte_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)" fi if test ! -z "$LSF_INCLUDEDIR"; then : orte_check_lsf_dir=`dirname $LSF_INCLUDEDIR` orte_check_lsf_dir_msg="$orte_check_lsf_dir (from \$LSF_INCLUDEDIR)" fi fi if test "$with_lsf" = "no"; then : orte_check_lsf_happy="no" else orte_check_lsf_happy="yes" fi orte_check_lsf_ras_lsf_save_CPPFLAGS="$CPPFLAGS" orte_check_lsf_ras_lsf_save_LDFLAGS="$LDFLAGS" orte_check_lsf_ras_lsf_save_LIBS="$LIBS" # liblsf requires yp_all, yp_get_default_domain, and ypprot_err # on Linux, Solaris, NEC, and Sony NEWSs these are found in libnsl # on AIX it should be in libbsd # on HP-UX it should be in libBSD # on IRIX < 6 it should be in libsun (IRIX 6 and later it is in libc) # on RHEL: libnsl, libnsl2 AND libnsl2-devel are required to link libnsl to get yp_all. if test "$orte_check_lsf_happy" = "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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_all" >&5 $as_echo_n "checking for library containing yp_all... " >&6; } if ${ac_cv_search_yp_all+:} 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 yp_all (); int main () { return yp_all (); ; return 0; } _ACEOF for ac_lib in '' nsl bsd BSD sun; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_yp_all=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_yp_all+:} false; then : break fi done if ${ac_cv_search_yp_all+:} false; then : else ac_cv_search_yp_all=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_all" >&5 $as_echo "$ac_cv_search_yp_all" >&6; } ac_res=$ac_cv_search_yp_all if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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 ${yp_all_nsl_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$yp_all_nsl_LIBS"; then : yp_all_nsl_LIBS=$arg else yp_all_nsl_LIBS="$yp_all_nsl_LIBS $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 yp_all_nsl_have_yp_all=1 orte_check_lsf_happy="yes" else yp_all_nsl_have_yp_all=0 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find yp_all. Please see https://www.open-mpi.org/faq/?category=building#build-rte-lsf for more details." >&5 $as_echo "$as_me: WARNING: Could not find yp_all. Please see https://www.open-mpi.org/faq/?category=building#build-rte-lsf for more details." >&2;} orte_check_lsf_happy="no" fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_YP_ALL_NSL $yp_all_nsl_have_yp_all _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 fi # liblsf requires shm_open, shm_unlink, which are in librt if test "$orte_check_lsf_happy" = "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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 $as_echo_n "checking for library containing shm_open... " >&6; } if ${ac_cv_search_shm_open+:} 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 shm_open (); int main () { return shm_open (); ; return 0; } _ACEOF for ac_lib in '' rt; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_shm_open=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_shm_open+:} false; then : break fi done if ${ac_cv_search_shm_open+:} false; then : else ac_cv_search_shm_open=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 $as_echo "$ac_cv_search_shm_open" >&6; } ac_res=$ac_cv_search_shm_open if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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 ${shm_open_rt_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$shm_open_rt_LIBS"; then : shm_open_rt_LIBS=$arg else shm_open_rt_LIBS="$shm_open_rt_LIBS $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 shm_open_rt_have_shm_open=1 orte_check_lsf_happy="yes" else shm_open_rt_have_shm_open=0 orte_check_lsf_happy="no" fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_SHM_OPEN_RT $shm_open_rt_have_shm_open _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 fi # liblsb requires liblsf - using ls_info as a test for liblsf presence if test "$orte_check_lsf_happy" = "yes"; then : opal_check_package_ls_info_lsf_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ls_info_lsf_save_LDFLAGS="$LDFLAGS" opal_check_package_ls_info_lsf_save_LIBS="$LIBS" opal_check_package_ls_info_lsf_orig_CPPFLAGS="$ls_info_lsf_CPPFLAGS" opal_check_package_ls_info_lsf_orig_LDFLAGS="$ls_info_lsf_LDFLAGS" opal_check_package_ls_info_lsf_orig_LIBS="$ls_info_lsf_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_lsf_lsf_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_check_lsf_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 lsf/lsf.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsf.h" "ac_cv_header_lsf_lsf_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsf_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSF_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_lsf_lsf_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ls_info_lsf_CPPFLAGS="$ls_info_lsf_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in lsf/lsf.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsf.h" "ac_cv_header_lsf_lsf_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsf_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSF_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_ls_info opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there ls_info_lsf_LDFLAGS="$ls_info_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info 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 liblsf requires libnl v1 or v3" >&5 $as_echo_n "checking if liblsf requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ls_info (void); int main(int argc, char *argv[]) { ls_info (); 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:237330: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_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:237337: \$? = $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 lsf" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib lsf" >&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, liblsf links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&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 lsf requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas lsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs lsf" # 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 liblsf requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs lsf" # 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_ls_info" != "no" && test "$ac_cv_search_ls_info" != "none required"; then : ls_info_lsf_LIBS="$ac_cv_search_ls_info $yp_all_nsl_LIBS $shm_open_rt_LIBS" else ls_info_lsf_LIBS="$yp_all_nsl_LIBS $shm_open_rt_LIBS" 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_ls_info opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there ls_info_lsf_LDFLAGS="$ls_info_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ls_info_lsf_LDFLAGS="$ls_info_lsf_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 ls_info" >&5 $as_echo_n "checking for library containing ls_info... " >&6; } if ${ac_cv_search_ls_info+:} 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 ls_info (); int main () { return ls_info (); ; return 0; } _ACEOF for ac_lib in '' lsf; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ls_info=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ls_info+:} false; then : break fi done if ${ac_cv_search_ls_info+:} false; then : else ac_cv_search_ls_info=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ls_info" >&5 $as_echo "$ac_cv_search_ls_info" >&6; } ac_res=$ac_cv_search_ls_info 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_ls_info_lsf_save_LDFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" unset ac_cv_search_ls_info 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 liblsf requires libnl v1 or v3" >&5 $as_echo_n "checking if liblsf requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ls_info (void); int main(int argc, char *argv[]) { ls_info (); 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:238055: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llsf $LIBS $ls_info_lsf_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:238062: \$? = $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 lsf" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib lsf" >&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, liblsf links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&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 lsf requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas lsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs lsf" # 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 liblsf requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas liblsf 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 liblsf (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblsf (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblsf." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblsf." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs lsf" # 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_ls_info" != "no" && test "$ac_cv_search_ls_info" != "none required"; then : ls_info_lsf_LIBS="$ac_cv_search_ls_info $yp_all_nsl_LIBS $shm_open_rt_LIBS" else ls_info_lsf_LIBS="$yp_all_nsl_LIBS $shm_open_rt_LIBS" 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 : orte_check_lsf_happy="yes" else ls_info_lsf_CPPFLAGS="$opal_check_package_ls_info_lsf_orig_CPPFLAGS" ls_info_lsf_LDFLAGS="$opal_check_package_ls_info_lsf_orig_LDFLAGS" ls_info_lsf_LIBS="$opal_check_package_ls_info_lsf_orig_LIBS" orte_check_lsf_happy="no" fi CPPFLAGS="$opal_check_package_ls_info_lsf_save_CPPFLAGS" LDFLAGS="$opal_check_package_ls_info_lsf_save_LDFLAGS" LIBS="$opal_check_package_ls_info_lsf_save_LIBS" fi # test function of liblsb LSF package if test "$orte_check_lsf_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF dir" >&5 $as_echo_n "checking for LSF dir... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_dir_msg" >&5 $as_echo "$orte_check_lsf_dir_msg" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LSF library dir" >&5 $as_echo_n "checking for LSF library dir... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_lsf_libdir_msg" >&5 $as_echo "$orte_check_lsf_libdir_msg" >&6; } opal_check_package_orte_check_lsf_save_CPPFLAGS="$CPPFLAGS" opal_check_package_orte_check_lsf_save_LDFLAGS="$LDFLAGS" opal_check_package_orte_check_lsf_save_LIBS="$LIBS" opal_check_package_orte_check_lsf_orig_CPPFLAGS="$orte_check_lsf_CPPFLAGS" opal_check_package_orte_check_lsf_orig_LDFLAGS="$orte_check_lsf_LDFLAGS" opal_check_package_orte_check_lsf_orig_LIBS="$orte_check_lsf_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_lsf_lsbatch_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_check_lsf_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 lsf/lsbatch.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsbatch_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSBATCH_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_lsf_lsbatch_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : orte_check_lsf_CPPFLAGS="$orte_check_lsf_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in lsf/lsbatch.h do : ac_fn_c_check_header_mongrel "$LINENO" "lsf/lsbatch.h" "ac_cv_header_lsf_lsbatch_h" "$ac_includes_default" if test "x$ac_cv_header_lsf_lsbatch_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LSF_LSBATCH_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_lsb_launch opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there orte_check_lsf_LDFLAGS="$orte_check_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch 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 libbat requires libnl v1 or v3" >&5 $as_echo_n "checking if libbat requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void lsb_launch (void); int main(int argc, char *argv[]) { lsb_launch (); 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:238928: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_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:238935: \$? = $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 bat" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib bat" >&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, libbat links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&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 bat requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas bat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs bat" # 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 libbat requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs bat" # 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_lsb_launch" != "no" && test "$ac_cv_search_lsb_launch" != "none required"; then : orte_check_lsf_LIBS="$ac_cv_search_lsb_launch $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" else orte_check_lsf_LIBS="$ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" 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_lsb_launch opal_check_package_lib_happy="no" if test "$orte_check_lsf_libdir" != ""; then : # libdir was specified - search only there orte_check_lsf_LDFLAGS="$orte_check_lsf_LDFLAGS -L$orte_check_lsf_libdir" LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_lsf_LDFLAGS="$orte_check_lsf_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 lsb_launch" >&5 $as_echo_n "checking for library containing lsb_launch... " >&6; } if ${ac_cv_search_lsb_launch+:} 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 lsb_launch (); int main () { return lsb_launch (); ; return 0; } _ACEOF for ac_lib in '' bat; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_lsb_launch=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_lsb_launch+:} false; then : break fi done if ${ac_cv_search_lsb_launch+:} false; then : else ac_cv_search_lsb_launch=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lsb_launch" >&5 $as_echo "$ac_cv_search_lsb_launch" >&6; } ac_res=$ac_cv_search_lsb_launch 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_orte_check_lsf_save_LDFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" unset ac_cv_search_lsb_launch 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 libbat requires libnl v1 or v3" >&5 $as_echo_n "checking if libbat requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void lsb_launch (void); int main(int argc, char *argv[]) { lsb_launch (); 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:239653: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lbat $LIBS $orte_check_lsf_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:239660: \$? = $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 bat" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib bat" >&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, libbat links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&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 bat requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas bat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs bat" # 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 libbat requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libbat 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 libbat (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libbat (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libbat." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libbat." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs bat" # 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_lsb_launch" != "no" && test "$ac_cv_search_lsb_launch" != "none required"; then : orte_check_lsf_LIBS="$ac_cv_search_lsb_launch $ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" else orte_check_lsf_LIBS="$ls_info_lsf_LIBS $yp_all_nsl_LIBS $shm_open_rt_LIBS" 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 : orte_check_lsf_happy="yes" else orte_check_lsf_CPPFLAGS="$opal_check_package_orte_check_lsf_orig_CPPFLAGS" orte_check_lsf_LDFLAGS="$opal_check_package_orte_check_lsf_orig_LDFLAGS" orte_check_lsf_LIBS="$opal_check_package_orte_check_lsf_orig_LIBS" orte_check_lsf_happy="no" fi CPPFLAGS="$opal_check_package_orte_check_lsf_save_CPPFLAGS" LDFLAGS="$opal_check_package_orte_check_lsf_save_LDFLAGS" LIBS="$opal_check_package_orte_check_lsf_save_LIBS" fi # Some versions of LSF ship with a libevent.so in their library path. # This is _not_ a copy of Libevent, but something specific to their project. # The Open MPI components should not need to link against LSF's libevent.so # However, the presence of it in the linker search path can cause a problem # if there is a system installed Libevent and Open MPI chooses the 'external' # event component prior to this stage. # # Add a check here to see if we are in a scenario where the two are conflicting. # In which case the earlier checks for successful compile of an LSF program will # have failed with messages like: # lib64/libevent_pthreads.so: undefined reference to `evthread_set_condition_callbacks' # lib64/libevent_pthreads.so: undefined reference to `event_mm_malloc_' # lib64/libevent_pthreads.so: undefined reference to `event_mm_free_' # lib64/libevent_pthreads.so: undefined reference to `evthread_set_id_callback' # lib64/libevent_pthreads.so: undefined reference to `evthread_set_lock_callbacks' # Because it picked up -levent from LSF, but -levent_pthreads from Libevent. # # So look for a function that libevent_pthreads is looking for from libevent.so. # If it does appears then we have the correct libevent.so, otherwise then we picked # up the LSF version and a conflict has been detected. # If the external libevent component used 'event_core' instead of 'event' orte_check_lsf_event_conflict=na # Split libs into an array, see if -levent is in that list orte_check_lsf_libevent_present=`echo "$LIBS" | awk '{split($0, a, " "); {for (k in a) {if (a[k] == "-levent") {print a[k]}}}}' | wc -l | tr -d '[:space:]'` # (1) LSF check must have failed above. We need to know why... if test "$orte_check_lsf_happy" = "no"; then : # (2) If there is a -levent in the $LIBS then that might be the problem if test "$opal_event_external_support" = "yes" && test "$orte_check_lsf_libevent_present" != "0"; then : if test "$orte_check_lsf_libdir" = "" ; then : else LDFLAGS="$LDFLAGS -L$orte_check_lsf_libdir" fi # Note that we do not want to set LIBS here to include -llsf since # the check is not for an LSF library, but for the conflict with # LDFLAGS. # (3) Check to see if the -levent is from Libevent (check for a symbol it has) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evthread_set_condition_callbacks in -levent" >&5 $as_echo_n "checking for evthread_set_condition_callbacks in -levent... " >&6; } if ${ac_cv_lib_event_evthread_set_condition_callbacks+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-levent $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 evthread_set_condition_callbacks (); int main () { return evthread_set_condition_callbacks (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_event_evthread_set_condition_callbacks=yes else ac_cv_lib_event_evthread_set_condition_callbacks=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_event_evthread_set_condition_callbacks" >&5 $as_echo "$ac_cv_lib_event_evthread_set_condition_callbacks" >&6; } if test "x$ac_cv_lib_event_evthread_set_condition_callbacks" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: No conflict found. The correct libevent.so was linked." >&5 $as_echo "No conflict found. The correct libevent.so was linked." >&6; } orte_check_lsf_event_conflict=no else # (4) The libevent.so is not from Libevent. Warn the user. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: Conflict found. Detected a libevent.so that is not from Libevent." >&5 $as_echo "Conflict found. Detected a libevent.so that is not from Libevent." >&6; } orte_check_lsf_event_conflict=yes fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: No conflict found. Internal Libevent or libevent_core is being used." >&5 $as_echo "No conflict found. Internal Libevent or libevent_core is being used." >&6; } orte_check_lsf_event_conflict=na fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent conflict" >&5 $as_echo_n "checking for libevent conflict... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: No conflict found. LSF checks passed." >&5 $as_echo "No conflict found. LSF checks passed." >&6; } orte_check_lsf_event_conflict=na fi if test "$orte_check_lsf_event_conflict" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 $as_echo "$as_me: WARNING: ===================================================================" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conflicting libevent.so libraries detected on the system." >&5 $as_echo "$as_me: WARNING: Conflicting libevent.so libraries detected on the system." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 $as_echo "$as_me: WARNING: " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A system-installed Libevent library was detected and the Open MPI" >&5 $as_echo "$as_me: WARNING: A system-installed Libevent library was detected and the Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: build system chose to use the 'external' component expecting to" >&5 $as_echo "$as_me: WARNING: build system chose to use the 'external' component expecting to" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: link against the Libevent in the linker search path." >&5 $as_echo "$as_me: WARNING: link against the Libevent in the linker search path." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If LSF is present on the system and in the default search path then" >&5 $as_echo "$as_me: WARNING: If LSF is present on the system and in the default search path then" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: it _may be_ the source of the conflict." >&5 $as_echo "$as_me: WARNING: it _may be_ the source of the conflict." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&5 $as_echo "$as_me: WARNING: LSF provides a libevent.so that is not from Libevent in its" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library path. At this point the linker is attempting to resolve" >&5 $as_echo "$as_me: WARNING: library path. At this point the linker is attempting to resolve" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libevent symbols using the LSF library because of the lack of" >&5 $as_echo "$as_me: WARNING: Libevent symbols using the LSF library because of the lack of" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: an explicit linker path pointing to the system-installed Libevent." >&5 $as_echo "$as_me: WARNING: an explicit linker path pointing to the system-installed Libevent." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 $as_echo "$as_me: WARNING: " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: To resolve this issue either (A) explicitly pass the Libevent" >&5 $as_echo "$as_me: WARNING: To resolve this issue either (A) explicitly pass the Libevent" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library path on the configure line (--with-libevent-libdir), or" >&5 $as_echo "$as_me: WARNING: library path on the configure line (--with-libevent-libdir), or" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (B) use the internal libevent by requesting it from configure " >&5 $as_echo "$as_me: WARNING: (B) use the internal libevent by requesting it from configure " >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with the --with-libevent=internal option." >&5 $as_echo "$as_me: WARNING: with the --with-libevent=internal option." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ===================================================================" >&5 $as_echo "$as_me: WARNING: ===================================================================" >&2;} fi CPPFLAGS="$orte_check_lsf_ras_lsf_save_CPPFLAGS" LDFLAGS="$orte_check_lsf_ras_lsf_save_LDFLAGS" LIBS="$orte_check_lsf_ras_lsf_save_LIBS" else orte_check_lsf_happy=no 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 Resource Managers | tr ' ' '_') ompi_summary_line="LSF: $orte_check_lsf_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 fi if test "$orte_check_lsf_happy" = "yes"; then : ras_lsf_LIBS="$ras_lsf_LIBS $orte_check_lsf_LIBS" ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS $orte_check_lsf_LDFLAGS" ras_lsf_CPPFLAGS="$ras_lsf_CPPFLAGS $orte_check_lsf_CPPFLAGS" # add the LSF libraries to static builds as they are required ras_lsf_WRAPPER_EXTRA_LDFLAGS=$ras_lsf_LDFLAGS ras_lsf_WRAPPER_EXTRA_LIBS=$ras_lsf_LIBS ras_lsf_good=1 else if test ! -z "$with_lsf" && test "$with_lsf" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LSF support requested (via --with-lsf) but not found." >&5 $as_echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;} as_fn_error $? "Aborting." "$LINENO" 5 fi ras_lsf_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$ras_lsf_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ras/lsf/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components lsf" if test "$compile_mode" = "dso" ; then dso_components="$dso_components lsf" else if test "ras" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ras/lsf/lib${ORTE_LIB_PREFIX}mca_ras_lsf.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ras/lsf/libmca_ras_lsf.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ras_lsf_component;" >> $outfile.extern echo " &mca_ras_lsf_component, " >> $outfile.struct static_components="$static_components lsf" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:lsf can compile" >&5 $as_echo_n "checking if MCA component ras:lsf can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ras" = "lsf" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ras_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ras component lsf was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ras" = "lsf" ; then as_fn_error $? "*** ras component lsf was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ras_lsf_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ras_lsf_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ras_lsf_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ras_lsf_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ras_lsf_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ras_lsf_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ras_lsf_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ras_lsf_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ras_lsf_WRAPPER_EXTRA_CPPFLAGS ($ras_lsf_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ras_lsf_WRAPPER_EXTRA_CPPFLAGS ($ras_lsf_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:lsf can compile" >&5 $as_echo_n "checking if MCA component ras:lsf can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ras" = "lsf" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "lsf" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lsf\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components lsf" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_ras_lsf_DSO=1 else BUILD_orte_ras_lsf_DSO=0 fi if test "$BUILD_orte_ras_lsf_DSO" = "1"; then MCA_BUILD_orte_ras_lsf_DSO_TRUE= MCA_BUILD_orte_ras_lsf_DSO_FALSE='#' else MCA_BUILD_orte_ras_lsf_DSO_TRUE='#' MCA_BUILD_orte_ras_lsf_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component ras:slurm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/ras/slurm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "slurm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ras" = "1"; then : want_component=0 fi if test "$DISABLE_ras_slurm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_ras" SHARED_COMPONENT="$DSO_ras_slurm" STATIC_FRAMEWORK="$STATIC_ras" STATIC_COMPONENT="$STATIC_ras_slurm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ras:slurm compile mode" >&5 $as_echo_n "checking for MCA component ras:slurm compile mode... " >&6; } if test "$DIRECT_ras" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/ras/slurm/Makefile" if test -z "$orte_check_slurm_happy" ; then # Check whether --with-slurm was given. if test "${with_slurm+set}" = set; then : withval=$with_slurm; fi if test "$with_slurm" = "no" ; then orte_check_slurm_happy="no" elif test "$with_slurm" = "" ; then # unless user asked, only build slurm component on linux, AIX, # and OS X systems (these are the platforms that SLURM # supports) case $host in *-linux*|*-aix*|*-apple-darwin*) orte_check_slurm_happy="yes" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLURM srun in PATH" >&5 $as_echo_n "checking for SLURM srun in PATH... " >&6; } # 1 is the variable name to do "which" on # 2 is the variable name to assign the return value to # Is the private index set? If not, set it. if test "x$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=srun IFS_SAVE=$IFS IFS="$PATH_SEPARATOR" for opal_dir in $PATH; do if test -x "$opal_dir/$opal_prog"; then ORTE_CHECK_SLURM_SRUN="$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 "$ORTE_CHECK_SLURM_SRUN" = ""; then orte_check_slurm_happy="no" else orte_check_slurm_happy="yes" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_slurm_happy" >&5 $as_echo "$orte_check_slurm_happy" >&6; } ;; esac else orte_check_slurm_happy="yes" fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" if test "x$ac_cv_func_fork" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve" if test "x$ac_cv_func_execve" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" if test "x$ac_cv_func_setpgid" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi # check to see if this is a Cray nativized slurm env. slurm_cray_env=0 if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : orte_slurm_cray_LDFLAGS="$orte_slurm_cray_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" orte_slurm_cray_CPPFLAGS="$orte_slurm_cray_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" orte_slurm_cray_LIBS="$orte_slurm_cray_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" orte_slurm_cray_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" orte_slurm_cray_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" slurm_cray_env=1 fi cat >>confdefs.h <<_ACEOF #define SLURM_CRAY_ENV $slurm_cray_env _ACEOF # 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 Resource Managers | tr ' ' '_') ompi_summary_line="Slurm: $orte_check_slurm_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 fi if test "$orte_check_slurm_happy" = "yes"; then : ras_slurm_good=1 else ras_slurm_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$ras_slurm_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ras/slurm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components slurm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components slurm" else if test "ras" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ras/slurm/lib${ORTE_LIB_PREFIX}mca_ras_slurm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ras/slurm/libmca_ras_slurm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ras_slurm_component;" >> $outfile.extern echo " &mca_ras_slurm_component, " >> $outfile.struct static_components="$static_components slurm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:slurm can compile" >&5 $as_echo_n "checking if MCA component ras:slurm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ras" = "slurm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ras_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ras component slurm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ras" = "slurm" ; then as_fn_error $? "*** ras component slurm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ras_slurm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ras_slurm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ras_slurm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ras_slurm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ras_slurm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ras_slurm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ras_slurm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ras_slurm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ras_slurm_WRAPPER_EXTRA_CPPFLAGS ($ras_slurm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ras_slurm_WRAPPER_EXTRA_CPPFLAGS ($ras_slurm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:slurm can compile" >&5 $as_echo_n "checking if MCA component ras:slurm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ras" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components slurm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_ras_slurm_DSO=1 else BUILD_orte_ras_slurm_DSO=0 fi if test "$BUILD_orte_ras_slurm_DSO" = "1"; then MCA_BUILD_orte_ras_slurm_DSO_TRUE= MCA_BUILD_orte_ras_slurm_DSO_FALSE='#' else MCA_BUILD_orte_ras_slurm_DSO_TRUE='#' MCA_BUILD_orte_ras_slurm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component ras:tm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/ras/tm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "tm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ras" = "1"; then : want_component=0 fi if test "$DISABLE_ras_tm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_ras" SHARED_COMPONENT="$DSO_ras_tm" STATIC_FRAMEWORK="$STATIC_ras" STATIC_COMPONENT="$STATIC_ras_tm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ras:tm compile mode" >&5 $as_echo_n "checking for MCA component ras:tm compile mode... " >&6; } if test "$DIRECT_ras" = "tm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/ras/tm/Makefile" if test -z $orte_check_tm_happy ; 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 orte_check_tm_found orte_check_tm_dir orte_check_tm_pbs_config orte_check_tm_LDFLAGS_save orte_check_tm_CPPFLAGS_save orte_check_tm_LIBS_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=\"orte_check_tm_found orte_check_tm_dir orte_check_tm_pbs_config orte_check_tm_LDFLAGS_save orte_check_tm_CPPFLAGS_save orte_check_tm_LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-tm was given. if test "${with_tm+set}" = set; then : withval=$with_tm; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tm value" >&5 $as_echo_n "checking --with-tm value... " >&6; } if test "$with_tm" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-tm)" >&5 $as_echo "simple no (specified --without-tm)" >&6; } else if test "$with_tm" = "yes" || test "x$with_tm" = "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_tm"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_tm not found" >&5 $as_echo "$as_me: WARNING: Directory $with_tm not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_tm/include/tm.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_tm/include/tm.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_tm/include/tm.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_tm)" >&5 $as_echo "sanity check ok ($with_tm)" >&6; } fi fi fi fi orte_check_tm_found=no if test "$with_tm" = "no"; then : orte_check_tm_happy="no" else orte_check_tm_happy="yes" if test ! -z "$with_tm" && test "$with_tm" != "yes"; then : orte_check_tm_dir="$with_tm" else orte_check_tm_dir="" fi fi if test "$orte_check_tm_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pbs-config" >&5 $as_echo_n "checking for pbs-config... " >&6; } orte_check_tm_pbs_config="not found" if test "$orte_check_tm_dir" != "" && test -d "$orte_check_tm_dir" && test -x "$orte_check_tm_dir/bin/pbs-config"; then : orte_check_tm_pbs_config="$orte_check_tm_dir/bin/pbs-config" else if pbs-config --prefix >/dev/null 2>&1; then : orte_check_tm_pbs_config="pbs-config" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_tm_pbs_config" >&5 $as_echo "$orte_check_tm_pbs_config" >&6; } fi # If we have pbs-config, get the flags we need from there and then # do simplistic tests looking for the tm headers and symbols if test "$orte_check_tm_happy" = "yes" && test "$orte_check_tm_pbs_config" != "not found"; then : orte_check_tm_CPPFLAGS=`$orte_check_tm_pbs_config --cflags` # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:242609: orte_check_tm_CPPFLAGS from pbs-config: $orte_check_tm_CPPFLAGS" >&5 else echo orte_check_tm_CPPFLAGS from pbs-config: $orte_check_tm_CPPFLAGS >&5 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 orte_check_tm_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=\"orte_check_tm_flags\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` orte_check_tm_flags=`$orte_check_tm_pbs_config --libs` for orte_check_tm_val in $orte_check_tm_flags; do if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then if test "LDFLAGS" = "LIBS"; then orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS $orte_check_tm_val" fi else if test "LDFLAGS" = "LDFLAGS"; then orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS $orte_check_tm_val" 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 message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:242690: orte_check_tm_LDFLAGS from pbs-config: $orte_check_tm_LDFLAGS" >&5 else echo orte_check_tm_LDFLAGS from pbs-config: $orte_check_tm_LDFLAGS >&5 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 orte_check_tm_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=\"orte_check_tm_flags\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` orte_check_tm_flags=`$orte_check_tm_pbs_config --libs` for orte_check_tm_val in $orte_check_tm_flags; do if test "`echo $orte_check_tm_val | cut -c1-2`" = "-l"; then if test "LIBS" = "LIBS"; then orte_check_tm_LIBS="$orte_check_tm_LIBS $orte_check_tm_val" fi else if test "LIBS" = "LDFLAGS"; then orte_check_tm_LIBS="$orte_check_tm_LIBS $orte_check_tm_val" 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 message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:242771: orte_check_tm_LIBS from pbs-config: $orte_check_tm_LIBS" >&5 else echo orte_check_tm_LIBS from pbs-config: $orte_check_tm_LIBS >&5 fi # Now that we supposedly have the right flags, try them out. orte_check_tm_CPPFLAGS_save="$CPPFLAGS" orte_check_tm_LDFLAGS_save="$LDFLAGS" orte_check_tm_LIBS_save="$LIBS" CPPFLAGS="$CPPFLAGS $orte_check_tm_CPPFLAGS" LIBS="$LIBS $orte_check_tm_LIBS" LDFLAGS="$LDFLAGS $orte_check_tm_LDFLAGS" ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default" if test "x$ac_cv_header_tm_h" = xyes; then : ac_fn_c_check_func "$LINENO" "tm_finalize" "ac_cv_func_tm_finalize" if test "x$ac_cv_func_tm_finalize" = xyes; then : orte_check_tm_found="yes" fi fi CPPFLAGS="$orte_check_tm_CPPFLAGS_save" LDFLAGS="$orte_check_tm_LDFLAGS_save" LIBS="$orte_check_tm_LIBS_save" fi # If we don't have pbs-config, then we have to look around # manually. # Note that Torque 2.1.0 changed the name of their back-end # library to "libtorque". So we have to check for both libpbs and # libtorque. First, check for libpbs. orte_check_package_ras_tm_save_CPPFLAGS="$CPPFLAGS" orte_check_package_ras_tm_save_LDFLAGS="$LDFLAGS" orte_check_package_ras_tm_save_LIBS="$LIBS" if test "$orte_check_tm_found" = "no"; then : if test "$orte_check_tm_happy" = "yes"; then : # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_tm_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_check_tm_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 tm.h do : ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default" if test "x$ac_cv_header_tm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TM_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_tm_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : orte_check_tm_CPPFLAGS="$orte_check_tm_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in tm.h do : ac_fn_c_check_header_mongrel "$LINENO" "tm.h" "ac_cv_header_tm_h" "$ac_includes_default" if test "x$ac_cv_header_tm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TM_H 1 _ACEOF opal_check_package_header_happy="yes" fi done if test "$opal_check_package_header_happy" = "yes"; then : orte_check_tm_found="yes" else orte_check_tm_found="no" fi else orte_check_tm_found="yes" 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 fi if test "$orte_check_tm_found" = "yes"; then : # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # see comment above unset ac_cv_search_tm_init opal_check_package_lib_happy="no" if test "$orte_check_tm_libdir" != ""; then : # libdir was specified - search only there orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS -L$orte_check_tm_libdir" LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init 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 libpbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libpbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void tm_init (void); int main(int argc, char *argv[]) { tm_init (); 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:243347: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_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:243354: \$? = $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 pbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pbs" >&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, libpbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&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 pbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pbs" # 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 libpbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pbs" # 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_tm_init" != "no" && test "$ac_cv_search_tm_init" != "none required"; then : orte_check_tm_LIBS="$ac_cv_search_tm_init " else orte_check_tm_LIBS="" fi orte_check_tm_found="yes" else # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # see comment above unset ac_cv_search_tm_init opal_check_package_lib_happy="no" if test "$orte_check_tm_libdir" != ""; then : # libdir was specified - search only there orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS -L$orte_check_tm_libdir" LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' pbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -lcrypto $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init 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 libpbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libpbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void tm_init (void); int main(int argc, char *argv[]) { tm_init (); 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:244064: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpbs $LIBS $orte_check_tm_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:244071: \$? = $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 pbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pbs" >&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, libpbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&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 pbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pbs" # 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 libpbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpbs 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 libpbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pbs" # 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_tm_init" != "no" && test "$ac_cv_search_tm_init" != "none required"; then : orte_check_tm_LIBS="$ac_cv_search_tm_init -lcrypto" else orte_check_tm_LIBS="-lcrypto" fi orte_check_tm_found="yes" else # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # see comment above unset ac_cv_search_tm_init opal_check_package_lib_happy="no" if test "$orte_check_tm_libdir" != ""; then : # libdir was specified - search only there orte_check_tm_LDFLAGS="$orte_check_tm_LDFLAGS -L$orte_check_tm_libdir" LDFLAGS="$LDFLAGS -L$orte_check_tm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_tm_LDFLAGS="$orte_check_tm_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 tm_init" >&5 $as_echo_n "checking for library containing tm_init... " >&6; } if ${ac_cv_search_tm_init+:} 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 tm_init (); int main () { return tm_init (); ; return 0; } _ACEOF for ac_lib in '' torque; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_tm_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_tm_init+:} false; then : break fi done if ${ac_cv_search_tm_init+:} false; then : else ac_cv_search_tm_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tm_init" >&5 $as_echo "$ac_cv_search_tm_init" >&6; } ac_res=$ac_cv_search_tm_init 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_orte_check_tm_save_LDFLAGS" orte_check_tm_LDFLAGS="$opal_check_package_orte_check_tm_orig_LDFLAGS" unset ac_cv_search_tm_init 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 libtorque requires libnl v1 or v3" >&5 $as_echo_n "checking if libtorque requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void tm_init (void); int main(int argc, char *argv[]) { tm_init (); 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:244781: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltorque $LIBS $orte_check_tm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltorque $LIBS $orte_check_tm_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:244788: \$? = $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 torque" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib torque" >&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, libtorque links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libtorque 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 libtorque (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtorque (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtorque." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtorque." >&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 torque requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas torque 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 libtorque (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtorque (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtorque." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtorque." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs torque" # 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 libtorque requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libtorque 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 libtorque (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtorque (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtorque." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtorque." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs torque" # 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_tm_init" != "no" && test "$ac_cv_search_tm_init" != "none required"; then : orte_check_tm_LIBS="$ac_cv_search_tm_init " else orte_check_tm_LIBS="" fi orte_check_tm_found="yes" else orte_check_tm_found="no" fi fi fi fi fi CPPFLAGS="$orte_check_package_ras_tm_save_CPPFLAGS" LDFLAGS="$orte_check_package_ras_tm_save_LDFLAGS" LIBS="$orte_check_package_ras_tm_save_LIBS" if test "$orte_check_tm_found" = "no" ; then orte_check_tm_happy=no 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 Resource Managers | tr ' ' '_') ompi_summary_line="Torque: $orte_check_tm_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 # 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 # Did we find the right stuff? if test "$orte_check_tm_happy" = "yes"; then : ras_tm_LIBS="$ras_tm_LIBS $orte_check_tm_LIBS" ras_tm_LDFLAGS="$ras_tm_LDFLAGS $orte_check_tm_LDFLAGS" ras_tm_CPPFLAGS="$ras_tm_CPPFLAGS $orte_check_tm_CPPFLAGS" # add the TM libraries to static builds as they are required ras_tm_WRAPPER_EXTRA_LDFLAGS=$ras_tm_LDFLAGS ras_tm_WRAPPER_EXTRA_LIBS=$ras_tm_LIBS ras_tm_good=1 else if test ! -z "$with_tm" && test "$with_tm" != "no"; then : as_fn_error $? "TM support requested but not found. Aborting" "$LINENO" 5 fi orte_check_tm_happy="no" ras_tm_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$ras_tm_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ras/tm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components tm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components tm" else if test "ras" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ras/tm/lib${ORTE_LIB_PREFIX}mca_ras_tm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ras/tm/libmca_ras_tm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ras_tm_component;" >> $outfile.extern echo " &mca_ras_tm_component, " >> $outfile.struct static_components="$static_components tm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:tm can compile" >&5 $as_echo_n "checking if MCA component ras:tm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ras" = "tm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ras_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ras component tm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ras" = "tm" ; then as_fn_error $? "*** ras component tm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$ras_tm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $ras_tm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $ras_tm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$ras_tm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $ras_tm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $ras_tm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$ras_tm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $ras_tm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ras_tm_WRAPPER_EXTRA_CPPFLAGS ($ras_tm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring ras_tm_WRAPPER_EXTRA_CPPFLAGS ($ras_tm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:tm can compile" >&5 $as_echo_n "checking if MCA component ras:tm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ras" = "tm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "tm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components tm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_ras_tm_DSO=1 else BUILD_orte_ras_tm_DSO=0 fi if test "$BUILD_orte_ras_tm_DSO" = "1"; then MCA_BUILD_orte_ras_tm_DSO_TRUE= MCA_BUILD_orte_ras_tm_DSO_FALSE='#' else MCA_BUILD_orte_ras_tm_DSO_TRUE='#' MCA_BUILD_orte_ras_tm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/ras/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component ras:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/ras/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_ras" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_ras_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_ras" str="SHARED_COMPONENT=\$DSO_ras_$component" eval $str STATIC_FRAMEWORK="$STATIC_ras" str="STATIC_COMPONENT=\$STATIC_ras_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ras:$component compile mode" >&5 $as_echo_n "checking for MCA component ras:$component compile mode... " >&6; } if test "$DIRECT_ras" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/ras/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/ras/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/ras/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then ras_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then ras_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/ras/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "ras" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/ras/$component/lib${ORTE_LIB_PREFIX}mca_ras_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/ras/$component/libmca_ras_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_ras_$component_component;" >> $outfile.extern echo " &mca_ras_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:$component can compile" >&5 $as_echo_n "checking if MCA component ras:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_ras" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_ras_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** ras component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_ras" = "$component" ; then as_fn_error $? "*** ras component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$ras_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$ras_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ras:$component can compile" >&5 $as_echo_n "checking if MCA component ras:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_ras" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_ras" ; then if test "$DIRECT_ras" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_ras_ALL_COMPONENTS="$all_components" MCA_orte_ras_STATIC_COMPONENTS="$static_components" MCA_orte_ras_DSO_COMPONENTS="$dso_components" MCA_orte_ras_STATIC_LTLIBS="$static_ltlibs" MCA_orte_ras_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_ras_ALL_SUBDIRS="$MCA_orte_ras_ALL_SUBDIRS mca/ras/$item" done MCA_orte_ras_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_ras_STATIC_SUBDIRS="$MCA_orte_ras_STATIC_SUBDIRS mca/ras/$item" done MCA_orte_ras_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_ras_DSO_SUBDIRS="$MCA_orte_ras_DSO_SUBDIRS mca/ras/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "ras" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS regx" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/regx" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_regx_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_regx_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_regx_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/regx/libmca_regx.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_regx_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework regx" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/regx/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/regx/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework regx" >&5 $as_echo_n "checking for no configure components in framework regx... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: fwd, naive, reverse" >&5 $as_echo "fwd, naive, reverse" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework regx" >&5 $as_echo_n "checking for m4 configure components in framework regx... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component regx:fwd (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/regx/fwd" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_regx" ; then if test "$DIRECT_regx" = "fwd" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_regx" = "1"; then : want_component=0 fi if test "$DISABLE_regx_fwd" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_regx" SHARED_COMPONENT="$DSO_regx_fwd" STATIC_FRAMEWORK="$STATIC_regx" STATIC_COMPONENT="$STATIC_regx_fwd" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component regx:fwd compile mode" >&5 $as_echo_n "checking for MCA component regx:fwd compile mode... " >&6; } if test "$DIRECT_regx" = "fwd" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/regx/fwd/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components fwd" if test "$compile_mode" = "dso" ; then dso_components="$dso_components fwd" else if test "regx" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/regx/fwd/lib${ORTE_LIB_PREFIX}mca_regx_fwd.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/regx/fwd/libmca_regx_fwd.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_regx_fwd_component;" >> $outfile.extern echo " &mca_regx_fwd_component, " >> $outfile.struct static_components="$static_components fwd" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component regx:fwd can compile" >&5 $as_echo_n "checking if MCA component regx:fwd can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_regx" = "fwd" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_regx_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** regx component fwd was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_regx" = "fwd" ; then as_fn_error $? "*** regx component fwd was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$regx_fwd_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $regx_fwd_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $regx_fwd_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$regx_fwd_WRAPPER_EXTRA_LIBS" = ""; 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_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 $regx_fwd_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $regx_fwd_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$regx_fwd_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $regx_fwd_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring regx_fwd_WRAPPER_EXTRA_CPPFLAGS ($regx_fwd_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring regx_fwd_WRAPPER_EXTRA_CPPFLAGS ($regx_fwd_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component regx:fwd can compile" >&5 $as_echo_n "checking if MCA component regx:fwd can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_regx" = "fwd" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fwd\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"fwd\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_regx" ; then if test "$DIRECT_regx" = "fwd" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fwd\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"fwd\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components fwd" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_regx_fwd_DSO=1 else BUILD_orte_regx_fwd_DSO=0 fi if test "$BUILD_orte_regx_fwd_DSO" = "1"; then MCA_BUILD_orte_regx_fwd_DSO_TRUE= MCA_BUILD_orte_regx_fwd_DSO_FALSE='#' else MCA_BUILD_orte_regx_fwd_DSO_TRUE='#' MCA_BUILD_orte_regx_fwd_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/regx/fwd/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component regx:naive (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/regx/naive" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_regx" ; then if test "$DIRECT_regx" = "naive" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_regx" = "1"; then : want_component=0 fi if test "$DISABLE_regx_naive" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_regx" SHARED_COMPONENT="$DSO_regx_naive" STATIC_FRAMEWORK="$STATIC_regx" STATIC_COMPONENT="$STATIC_regx_naive" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component regx:naive compile mode" >&5 $as_echo_n "checking for MCA component regx:naive compile mode... " >&6; } if test "$DIRECT_regx" = "naive" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/regx/naive/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components naive" if test "$compile_mode" = "dso" ; then dso_components="$dso_components naive" else if test "regx" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/regx/naive/lib${ORTE_LIB_PREFIX}mca_regx_naive.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/regx/naive/libmca_regx_naive.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_regx_naive_component;" >> $outfile.extern echo " &mca_regx_naive_component, " >> $outfile.struct static_components="$static_components naive" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component regx:naive can compile" >&5 $as_echo_n "checking if MCA component regx:naive can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_regx" = "naive" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_regx_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** regx component naive was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_regx" = "naive" ; then as_fn_error $? "*** regx component naive was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$regx_naive_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $regx_naive_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $regx_naive_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$regx_naive_WRAPPER_EXTRA_LIBS" = ""; 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_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 $regx_naive_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $regx_naive_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$regx_naive_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $regx_naive_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring regx_naive_WRAPPER_EXTRA_CPPFLAGS ($regx_naive_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring regx_naive_WRAPPER_EXTRA_CPPFLAGS ($regx_naive_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component regx:naive can compile" >&5 $as_echo_n "checking if MCA component regx:naive can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_regx" = "naive" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"naive\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"naive\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_regx" ; then if test "$DIRECT_regx" = "naive" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"naive\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"naive\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components naive" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_regx_naive_DSO=1 else BUILD_orte_regx_naive_DSO=0 fi if test "$BUILD_orte_regx_naive_DSO" = "1"; then MCA_BUILD_orte_regx_naive_DSO_TRUE= MCA_BUILD_orte_regx_naive_DSO_FALSE='#' else MCA_BUILD_orte_regx_naive_DSO_TRUE='#' MCA_BUILD_orte_regx_naive_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/regx/naive/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component regx:reverse (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/regx/reverse" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_regx" ; then if test "$DIRECT_regx" = "reverse" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_regx" = "1"; then : want_component=0 fi if test "$DISABLE_regx_reverse" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_regx" SHARED_COMPONENT="$DSO_regx_reverse" STATIC_FRAMEWORK="$STATIC_regx" STATIC_COMPONENT="$STATIC_regx_reverse" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component regx:reverse compile mode" >&5 $as_echo_n "checking for MCA component regx:reverse compile mode... " >&6; } if test "$DIRECT_regx" = "reverse" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/regx/reverse/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components reverse" if test "$compile_mode" = "dso" ; then dso_components="$dso_components reverse" else if test "regx" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/regx/reverse/lib${ORTE_LIB_PREFIX}mca_regx_reverse.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/regx/reverse/libmca_regx_reverse.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_regx_reverse_component;" >> $outfile.extern echo " &mca_regx_reverse_component, " >> $outfile.struct static_components="$static_components reverse" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component regx:reverse can compile" >&5 $as_echo_n "checking if MCA component regx:reverse can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_regx" = "reverse" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_regx_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** regx component reverse was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_regx" = "reverse" ; then as_fn_error $? "*** regx component reverse was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$regx_reverse_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $regx_reverse_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $regx_reverse_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$regx_reverse_WRAPPER_EXTRA_LIBS" = ""; 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_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 $regx_reverse_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $regx_reverse_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$regx_reverse_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $regx_reverse_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring regx_reverse_WRAPPER_EXTRA_CPPFLAGS ($regx_reverse_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring regx_reverse_WRAPPER_EXTRA_CPPFLAGS ($regx_reverse_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component regx:reverse can compile" >&5 $as_echo_n "checking if MCA component regx:reverse can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_regx" = "reverse" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"reverse\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"reverse\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_regx" ; then if test "$DIRECT_regx" = "reverse" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"reverse\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"reverse\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components reverse" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_regx_reverse_DSO=1 else BUILD_orte_regx_reverse_DSO=0 fi if test "$BUILD_orte_regx_reverse_DSO" = "1"; then MCA_BUILD_orte_regx_reverse_DSO_TRUE= MCA_BUILD_orte_regx_reverse_DSO_FALSE='#' else MCA_BUILD_orte_regx_reverse_DSO_TRUE='#' MCA_BUILD_orte_regx_reverse_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/regx/reverse/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/regx/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component regx:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/regx/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_regx" ; then if test "$DIRECT_regx" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_regx" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_regx_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_regx" str="SHARED_COMPONENT=\$DSO_regx_$component" eval $str STATIC_FRAMEWORK="$STATIC_regx" str="STATIC_COMPONENT=\$STATIC_regx_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component regx:$component compile mode" >&5 $as_echo_n "checking for MCA component regx:$component compile mode... " >&6; } if test "$DIRECT_regx" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/regx/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/regx/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/regx/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then regx_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then regx_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/regx/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "regx" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/regx/$component/lib${ORTE_LIB_PREFIX}mca_regx_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/regx/$component/libmca_regx_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_regx_$component_component;" >> $outfile.extern echo " &mca_regx_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component regx:$component can compile" >&5 $as_echo_n "checking if MCA component regx:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_regx" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_regx_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** regx component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_regx" = "$component" ; then as_fn_error $? "*** regx component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$regx_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$regx_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component regx:$component can compile" >&5 $as_echo_n "checking if MCA component regx:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_regx" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_regx" ; then if test "$DIRECT_regx" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_regx_ALL_COMPONENTS="$all_components" MCA_orte_regx_STATIC_COMPONENTS="$static_components" MCA_orte_regx_DSO_COMPONENTS="$dso_components" MCA_orte_regx_STATIC_LTLIBS="$static_ltlibs" MCA_orte_regx_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_regx_ALL_SUBDIRS="$MCA_orte_regx_ALL_SUBDIRS mca/regx/$item" done MCA_orte_regx_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_regx_STATIC_SUBDIRS="$MCA_orte_regx_STATIC_SUBDIRS mca/regx/$item" done MCA_orte_regx_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_regx_DSO_SUBDIRS="$MCA_orte_regx_DSO_SUBDIRS mca/regx/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "regx" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rmaps" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rmaps" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_rmaps_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_rmaps_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_rmaps_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rmaps/libmca_rmaps.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_rmaps_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework rmaps" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/rmaps/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/rmaps/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework rmaps" >&5 $as_echo_n "checking for no configure components in framework rmaps... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: mindist, ppr, rank_file, resilient, round_robin, seq" >&5 $as_echo "mindist, ppr, rank_file, resilient, round_robin, seq" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework rmaps" >&5 $as_echo_n "checking for m4 configure components in framework rmaps... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component rmaps:mindist (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/rmaps/mindist" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "mindist" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rmaps" = "1"; then : want_component=0 fi if test "$DISABLE_rmaps_mindist" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rmaps" SHARED_COMPONENT="$DSO_rmaps_mindist" STATIC_FRAMEWORK="$STATIC_rmaps" STATIC_COMPONENT="$STATIC_rmaps_mindist" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rmaps:mindist compile mode" >&5 $as_echo_n "checking for MCA component rmaps:mindist compile mode... " >&6; } if test "$DIRECT_rmaps" = "mindist" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rmaps/mindist/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components mindist" if test "$compile_mode" = "dso" ; then dso_components="$dso_components mindist" else if test "rmaps" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rmaps/mindist/lib${ORTE_LIB_PREFIX}mca_rmaps_mindist.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rmaps/mindist/libmca_rmaps_mindist.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rmaps_mindist_component;" >> $outfile.extern echo " &mca_rmaps_mindist_component, " >> $outfile.struct static_components="$static_components mindist" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:mindist can compile" >&5 $as_echo_n "checking if MCA component rmaps:mindist can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rmaps" = "mindist" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rmaps_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rmaps component mindist was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rmaps" = "mindist" ; then as_fn_error $? "*** rmaps component mindist was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rmaps_mindist_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rmaps_mindist_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rmaps_mindist_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rmaps_mindist_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rmaps_mindist_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rmaps_mindist_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rmaps_mindist_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rmaps_mindist_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rmaps_mindist_WRAPPER_EXTRA_CPPFLAGS ($rmaps_mindist_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rmaps_mindist_WRAPPER_EXTRA_CPPFLAGS ($rmaps_mindist_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:mindist can compile" >&5 $as_echo_n "checking if MCA component rmaps:mindist can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rmaps" = "mindist" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mindist\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mindist\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "mindist" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mindist\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mindist\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components mindist" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_rmaps_mindist_DSO=1 else BUILD_orte_rmaps_mindist_DSO=0 fi if test "$BUILD_orte_rmaps_mindist_DSO" = "1"; then MCA_BUILD_orte_rmaps_mindist_DSO_TRUE= MCA_BUILD_orte_rmaps_mindist_DSO_FALSE='#' else MCA_BUILD_orte_rmaps_mindist_DSO_TRUE='#' MCA_BUILD_orte_rmaps_mindist_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/rmaps/mindist/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component rmaps:ppr (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/rmaps/ppr" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "ppr" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rmaps" = "1"; then : want_component=0 fi if test "$DISABLE_rmaps_ppr" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rmaps" SHARED_COMPONENT="$DSO_rmaps_ppr" STATIC_FRAMEWORK="$STATIC_rmaps" STATIC_COMPONENT="$STATIC_rmaps_ppr" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rmaps:ppr compile mode" >&5 $as_echo_n "checking for MCA component rmaps:ppr compile mode... " >&6; } if test "$DIRECT_rmaps" = "ppr" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rmaps/ppr/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ppr" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ppr" else if test "rmaps" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rmaps/ppr/lib${ORTE_LIB_PREFIX}mca_rmaps_ppr.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rmaps/ppr/libmca_rmaps_ppr.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rmaps_ppr_component;" >> $outfile.extern echo " &mca_rmaps_ppr_component, " >> $outfile.struct static_components="$static_components ppr" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:ppr can compile" >&5 $as_echo_n "checking if MCA component rmaps:ppr can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rmaps" = "ppr" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rmaps_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rmaps component ppr was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rmaps" = "ppr" ; then as_fn_error $? "*** rmaps component ppr was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rmaps_ppr_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rmaps_ppr_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rmaps_ppr_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rmaps_ppr_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rmaps_ppr_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rmaps_ppr_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rmaps_ppr_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rmaps_ppr_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rmaps_ppr_WRAPPER_EXTRA_CPPFLAGS ($rmaps_ppr_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rmaps_ppr_WRAPPER_EXTRA_CPPFLAGS ($rmaps_ppr_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:ppr can compile" >&5 $as_echo_n "checking if MCA component rmaps:ppr can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rmaps" = "ppr" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ppr\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ppr\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "ppr" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ppr\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ppr\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ppr" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_rmaps_ppr_DSO=1 else BUILD_orte_rmaps_ppr_DSO=0 fi if test "$BUILD_orte_rmaps_ppr_DSO" = "1"; then MCA_BUILD_orte_rmaps_ppr_DSO_TRUE= MCA_BUILD_orte_rmaps_ppr_DSO_FALSE='#' else MCA_BUILD_orte_rmaps_ppr_DSO_TRUE='#' MCA_BUILD_orte_rmaps_ppr_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/rmaps/ppr/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component rmaps:rank_file (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/rmaps/rank_file" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "rank_file" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rmaps" = "1"; then : want_component=0 fi if test "$DISABLE_rmaps_rank_file" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rmaps" SHARED_COMPONENT="$DSO_rmaps_rank_file" STATIC_FRAMEWORK="$STATIC_rmaps" STATIC_COMPONENT="$STATIC_rmaps_rank_file" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rmaps:rank_file compile mode" >&5 $as_echo_n "checking for MCA component rmaps:rank_file compile mode... " >&6; } if test "$DIRECT_rmaps" = "rank_file" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rmaps/rank_file/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components rank_file" if test "$compile_mode" = "dso" ; then dso_components="$dso_components rank_file" else if test "rmaps" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rmaps/rank_file/lib${ORTE_LIB_PREFIX}mca_rmaps_rank_file.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rmaps/rank_file/libmca_rmaps_rank_file.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rmaps_rank_file_component;" >> $outfile.extern echo " &mca_rmaps_rank_file_component, " >> $outfile.struct static_components="$static_components rank_file" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:rank_file can compile" >&5 $as_echo_n "checking if MCA component rmaps:rank_file can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rmaps" = "rank_file" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rmaps_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rmaps component rank_file was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rmaps" = "rank_file" ; then as_fn_error $? "*** rmaps component rank_file was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rmaps_rank_file_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rmaps_rank_file_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rmaps_rank_file_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rmaps_rank_file_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rmaps_rank_file_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rmaps_rank_file_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rmaps_rank_file_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rmaps_rank_file_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rmaps_rank_file_WRAPPER_EXTRA_CPPFLAGS ($rmaps_rank_file_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rmaps_rank_file_WRAPPER_EXTRA_CPPFLAGS ($rmaps_rank_file_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:rank_file can compile" >&5 $as_echo_n "checking if MCA component rmaps:rank_file can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rmaps" = "rank_file" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rank_file\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "rank_file" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rank_file\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components rank_file" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_rmaps_rank_file_DSO=1 else BUILD_orte_rmaps_rank_file_DSO=0 fi if test "$BUILD_orte_rmaps_rank_file_DSO" = "1"; then MCA_BUILD_orte_rmaps_rank_file_DSO_TRUE= MCA_BUILD_orte_rmaps_rank_file_DSO_FALSE='#' else MCA_BUILD_orte_rmaps_rank_file_DSO_TRUE='#' MCA_BUILD_orte_rmaps_rank_file_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/rmaps/rank_file/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component rmaps:resilient (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/rmaps/resilient" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "resilient" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rmaps" = "1"; then : want_component=0 fi if test "$DISABLE_rmaps_resilient" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rmaps" SHARED_COMPONENT="$DSO_rmaps_resilient" STATIC_FRAMEWORK="$STATIC_rmaps" STATIC_COMPONENT="$STATIC_rmaps_resilient" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rmaps:resilient compile mode" >&5 $as_echo_n "checking for MCA component rmaps:resilient compile mode... " >&6; } if test "$DIRECT_rmaps" = "resilient" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rmaps/resilient/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components resilient" if test "$compile_mode" = "dso" ; then dso_components="$dso_components resilient" else if test "rmaps" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rmaps/resilient/lib${ORTE_LIB_PREFIX}mca_rmaps_resilient.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rmaps/resilient/libmca_rmaps_resilient.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rmaps_resilient_component;" >> $outfile.extern echo " &mca_rmaps_resilient_component, " >> $outfile.struct static_components="$static_components resilient" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:resilient can compile" >&5 $as_echo_n "checking if MCA component rmaps:resilient can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rmaps" = "resilient" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rmaps_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rmaps component resilient was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rmaps" = "resilient" ; then as_fn_error $? "*** rmaps component resilient was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rmaps_resilient_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rmaps_resilient_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rmaps_resilient_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rmaps_resilient_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rmaps_resilient_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rmaps_resilient_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rmaps_resilient_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rmaps_resilient_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rmaps_resilient_WRAPPER_EXTRA_CPPFLAGS ($rmaps_resilient_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rmaps_resilient_WRAPPER_EXTRA_CPPFLAGS ($rmaps_resilient_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:resilient can compile" >&5 $as_echo_n "checking if MCA component rmaps:resilient can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rmaps" = "resilient" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"resilient\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"resilient\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "resilient" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"resilient\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"resilient\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components resilient" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_rmaps_resilient_DSO=1 else BUILD_orte_rmaps_resilient_DSO=0 fi if test "$BUILD_orte_rmaps_resilient_DSO" = "1"; then MCA_BUILD_orte_rmaps_resilient_DSO_TRUE= MCA_BUILD_orte_rmaps_resilient_DSO_FALSE='#' else MCA_BUILD_orte_rmaps_resilient_DSO_TRUE='#' MCA_BUILD_orte_rmaps_resilient_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/rmaps/resilient/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component rmaps:round_robin (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/rmaps/round_robin" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "round_robin" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rmaps" = "1"; then : want_component=0 fi if test "$DISABLE_rmaps_round_robin" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rmaps" SHARED_COMPONENT="$DSO_rmaps_round_robin" STATIC_FRAMEWORK="$STATIC_rmaps" STATIC_COMPONENT="$STATIC_rmaps_round_robin" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rmaps:round_robin compile mode" >&5 $as_echo_n "checking for MCA component rmaps:round_robin compile mode... " >&6; } if test "$DIRECT_rmaps" = "round_robin" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rmaps/round_robin/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components round_robin" if test "$compile_mode" = "dso" ; then dso_components="$dso_components round_robin" else if test "rmaps" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rmaps/round_robin/lib${ORTE_LIB_PREFIX}mca_rmaps_round_robin.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rmaps/round_robin/libmca_rmaps_round_robin.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rmaps_round_robin_component;" >> $outfile.extern echo " &mca_rmaps_round_robin_component, " >> $outfile.struct static_components="$static_components round_robin" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:round_robin can compile" >&5 $as_echo_n "checking if MCA component rmaps:round_robin can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rmaps" = "round_robin" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rmaps_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rmaps component round_robin was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rmaps" = "round_robin" ; then as_fn_error $? "*** rmaps component round_robin was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rmaps_round_robin_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rmaps_round_robin_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rmaps_round_robin_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rmaps_round_robin_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rmaps_round_robin_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rmaps_round_robin_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rmaps_round_robin_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rmaps_round_robin_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rmaps_round_robin_WRAPPER_EXTRA_CPPFLAGS ($rmaps_round_robin_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rmaps_round_robin_WRAPPER_EXTRA_CPPFLAGS ($rmaps_round_robin_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:round_robin can compile" >&5 $as_echo_n "checking if MCA component rmaps:round_robin can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rmaps" = "round_robin" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"round_robin\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "round_robin" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"round_robin\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components round_robin" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_rmaps_round_robin_DSO=1 else BUILD_orte_rmaps_round_robin_DSO=0 fi if test "$BUILD_orte_rmaps_round_robin_DSO" = "1"; then MCA_BUILD_orte_rmaps_round_robin_DSO_TRUE= MCA_BUILD_orte_rmaps_round_robin_DSO_FALSE='#' else MCA_BUILD_orte_rmaps_round_robin_DSO_TRUE='#' MCA_BUILD_orte_rmaps_round_robin_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/rmaps/round_robin/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component rmaps:seq (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/rmaps/seq" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "seq" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rmaps" = "1"; then : want_component=0 fi if test "$DISABLE_rmaps_seq" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rmaps" SHARED_COMPONENT="$DSO_rmaps_seq" STATIC_FRAMEWORK="$STATIC_rmaps" STATIC_COMPONENT="$STATIC_rmaps_seq" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rmaps:seq compile mode" >&5 $as_echo_n "checking for MCA component rmaps:seq compile mode... " >&6; } if test "$DIRECT_rmaps" = "seq" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rmaps/seq/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components seq" if test "$compile_mode" = "dso" ; then dso_components="$dso_components seq" else if test "rmaps" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rmaps/seq/lib${ORTE_LIB_PREFIX}mca_rmaps_seq.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rmaps/seq/libmca_rmaps_seq.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rmaps_seq_component;" >> $outfile.extern echo " &mca_rmaps_seq_component, " >> $outfile.struct static_components="$static_components seq" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:seq can compile" >&5 $as_echo_n "checking if MCA component rmaps:seq can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rmaps" = "seq" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rmaps_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rmaps component seq was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rmaps" = "seq" ; then as_fn_error $? "*** rmaps component seq was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rmaps_seq_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rmaps_seq_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rmaps_seq_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rmaps_seq_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rmaps_seq_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rmaps_seq_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rmaps_seq_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rmaps_seq_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rmaps_seq_WRAPPER_EXTRA_CPPFLAGS ($rmaps_seq_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rmaps_seq_WRAPPER_EXTRA_CPPFLAGS ($rmaps_seq_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:seq can compile" >&5 $as_echo_n "checking if MCA component rmaps:seq can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rmaps" = "seq" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"seq\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "seq" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"seq\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components seq" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_rmaps_seq_DSO=1 else BUILD_orte_rmaps_seq_DSO=0 fi if test "$BUILD_orte_rmaps_seq_DSO" = "1"; then MCA_BUILD_orte_rmaps_seq_DSO_TRUE= MCA_BUILD_orte_rmaps_seq_DSO_FALSE='#' else MCA_BUILD_orte_rmaps_seq_DSO_TRUE='#' MCA_BUILD_orte_rmaps_seq_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/rmaps/seq/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/rmaps/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component rmaps:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/rmaps/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rmaps" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_rmaps_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rmaps" str="SHARED_COMPONENT=\$DSO_rmaps_$component" eval $str STATIC_FRAMEWORK="$STATIC_rmaps" str="STATIC_COMPONENT=\$STATIC_rmaps_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rmaps:$component compile mode" >&5 $as_echo_n "checking for MCA component rmaps:$component compile mode... " >&6; } if test "$DIRECT_rmaps" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/rmaps/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/rmaps/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/rmaps/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then rmaps_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then rmaps_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rmaps/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "rmaps" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rmaps/$component/lib${ORTE_LIB_PREFIX}mca_rmaps_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rmaps/$component/libmca_rmaps_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rmaps_$component_component;" >> $outfile.extern echo " &mca_rmaps_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:$component can compile" >&5 $as_echo_n "checking if MCA component rmaps:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rmaps" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rmaps_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rmaps component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rmaps" = "$component" ; then as_fn_error $? "*** rmaps component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$rmaps_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$rmaps_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rmaps:$component can compile" >&5 $as_echo_n "checking if MCA component rmaps:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rmaps" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rmaps" ; then if test "$DIRECT_rmaps" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_rmaps_ALL_COMPONENTS="$all_components" MCA_orte_rmaps_STATIC_COMPONENTS="$static_components" MCA_orte_rmaps_DSO_COMPONENTS="$dso_components" MCA_orte_rmaps_STATIC_LTLIBS="$static_ltlibs" MCA_orte_rmaps_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_rmaps_ALL_SUBDIRS="$MCA_orte_rmaps_ALL_SUBDIRS mca/rmaps/$item" done MCA_orte_rmaps_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_rmaps_STATIC_SUBDIRS="$MCA_orte_rmaps_STATIC_SUBDIRS mca/rmaps/$item" done MCA_orte_rmaps_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_rmaps_DSO_SUBDIRS="$MCA_orte_rmaps_DSO_SUBDIRS mca/rmaps/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "rmaps" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rml" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rml" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_rml_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_rml_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_rml_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rml/libmca_rml.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_rml_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework rml" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/rml/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/rml/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework rml" >&5 $as_echo_n "checking for no configure components in framework rml... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: oob" >&5 $as_echo "oob" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework rml" >&5 $as_echo_n "checking for m4 configure components in framework rml... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component rml:oob (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/rml/oob" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rml" ; then if test "$DIRECT_rml" = "oob" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rml" = "1"; then : want_component=0 fi if test "$DISABLE_rml_oob" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rml" SHARED_COMPONENT="$DSO_rml_oob" STATIC_FRAMEWORK="$STATIC_rml" STATIC_COMPONENT="$STATIC_rml_oob" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rml:oob compile mode" >&5 $as_echo_n "checking for MCA component rml:oob compile mode... " >&6; } if test "$DIRECT_rml" = "oob" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rml/oob/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components oob" if test "$compile_mode" = "dso" ; then dso_components="$dso_components oob" else if test "rml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rml/oob/lib${ORTE_LIB_PREFIX}mca_rml_oob.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rml/oob/libmca_rml_oob.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rml_oob_component;" >> $outfile.extern echo " &mca_rml_oob_component, " >> $outfile.struct static_components="$static_components oob" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rml:oob can compile" >&5 $as_echo_n "checking if MCA component rml:oob can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rml" = "oob" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rml component oob was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rml" = "oob" ; then as_fn_error $? "*** rml component oob was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rml_oob_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rml_oob_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rml_oob_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rml_oob_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rml_oob_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rml_oob_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rml_oob_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rml_oob_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rml_oob_WRAPPER_EXTRA_CPPFLAGS ($rml_oob_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rml_oob_WRAPPER_EXTRA_CPPFLAGS ($rml_oob_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rml:oob can compile" >&5 $as_echo_n "checking if MCA component rml:oob can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rml" = "oob" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"oob\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rml" ; then if test "$DIRECT_rml" = "oob" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"oob\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components oob" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_rml_oob_DSO=1 else BUILD_orte_rml_oob_DSO=0 fi if test "$BUILD_orte_rml_oob_DSO" = "1"; then MCA_BUILD_orte_rml_oob_DSO_TRUE= MCA_BUILD_orte_rml_oob_DSO_FALSE='#' else MCA_BUILD_orte_rml_oob_DSO_TRUE='#' MCA_BUILD_orte_rml_oob_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/rml/oob/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/rml/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component rml:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/rml/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rml" ; then if test "$DIRECT_rml" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rml" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_rml_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rml" str="SHARED_COMPONENT=\$DSO_rml_$component" eval $str STATIC_FRAMEWORK="$STATIC_rml" str="STATIC_COMPONENT=\$STATIC_rml_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rml:$component compile mode" >&5 $as_echo_n "checking for MCA component rml:$component compile mode... " >&6; } if test "$DIRECT_rml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/rml/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/rml/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/rml/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then rml_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then rml_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rml/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "rml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rml/$component/lib${ORTE_LIB_PREFIX}mca_rml_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rml/$component/libmca_rml_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rml_$component_component;" >> $outfile.extern echo " &mca_rml_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rml:$component can compile" >&5 $as_echo_n "checking if MCA component rml:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rml" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rml component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rml" = "$component" ; then as_fn_error $? "*** rml component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$rml_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$rml_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rml:$component can compile" >&5 $as_echo_n "checking if MCA component rml:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rml" ; then if test "$DIRECT_rml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_rml_ALL_COMPONENTS="$all_components" MCA_orte_rml_STATIC_COMPONENTS="$static_components" MCA_orte_rml_DSO_COMPONENTS="$dso_components" MCA_orte_rml_STATIC_LTLIBS="$static_ltlibs" MCA_orte_rml_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_rml_ALL_SUBDIRS="$MCA_orte_rml_ALL_SUBDIRS mca/rml/$item" done MCA_orte_rml_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_rml_STATIC_SUBDIRS="$MCA_orte_rml_STATIC_SUBDIRS mca/rml/$item" done MCA_orte_rml_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_rml_DSO_SUBDIRS="$MCA_orte_rml_DSO_SUBDIRS mca/rml/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "rml" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS routed" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/routed" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_routed_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_routed_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_routed_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/routed/libmca_routed.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_routed_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework routed" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/routed/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/routed/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework routed" >&5 $as_echo_n "checking for no configure components in framework routed... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: binomial, direct, radix" >&5 $as_echo "binomial, direct, radix" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework routed" >&5 $as_echo_n "checking for m4 configure components in framework routed... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component routed:binomial (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/routed/binomial" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_routed" ; then if test "$DIRECT_routed" = "binomial" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_routed" = "1"; then : want_component=0 fi if test "$DISABLE_routed_binomial" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_routed" SHARED_COMPONENT="$DSO_routed_binomial" STATIC_FRAMEWORK="$STATIC_routed" STATIC_COMPONENT="$STATIC_routed_binomial" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component routed:binomial compile mode" >&5 $as_echo_n "checking for MCA component routed:binomial compile mode... " >&6; } if test "$DIRECT_routed" = "binomial" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/routed/binomial/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components binomial" if test "$compile_mode" = "dso" ; then dso_components="$dso_components binomial" else if test "routed" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/routed/binomial/lib${ORTE_LIB_PREFIX}mca_routed_binomial.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/routed/binomial/libmca_routed_binomial.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_routed_binomial_component;" >> $outfile.extern echo " &mca_routed_binomial_component, " >> $outfile.struct static_components="$static_components binomial" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:binomial can compile" >&5 $as_echo_n "checking if MCA component routed:binomial can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_routed" = "binomial" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_routed_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** routed component binomial was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_routed" = "binomial" ; then as_fn_error $? "*** routed component binomial was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$routed_binomial_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $routed_binomial_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $routed_binomial_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$routed_binomial_WRAPPER_EXTRA_LIBS" = ""; 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_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 $routed_binomial_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $routed_binomial_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$routed_binomial_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $routed_binomial_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring routed_binomial_WRAPPER_EXTRA_CPPFLAGS ($routed_binomial_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring routed_binomial_WRAPPER_EXTRA_CPPFLAGS ($routed_binomial_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:binomial can compile" >&5 $as_echo_n "checking if MCA component routed:binomial can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_routed" = "binomial" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"binomial\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_routed" ; then if test "$DIRECT_routed" = "binomial" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"binomial\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components binomial" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_routed_binomial_DSO=1 else BUILD_orte_routed_binomial_DSO=0 fi if test "$BUILD_orte_routed_binomial_DSO" = "1"; then MCA_BUILD_orte_routed_binomial_DSO_TRUE= MCA_BUILD_orte_routed_binomial_DSO_FALSE='#' else MCA_BUILD_orte_routed_binomial_DSO_TRUE='#' MCA_BUILD_orte_routed_binomial_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/routed/binomial/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component routed:direct (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/routed/direct" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_routed" ; then if test "$DIRECT_routed" = "direct" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_routed" = "1"; then : want_component=0 fi if test "$DISABLE_routed_direct" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_routed" SHARED_COMPONENT="$DSO_routed_direct" STATIC_FRAMEWORK="$STATIC_routed" STATIC_COMPONENT="$STATIC_routed_direct" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component routed:direct compile mode" >&5 $as_echo_n "checking for MCA component routed:direct compile mode... " >&6; } if test "$DIRECT_routed" = "direct" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/routed/direct/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components direct" if test "$compile_mode" = "dso" ; then dso_components="$dso_components direct" else if test "routed" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/routed/direct/lib${ORTE_LIB_PREFIX}mca_routed_direct.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/routed/direct/libmca_routed_direct.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_routed_direct_component;" >> $outfile.extern echo " &mca_routed_direct_component, " >> $outfile.struct static_components="$static_components direct" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:direct can compile" >&5 $as_echo_n "checking if MCA component routed:direct can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_routed" = "direct" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_routed_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** routed component direct was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_routed" = "direct" ; then as_fn_error $? "*** routed component direct was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$routed_direct_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $routed_direct_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $routed_direct_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$routed_direct_WRAPPER_EXTRA_LIBS" = ""; 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_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 $routed_direct_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $routed_direct_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$routed_direct_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $routed_direct_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring routed_direct_WRAPPER_EXTRA_CPPFLAGS ($routed_direct_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring routed_direct_WRAPPER_EXTRA_CPPFLAGS ($routed_direct_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:direct can compile" >&5 $as_echo_n "checking if MCA component routed:direct can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_routed" = "direct" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"direct\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_routed" ; then if test "$DIRECT_routed" = "direct" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"direct\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components direct" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_routed_direct_DSO=1 else BUILD_orte_routed_direct_DSO=0 fi if test "$BUILD_orte_routed_direct_DSO" = "1"; then MCA_BUILD_orte_routed_direct_DSO_TRUE= MCA_BUILD_orte_routed_direct_DSO_FALSE='#' else MCA_BUILD_orte_routed_direct_DSO_TRUE='#' MCA_BUILD_orte_routed_direct_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/routed/direct/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component routed:radix (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/routed/radix" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_routed" ; then if test "$DIRECT_routed" = "radix" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_routed" = "1"; then : want_component=0 fi if test "$DISABLE_routed_radix" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_routed" SHARED_COMPONENT="$DSO_routed_radix" STATIC_FRAMEWORK="$STATIC_routed" STATIC_COMPONENT="$STATIC_routed_radix" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component routed:radix compile mode" >&5 $as_echo_n "checking for MCA component routed:radix compile mode... " >&6; } if test "$DIRECT_routed" = "radix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/routed/radix/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components radix" if test "$compile_mode" = "dso" ; then dso_components="$dso_components radix" else if test "routed" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/routed/radix/lib${ORTE_LIB_PREFIX}mca_routed_radix.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/routed/radix/libmca_routed_radix.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_routed_radix_component;" >> $outfile.extern echo " &mca_routed_radix_component, " >> $outfile.struct static_components="$static_components radix" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:radix can compile" >&5 $as_echo_n "checking if MCA component routed:radix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_routed" = "radix" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_routed_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** routed component radix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_routed" = "radix" ; then as_fn_error $? "*** routed component radix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$routed_radix_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $routed_radix_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $routed_radix_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$routed_radix_WRAPPER_EXTRA_LIBS" = ""; 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_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 $routed_radix_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $routed_radix_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$routed_radix_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $routed_radix_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring routed_radix_WRAPPER_EXTRA_CPPFLAGS ($routed_radix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring routed_radix_WRAPPER_EXTRA_CPPFLAGS ($routed_radix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:radix can compile" >&5 $as_echo_n "checking if MCA component routed:radix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_routed" = "radix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"radix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"radix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_routed" ; then if test "$DIRECT_routed" = "radix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"radix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"radix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components radix" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_routed_radix_DSO=1 else BUILD_orte_routed_radix_DSO=0 fi if test "$BUILD_orte_routed_radix_DSO" = "1"; then MCA_BUILD_orte_routed_radix_DSO_TRUE= MCA_BUILD_orte_routed_radix_DSO_FALSE='#' else MCA_BUILD_orte_routed_radix_DSO_TRUE='#' MCA_BUILD_orte_routed_radix_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/routed/radix/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/routed/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component routed:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/routed/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_routed" ; then if test "$DIRECT_routed" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_routed" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_routed_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_routed" str="SHARED_COMPONENT=\$DSO_routed_$component" eval $str STATIC_FRAMEWORK="$STATIC_routed" str="STATIC_COMPONENT=\$STATIC_routed_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component routed:$component compile mode" >&5 $as_echo_n "checking for MCA component routed:$component compile mode... " >&6; } if test "$DIRECT_routed" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/routed/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/routed/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/routed/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then routed_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then routed_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/routed/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "routed" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/routed/$component/lib${ORTE_LIB_PREFIX}mca_routed_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/routed/$component/libmca_routed_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_routed_$component_component;" >> $outfile.extern echo " &mca_routed_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:$component can compile" >&5 $as_echo_n "checking if MCA component routed:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_routed" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_routed_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** routed component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_routed" = "$component" ; then as_fn_error $? "*** routed component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$routed_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$routed_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component routed:$component can compile" >&5 $as_echo_n "checking if MCA component routed:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_routed" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_routed" ; then if test "$DIRECT_routed" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_routed_ALL_COMPONENTS="$all_components" MCA_orte_routed_STATIC_COMPONENTS="$static_components" MCA_orte_routed_DSO_COMPONENTS="$dso_components" MCA_orte_routed_STATIC_LTLIBS="$static_ltlibs" MCA_orte_routed_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_routed_ALL_SUBDIRS="$MCA_orte_routed_ALL_SUBDIRS mca/routed/$item" done MCA_orte_routed_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_routed_STATIC_SUBDIRS="$MCA_orte_routed_STATIC_SUBDIRS mca/routed/$item" done MCA_orte_routed_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_routed_DSO_SUBDIRS="$MCA_orte_routed_DSO_SUBDIRS mca/routed/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "routed" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rtc" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rtc" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_rtc_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_rtc_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_rtc_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rtc/libmca_rtc.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_rtc_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework rtc" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/rtc/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/rtc/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework rtc" >&5 $as_echo_n "checking for no configure components in framework rtc... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: hwloc" >&5 $as_echo "hwloc" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework rtc" >&5 $as_echo_n "checking for m4 configure components in framework rtc... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component rtc:hwloc (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/rtc/hwloc" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rtc" ; then if test "$DIRECT_rtc" = "hwloc" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rtc" = "1"; then : want_component=0 fi if test "$DISABLE_rtc_hwloc" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rtc" SHARED_COMPONENT="$DSO_rtc_hwloc" STATIC_FRAMEWORK="$STATIC_rtc" STATIC_COMPONENT="$STATIC_rtc_hwloc" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rtc:hwloc compile mode" >&5 $as_echo_n "checking for MCA component rtc:hwloc compile mode... " >&6; } if test "$DIRECT_rtc" = "hwloc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rtc/hwloc/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components hwloc" if test "$compile_mode" = "dso" ; then dso_components="$dso_components hwloc" else if test "rtc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rtc/hwloc/lib${ORTE_LIB_PREFIX}mca_rtc_hwloc.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rtc/hwloc/libmca_rtc_hwloc.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rtc_hwloc_component;" >> $outfile.extern echo " &mca_rtc_hwloc_component, " >> $outfile.struct static_components="$static_components hwloc" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rtc:hwloc can compile" >&5 $as_echo_n "checking if MCA component rtc:hwloc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rtc" = "hwloc" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rtc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rtc component hwloc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rtc" = "hwloc" ; then as_fn_error $? "*** rtc component hwloc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rtc_hwloc_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rtc_hwloc_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rtc_hwloc_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rtc_hwloc_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rtc_hwloc_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rtc_hwloc_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rtc_hwloc_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rtc_hwloc_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rtc_hwloc_WRAPPER_EXTRA_CPPFLAGS ($rtc_hwloc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rtc_hwloc_WRAPPER_EXTRA_CPPFLAGS ($rtc_hwloc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rtc:hwloc can compile" >&5 $as_echo_n "checking if MCA component rtc:hwloc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rtc" = "hwloc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hwloc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hwloc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rtc" ; then if test "$DIRECT_rtc" = "hwloc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hwloc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hwloc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components hwloc" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_rtc_hwloc_DSO=1 else BUILD_orte_rtc_hwloc_DSO=0 fi if test "$BUILD_orte_rtc_hwloc_DSO" = "1"; then MCA_BUILD_orte_rtc_hwloc_DSO_TRUE= MCA_BUILD_orte_rtc_hwloc_DSO_FALSE='#' else MCA_BUILD_orte_rtc_hwloc_DSO_TRUE='#' MCA_BUILD_orte_rtc_hwloc_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/rtc/hwloc/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/rtc/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component rtc:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/rtc/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rtc" ; then if test "$DIRECT_rtc" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rtc" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_rtc_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_rtc" str="SHARED_COMPONENT=\$DSO_rtc_$component" eval $str STATIC_FRAMEWORK="$STATIC_rtc" str="STATIC_COMPONENT=\$STATIC_rtc_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rtc:$component compile mode" >&5 $as_echo_n "checking for MCA component rtc:$component compile mode... " >&6; } if test "$DIRECT_rtc" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/rtc/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/rtc/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/rtc/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then rtc_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then rtc_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/rtc/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "rtc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rtc/$component/lib${ORTE_LIB_PREFIX}mca_rtc_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rtc/$component/libmca_rtc_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rtc_$component_component;" >> $outfile.extern echo " &mca_rtc_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rtc:$component can compile" >&5 $as_echo_n "checking if MCA component rtc:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rtc" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_rtc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rtc component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rtc" = "$component" ; then as_fn_error $? "*** rtc component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$rtc_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$rtc_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rtc:$component can compile" >&5 $as_echo_n "checking if MCA component rtc:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rtc" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rtc" ; then if test "$DIRECT_rtc" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_rtc_ALL_COMPONENTS="$all_components" MCA_orte_rtc_STATIC_COMPONENTS="$static_components" MCA_orte_rtc_DSO_COMPONENTS="$dso_components" MCA_orte_rtc_STATIC_LTLIBS="$static_ltlibs" MCA_orte_rtc_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_rtc_ALL_SUBDIRS="$MCA_orte_rtc_ALL_SUBDIRS mca/rtc/$item" done MCA_orte_rtc_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_rtc_STATIC_SUBDIRS="$MCA_orte_rtc_STATIC_SUBDIRS mca/rtc/$item" done MCA_orte_rtc_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_rtc_DSO_SUBDIRS="$MCA_orte_rtc_DSO_SUBDIRS mca/rtc/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "rtc" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS schizo" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/schizo" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_schizo_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_schizo_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_schizo_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/schizo/libmca_schizo.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_schizo_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework schizo" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/schizo/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/schizo/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework schizo" >&5 $as_echo_n "checking for no configure components in framework schizo... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: flux, ompi, orte" >&5 $as_echo "flux, ompi, orte" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework schizo" >&5 $as_echo_n "checking for m4 configure components in framework schizo... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: alps, jsm, moab, singularity, slurm" >&5 $as_echo "alps, jsm, moab, singularity, slurm" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component schizo:flux (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/schizo/flux" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "flux" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_schizo" = "1"; then : want_component=0 fi if test "$DISABLE_schizo_flux" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_schizo" SHARED_COMPONENT="$DSO_schizo_flux" STATIC_FRAMEWORK="$STATIC_schizo" STATIC_COMPONENT="$STATIC_schizo_flux" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component schizo:flux compile mode" >&5 $as_echo_n "checking for MCA component schizo:flux compile mode... " >&6; } if test "$DIRECT_schizo" = "flux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/schizo/flux/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components flux" if test "$compile_mode" = "dso" ; then dso_components="$dso_components flux" else if test "schizo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/schizo/flux/lib${ORTE_LIB_PREFIX}mca_schizo_flux.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/schizo/flux/libmca_schizo_flux.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_schizo_flux_component;" >> $outfile.extern echo " &mca_schizo_flux_component, " >> $outfile.struct static_components="$static_components flux" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:flux can compile" >&5 $as_echo_n "checking if MCA component schizo:flux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_schizo" = "flux" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_schizo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** schizo component flux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_schizo" = "flux" ; then as_fn_error $? "*** schizo component flux was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$schizo_flux_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $schizo_flux_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $schizo_flux_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$schizo_flux_WRAPPER_EXTRA_LIBS" = ""; 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_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 $schizo_flux_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $schizo_flux_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$schizo_flux_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $schizo_flux_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring schizo_flux_WRAPPER_EXTRA_CPPFLAGS ($schizo_flux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring schizo_flux_WRAPPER_EXTRA_CPPFLAGS ($schizo_flux_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:flux can compile" >&5 $as_echo_n "checking if MCA component schizo:flux can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_schizo" = "flux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"flux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"flux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "flux" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"flux\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"flux\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components flux" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_schizo_flux_DSO=1 else BUILD_orte_schizo_flux_DSO=0 fi if test "$BUILD_orte_schizo_flux_DSO" = "1"; then MCA_BUILD_orte_schizo_flux_DSO_TRUE= MCA_BUILD_orte_schizo_flux_DSO_FALSE='#' else MCA_BUILD_orte_schizo_flux_DSO_TRUE='#' MCA_BUILD_orte_schizo_flux_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/schizo/flux/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component schizo:ompi (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/schizo/ompi" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "ompi" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_schizo" = "1"; then : want_component=0 fi if test "$DISABLE_schizo_ompi" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_schizo" SHARED_COMPONENT="$DSO_schizo_ompi" STATIC_FRAMEWORK="$STATIC_schizo" STATIC_COMPONENT="$STATIC_schizo_ompi" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component schizo:ompi compile mode" >&5 $as_echo_n "checking for MCA component schizo:ompi compile mode... " >&6; } if test "$DIRECT_schizo" = "ompi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/schizo/ompi/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ompi" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ompi" else if test "schizo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/schizo/ompi/lib${ORTE_LIB_PREFIX}mca_schizo_ompi.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/schizo/ompi/libmca_schizo_ompi.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_schizo_ompi_component;" >> $outfile.extern echo " &mca_schizo_ompi_component, " >> $outfile.struct static_components="$static_components ompi" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:ompi can compile" >&5 $as_echo_n "checking if MCA component schizo:ompi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_schizo" = "ompi" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_schizo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** schizo component ompi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_schizo" = "ompi" ; then as_fn_error $? "*** schizo component ompi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$schizo_ompi_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $schizo_ompi_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $schizo_ompi_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$schizo_ompi_WRAPPER_EXTRA_LIBS" = ""; 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_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 $schizo_ompi_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $schizo_ompi_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$schizo_ompi_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $schizo_ompi_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring schizo_ompi_WRAPPER_EXTRA_CPPFLAGS ($schizo_ompi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring schizo_ompi_WRAPPER_EXTRA_CPPFLAGS ($schizo_ompi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:ompi can compile" >&5 $as_echo_n "checking if MCA component schizo:ompi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_schizo" = "ompi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ompi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ompi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "ompi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ompi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ompi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ompi" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_schizo_ompi_DSO=1 else BUILD_orte_schizo_ompi_DSO=0 fi if test "$BUILD_orte_schizo_ompi_DSO" = "1"; then MCA_BUILD_orte_schizo_ompi_DSO_TRUE= MCA_BUILD_orte_schizo_ompi_DSO_FALSE='#' else MCA_BUILD_orte_schizo_ompi_DSO_TRUE='#' MCA_BUILD_orte_schizo_ompi_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/schizo/ompi/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component schizo:orte (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/schizo/orte" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "orte" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_schizo" = "1"; then : want_component=0 fi if test "$DISABLE_schizo_orte" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_schizo" SHARED_COMPONENT="$DSO_schizo_orte" STATIC_FRAMEWORK="$STATIC_schizo" STATIC_COMPONENT="$STATIC_schizo_orte" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component schizo:orte compile mode" >&5 $as_echo_n "checking for MCA component schizo:orte compile mode... " >&6; } if test "$DIRECT_schizo" = "orte" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/schizo/orte/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components orte" if test "$compile_mode" = "dso" ; then dso_components="$dso_components orte" else if test "schizo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/schizo/orte/lib${ORTE_LIB_PREFIX}mca_schizo_orte.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/schizo/orte/libmca_schizo_orte.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_schizo_orte_component;" >> $outfile.extern echo " &mca_schizo_orte_component, " >> $outfile.struct static_components="$static_components orte" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:orte can compile" >&5 $as_echo_n "checking if MCA component schizo:orte can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_schizo" = "orte" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_schizo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** schizo component orte was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_schizo" = "orte" ; then as_fn_error $? "*** schizo component orte was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$schizo_orte_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $schizo_orte_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $schizo_orte_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$schizo_orte_WRAPPER_EXTRA_LIBS" = ""; 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_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 $schizo_orte_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $schizo_orte_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$schizo_orte_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $schizo_orte_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring schizo_orte_WRAPPER_EXTRA_CPPFLAGS ($schizo_orte_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring schizo_orte_WRAPPER_EXTRA_CPPFLAGS ($schizo_orte_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:orte can compile" >&5 $as_echo_n "checking if MCA component schizo:orte can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_schizo" = "orte" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orte\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "orte" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orte\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components orte" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_schizo_orte_DSO=1 else BUILD_orte_schizo_orte_DSO=0 fi if test "$BUILD_orte_schizo_orte_DSO" = "1"; then MCA_BUILD_orte_schizo_orte_DSO_TRUE= MCA_BUILD_orte_schizo_orte_DSO_FALSE='#' else MCA_BUILD_orte_schizo_orte_DSO_TRUE='#' MCA_BUILD_orte_schizo_orte_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/schizo/orte/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component schizo:alps (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/schizo/alps" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "alps" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_schizo" = "1"; then : want_component=0 fi if test "$DISABLE_schizo_alps" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_schizo" SHARED_COMPONENT="$DSO_schizo_alps" STATIC_FRAMEWORK="$STATIC_schizo" STATIC_COMPONENT="$STATIC_schizo_alps" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component schizo:alps compile mode" >&5 $as_echo_n "checking for MCA component schizo:alps compile mode... " >&6; } if test "$DIRECT_schizo" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/schizo/alps/Makefile" if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no schizo_alps_happy="no" else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : schizo_alps_LDFLAGS="$schizo_alps_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" schizo_alps_CPPFLAGS="$schizo_alps_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" schizo_alps_LIBS="$schizo_alps_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" schizo_alps_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" schizo_alps_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" schizo_alps_happy="yes" else schizo_alps_happy="no" fi # check for alps/apInfo.h # save current CPPFLAGS MCA_orte_schizo_save_CPPFLAGS="$CPPFLAGS" # add flags obtained from OPAL_CHECK_ALPS CPPFLAGS="$CPPFLAGS $schizo_alps_CPPFLAGS" for ac_header in alps/apInfo.h do : ac_fn_c_check_header_mongrel "$LINENO" "alps/apInfo.h" "ac_cv_header_alps_apInfo_h" "$ac_includes_default" if test "x$ac_cv_header_alps_apInfo_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ALPS_APINFO_H 1 _ACEOF else schizo_alps_happy="no" fi done # restore CPPFLAGS CPPFLAGS="$MCA_orte_schizo_save_CPPFLAGS" if test "$schizo_alps_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/schizo/alps/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components alps" if test "$compile_mode" = "dso" ; then dso_components="$dso_components alps" else if test "schizo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/schizo/alps/lib${ORTE_LIB_PREFIX}mca_schizo_alps.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/schizo/alps/libmca_schizo_alps.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_schizo_alps_component;" >> $outfile.extern echo " &mca_schizo_alps_component, " >> $outfile.struct static_components="$static_components alps" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:alps can compile" >&5 $as_echo_n "checking if MCA component schizo:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_schizo" = "alps" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_schizo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** schizo component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_schizo" = "alps" ; then as_fn_error $? "*** schizo component alps was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$schizo_alps_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $schizo_alps_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $schizo_alps_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$schizo_alps_WRAPPER_EXTRA_LIBS" = ""; 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_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 $schizo_alps_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $schizo_alps_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$schizo_alps_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $schizo_alps_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring schizo_alps_WRAPPER_EXTRA_CPPFLAGS ($schizo_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring schizo_alps_WRAPPER_EXTRA_CPPFLAGS ($schizo_alps_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:alps can compile" >&5 $as_echo_n "checking if MCA component schizo:alps can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_schizo" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "alps" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"alps\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components alps" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_schizo_alps_DSO=1 else BUILD_orte_schizo_alps_DSO=0 fi if test "$BUILD_orte_schizo_alps_DSO" = "1"; then MCA_BUILD_orte_schizo_alps_DSO_TRUE= MCA_BUILD_orte_schizo_alps_DSO_FALSE='#' else MCA_BUILD_orte_schizo_alps_DSO_TRUE='#' MCA_BUILD_orte_schizo_alps_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component schizo:jsm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/schizo/jsm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "jsm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_schizo" = "1"; then : want_component=0 fi if test "$DISABLE_schizo_jsm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_schizo" SHARED_COMPONENT="$DSO_schizo_jsm" STATIC_FRAMEWORK="$STATIC_schizo" STATIC_COMPONENT="$STATIC_schizo_jsm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component schizo:jsm compile mode" >&5 $as_echo_n "checking for MCA component schizo:jsm compile mode... " >&6; } if test "$DIRECT_schizo" = "jsm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/schizo/jsm/Makefile" # Nothing to do for now. opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/schizo/jsm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components jsm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components jsm" else if test "schizo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/schizo/jsm/lib${ORTE_LIB_PREFIX}mca_schizo_jsm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/schizo/jsm/libmca_schizo_jsm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_schizo_jsm_component;" >> $outfile.extern echo " &mca_schizo_jsm_component, " >> $outfile.struct static_components="$static_components jsm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:jsm can compile" >&5 $as_echo_n "checking if MCA component schizo:jsm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_schizo" = "jsm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_schizo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** schizo component jsm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_schizo" = "jsm" ; then as_fn_error $? "*** schizo component jsm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$schizo_jsm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $schizo_jsm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $schizo_jsm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$schizo_jsm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $schizo_jsm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $schizo_jsm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$schizo_jsm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $schizo_jsm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring schizo_jsm_WRAPPER_EXTRA_CPPFLAGS ($schizo_jsm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring schizo_jsm_WRAPPER_EXTRA_CPPFLAGS ($schizo_jsm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:jsm can compile" >&5 $as_echo_n "checking if MCA component schizo:jsm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_schizo" = "jsm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"jsm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"jsm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "jsm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"jsm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"jsm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components jsm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_schizo_jsm_DSO=1 else BUILD_orte_schizo_jsm_DSO=0 fi if test "$BUILD_orte_schizo_jsm_DSO" = "1"; then MCA_BUILD_orte_schizo_jsm_DSO_TRUE= MCA_BUILD_orte_schizo_jsm_DSO_FALSE='#' else MCA_BUILD_orte_schizo_jsm_DSO_TRUE='#' MCA_BUILD_orte_schizo_jsm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component schizo:moab (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/schizo/moab" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "moab" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_schizo" = "1"; then : want_component=0 fi if test "$DISABLE_schizo_moab" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_schizo" SHARED_COMPONENT="$DSO_schizo_moab" STATIC_FRAMEWORK="$STATIC_schizo" STATIC_COMPONENT="$STATIC_schizo_moab" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component schizo:moab compile mode" >&5 $as_echo_n "checking for MCA component schizo:moab compile mode... " >&6; } if test "$DIRECT_schizo" = "moab" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/schizo/moab/Makefile" if test -z "$orte_check_moab_happy" ; 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 orte_check_moab_schizo_moab_save_CPPFLAGS orte_check_moab_schizo_moab_save_LDFLAGS orte_check_moab_schizo_moab_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=\"orte_check_moab_schizo_moab_save_CPPFLAGS orte_check_moab_schizo_moab_save_LDFLAGS orte_check_moab_schizo_moab_save_LIBS\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-moab was given. if test "${with_moab+set}" = set; then : withval=$with_moab; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-moab value" >&5 $as_echo_n "checking --with-moab value... " >&6; } if test "$with_moab" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-moab)" >&5 $as_echo "simple no (specified --without-moab)" >&6; } else if test "$with_moab" = "yes" || test "x$with_moab" = "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_moab"; 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_moab not found" >&5 $as_echo "$as_me: WARNING: Directory $with_moab not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_moab/mapi.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_moab/mapi.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_moab/mapi.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_moab)" >&5 $as_echo "sanity check ok ($with_moab)" >&6; } fi fi fi fi # Check whether --with-moab-libdir was given. if test "${with_moab_libdir+set}" = set; then : withval=$with_moab_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-moab-libdir value" >&5 $as_echo_n "checking --with-moab-libdir value... " >&6; } if test "$with_moab_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-moab-libdir)" >&5 $as_echo "simple no (specified --without-moab-libdir)" >&6; } else if test "$with_moab_libdir" = "yes" || test "x$with_moab_libdir" = "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_moab_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_moab_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_moab_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_moab_libdir/libmoab.* 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_moab_libdir/libmoab.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_moab_libdir/libmoab.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_moab_libdir)" >&5 $as_echo "sanity check ok ($with_moab_libdir)" >&6; } fi fi fi fi orte_check_moab_happy="yes" if test "$with_moab" = "no"; then : orte_check_moab_happy=no fi if test $orte_check_moab_happy = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for moab in" >&5 $as_echo_n "checking looking for moab in... " >&6; } if test "$with_moab" != "yes"; then : orte_moab_dir=$with_moab { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($orte_moab_dir)" >&5 $as_echo "($orte_moab_dir)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 $as_echo "(default search paths)" >&6; } fi if test ! -z "$with_moab_libdir" && \ test "$with_moab_libdir" != "yes"; then : orte_moab_libdir=$with_moab_libdir fi fi orte_check_moab_schizo_moab_save_CPPFLAGS=$CPPFLAGS orte_check_moab_schizo_moab_save_LDFLAGS=$LDFLAGS orte_check_moab_schizo_moab_save_LIBS=$LIBS if test $orte_check_moab_happy = yes; then : opal_check_package_orte_check_moab_save_CPPFLAGS="$CPPFLAGS" opal_check_package_orte_check_moab_save_LDFLAGS="$LDFLAGS" opal_check_package_orte_check_moab_save_LIBS="$LIBS" opal_check_package_orte_check_moab_orig_CPPFLAGS="$orte_check_moab_CPPFLAGS" opal_check_package_orte_check_moab_orig_LDFLAGS="$orte_check_moab_LDFLAGS" opal_check_package_orte_check_moab_orig_LIBS="$orte_check_moab_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_mapi_h # get rid of the trailing slash(es) dir_prefix=$(echo $orte_moab_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 mapi.h do : ac_fn_c_check_header_mongrel "$LINENO" "mapi.h" "ac_cv_header_mapi_h" "$ac_includes_default" if test "x$ac_cv_header_mapi_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MAPI_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_mapi_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : orte_check_moab_CPPFLAGS="$orte_check_moab_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in mapi.h do : ac_fn_c_check_header_mongrel "$LINENO" "mapi.h" "ac_cv_header_mapi_h" "$ac_includes_default" if test "x$ac_cv_header_mapi_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MAPI_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_MCCJobGetRemainingTime opal_check_package_lib_happy="no" if test "$orte_moab_libdir" != ""; then : # libdir was specified - search only there orte_check_moab_LDFLAGS="$orte_check_moab_LDFLAGS -L$orte_moab_libdir" LDFLAGS="$LDFLAGS -L$orte_moab_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MCCJobGetRemainingTime" >&5 $as_echo_n "checking for library containing MCCJobGetRemainingTime... " >&6; } if ${ac_cv_search_MCCJobGetRemainingTime+:} 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 MCCJobGetRemainingTime (); int main () { return MCCJobGetRemainingTime (); ; return 0; } _ACEOF for ac_lib in '' cmoab; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_MCCJobGetRemainingTime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : break fi done if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : else ac_cv_search_MCCJobGetRemainingTime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MCCJobGetRemainingTime" >&5 $as_echo "$ac_cv_search_MCCJobGetRemainingTime" >&6; } ac_res=$ac_cv_search_MCCJobGetRemainingTime 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_orte_check_moab_save_LDFLAGS" orte_check_moab_LDFLAGS="$opal_check_package_orte_check_moab_orig_LDFLAGS" unset ac_cv_search_MCCJobGetRemainingTime fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_moab_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 MCCJobGetRemainingTime" >&5 $as_echo_n "checking for library containing MCCJobGetRemainingTime... " >&6; } if ${ac_cv_search_MCCJobGetRemainingTime+:} 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 MCCJobGetRemainingTime (); int main () { return MCCJobGetRemainingTime (); ; return 0; } _ACEOF for ac_lib in '' cmoab; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_MCCJobGetRemainingTime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : break fi done if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : else ac_cv_search_MCCJobGetRemainingTime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MCCJobGetRemainingTime" >&5 $as_echo "$ac_cv_search_MCCJobGetRemainingTime" >&6; } ac_res=$ac_cv_search_MCCJobGetRemainingTime 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_orte_check_moab_save_LDFLAGS" orte_check_moab_LDFLAGS="$opal_check_package_orte_check_moab_orig_LDFLAGS" unset ac_cv_search_MCCJobGetRemainingTime fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_moab_LDFLAGS="$orte_check_moab_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 MCCJobGetRemainingTime" >&5 $as_echo_n "checking for library containing MCCJobGetRemainingTime... " >&6; } if ${ac_cv_search_MCCJobGetRemainingTime+:} 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 MCCJobGetRemainingTime (); int main () { return MCCJobGetRemainingTime (); ; return 0; } _ACEOF for ac_lib in '' cmoab; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_MCCJobGetRemainingTime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : break fi done if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : else ac_cv_search_MCCJobGetRemainingTime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MCCJobGetRemainingTime" >&5 $as_echo "$ac_cv_search_MCCJobGetRemainingTime" >&6; } ac_res=$ac_cv_search_MCCJobGetRemainingTime 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_orte_check_moab_save_LDFLAGS" orte_check_moab_LDFLAGS="$opal_check_package_orte_check_moab_orig_LDFLAGS" unset ac_cv_search_MCCJobGetRemainingTime fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_moab_LDFLAGS="$orte_check_moab_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 MCCJobGetRemainingTime" >&5 $as_echo_n "checking for library containing MCCJobGetRemainingTime... " >&6; } if ${ac_cv_search_MCCJobGetRemainingTime+:} 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 MCCJobGetRemainingTime (); int main () { return MCCJobGetRemainingTime (); ; return 0; } _ACEOF for ac_lib in '' cmoab; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_MCCJobGetRemainingTime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : break fi done if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : else ac_cv_search_MCCJobGetRemainingTime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MCCJobGetRemainingTime" >&5 $as_echo "$ac_cv_search_MCCJobGetRemainingTime" >&6; } ac_res=$ac_cv_search_MCCJobGetRemainingTime 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_orte_check_moab_save_LDFLAGS" orte_check_moab_LDFLAGS="$opal_check_package_orte_check_moab_orig_LDFLAGS" unset ac_cv_search_MCCJobGetRemainingTime 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 libcmoab requires libnl v1 or v3" >&5 $as_echo_n "checking if libcmoab requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void MCCJobGetRemainingTime (void); int main(int argc, char *argv[]) { MCCJobGetRemainingTime (); 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:263807: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lcmoab $LIBS $orte_check_moab_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lcmoab $LIBS $orte_check_moab_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:263814: \$? = $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 cmoab" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib cmoab" >&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, libcmoab links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libcmoab 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 libcmoab (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libcmoab (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libcmoab." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libcmoab." >&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 cmoab requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas cmoab 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 libcmoab (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libcmoab (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libcmoab." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libcmoab." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs cmoab" # 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 libcmoab requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libcmoab 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 libcmoab (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libcmoab (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libcmoab." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libcmoab." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs cmoab" # 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_MCCJobGetRemainingTime" != "no" && test "$ac_cv_search_MCCJobGetRemainingTime" != "none required"; then : orte_check_moab_LIBS="$ac_cv_search_MCCJobGetRemainingTime " else orte_check_moab_LIBS="" 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_MCCJobGetRemainingTime opal_check_package_lib_happy="no" if test "$orte_moab_libdir" != ""; then : # libdir was specified - search only there orte_check_moab_LDFLAGS="$orte_check_moab_LDFLAGS -L$orte_moab_libdir" LDFLAGS="$LDFLAGS -L$orte_moab_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MCCJobGetRemainingTime" >&5 $as_echo_n "checking for library containing MCCJobGetRemainingTime... " >&6; } if ${ac_cv_search_MCCJobGetRemainingTime+:} 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 MCCJobGetRemainingTime (); int main () { return MCCJobGetRemainingTime (); ; return 0; } _ACEOF for ac_lib in '' cmoab; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_MCCJobGetRemainingTime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : break fi done if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : else ac_cv_search_MCCJobGetRemainingTime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MCCJobGetRemainingTime" >&5 $as_echo "$ac_cv_search_MCCJobGetRemainingTime" >&6; } ac_res=$ac_cv_search_MCCJobGetRemainingTime 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_orte_check_moab_save_LDFLAGS" orte_check_moab_LDFLAGS="$opal_check_package_orte_check_moab_orig_LDFLAGS" unset ac_cv_search_MCCJobGetRemainingTime fi else # libdir was not specified - go through search path opal_check_package_libdir="$orte_moab_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 MCCJobGetRemainingTime" >&5 $as_echo_n "checking for library containing MCCJobGetRemainingTime... " >&6; } if ${ac_cv_search_MCCJobGetRemainingTime+:} 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 MCCJobGetRemainingTime (); int main () { return MCCJobGetRemainingTime (); ; return 0; } _ACEOF for ac_lib in '' cmoab; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_MCCJobGetRemainingTime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : break fi done if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : else ac_cv_search_MCCJobGetRemainingTime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MCCJobGetRemainingTime" >&5 $as_echo "$ac_cv_search_MCCJobGetRemainingTime" >&6; } ac_res=$ac_cv_search_MCCJobGetRemainingTime 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_orte_check_moab_save_LDFLAGS" orte_check_moab_LDFLAGS="$opal_check_package_orte_check_moab_orig_LDFLAGS" unset ac_cv_search_MCCJobGetRemainingTime fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_moab_LDFLAGS="$orte_check_moab_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 MCCJobGetRemainingTime" >&5 $as_echo_n "checking for library containing MCCJobGetRemainingTime... " >&6; } if ${ac_cv_search_MCCJobGetRemainingTime+:} 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 MCCJobGetRemainingTime (); int main () { return MCCJobGetRemainingTime (); ; return 0; } _ACEOF for ac_lib in '' cmoab; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_MCCJobGetRemainingTime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : break fi done if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : else ac_cv_search_MCCJobGetRemainingTime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MCCJobGetRemainingTime" >&5 $as_echo "$ac_cv_search_MCCJobGetRemainingTime" >&6; } ac_res=$ac_cv_search_MCCJobGetRemainingTime 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_orte_check_moab_save_LDFLAGS" orte_check_moab_LDFLAGS="$opal_check_package_orte_check_moab_orig_LDFLAGS" unset ac_cv_search_MCCJobGetRemainingTime fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : orte_check_moab_LDFLAGS="$orte_check_moab_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 MCCJobGetRemainingTime" >&5 $as_echo_n "checking for library containing MCCJobGetRemainingTime... " >&6; } if ${ac_cv_search_MCCJobGetRemainingTime+:} 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 MCCJobGetRemainingTime (); int main () { return MCCJobGetRemainingTime (); ; return 0; } _ACEOF for ac_lib in '' cmoab; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_MCCJobGetRemainingTime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : break fi done if ${ac_cv_search_MCCJobGetRemainingTime+:} false; then : else ac_cv_search_MCCJobGetRemainingTime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MCCJobGetRemainingTime" >&5 $as_echo "$ac_cv_search_MCCJobGetRemainingTime" >&6; } ac_res=$ac_cv_search_MCCJobGetRemainingTime 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_orte_check_moab_save_LDFLAGS" orte_check_moab_LDFLAGS="$opal_check_package_orte_check_moab_orig_LDFLAGS" unset ac_cv_search_MCCJobGetRemainingTime 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 libcmoab requires libnl v1 or v3" >&5 $as_echo_n "checking if libcmoab requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void MCCJobGetRemainingTime (void); int main(int argc, char *argv[]) { MCCJobGetRemainingTime (); 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:264532: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lcmoab $LIBS $orte_check_moab_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lcmoab $LIBS $orte_check_moab_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:264539: \$? = $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 cmoab" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib cmoab" >&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, libcmoab links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libcmoab 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 libcmoab (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libcmoab (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libcmoab." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libcmoab." >&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 cmoab requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas cmoab 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 libcmoab (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libcmoab (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libcmoab." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libcmoab." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs cmoab" # 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 libcmoab requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libcmoab 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 libcmoab (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libcmoab (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libcmoab." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libcmoab." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs cmoab" # 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_MCCJobGetRemainingTime" != "no" && test "$ac_cv_search_MCCJobGetRemainingTime" != "none required"; then : orte_check_moab_LIBS="$ac_cv_search_MCCJobGetRemainingTime " else orte_check_moab_LIBS="" 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 : else orte_check_moab_CPPFLAGS="$opal_check_package_orte_check_moab_orig_CPPFLAGS" orte_check_moab_LDFLAGS="$opal_check_package_orte_check_moab_orig_LDFLAGS" orte_check_moab_LIBS="$opal_check_package_orte_check_moab_orig_LIBS" orte_check_moab_happy=no fi CPPFLAGS="$opal_check_package_orte_check_moab_save_CPPFLAGS" LDFLAGS="$opal_check_package_orte_check_moab_save_LDFLAGS" LIBS="$opal_check_package_orte_check_moab_save_LIBS" fi CPPFLAGS=$orte_check_moab_schizo_moab_save_CPPFLAGS LDFLAGS=$orte_check_moab_schizo_moab_save_LDFLAGS LIBS=$orte_check_moab_schizo_moab_save_LIBS # 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 Resource Managers | tr ' ' '_') ompi_summary_line="Moab: $orte_check_moab_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 # 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 $orte_check_moab_happy = yes ; then schizo_moab_CPPFLAGS="$schizo_moab_CPPFLAGS $orte_check_moab_CPPFLAGS" schizo_moab_LIBS="$schizo_moab_LIBS $orte_check_moab_LIBS" schizo_moab_LDFLAGS="$schizo_moab_LDFLAGS $orte_check_moab_LDFLAGS" fi if test "$orte_check_moab_happy" = "yes"; then : schizo_moab_good=1 else schizo_moab_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$schizo_moab_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/schizo/moab/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components moab" if test "$compile_mode" = "dso" ; then dso_components="$dso_components moab" else if test "schizo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/schizo/moab/lib${ORTE_LIB_PREFIX}mca_schizo_moab.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/schizo/moab/libmca_schizo_moab.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_schizo_moab_component;" >> $outfile.extern echo " &mca_schizo_moab_component, " >> $outfile.struct static_components="$static_components moab" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:moab can compile" >&5 $as_echo_n "checking if MCA component schizo:moab can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_schizo" = "moab" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_schizo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** schizo component moab was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_schizo" = "moab" ; then as_fn_error $? "*** schizo component moab was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$schizo_moab_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $schizo_moab_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $schizo_moab_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$schizo_moab_WRAPPER_EXTRA_LIBS" = ""; 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_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 $schizo_moab_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $schizo_moab_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$schizo_moab_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $schizo_moab_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring schizo_moab_WRAPPER_EXTRA_CPPFLAGS ($schizo_moab_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring schizo_moab_WRAPPER_EXTRA_CPPFLAGS ($schizo_moab_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:moab can compile" >&5 $as_echo_n "checking if MCA component schizo:moab can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_schizo" = "moab" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"moab\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"moab\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "moab" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"moab\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"moab\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components moab" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_schizo_moab_DSO=1 else BUILD_orte_schizo_moab_DSO=0 fi if test "$BUILD_orte_schizo_moab_DSO" = "1"; then MCA_BUILD_orte_schizo_moab_DSO_TRUE= MCA_BUILD_orte_schizo_moab_DSO_FALSE='#' else MCA_BUILD_orte_schizo_moab_DSO_TRUE='#' MCA_BUILD_orte_schizo_moab_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component schizo:singularity (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/schizo/singularity" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "singularity" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_schizo" = "1"; then : want_component=0 fi if test "$DISABLE_schizo_singularity" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_schizo" SHARED_COMPONENT="$DSO_schizo_singularity" STATIC_FRAMEWORK="$STATIC_schizo" STATIC_COMPONENT="$STATIC_schizo_singularity" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component schizo:singularity compile mode" >&5 $as_echo_n "checking for MCA component schizo:singularity compile mode... " >&6; } if test "$DIRECT_schizo" = "singularity" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/schizo/singularity/Makefile" # 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 spath have_singularity; 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=\"spath have_singularity\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-singularity was given. if test "${with_singularity+set}" = set; then : withval=$with_singularity; fi spath= { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Singularity support is to be built" >&5 $as_echo_n "checking if Singularity support is to be built... " >&6; } if test "$with_singularity" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_singularity=no else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -z "$with_singularity" || test "$with_singularity" = "yes"; then : # look for the singularity command in the default path # Extract the first word of "singularity", so it can be a program name with args. set dummy singularity; 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_SINGULARITY+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$SINGULARITY"; then ac_cv_prog_SINGULARITY="$SINGULARITY" # 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_SINGULARITY="singularity" $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 SINGULARITY=$ac_cv_prog_SINGULARITY if test -n "$SINGULARITY"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SINGULARITY" >&5 $as_echo "$SINGULARITY" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$SINGULARITY" != ""; then : have_singularity=yes else if test "$with_singularity" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Singularity support requested, but required executable" >&5 $as_echo "$as_me: WARNING: Singularity support requested, but required executable" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"singularity\" not found in default locations" >&5 $as_echo "$as_me: WARNING: \"singularity\" not found in default locations" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi have_singularity=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $with_singularity/bin" >&5 $as_echo_n "checking for existence of $with_singularity/bin... " >&6; } # look for the singularity command in the bin subdirectory if test ! -d "$with_singularity/bin"; 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_singularity/bin not found" >&5 $as_echo "$as_me: WARNING: Directory $with_singularity/bin 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; } fi save_path=$PATH PATH=$with_singularity/bin:$PATH # Extract the first word of "singularity", so it can be a program name with args. set dummy singularity; 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_SINGULARITY+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$SINGULARITY"; then ac_cv_prog_SINGULARITY="$SINGULARITY" # 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_SINGULARITY="singularity" $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 SINGULARITY=$ac_cv_prog_SINGULARITY if test -n "$SINGULARITY"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SINGULARITY" >&5 $as_echo "$SINGULARITY" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$SINGULARITY" != ""; then : have_singularity=yes spath=$with_singularity/bin else have_singlarity=no { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Singularity support requested, but required executable" >&5 $as_echo "$as_me: WARNING: Singularity support requested, but required executable" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"singularity\" not found in either default or specified path" >&5 $as_echo "$as_me: WARNING: \"singularity\" not found in either default or specified path" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi PATH=$save_path fi fi cat >>confdefs.h <<_ACEOF #define OPAL_SINGULARITY_PATH "$spath" _ACEOF if test "$have_singularity" = "yes"; then : schizo_singularity_happy="yes" else schizo_singularity_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 if test "$schizo_singularity_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/schizo/singularity/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components singularity" if test "$compile_mode" = "dso" ; then dso_components="$dso_components singularity" else if test "schizo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/schizo/singularity/lib${ORTE_LIB_PREFIX}mca_schizo_singularity.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/schizo/singularity/libmca_schizo_singularity.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_schizo_singularity_component;" >> $outfile.extern echo " &mca_schizo_singularity_component, " >> $outfile.struct static_components="$static_components singularity" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:singularity can compile" >&5 $as_echo_n "checking if MCA component schizo:singularity can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_schizo" = "singularity" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_schizo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** schizo component singularity was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_schizo" = "singularity" ; then as_fn_error $? "*** schizo component singularity was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$schizo_singularity_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $schizo_singularity_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $schizo_singularity_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$schizo_singularity_WRAPPER_EXTRA_LIBS" = ""; 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_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 $schizo_singularity_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $schizo_singularity_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$schizo_singularity_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $schizo_singularity_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring schizo_singularity_WRAPPER_EXTRA_CPPFLAGS ($schizo_singularity_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring schizo_singularity_WRAPPER_EXTRA_CPPFLAGS ($schizo_singularity_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:singularity can compile" >&5 $as_echo_n "checking if MCA component schizo:singularity can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_schizo" = "singularity" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"singularity\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"singularity\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "singularity" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"singularity\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"singularity\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components singularity" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_schizo_singularity_DSO=1 else BUILD_orte_schizo_singularity_DSO=0 fi if test "$BUILD_orte_schizo_singularity_DSO" = "1"; then MCA_BUILD_orte_schizo_singularity_DSO_TRUE= MCA_BUILD_orte_schizo_singularity_DSO_FALSE='#' else MCA_BUILD_orte_schizo_singularity_DSO_TRUE='#' MCA_BUILD_orte_schizo_singularity_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component schizo:slurm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/schizo/slurm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "slurm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_schizo" = "1"; then : want_component=0 fi if test "$DISABLE_schizo_slurm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_schizo" SHARED_COMPONENT="$DSO_schizo_slurm" STATIC_FRAMEWORK="$STATIC_schizo" STATIC_COMPONENT="$STATIC_schizo_slurm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component schizo:slurm compile mode" >&5 $as_echo_n "checking for MCA component schizo:slurm compile mode... " >&6; } if test "$DIRECT_schizo" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/schizo/slurm/Makefile" if test -z "$orte_check_slurm_happy" ; then # Check whether --with-slurm was given. if test "${with_slurm+set}" = set; then : withval=$with_slurm; fi if test "$with_slurm" = "no" ; then orte_check_slurm_happy="no" elif test "$with_slurm" = "" ; then # unless user asked, only build slurm component on linux, AIX, # and OS X systems (these are the platforms that SLURM # supports) case $host in *-linux*|*-aix*|*-apple-darwin*) orte_check_slurm_happy="yes" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLURM srun in PATH" >&5 $as_echo_n "checking for SLURM srun in PATH... " >&6; } # 1 is the variable name to do "which" on # 2 is the variable name to assign the return value to # Is the private index set? If not, set it. if test "x$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=srun IFS_SAVE=$IFS IFS="$PATH_SEPARATOR" for opal_dir in $PATH; do if test -x "$opal_dir/$opal_prog"; then ORTE_CHECK_SLURM_SRUN="$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 "$ORTE_CHECK_SLURM_SRUN" = ""; then orte_check_slurm_happy="no" else orte_check_slurm_happy="yes" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orte_check_slurm_happy" >&5 $as_echo "$orte_check_slurm_happy" >&6; } ;; esac else orte_check_slurm_happy="yes" fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" if test "x$ac_cv_func_fork" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve" if test "x$ac_cv_func_execve" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi if test "$orte_check_slurm_happy" = "yes"; then : ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" if test "x$ac_cv_func_setpgid" = xyes; then : orte_check_slurm_happy="yes" else orte_check_slurm_happy="no" fi fi # check to see if this is a Cray nativized slurm env. slurm_cray_env=0 if test -z "$opal_check_cray_alps_happy"; then # Check whether --with-alps was given. if test "${with_alps+set}" = set; then : withval=$with_alps; else with_alps=auto fi if test -f /etc/opt/cray/release/clerelease; then cle_level=`awk -F. '{print $1}' /etc/opt/cray/release/clerelease` else cle_level="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALPS support cle level $cle_level" >&5 $as_echo_n "checking for ALPS support cle level $cle_level... " >&6; } if test "$cle_level" = "4" && test "$with_alps" != "no"; then : # # if we've gotten here, its because we are building on a CLE 4 system # opal_check_alps_cle4_libdir_happy="no" opal_check_alps_cle4_dir_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ALPS components on a CLE 4 system with alps $with_alps" >&5 $as_echo_n "checking Checking for ALPS components on a CLE 4 system with alps $with_alps... " >&6; } # Check whether --with-alps-libdir was given. if test "${with_alps_libdir+set}" = set; then : withval=$with_alps_libdir; fi # # check to see if Open MPI is being built on a CLE 4 eslogin node # if test -f /etc/opt/cray/release/ESLrelease; then : default_alps_dir="/opt/cray/xe-sysroot/default/usr" else default_alps_dir="/usr" fi if test -z "$with_alps_libdir"; then : if test "$with_alps" != "yes" && test "$with_alps" != "auto"; then : if test -d "$with_alps_libdir/lib64"; then : opal_check_alps_libdir="$with_alps_libdir/lib64" else opal_check_alps_libdir="$with_alps_libdir/lib" fi else opal_check_alps_libdir="$default_alps_dir/lib/alps" fi fi if test "$with_alps" = "yes" || test "$with_alps" = "auto"; then : opal_check_alps_dir=$default_alps_dir else opal_check_alps_dir=$with_alps fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_libdir/libalps.a is present" >&5 $as_echo_n "checking if $opal_check_alps_libdir/libalps.a is present... " >&6; } if test -f "$opal_check_alps_libdir/libalps.a"; then : opal_check_alps_libdir_cle4_happy="yes" else opal_check_alps_libdir_cle4_happy="no", { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $opal_check_alps_dir/include/alps/apInfo.h is present" >&5 $as_echo_n "checking if $opal_check_alps_dir/include/alps/apInfo.h is present... " >&6; } if test -f "$opal_check_alps_dir/include/alps/apInfo.h"; then : opal_check_alps_dir_cle4_happy="yes" else opal_check_alps_dir_cle4_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$opal_check_alps_libdir_cle4_happy" = "yes" && test "$opal_check_alps_dir_cle4_happy" = "yes"; then : CRAY_ALPSLLI_CFLAGS="-I$opal_check_alps_dir/include" CRAY_ALPSLLI_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" CRAY_ALPSLLI_STATIC_LIBS="-L$opal_check_alps_libdir -lalpslli -lalpsutil" opal_check_cray_alps_happy="yes" else opal_check_cray_alps_happy="no" fi else if test "$with_alps" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy=no else if test "$with_alps" = "auto" || test "$with_alps" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSLLI" >&5 $as_echo_n "checking for CRAY_ALPSLLI... " >&6; } if test -n "$CRAY_ALPSLLI_CFLAGS"; then pkg_cv_CRAY_ALPSLLI_CFLAGS="$CRAY_ALPSLLI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_CFLAGS=`$PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_LIBS"; then pkg_cv_CRAY_ALPSLLI_LIBS="$CRAY_ALPSLLI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_LIBS=`$PKG_CONFIG --libs "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSLLI_STATIC_LIBS"; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS="$CRAY_ALPSLLI_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSLLI_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1` else CRAY_ALPSLLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSLLI_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSLLI_CFLAGS=$pkg_cv_CRAY_ALPSLLI_CFLAGS CRAY_ALPSLLI_LIBS=$pkg_cv_CRAY_ALPSLLI_LIBS CRAY_ALPSLLI_STATIC_LIBS=$pkg_cv_CRAY_ALPSLLI_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPSUTIL" >&5 $as_echo_n "checking for CRAY_ALPSUTIL... " >&6; } if test -n "$CRAY_ALPSUTIL_CFLAGS"; then pkg_cv_CRAY_ALPSUTIL_CFLAGS="$CRAY_ALPSUTIL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_CFLAGS=`$PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_LIBS"; then pkg_cv_CRAY_ALPSUTIL_LIBS="$CRAY_ALPSUTIL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_LIBS=`$PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPSUTIL_STATIC_LIBS"; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS="$CRAY_ALPSUTIL_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alpsutil" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1` else CRAY_ALPSUTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPSUTIL_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPSUTIL_CFLAGS=$pkg_cv_CRAY_ALPSUTIL_CFLAGS CRAY_ALPSUTIL_LIBS=$pkg_cv_CRAY_ALPSUTIL_LIBS CRAY_ALPSUTIL_STATIC_LIBS=$pkg_cv_CRAY_ALPSUTIL_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS" >&5 $as_echo_n "checking for CRAY_ALPS... " >&6; } if test -n "$CRAY_ALPS_CFLAGS"; then pkg_cv_CRAY_ALPS_CFLAGS="$CRAY_ALPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_CFLAGS=`$PKG_CONFIG --cflags "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_LIBS"; then pkg_cv_CRAY_ALPS_LIBS="$CRAY_ALPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_LIBS=`$PKG_CONFIG --libs "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_ALPS_STATIC_LIBS"; then pkg_cv_CRAY_ALPS_STATIC_LIBS="$CRAY_ALPS_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-alps\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-alps") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_ALPS_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-alps" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alps" 2>&1` else CRAY_ALPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-alps" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_ALPS_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_ALPS_CFLAGS=$pkg_cv_CRAY_ALPS_CFLAGS CRAY_ALPS_LIBS=$pkg_cv_CRAY_ALPS_LIBS CRAY_ALPS_STATIC_LIBS=$pkg_cv_CRAY_ALPS_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_WLM_DETECT" >&5 $as_echo_n "checking for CRAY_WLM_DETECT... " >&6; } if test -n "$CRAY_WLM_DETECT_CFLAGS"; then pkg_cv_CRAY_WLM_DETECT_CFLAGS="$CRAY_WLM_DETECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_CFLAGS=`$PKG_CONFIG --cflags "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_LIBS"; then pkg_cv_CRAY_WLM_DETECT_LIBS="$CRAY_WLM_DETECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_LIBS=`$PKG_CONFIG --libs "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CRAY_WLM_DETECT_STATIC_LIBS"; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS="$CRAY_WLM_DETECT_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cray-wlm_detect\""; } >&5 ($PKG_CONFIG --exists --print-errors "cray-wlm_detect") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS=`$PKG_CONFIG --libs --static "cray-wlm_detect" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-wlm_detect" 2>&1` else CRAY_WLM_DETECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cray-wlm_detect" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CRAY_WLM_DETECT_PKG_ERRORS" >&5 opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } opal_check_cray_alps_happy="no" if test "$with_alps" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ALPS support requested but pkg-config failed." >&5 $as_echo "$as_me: WARNING: ALPS support requested but pkg-config failed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need to explicitly indicate ALPS directory" >&5 $as_echo "$as_me: WARNING: Need to explicitly indicate ALPS directory" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on the configure line using --with-alps option." >&5 $as_echo "$as_me: WARNING: on the configure line using --with-alps option." >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi else CRAY_WLM_DETECT_CFLAGS=$pkg_cv_CRAY_WLM_DETECT_CFLAGS CRAY_WLM_DETECT_LIBS=$pkg_cv_CRAY_WLM_DETECT_LIBS CRAY_WLM_DETECT_STATIC_LIBS=$pkg_cv_CRAY_WLM_DETECT_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } opal_check_cray_alps_happy="yes" cat >>confdefs.h <<_ACEOF #define CRAY_WLM_DETECT 1 _ACEOF fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See ./configure --help for how to control Open MPI" >&5 $as_echo "$as_me: WARNING: See ./configure --help for how to control Open MPI" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuration for ALPS on CLE 5 and higher systems" >&5 $as_echo "$as_me: WARNING: configuration for ALPS on CLE 5 and higher systems" >&2;} as_fn_error $? "Aborting" "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&5 $as_echo "opal_check_cray_alps_happy = $opal_check_cray_alps_happy" >&6; } if test "$opal_check_cray_alps_happy" = "yes" && test "$enable_static" = "yes"; then : CRAY_ALPSLLI_LIBS = $CRAY_ALPSLLI_STATIC_LIBS CRAY_ALPSUTIL_LIBS = $CRAY_ALPSUTIL_STATIC_LIBS 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 Resource Managers | tr ' ' '_') ompi_summary_line="Cray Alps: $opal_check_cray_alps_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 fi if test "$opal_check_cray_alps_happy" = "yes"; then : orte_slurm_cray_LDFLAGS="$orte_slurm_cray_LDFLAGS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS" orte_slurm_cray_CPPFLAGS="$orte_slurm_cray_CPPFLAGS $CRAY_ALPSLLI_CFLAGS $CRAY_ALPSUTIL_CFLAGS $CRAY_ALPS_CFLAGS $CRAY_WLM_DETECT_CFLAGS" orte_slurm_cray_LIBS="$orte_slurm_cray_LIBS $CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" orte_slurm_cray_WRAPPER_EXTRA_LDFLAGS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" orte_slurm_cray_WRAPPER_EXTRA_LIBS="$CRAY_ALPSLLI_LIBS $CRAY_ALPSUTIL_LIBS $CRAY_WLM_DETECT_LIBS" slurm_cray_env=1 fi cat >>confdefs.h <<_ACEOF #define SLURM_CRAY_ENV $slurm_cray_env _ACEOF # 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 Resource Managers | tr ' ' '_') ompi_summary_line="Slurm: $orte_check_slurm_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 fi if test "$orte_check_slurm_happy" = "yes"; then : schizo_slurm_good=1 else schizo_slurm_good=0 fi # if check worked, set wrapper flags if so. # Evaluate succeed / fail if test "$schizo_slurm_good" = "1"; then : should_build=$should_build else should_build=0 fi # set build flags to use in makefile opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/schizo/slurm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components slurm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components slurm" else if test "schizo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/schizo/slurm/lib${ORTE_LIB_PREFIX}mca_schizo_slurm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/schizo/slurm/libmca_schizo_slurm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_schizo_slurm_component;" >> $outfile.extern echo " &mca_schizo_slurm_component, " >> $outfile.struct static_components="$static_components slurm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:slurm can compile" >&5 $as_echo_n "checking if MCA component schizo:slurm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_schizo" = "slurm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_schizo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** schizo component slurm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_schizo" = "slurm" ; then as_fn_error $? "*** schizo component slurm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$schizo_slurm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $schizo_slurm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $schizo_slurm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$schizo_slurm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $schizo_slurm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $schizo_slurm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$schizo_slurm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $schizo_slurm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring schizo_slurm_WRAPPER_EXTRA_CPPFLAGS ($schizo_slurm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring schizo_slurm_WRAPPER_EXTRA_CPPFLAGS ($schizo_slurm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:slurm can compile" >&5 $as_echo_n "checking if MCA component schizo:slurm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_schizo" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "slurm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"slurm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components slurm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_schizo_slurm_DSO=1 else BUILD_orte_schizo_slurm_DSO=0 fi if test "$BUILD_orte_schizo_slurm_DSO" = "1"; then MCA_BUILD_orte_schizo_slurm_DSO_TRUE= MCA_BUILD_orte_schizo_slurm_DSO_FALSE='#' else MCA_BUILD_orte_schizo_slurm_DSO_TRUE='#' MCA_BUILD_orte_schizo_slurm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/schizo/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component schizo:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/schizo/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_schizo" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_schizo_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_schizo" str="SHARED_COMPONENT=\$DSO_schizo_$component" eval $str STATIC_FRAMEWORK="$STATIC_schizo" str="STATIC_COMPONENT=\$STATIC_schizo_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component schizo:$component compile mode" >&5 $as_echo_n "checking for MCA component schizo:$component compile mode... " >&6; } if test "$DIRECT_schizo" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/schizo/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/schizo/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/schizo/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then schizo_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then schizo_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/schizo/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "schizo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/schizo/$component/lib${ORTE_LIB_PREFIX}mca_schizo_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/schizo/$component/libmca_schizo_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_schizo_$component_component;" >> $outfile.extern echo " &mca_schizo_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:$component can compile" >&5 $as_echo_n "checking if MCA component schizo:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_schizo" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_schizo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** schizo component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_schizo" = "$component" ; then as_fn_error $? "*** schizo component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$schizo_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$schizo_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component schizo:$component can compile" >&5 $as_echo_n "checking if MCA component schizo:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_schizo" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_schizo" ; then if test "$DIRECT_schizo" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_schizo_ALL_COMPONENTS="$all_components" MCA_orte_schizo_STATIC_COMPONENTS="$static_components" MCA_orte_schizo_DSO_COMPONENTS="$dso_components" MCA_orte_schizo_STATIC_LTLIBS="$static_ltlibs" MCA_orte_schizo_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_schizo_ALL_SUBDIRS="$MCA_orte_schizo_ALL_SUBDIRS mca/schizo/$item" done MCA_orte_schizo_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_schizo_STATIC_SUBDIRS="$MCA_orte_schizo_STATIC_SUBDIRS mca/schizo/$item" done MCA_orte_schizo_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_schizo_DSO_SUBDIRS="$MCA_orte_schizo_DSO_SUBDIRS mca/schizo/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "schizo" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS snapc" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/snapc" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_snapc_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_snapc_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_snapc_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/snapc/libmca_snapc.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_snapc_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework snapc" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/snapc/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/snapc/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework snapc" >&5 $as_echo_n "checking for no configure components in framework snapc... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework snapc" >&5 $as_echo_n "checking for m4 configure components in framework snapc... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: full" >&5 $as_echo "full" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component snapc:full (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/snapc/full" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_snapc" ; then if test "$DIRECT_snapc" = "full" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_snapc" = "1"; then : want_component=0 fi if test "$DISABLE_snapc_full" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_snapc" SHARED_COMPONENT="$DSO_snapc_full" STATIC_FRAMEWORK="$STATIC_snapc" STATIC_COMPONENT="$STATIC_snapc_full" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component snapc:full compile mode" >&5 $as_echo_n "checking for MCA component snapc:full compile mode... " >&6; } if test "$DIRECT_snapc" = "full" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/snapc/full/Makefile" # If we don't want FT, don't compile this component if test "$opal_want_ft_cr" = "1"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/snapc/full/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components full" if test "$compile_mode" = "dso" ; then dso_components="$dso_components full" else if test "snapc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/snapc/full/lib${ORTE_LIB_PREFIX}mca_snapc_full.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/snapc/full/libmca_snapc_full.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_snapc_full_component;" >> $outfile.extern echo " &mca_snapc_full_component, " >> $outfile.struct static_components="$static_components full" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component snapc:full can compile" >&5 $as_echo_n "checking if MCA component snapc:full can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_snapc" = "full" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_snapc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** snapc component full was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_snapc" = "full" ; then as_fn_error $? "*** snapc component full was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$snapc_full_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $snapc_full_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $snapc_full_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$snapc_full_WRAPPER_EXTRA_LIBS" = ""; 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_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 $snapc_full_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $snapc_full_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$snapc_full_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $snapc_full_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring snapc_full_WRAPPER_EXTRA_CPPFLAGS ($snapc_full_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring snapc_full_WRAPPER_EXTRA_CPPFLAGS ($snapc_full_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component snapc:full can compile" >&5 $as_echo_n "checking if MCA component snapc:full can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_snapc" = "full" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"full\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_snapc" ; then if test "$DIRECT_snapc" = "full" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"full\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components full" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_snapc_full_DSO=1 else BUILD_orte_snapc_full_DSO=0 fi if test "$BUILD_orte_snapc_full_DSO" = "1"; then MCA_BUILD_orte_snapc_full_DSO_TRUE= MCA_BUILD_orte_snapc_full_DSO_FALSE='#' else MCA_BUILD_orte_snapc_full_DSO_TRUE='#' MCA_BUILD_orte_snapc_full_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/snapc/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component snapc:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/snapc/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_snapc" ; then if test "$DIRECT_snapc" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_snapc" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_snapc_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_snapc" str="SHARED_COMPONENT=\$DSO_snapc_$component" eval $str STATIC_FRAMEWORK="$STATIC_snapc" str="STATIC_COMPONENT=\$STATIC_snapc_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component snapc:$component compile mode" >&5 $as_echo_n "checking for MCA component snapc:$component compile mode... " >&6; } if test "$DIRECT_snapc" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/snapc/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/snapc/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/snapc/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then snapc_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then snapc_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/snapc/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "snapc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/snapc/$component/lib${ORTE_LIB_PREFIX}mca_snapc_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/snapc/$component/libmca_snapc_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_snapc_$component_component;" >> $outfile.extern echo " &mca_snapc_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component snapc:$component can compile" >&5 $as_echo_n "checking if MCA component snapc:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_snapc" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_snapc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** snapc component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_snapc" = "$component" ; then as_fn_error $? "*** snapc component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$snapc_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$snapc_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component snapc:$component can compile" >&5 $as_echo_n "checking if MCA component snapc:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_snapc" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_snapc" ; then if test "$DIRECT_snapc" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_snapc_ALL_COMPONENTS="$all_components" MCA_orte_snapc_STATIC_COMPONENTS="$static_components" MCA_orte_snapc_DSO_COMPONENTS="$dso_components" MCA_orte_snapc_STATIC_LTLIBS="$static_ltlibs" MCA_orte_snapc_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_snapc_ALL_SUBDIRS="$MCA_orte_snapc_ALL_SUBDIRS mca/snapc/$item" done MCA_orte_snapc_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_snapc_STATIC_SUBDIRS="$MCA_orte_snapc_STATIC_SUBDIRS mca/snapc/$item" done MCA_orte_snapc_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_snapc_DSO_SUBDIRS="$MCA_orte_snapc_DSO_SUBDIRS mca/snapc/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "snapc" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS sstore" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/sstore" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_sstore_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_sstore_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_sstore_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/sstore/libmca_sstore.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_sstore_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework sstore" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/sstore/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/sstore/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework sstore" >&5 $as_echo_n "checking for no configure components in framework sstore... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework sstore" >&5 $as_echo_n "checking for m4 configure components in framework sstore... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: central, stage" >&5 $as_echo "central, stage" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component sstore:central (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/sstore/central" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sstore" ; then if test "$DIRECT_sstore" = "central" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sstore" = "1"; then : want_component=0 fi if test "$DISABLE_sstore_central" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_sstore" SHARED_COMPONENT="$DSO_sstore_central" STATIC_FRAMEWORK="$STATIC_sstore" STATIC_COMPONENT="$STATIC_sstore_central" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sstore:central compile mode" >&5 $as_echo_n "checking for MCA component sstore:central compile mode... " >&6; } if test "$DIRECT_sstore" = "central" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/sstore/central/Makefile" # If we don't want FT, don't compile this component if test "$opal_want_ft_cr" = "1"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/sstore/central/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components central" if test "$compile_mode" = "dso" ; then dso_components="$dso_components central" else if test "sstore" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sstore/central/lib${ORTE_LIB_PREFIX}mca_sstore_central.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sstore/central/libmca_sstore_central.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sstore_central_component;" >> $outfile.extern echo " &mca_sstore_central_component, " >> $outfile.struct static_components="$static_components central" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sstore:central can compile" >&5 $as_echo_n "checking if MCA component sstore:central can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sstore" = "central" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_sstore_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sstore component central was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sstore" = "central" ; then as_fn_error $? "*** sstore component central was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$sstore_central_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $sstore_central_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $sstore_central_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$sstore_central_WRAPPER_EXTRA_LIBS" = ""; 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_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 $sstore_central_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $sstore_central_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$sstore_central_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $sstore_central_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring sstore_central_WRAPPER_EXTRA_CPPFLAGS ($sstore_central_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring sstore_central_WRAPPER_EXTRA_CPPFLAGS ($sstore_central_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sstore:central can compile" >&5 $as_echo_n "checking if MCA component sstore:central can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sstore" = "central" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"central\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"central\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sstore" ; then if test "$DIRECT_sstore" = "central" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"central\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"central\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components central" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_sstore_central_DSO=1 else BUILD_orte_sstore_central_DSO=0 fi if test "$BUILD_orte_sstore_central_DSO" = "1"; then MCA_BUILD_orte_sstore_central_DSO_TRUE= MCA_BUILD_orte_sstore_central_DSO_FALSE='#' else MCA_BUILD_orte_sstore_central_DSO_TRUE='#' MCA_BUILD_orte_sstore_central_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component sstore:stage (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/orte/mca/sstore/stage" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sstore" ; then if test "$DIRECT_sstore" = "stage" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sstore" = "1"; then : want_component=0 fi if test "$DISABLE_sstore_stage" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_sstore" SHARED_COMPONENT="$DSO_sstore_stage" STATIC_FRAMEWORK="$STATIC_sstore" STATIC_COMPONENT="$STATIC_sstore_stage" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sstore:stage compile mode" >&5 $as_echo_n "checking for MCA component sstore:stage compile mode... " >&6; } if test "$DIRECT_sstore" = "stage" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files orte/mca/sstore/stage/Makefile" # If we don't want FT, don't compile this component if test "$opal_want_ft_cr" = "1"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/sstore/stage/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components stage" if test "$compile_mode" = "dso" ; then dso_components="$dso_components stage" else if test "sstore" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sstore/stage/lib${ORTE_LIB_PREFIX}mca_sstore_stage.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sstore/stage/libmca_sstore_stage.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sstore_stage_component;" >> $outfile.extern echo " &mca_sstore_stage_component, " >> $outfile.struct static_components="$static_components stage" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sstore:stage can compile" >&5 $as_echo_n "checking if MCA component sstore:stage can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sstore" = "stage" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_sstore_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sstore component stage was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sstore" = "stage" ; then as_fn_error $? "*** sstore component stage was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$sstore_stage_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $sstore_stage_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $sstore_stage_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$sstore_stage_WRAPPER_EXTRA_LIBS" = ""; 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_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 $sstore_stage_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $sstore_stage_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$sstore_stage_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $sstore_stage_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring sstore_stage_WRAPPER_EXTRA_CPPFLAGS ($sstore_stage_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring sstore_stage_WRAPPER_EXTRA_CPPFLAGS ($sstore_stage_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sstore:stage can compile" >&5 $as_echo_n "checking if MCA component sstore:stage can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sstore" = "stage" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"stage\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"stage\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sstore" ; then if test "$DIRECT_sstore" = "stage" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"stage\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"stage\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components stage" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_orte_sstore_stage_DSO=1 else BUILD_orte_sstore_stage_DSO=0 fi if test "$BUILD_orte_sstore_stage_DSO" = "1"; then MCA_BUILD_orte_sstore_stage_DSO_TRUE= MCA_BUILD_orte_sstore_stage_DSO_FALSE='#' else MCA_BUILD_orte_sstore_stage_DSO_TRUE='#' MCA_BUILD_orte_sstore_stage_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/sstore/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component sstore:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/sstore/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sstore" ; then if test "$DIRECT_sstore" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sstore" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_sstore_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_sstore" str="SHARED_COMPONENT=\$DSO_sstore_$component" eval $str STATIC_FRAMEWORK="$STATIC_sstore" str="STATIC_COMPONENT=\$STATIC_sstore_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sstore:$component compile mode" >&5 $as_echo_n "checking for MCA component sstore:$component compile mode... " >&6; } if test "$DIRECT_sstore" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/sstore/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/sstore/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/sstore/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then sstore_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then sstore_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/sstore/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "sstore" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sstore/$component/lib${ORTE_LIB_PREFIX}mca_sstore_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sstore/$component/libmca_sstore_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sstore_$component_component;" >> $outfile.extern echo " &mca_sstore_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sstore:$component can compile" >&5 $as_echo_n "checking if MCA component sstore:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sstore" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_sstore_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sstore component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sstore" = "$component" ; then as_fn_error $? "*** sstore component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$sstore_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$sstore_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sstore:$component can compile" >&5 $as_echo_n "checking if MCA component sstore:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sstore" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sstore" ; then if test "$DIRECT_sstore" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_sstore_ALL_COMPONENTS="$all_components" MCA_orte_sstore_STATIC_COMPONENTS="$static_components" MCA_orte_sstore_DSO_COMPONENTS="$dso_components" MCA_orte_sstore_STATIC_LTLIBS="$static_ltlibs" MCA_orte_sstore_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_sstore_ALL_SUBDIRS="$MCA_orte_sstore_ALL_SUBDIRS mca/sstore/$item" done MCA_orte_sstore_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_sstore_STATIC_SUBDIRS="$MCA_orte_sstore_STATIC_SUBDIRS mca/sstore/$item" done MCA_orte_sstore_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_sstore_DSO_SUBDIRS="$MCA_orte_sstore_DSO_SUBDIRS mca/sstore/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "sstore" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS state" MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/state" MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_orte_state_ALL_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_orte_state_DSO_SUBDIRS)" MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_orte_state_STATIC_SUBDIRS)" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/state/libmca_state.la" MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_orte_state_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework state" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=orte/mca/state/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files orte/mca/state/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework state" >&5 $as_echo_n "checking for no configure components in framework state... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: app, hnp, novm, orted, tool" >&5 $as_echo "app, hnp, novm, orted, tool" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework state" >&5 $as_echo_n "checking for m4 configure components in framework state... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component state:app (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/state/app" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "app" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_state" = "1"; then : want_component=0 fi if test "$DISABLE_state_app" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_state" SHARED_COMPONENT="$DSO_state_app" STATIC_FRAMEWORK="$STATIC_state" STATIC_COMPONENT="$STATIC_state_app" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component state:app compile mode" >&5 $as_echo_n "checking for MCA component state:app compile mode... " >&6; } if test "$DIRECT_state" = "app" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/state/app/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components app" if test "$compile_mode" = "dso" ; then dso_components="$dso_components app" else if test "state" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/state/app/lib${ORTE_LIB_PREFIX}mca_state_app.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/state/app/libmca_state_app.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_state_app_component;" >> $outfile.extern echo " &mca_state_app_component, " >> $outfile.struct static_components="$static_components app" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:app can compile" >&5 $as_echo_n "checking if MCA component state:app can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_state" = "app" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_state_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** state component app was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_state" = "app" ; then as_fn_error $? "*** state component app was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$state_app_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $state_app_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $state_app_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$state_app_WRAPPER_EXTRA_LIBS" = ""; 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_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 $state_app_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $state_app_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$state_app_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $state_app_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring state_app_WRAPPER_EXTRA_CPPFLAGS ($state_app_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring state_app_WRAPPER_EXTRA_CPPFLAGS ($state_app_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:app can compile" >&5 $as_echo_n "checking if MCA component state:app can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_state" = "app" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"app\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"app\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "app" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"app\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"app\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components app" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_state_app_DSO=1 else BUILD_orte_state_app_DSO=0 fi if test "$BUILD_orte_state_app_DSO" = "1"; then MCA_BUILD_orte_state_app_DSO_TRUE= MCA_BUILD_orte_state_app_DSO_FALSE='#' else MCA_BUILD_orte_state_app_DSO_TRUE='#' MCA_BUILD_orte_state_app_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/state/app/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component state:hnp (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/state/hnp" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "hnp" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_state" = "1"; then : want_component=0 fi if test "$DISABLE_state_hnp" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_state" SHARED_COMPONENT="$DSO_state_hnp" STATIC_FRAMEWORK="$STATIC_state" STATIC_COMPONENT="$STATIC_state_hnp" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component state:hnp compile mode" >&5 $as_echo_n "checking for MCA component state:hnp compile mode... " >&6; } if test "$DIRECT_state" = "hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/state/hnp/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components hnp" if test "$compile_mode" = "dso" ; then dso_components="$dso_components hnp" else if test "state" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/state/hnp/lib${ORTE_LIB_PREFIX}mca_state_hnp.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/state/hnp/libmca_state_hnp.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_state_hnp_component;" >> $outfile.extern echo " &mca_state_hnp_component, " >> $outfile.struct static_components="$static_components hnp" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:hnp can compile" >&5 $as_echo_n "checking if MCA component state:hnp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_state" = "hnp" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_state_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** state component hnp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_state" = "hnp" ; then as_fn_error $? "*** state component hnp was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$state_hnp_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $state_hnp_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $state_hnp_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$state_hnp_WRAPPER_EXTRA_LIBS" = ""; 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_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 $state_hnp_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $state_hnp_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$state_hnp_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $state_hnp_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring state_hnp_WRAPPER_EXTRA_CPPFLAGS ($state_hnp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring state_hnp_WRAPPER_EXTRA_CPPFLAGS ($state_hnp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:hnp can compile" >&5 $as_echo_n "checking if MCA component state:hnp can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_state" = "hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "hnp" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hnp\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components hnp" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_state_hnp_DSO=1 else BUILD_orte_state_hnp_DSO=0 fi if test "$BUILD_orte_state_hnp_DSO" = "1"; then MCA_BUILD_orte_state_hnp_DSO_TRUE= MCA_BUILD_orte_state_hnp_DSO_FALSE='#' else MCA_BUILD_orte_state_hnp_DSO_TRUE='#' MCA_BUILD_orte_state_hnp_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/state/hnp/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component state:novm (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/state/novm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "novm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_state" = "1"; then : want_component=0 fi if test "$DISABLE_state_novm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_state" SHARED_COMPONENT="$DSO_state_novm" STATIC_FRAMEWORK="$STATIC_state" STATIC_COMPONENT="$STATIC_state_novm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component state:novm compile mode" >&5 $as_echo_n "checking for MCA component state:novm compile mode... " >&6; } if test "$DIRECT_state" = "novm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/state/novm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components novm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components novm" else if test "state" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/state/novm/lib${ORTE_LIB_PREFIX}mca_state_novm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/state/novm/libmca_state_novm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_state_novm_component;" >> $outfile.extern echo " &mca_state_novm_component, " >> $outfile.struct static_components="$static_components novm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:novm can compile" >&5 $as_echo_n "checking if MCA component state:novm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_state" = "novm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_state_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** state component novm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_state" = "novm" ; then as_fn_error $? "*** state component novm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$state_novm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $state_novm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $state_novm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$state_novm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $state_novm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $state_novm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$state_novm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $state_novm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring state_novm_WRAPPER_EXTRA_CPPFLAGS ($state_novm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring state_novm_WRAPPER_EXTRA_CPPFLAGS ($state_novm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:novm can compile" >&5 $as_echo_n "checking if MCA component state:novm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_state" = "novm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"novm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"novm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "novm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"novm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"novm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components novm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_state_novm_DSO=1 else BUILD_orte_state_novm_DSO=0 fi if test "$BUILD_orte_state_novm_DSO" = "1"; then MCA_BUILD_orte_state_novm_DSO_TRUE= MCA_BUILD_orte_state_novm_DSO_FALSE='#' else MCA_BUILD_orte_state_novm_DSO_TRUE='#' MCA_BUILD_orte_state_novm_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/state/novm/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component state:orted (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/state/orted" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "orted" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_state" = "1"; then : want_component=0 fi if test "$DISABLE_state_orted" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_state" SHARED_COMPONENT="$DSO_state_orted" STATIC_FRAMEWORK="$STATIC_state" STATIC_COMPONENT="$STATIC_state_orted" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component state:orted compile mode" >&5 $as_echo_n "checking for MCA component state:orted compile mode... " >&6; } if test "$DIRECT_state" = "orted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/state/orted/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components orted" if test "$compile_mode" = "dso" ; then dso_components="$dso_components orted" else if test "state" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/state/orted/lib${ORTE_LIB_PREFIX}mca_state_orted.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/state/orted/libmca_state_orted.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_state_orted_component;" >> $outfile.extern echo " &mca_state_orted_component, " >> $outfile.struct static_components="$static_components orted" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:orted can compile" >&5 $as_echo_n "checking if MCA component state:orted can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_state" = "orted" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_state_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** state component orted was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_state" = "orted" ; then as_fn_error $? "*** state component orted was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$state_orted_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $state_orted_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $state_orted_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$state_orted_WRAPPER_EXTRA_LIBS" = ""; 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_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 $state_orted_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $state_orted_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$state_orted_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $state_orted_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring state_orted_WRAPPER_EXTRA_CPPFLAGS ($state_orted_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring state_orted_WRAPPER_EXTRA_CPPFLAGS ($state_orted_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:orted can compile" >&5 $as_echo_n "checking if MCA component state:orted can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_state" = "orted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orted\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "orted" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orted\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components orted" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_state_orted_DSO=1 else BUILD_orte_state_orted_DSO=0 fi if test "$BUILD_orte_state_orted_DSO" = "1"; then MCA_BUILD_orte_state_orted_DSO_TRUE= MCA_BUILD_orte_state_orted_DSO_FALSE='#' else MCA_BUILD_orte_state_orted_DSO_TRUE='#' MCA_BUILD_orte_state_orted_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/state/orted/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component state:tool (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/orte/mca/state/tool" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "tool" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_state" = "1"; then : want_component=0 fi if test "$DISABLE_state_tool" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_state" SHARED_COMPONENT="$DSO_state_tool" STATIC_FRAMEWORK="$STATIC_state" STATIC_COMPONENT="$STATIC_state_tool" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component state:tool compile mode" >&5 $as_echo_n "checking for MCA component state:tool compile mode... " >&6; } if test "$DIRECT_state" = "tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/state/tool/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components tool" if test "$compile_mode" = "dso" ; then dso_components="$dso_components tool" else if test "state" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/state/tool/lib${ORTE_LIB_PREFIX}mca_state_tool.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/state/tool/libmca_state_tool.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_state_tool_component;" >> $outfile.extern echo " &mca_state_tool_component, " >> $outfile.struct static_components="$static_components tool" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:tool can compile" >&5 $as_echo_n "checking if MCA component state:tool can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_state" = "tool" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_state_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** state component tool was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_state" = "tool" ; then as_fn_error $? "*** state component tool was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$state_tool_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $state_tool_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $state_tool_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$state_tool_WRAPPER_EXTRA_LIBS" = ""; 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_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 $state_tool_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $state_tool_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$state_tool_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $state_tool_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring state_tool_WRAPPER_EXTRA_CPPFLAGS ($state_tool_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring state_tool_WRAPPER_EXTRA_CPPFLAGS ($state_tool_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:tool can compile" >&5 $as_echo_n "checking if MCA component state:tool can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_state" = "tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "tool" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tool\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components tool" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_orte_state_tool_DSO=1 else BUILD_orte_state_tool_DSO=0 fi if test "$BUILD_orte_state_tool_DSO" = "1"; then MCA_BUILD_orte_state_tool_DSO_TRUE= MCA_BUILD_orte_state_tool_DSO_FALSE='#' else MCA_BUILD_orte_state_tool_DSO_TRUE='#' MCA_BUILD_orte_state_tool_DSO_FALSE= fi ac_config_files="$ac_config_files orte/mca/state/tool/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/orte/mca/state/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component state:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/orte/mca/state/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_state" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_state_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_state" str="SHARED_COMPONENT=\$DSO_state_$component" eval $str STATIC_FRAMEWORK="$STATIC_state" str="STATIC_COMPONENT=\$STATIC_state_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component state:$component compile mode" >&5 $as_echo_n "checking for MCA component state:$component compile mode... " >&6; } if test "$DIRECT_state" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # orte/mca/state/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="orte/mca/state/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/orte/mca/state/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then state_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then state_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/orte/mca/state/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "state" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/state/$component/lib${ORTE_LIB_PREFIX}mca_state_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/state/$component/libmca_state_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_state_$component_component;" >> $outfile.extern echo " &mca_state_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:$component can compile" >&5 $as_echo_n "checking if MCA component state:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_state" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_orte_state_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** state component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_state" = "$component" ; then as_fn_error $? "*** state component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$state_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$state_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component state:$component can compile" >&5 $as_echo_n "checking if MCA component state:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_state" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_state" ; then if test "$DIRECT_state" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_orte_state_ALL_COMPONENTS="$all_components" MCA_orte_state_STATIC_COMPONENTS="$static_components" MCA_orte_state_DSO_COMPONENTS="$dso_components" MCA_orte_state_STATIC_LTLIBS="$static_ltlibs" MCA_orte_state_ALL_SUBDIRS= for item in $all_components ; do MCA_orte_state_ALL_SUBDIRS="$MCA_orte_state_ALL_SUBDIRS mca/state/$item" done MCA_orte_state_STATIC_SUBDIRS= for item in $static_components ; do MCA_orte_state_STATIC_SUBDIRS="$MCA_orte_state_STATIC_SUBDIRS mca/state/$item" done MCA_orte_state_DSO_SUBDIRS= for item in $dso_components ; do MCA_orte_state_DSO_SUBDIRS="$MCA_orte_state_DSO_SUBDIRS mca/state/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "state" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # note that mca_wrapper_extra_* is a running list, and we take checkpoints at the end of our project orte_mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags" orte_mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags" orte_mca_wrapper_extra_libs="$mca_wrapper_extra_libs" # BWB: Until projects have separate configure scripts # and can skip running all of ORTE, just avoid recursing # into orte sub directory if orte disabled if (test "ompi" = "ompi" && test "$enable_mpi" != "no") || test "ompi" = "opal" || test "ompi" = "orte" || test "ompi" = "oshmem"; then MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS ompi" MCA_PROJECT_DIST_SUBDIRS="$MCA_PROJECT_DIST_SUBDIRS ompi" fi # can't use a variable rename here because these need to be evaled # at auto* time. opal_show_subtitle "Configuring MCA for ompi" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks for ompi" >&5 $as_echo_n "checking for frameworks for ompi... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: common, bml, coll, crcp, fbtl, fcoll, fs, hook, io, mtl, op, osc, pml, rte, sharedfp, topo, vprotocol" >&5 $as_echo "common, bml, coll, crcp, fbtl, fcoll, fs, hook, io, mtl, op, osc, pml, rte, sharedfp, topo, vprotocol" >&6; } # iterate through the list of frameworks. There is something # funky with m4 foreach if the list is defined, but empty. It # will call the 3rd argument once with an empty value for the # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK # with an empty second argument. Grrr.... # if there isn't a project list, abort # # Also setup two variables for Makefiles: # MCA_project_FRAMEWORKS - list of frameworks in that project # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing # to more libraries) that must be included # in the project's main library MCA_ompi_FRAMEWORKS= MCA_ompi_FRAMEWORKS_SUBDIRS= MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS= MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS= MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= MCA_ompi_FRAMEWORK_LIBS= MCA_ompi_FRAMEWORKS="common $MCA_ompi_FRAMEWORKS" MCA_ompi_FRAMEWORKS_SUBDIRS="mca/common $MCA_ompi_FRAMEWORKS_SUBDIRS" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ompi_common_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ompi_common_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ompi_common_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_common_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework common" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/common as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/common/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework common" >&5 $as_echo_n "checking for no configure components in framework common... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework common" >&5 $as_echo_n "checking for m4 configure components in framework common... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: monitoring, ompio" >&5 $as_echo "monitoring, ompio" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component common:monitoring (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/common/monitoring" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "monitoring" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi if test "$DISABLE_common_monitoring" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_common" SHARED_COMPONENT="$DSO_common_monitoring" STATIC_FRAMEWORK="$STATIC_common" STATIC_COMPONENT="$STATIC_common_monitoring" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:monitoring compile mode" >&5 $as_echo_n "checking for MCA component common:monitoring compile mode... " >&6; } if test "$DIRECT_common" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/common/monitoring/Makefile" if test "$MCA_BUILD_ompi_common_monitoring_DSO_TRUE" = ''; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/common/monitoring/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components monitoring" if test "$compile_mode" = "dso" ; then dso_components="$dso_components monitoring" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/monitoring/lib${OMPI_LIB_PREFIX}mca_common_monitoring.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/monitoring/libmca_common_monitoring.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_monitoring_component;" >> $outfile.extern echo " &mca_common_monitoring_component, " >> $outfile.struct static_components="$static_components monitoring" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:monitoring can compile" >&5 $as_echo_n "checking if MCA component common:monitoring can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "monitoring" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component monitoring was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "monitoring" ; then as_fn_error $? "*** common component monitoring was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$common_monitoring_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $common_monitoring_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $common_monitoring_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$common_monitoring_WRAPPER_EXTRA_LIBS" = ""; 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_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 $common_monitoring_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $common_monitoring_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$common_monitoring_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $common_monitoring_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_monitoring_WRAPPER_EXTRA_CPPFLAGS ($common_monitoring_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring common_monitoring_WRAPPER_EXTRA_CPPFLAGS ($common_monitoring_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:monitoring can compile" >&5 $as_echo_n "checking if MCA component common:monitoring can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"monitoring\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"monitoring\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"monitoring\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"monitoring\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components monitoring" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_common_monitoring_DSO=1 else BUILD_ompi_common_monitoring_DSO=0 fi if test "$BUILD_ompi_common_monitoring_DSO" = "1"; then MCA_BUILD_ompi_common_monitoring_DSO_TRUE= MCA_BUILD_ompi_common_monitoring_DSO_FALSE='#' else MCA_BUILD_ompi_common_monitoring_DSO_TRUE='#' MCA_BUILD_ompi_common_monitoring_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component common:ompio (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/common/ompio" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "ompio" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi if test "$DISABLE_common_ompio" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_common" SHARED_COMPONENT="$DSO_common_ompio" STATIC_FRAMEWORK="$STATIC_common" STATIC_COMPONENT="$STATIC_common_ompio" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:ompio compile mode" >&5 $as_echo_n "checking for MCA component common:ompio compile mode... " >&6; } if test "$DIRECT_common" = "ompio" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/common/ompio/Makefile" if test "$enable_io_ompio" != "no"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/common/ompio/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ompio" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ompio" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/ompio/lib${OMPI_LIB_PREFIX}mca_common_ompio.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/ompio/libmca_common_ompio.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_ompio_component;" >> $outfile.extern echo " &mca_common_ompio_component, " >> $outfile.struct static_components="$static_components ompio" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:ompio can compile" >&5 $as_echo_n "checking if MCA component common:ompio can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "ompio" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component ompio was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "ompio" ; then as_fn_error $? "*** common component ompio was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$common_ompio_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $common_ompio_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $common_ompio_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$common_ompio_WRAPPER_EXTRA_LIBS" = ""; 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_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 $common_ompio_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $common_ompio_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$common_ompio_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $common_ompio_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_ompio_WRAPPER_EXTRA_CPPFLAGS ($common_ompio_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring common_ompio_WRAPPER_EXTRA_CPPFLAGS ($common_ompio_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:ompio can compile" >&5 $as_echo_n "checking if MCA component common:ompio can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "ompio" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ompio\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ompio\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "ompio" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ompio\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ompio\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ompio" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_common_ompio_DSO=1 else BUILD_ompi_common_ompio_DSO=0 fi if test "$BUILD_ompi_common_ompio_DSO" = "1"; then MCA_BUILD_ompi_common_ompio_DSO_TRUE= MCA_BUILD_ompi_common_ompio_DSO_FALSE='#' else MCA_BUILD_ompi_common_ompio_DSO_TRUE='#' MCA_BUILD_ompi_common_ompio_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/common/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component common:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/common/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_common" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_common_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_common" str="SHARED_COMPONENT=\$DSO_common_$component" eval $str STATIC_FRAMEWORK="$STATIC_common" str="STATIC_COMPONENT=\$STATIC_common_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:$component compile mode" >&5 $as_echo_n "checking for MCA component common:$component compile mode... " >&6; } if test "$DIRECT_common" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/common/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/common/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/common/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then common_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then common_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/common/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "common" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/common/$component/lib${OMPI_LIB_PREFIX}mca_common_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/common/$component/libmca_common_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_common_$component_component;" >> $outfile.extern echo " &mca_common_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5 $as_echo_n "checking if MCA component common:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_common" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_common_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** common component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_common" = "$component" ; then as_fn_error $? "*** common component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$common_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$common_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5 $as_echo_n "checking if MCA component common:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_common" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_common" ; then if test "$DIRECT_common" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_common_ALL_COMPONENTS="$all_components" MCA_ompi_common_STATIC_COMPONENTS="$static_components" MCA_ompi_common_DSO_COMPONENTS="$dso_components" MCA_ompi_common_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_common_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_common_ALL_SUBDIRS="$MCA_ompi_common_ALL_SUBDIRS mca/common/$item" done MCA_ompi_common_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_common_STATIC_SUBDIRS="$MCA_ompi_common_STATIC_SUBDIRS mca/common/$item" done MCA_ompi_common_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_common_DSO_SUBDIRS="$MCA_ompi_common_DSO_SUBDIRS mca/common/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "common" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS bml" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/bml" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_bml_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_bml_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_bml_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/bml/libmca_bml.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_bml_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework bml" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/bml/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/bml/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework bml" >&5 $as_echo_n "checking for no configure components in framework bml... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework bml" >&5 $as_echo_n "checking for m4 configure components in framework bml... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: r2" >&5 $as_echo "r2" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component bml:r2 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/bml/r2" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_bml" ; then if test "$DIRECT_bml" = "r2" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_bml" = "1"; then : want_component=0 fi if test "$DISABLE_bml_r2" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_bml" SHARED_COMPONENT="$DSO_bml_r2" STATIC_FRAMEWORK="$STATIC_bml" STATIC_COMPONENT="$STATIC_bml_r2" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bml:r2 compile mode" >&5 $as_echo_n "checking for MCA component bml:r2 compile mode... " >&6; } if test "$DIRECT_bml" = "r2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/bml/r2/Makefile" should_build=$should_build opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/bml/r2/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components r2" if test "$compile_mode" = "dso" ; then dso_components="$dso_components r2" else if test "bml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/bml/r2/lib${OMPI_LIB_PREFIX}mca_bml_r2.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/bml/r2/libmca_bml_r2.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_bml_r2_component;" >> $outfile.extern echo " &mca_bml_r2_component, " >> $outfile.struct static_components="$static_components r2" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bml:r2 can compile" >&5 $as_echo_n "checking if MCA component bml:r2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_bml" = "r2" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_bml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** bml component r2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_bml" = "r2" ; then as_fn_error $? "*** bml component r2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$bml_r2_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $bml_r2_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $bml_r2_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$bml_r2_WRAPPER_EXTRA_LIBS" = ""; 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_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 $bml_r2_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $bml_r2_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$bml_r2_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $bml_r2_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring bml_r2_WRAPPER_EXTRA_CPPFLAGS ($bml_r2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring bml_r2_WRAPPER_EXTRA_CPPFLAGS ($bml_r2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bml:r2 can compile" >&5 $as_echo_n "checking if MCA component bml:r2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_bml" = "r2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"r2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_bml" ; then if test "$DIRECT_bml" = "r2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"r2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components r2" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag BML" >&5 $as_echo_n "checking for index in endpoint array for tag BML... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_BML"; then : OMPI_PROC_ENDPOINT_TAG_BML=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_BML $OMPI_PROC_ENDPOINT_TAG_BML _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_BML" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_BML" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_bml_r2_DSO=1 else BUILD_ompi_bml_r2_DSO=0 fi if test "$BUILD_ompi_bml_r2_DSO" = "1"; then MCA_BUILD_ompi_bml_r2_DSO_TRUE= MCA_BUILD_ompi_bml_r2_DSO_FALSE='#' else MCA_BUILD_ompi_bml_r2_DSO_TRUE='#' MCA_BUILD_ompi_bml_r2_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/bml/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component bml:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/bml/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_bml" ; then if test "$DIRECT_bml" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_bml" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_bml_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_bml" str="SHARED_COMPONENT=\$DSO_bml_$component" eval $str STATIC_FRAMEWORK="$STATIC_bml" str="STATIC_COMPONENT=\$STATIC_bml_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bml:$component compile mode" >&5 $as_echo_n "checking for MCA component bml:$component compile mode... " >&6; } if test "$DIRECT_bml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/bml/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/bml/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/bml/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then bml_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then bml_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/bml/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "bml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/bml/$component/lib${OMPI_LIB_PREFIX}mca_bml_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/bml/$component/libmca_bml_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_bml_$component_component;" >> $outfile.extern echo " &mca_bml_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bml:$component can compile" >&5 $as_echo_n "checking if MCA component bml:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_bml" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_bml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** bml component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_bml" = "$component" ; then as_fn_error $? "*** bml component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$bml_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$bml_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bml:$component can compile" >&5 $as_echo_n "checking if MCA component bml:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_bml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_bml" ; then if test "$DIRECT_bml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_bml_ALL_COMPONENTS="$all_components" MCA_ompi_bml_STATIC_COMPONENTS="$static_components" MCA_ompi_bml_DSO_COMPONENTS="$dso_components" MCA_ompi_bml_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_bml_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_bml_ALL_SUBDIRS="$MCA_ompi_bml_ALL_SUBDIRS mca/bml/$item" done MCA_ompi_bml_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_bml_STATIC_SUBDIRS="$MCA_ompi_bml_STATIC_SUBDIRS mca/bml/$item" done MCA_ompi_bml_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_bml_DSO_SUBDIRS="$MCA_ompi_bml_DSO_SUBDIRS mca/bml/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "bml" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS coll" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/coll" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_coll_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_coll_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_coll_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/coll/libmca_coll.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_coll_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework coll" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/coll/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/coll/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework coll" >&5 $as_echo_n "checking for no configure components in framework coll... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: adapt, basic, han, inter, libnbc, self, sm, sync, tuned" >&5 $as_echo "adapt, basic, han, inter, libnbc, self, sm, sync, tuned" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework coll" >&5 $as_echo_n "checking for m4 configure components in framework coll... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: cuda, fca, hcoll, monitoring, portals4, ucc" >&5 $as_echo "cuda, fca, hcoll, monitoring, portals4, ucc" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component coll:adapt (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/coll/adapt" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "adapt" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_adapt" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_adapt" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_adapt" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:adapt compile mode" >&5 $as_echo_n "checking for MCA component coll:adapt compile mode... " >&6; } if test "$DIRECT_coll" = "adapt" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/adapt/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components adapt" if test "$compile_mode" = "dso" ; then dso_components="$dso_components adapt" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/adapt/lib${OMPI_LIB_PREFIX}mca_coll_adapt.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/adapt/libmca_coll_adapt.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_adapt_component;" >> $outfile.extern echo " &mca_coll_adapt_component, " >> $outfile.struct static_components="$static_components adapt" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:adapt can compile" >&5 $as_echo_n "checking if MCA component coll:adapt can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "adapt" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component adapt was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "adapt" ; then as_fn_error $? "*** coll component adapt was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_adapt_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_adapt_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_adapt_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_adapt_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_adapt_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_adapt_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_adapt_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_adapt_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_adapt_WRAPPER_EXTRA_CPPFLAGS ($coll_adapt_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_adapt_WRAPPER_EXTRA_CPPFLAGS ($coll_adapt_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:adapt can compile" >&5 $as_echo_n "checking if MCA component coll:adapt can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "adapt" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"adapt\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"adapt\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "adapt" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"adapt\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"adapt\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components adapt" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_coll_adapt_DSO=1 else BUILD_ompi_coll_adapt_DSO=0 fi if test "$BUILD_ompi_coll_adapt_DSO" = "1"; then MCA_BUILD_ompi_coll_adapt_DSO_TRUE= MCA_BUILD_ompi_coll_adapt_DSO_FALSE='#' else MCA_BUILD_ompi_coll_adapt_DSO_TRUE='#' MCA_BUILD_ompi_coll_adapt_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/coll/adapt/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component coll:basic (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/coll/basic" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "basic" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_basic" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_basic" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_basic" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:basic compile mode" >&5 $as_echo_n "checking for MCA component coll:basic compile mode... " >&6; } if test "$DIRECT_coll" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/basic/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components basic" if test "$compile_mode" = "dso" ; then dso_components="$dso_components basic" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/basic/lib${OMPI_LIB_PREFIX}mca_coll_basic.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/basic/libmca_coll_basic.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_basic_component;" >> $outfile.extern echo " &mca_coll_basic_component, " >> $outfile.struct static_components="$static_components basic" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:basic can compile" >&5 $as_echo_n "checking if MCA component coll:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "basic" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "basic" ; then as_fn_error $? "*** coll component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_basic_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_basic_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_basic_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_basic_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_basic_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_basic_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_basic_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_basic_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_basic_WRAPPER_EXTRA_CPPFLAGS ($coll_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_basic_WRAPPER_EXTRA_CPPFLAGS ($coll_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:basic can compile" >&5 $as_echo_n "checking if MCA component coll:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components basic" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_coll_basic_DSO=1 else BUILD_ompi_coll_basic_DSO=0 fi if test "$BUILD_ompi_coll_basic_DSO" = "1"; then MCA_BUILD_ompi_coll_basic_DSO_TRUE= MCA_BUILD_ompi_coll_basic_DSO_FALSE='#' else MCA_BUILD_ompi_coll_basic_DSO_TRUE='#' MCA_BUILD_ompi_coll_basic_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/coll/basic/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component coll:han (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/coll/han" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "han" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_han" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_han" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_han" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:han compile mode" >&5 $as_echo_n "checking for MCA component coll:han compile mode... " >&6; } if test "$DIRECT_coll" = "han" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/han/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components han" if test "$compile_mode" = "dso" ; then dso_components="$dso_components han" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/han/lib${OMPI_LIB_PREFIX}mca_coll_han.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/han/libmca_coll_han.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_han_component;" >> $outfile.extern echo " &mca_coll_han_component, " >> $outfile.struct static_components="$static_components han" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:han can compile" >&5 $as_echo_n "checking if MCA component coll:han can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "han" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component han was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "han" ; then as_fn_error $? "*** coll component han was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_han_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_han_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_han_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_han_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_han_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_han_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_han_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_han_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_han_WRAPPER_EXTRA_CPPFLAGS ($coll_han_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_han_WRAPPER_EXTRA_CPPFLAGS ($coll_han_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:han can compile" >&5 $as_echo_n "checking if MCA component coll:han can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "han" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"han\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"han\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "han" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"han\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"han\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components han" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_coll_han_DSO=1 else BUILD_ompi_coll_han_DSO=0 fi if test "$BUILD_ompi_coll_han_DSO" = "1"; then MCA_BUILD_ompi_coll_han_DSO_TRUE= MCA_BUILD_ompi_coll_han_DSO_FALSE='#' else MCA_BUILD_ompi_coll_han_DSO_TRUE='#' MCA_BUILD_ompi_coll_han_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/coll/han/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component coll:inter (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/coll/inter" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "inter" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_inter" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_inter" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_inter" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:inter compile mode" >&5 $as_echo_n "checking for MCA component coll:inter compile mode... " >&6; } if test "$DIRECT_coll" = "inter" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/inter/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components inter" if test "$compile_mode" = "dso" ; then dso_components="$dso_components inter" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/inter/lib${OMPI_LIB_PREFIX}mca_coll_inter.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/inter/libmca_coll_inter.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_inter_component;" >> $outfile.extern echo " &mca_coll_inter_component, " >> $outfile.struct static_components="$static_components inter" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:inter can compile" >&5 $as_echo_n "checking if MCA component coll:inter can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "inter" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component inter was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "inter" ; then as_fn_error $? "*** coll component inter was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_inter_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_inter_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_inter_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_inter_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_inter_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_inter_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_inter_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_inter_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_inter_WRAPPER_EXTRA_CPPFLAGS ($coll_inter_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_inter_WRAPPER_EXTRA_CPPFLAGS ($coll_inter_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:inter can compile" >&5 $as_echo_n "checking if MCA component coll:inter can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "inter" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"inter\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "inter" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"inter\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components inter" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_coll_inter_DSO=1 else BUILD_ompi_coll_inter_DSO=0 fi if test "$BUILD_ompi_coll_inter_DSO" = "1"; then MCA_BUILD_ompi_coll_inter_DSO_TRUE= MCA_BUILD_ompi_coll_inter_DSO_FALSE='#' else MCA_BUILD_ompi_coll_inter_DSO_TRUE='#' MCA_BUILD_ompi_coll_inter_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/coll/inter/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component coll:libnbc (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/coll/libnbc" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "libnbc" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_libnbc" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_libnbc" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_libnbc" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:libnbc compile mode" >&5 $as_echo_n "checking for MCA component coll:libnbc compile mode... " >&6; } if test "$DIRECT_coll" = "libnbc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/libnbc/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components libnbc" if test "$compile_mode" = "dso" ; then dso_components="$dso_components libnbc" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/libnbc/lib${OMPI_LIB_PREFIX}mca_coll_libnbc.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/libnbc/libmca_coll_libnbc.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_libnbc_component;" >> $outfile.extern echo " &mca_coll_libnbc_component, " >> $outfile.struct static_components="$static_components libnbc" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:libnbc can compile" >&5 $as_echo_n "checking if MCA component coll:libnbc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "libnbc" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component libnbc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "libnbc" ; then as_fn_error $? "*** coll component libnbc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_libnbc_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_libnbc_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_libnbc_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_libnbc_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_libnbc_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_libnbc_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_libnbc_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_libnbc_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_libnbc_WRAPPER_EXTRA_CPPFLAGS ($coll_libnbc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_libnbc_WRAPPER_EXTRA_CPPFLAGS ($coll_libnbc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:libnbc can compile" >&5 $as_echo_n "checking if MCA component coll:libnbc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "libnbc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"libnbc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"libnbc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "libnbc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"libnbc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"libnbc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components libnbc" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_coll_libnbc_DSO=1 else BUILD_ompi_coll_libnbc_DSO=0 fi if test "$BUILD_ompi_coll_libnbc_DSO" = "1"; then MCA_BUILD_ompi_coll_libnbc_DSO_TRUE= MCA_BUILD_ompi_coll_libnbc_DSO_FALSE='#' else MCA_BUILD_ompi_coll_libnbc_DSO_TRUE='#' MCA_BUILD_ompi_coll_libnbc_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/coll/libnbc/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component coll:self (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/coll/self" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "self" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_self" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_self" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_self" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:self compile mode" >&5 $as_echo_n "checking for MCA component coll:self compile mode... " >&6; } if test "$DIRECT_coll" = "self" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/self/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components self" if test "$compile_mode" = "dso" ; then dso_components="$dso_components self" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/self/lib${OMPI_LIB_PREFIX}mca_coll_self.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/self/libmca_coll_self.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_self_component;" >> $outfile.extern echo " &mca_coll_self_component, " >> $outfile.struct static_components="$static_components self" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:self can compile" >&5 $as_echo_n "checking if MCA component coll:self can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "self" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component self was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "self" ; then as_fn_error $? "*** coll component self was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_self_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_self_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_self_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_self_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_self_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_self_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_self_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_self_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_self_WRAPPER_EXTRA_CPPFLAGS ($coll_self_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_self_WRAPPER_EXTRA_CPPFLAGS ($coll_self_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:self can compile" >&5 $as_echo_n "checking if MCA component coll:self can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "self" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "self" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"self\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components self" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_coll_self_DSO=1 else BUILD_ompi_coll_self_DSO=0 fi if test "$BUILD_ompi_coll_self_DSO" = "1"; then MCA_BUILD_ompi_coll_self_DSO_TRUE= MCA_BUILD_ompi_coll_self_DSO_FALSE='#' else MCA_BUILD_ompi_coll_self_DSO_TRUE='#' MCA_BUILD_ompi_coll_self_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/coll/self/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component coll:sm (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/coll/sm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "sm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_sm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_sm" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_sm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:sm compile mode" >&5 $as_echo_n "checking for MCA component coll:sm compile mode... " >&6; } if test "$DIRECT_coll" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/sm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components sm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components sm" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/sm/lib${OMPI_LIB_PREFIX}mca_coll_sm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/sm/libmca_coll_sm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_sm_component;" >> $outfile.extern echo " &mca_coll_sm_component, " >> $outfile.struct static_components="$static_components sm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:sm can compile" >&5 $as_echo_n "checking if MCA component coll:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "sm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "sm" ; then as_fn_error $? "*** coll component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_sm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_sm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_sm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_sm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_sm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_sm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_sm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_sm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_sm_WRAPPER_EXTRA_CPPFLAGS ($coll_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_sm_WRAPPER_EXTRA_CPPFLAGS ($coll_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:sm can compile" >&5 $as_echo_n "checking if MCA component coll:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components sm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_coll_sm_DSO=1 else BUILD_ompi_coll_sm_DSO=0 fi if test "$BUILD_ompi_coll_sm_DSO" = "1"; then MCA_BUILD_ompi_coll_sm_DSO_TRUE= MCA_BUILD_ompi_coll_sm_DSO_FALSE='#' else MCA_BUILD_ompi_coll_sm_DSO_TRUE='#' MCA_BUILD_ompi_coll_sm_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/coll/sm/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component coll:sync (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/coll/sync" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "sync" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_sync" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_sync" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_sync" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:sync compile mode" >&5 $as_echo_n "checking for MCA component coll:sync compile mode... " >&6; } if test "$DIRECT_coll" = "sync" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/sync/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components sync" if test "$compile_mode" = "dso" ; then dso_components="$dso_components sync" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/sync/lib${OMPI_LIB_PREFIX}mca_coll_sync.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/sync/libmca_coll_sync.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_sync_component;" >> $outfile.extern echo " &mca_coll_sync_component, " >> $outfile.struct static_components="$static_components sync" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:sync can compile" >&5 $as_echo_n "checking if MCA component coll:sync can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "sync" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component sync was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "sync" ; then as_fn_error $? "*** coll component sync was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_sync_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_sync_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_sync_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_sync_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_sync_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_sync_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_sync_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_sync_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_sync_WRAPPER_EXTRA_CPPFLAGS ($coll_sync_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_sync_WRAPPER_EXTRA_CPPFLAGS ($coll_sync_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:sync can compile" >&5 $as_echo_n "checking if MCA component coll:sync can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "sync" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sync\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sync\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "sync" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sync\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sync\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components sync" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_coll_sync_DSO=1 else BUILD_ompi_coll_sync_DSO=0 fi if test "$BUILD_ompi_coll_sync_DSO" = "1"; then MCA_BUILD_ompi_coll_sync_DSO_TRUE= MCA_BUILD_ompi_coll_sync_DSO_FALSE='#' else MCA_BUILD_ompi_coll_sync_DSO_TRUE='#' MCA_BUILD_ompi_coll_sync_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/coll/sync/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component coll:tuned (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/coll/tuned" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "tuned" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_tuned" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_tuned" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_tuned" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:tuned compile mode" >&5 $as_echo_n "checking for MCA component coll:tuned compile mode... " >&6; } if test "$DIRECT_coll" = "tuned" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/tuned/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components tuned" if test "$compile_mode" = "dso" ; then dso_components="$dso_components tuned" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/tuned/lib${OMPI_LIB_PREFIX}mca_coll_tuned.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/tuned/libmca_coll_tuned.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_tuned_component;" >> $outfile.extern echo " &mca_coll_tuned_component, " >> $outfile.struct static_components="$static_components tuned" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:tuned can compile" >&5 $as_echo_n "checking if MCA component coll:tuned can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "tuned" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component tuned was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "tuned" ; then as_fn_error $? "*** coll component tuned was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_tuned_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_tuned_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_tuned_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_tuned_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_tuned_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_tuned_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_tuned_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_tuned_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_tuned_WRAPPER_EXTRA_CPPFLAGS ($coll_tuned_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_tuned_WRAPPER_EXTRA_CPPFLAGS ($coll_tuned_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:tuned can compile" >&5 $as_echo_n "checking if MCA component coll:tuned can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "tuned" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tuned\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "tuned" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tuned\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components tuned" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_coll_tuned_DSO=1 else BUILD_ompi_coll_tuned_DSO=0 fi if test "$BUILD_ompi_coll_tuned_DSO" = "1"; then MCA_BUILD_ompi_coll_tuned_DSO_TRUE= MCA_BUILD_ompi_coll_tuned_DSO_FALSE='#' else MCA_BUILD_ompi_coll_tuned_DSO_TRUE='#' MCA_BUILD_ompi_coll_tuned_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/coll/tuned/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component coll:cuda (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/coll/cuda" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "cuda" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_cuda" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_cuda" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_cuda" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:cuda compile mode" >&5 $as_echo_n "checking for MCA component coll:cuda compile mode... " >&6; } if test "$DIRECT_coll" = "cuda" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/coll/cuda/Makefile" # make sure that CUDA-aware checks have been done # Only build if CUDA support is available if test "x$CUDA_SUPPORT" = "x1"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/cuda/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components cuda" if test "$compile_mode" = "dso" ; then dso_components="$dso_components cuda" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/cuda/lib${OMPI_LIB_PREFIX}mca_coll_cuda.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/cuda/libmca_coll_cuda.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_cuda_component;" >> $outfile.extern echo " &mca_coll_cuda_component, " >> $outfile.struct static_components="$static_components cuda" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:cuda can compile" >&5 $as_echo_n "checking if MCA component coll:cuda can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "cuda" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component cuda was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "cuda" ; then as_fn_error $? "*** coll component cuda was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_cuda_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_cuda_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_cuda_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_cuda_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_cuda_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_cuda_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_cuda_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_cuda_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_cuda_WRAPPER_EXTRA_CPPFLAGS ($coll_cuda_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_cuda_WRAPPER_EXTRA_CPPFLAGS ($coll_cuda_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:cuda can compile" >&5 $as_echo_n "checking if MCA component coll:cuda can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "cuda" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cuda\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"cuda\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "cuda" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cuda\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"cuda\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components cuda" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_coll_cuda_DSO=1 else BUILD_ompi_coll_cuda_DSO=0 fi if test "$BUILD_ompi_coll_cuda_DSO" = "1"; then MCA_BUILD_ompi_coll_cuda_DSO_TRUE= MCA_BUILD_ompi_coll_cuda_DSO_FALSE='#' else MCA_BUILD_ompi_coll_cuda_DSO_TRUE='#' MCA_BUILD_ompi_coll_cuda_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component coll:fca (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/coll/fca" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "fca" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_fca" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_fca" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_fca" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:fca compile mode" >&5 $as_echo_n "checking for MCA component coll:fca compile mode... " >&6; } if test "$DIRECT_coll" = "fca" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/coll/fca/Makefile" # 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_check_fca_libs ompi_check_fca_happy CPPFLAGS_save LDFLAGS_save LIBS_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_check_fca_libs ompi_check_fca_happy CPPFLAGS_save LDFLAGS_save LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-fca was given. if test "${with_fca+set}" = set; then : withval=$with_fca; fi if test "$with_fca" != "no"; then : ompi_check_fca_libs=fca if test ! -z "$with_fca" && test "$with_fca" != "yes"; then : ompi_check_fca_dir=$with_fca coll_fca_HOME="$ompi_check_fca_dir" else coll_fca_HOME="/" fi CPPFLAGS_save=$CPPFLAGS LDFLAGS_save=$LDFLAGS LIBS_save=$LIBS # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:286199: coll_fca_CPPFLAGS : $coll_fca_CPPFLAGS" >&5 else echo coll_fca_CPPFLAGS : $coll_fca_CPPFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:286207: coll_fca_LDFLAGS : $coll_fca_LDFLAGS" >&5 else echo coll_fca_LDFLAGS : $coll_fca_LDFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:286215: coll_fca_LIBS : $coll_fca_LIBS" >&5 else echo coll_fca_LIBS : $coll_fca_LIBS >&5 fi opal_check_package_coll_fca_save_CPPFLAGS="$CPPFLAGS" opal_check_package_coll_fca_save_LDFLAGS="$LDFLAGS" opal_check_package_coll_fca_save_LIBS="$LIBS" opal_check_package_coll_fca_orig_CPPFLAGS="$coll_fca_CPPFLAGS" opal_check_package_coll_fca_orig_LDFLAGS="$coll_fca_LDFLAGS" opal_check_package_coll_fca_orig_LIBS="$coll_fca_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_fca_fca_api_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_fca_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 fca/fca_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "fca/fca_api.h" "ac_cv_header_fca_fca_api_h" "$ac_includes_default" if test "x$ac_cv_header_fca_fca_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FCA_FCA_API_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_fca_fca_api_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : coll_fca_CPPFLAGS="$coll_fca_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in fca/fca_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "fca/fca_api.h" "ac_cv_header_fca_fca_api_h" "$ac_includes_default" if test "x$ac_cv_header_fca_fca_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FCA_FCA_API_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_fca_get_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there coll_fca_LDFLAGS="$coll_fca_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_coll_fca_save_LDFLAGS" coll_fca_LDFLAGS="$opal_check_package_coll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_coll_fca_save_LDFLAGS" coll_fca_LDFLAGS="$opal_check_package_coll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_fca_LDFLAGS="$coll_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_coll_fca_save_LDFLAGS" coll_fca_LDFLAGS="$opal_check_package_coll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_fca_LDFLAGS="$coll_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_coll_fca_save_LDFLAGS" coll_fca_LDFLAGS="$opal_check_package_coll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version 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 lib$ompi_check_fca_libs requires libnl v1 or v3" >&5 $as_echo_n "checking if lib$ompi_check_fca_libs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fca_get_version (void); int main(int argc, char *argv[]) { fca_get_version (); 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:286727: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_fca_libs $LIBS $coll_fca_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_fca_libs $LIBS $coll_fca_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:286734: \$? = $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 $ompi_check_fca_libs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib $ompi_check_fca_libs" >&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, lib$ompi_check_fca_libs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, lib$ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&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 $ompi_check_fca_libs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas $ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs $ompi_check_fca_libs" # 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 lib$ompi_check_fca_libs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas lib$ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs $ompi_check_fca_libs" # 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_fca_get_version" != "no" && test "$ac_cv_search_fca_get_version" != "none required"; then : coll_fca_LIBS="$ac_cv_search_fca_get_version " else coll_fca_LIBS="" 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_fca_get_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there coll_fca_LDFLAGS="$coll_fca_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_coll_fca_save_LDFLAGS" coll_fca_LDFLAGS="$opal_check_package_coll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_coll_fca_save_LDFLAGS" coll_fca_LDFLAGS="$opal_check_package_coll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_fca_LDFLAGS="$coll_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_coll_fca_save_LDFLAGS" coll_fca_LDFLAGS="$opal_check_package_coll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_fca_LDFLAGS="$coll_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_coll_fca_save_LDFLAGS" coll_fca_LDFLAGS="$opal_check_package_coll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version 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 lib$ompi_check_fca_libs requires libnl v1 or v3" >&5 $as_echo_n "checking if lib$ompi_check_fca_libs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fca_get_version (void); int main(int argc, char *argv[]) { fca_get_version (); 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:287452: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_fca_libs $LIBS $coll_fca_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_fca_libs $LIBS $coll_fca_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:287459: \$? = $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 $ompi_check_fca_libs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib $ompi_check_fca_libs" >&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, lib$ompi_check_fca_libs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, lib$ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&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 $ompi_check_fca_libs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas $ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs $ompi_check_fca_libs" # 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 lib$ompi_check_fca_libs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas lib$ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs $ompi_check_fca_libs" # 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_fca_get_version" != "no" && test "$ac_cv_search_fca_get_version" != "none required"; then : coll_fca_LIBS="$ac_cv_search_fca_get_version " else coll_fca_LIBS="" 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 : ompi_check_fca_happy="yes" else coll_fca_CPPFLAGS="$opal_check_package_coll_fca_orig_CPPFLAGS" coll_fca_LDFLAGS="$opal_check_package_coll_fca_orig_LDFLAGS" coll_fca_LIBS="$opal_check_package_coll_fca_orig_LIBS" ompi_check_fca_happy="no" fi CPPFLAGS="$opal_check_package_coll_fca_save_CPPFLAGS" LDFLAGS="$opal_check_package_coll_fca_save_LDFLAGS" LIBS="$opal_check_package_coll_fca_save_LIBS" CPPFLAGS=$CPPFLAGS_save LDFLAGS=$LDFLAGS_save LIBS=$LIBS_save else ompi_check_fca_happy="no" fi if test "$ompi_check_fca_happy" = "yes" && test "$enable_progress_threads" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fca driver does not currently support progress threads. Disabling FCA." >&5 $as_echo "$as_me: WARNING: fca driver does not currently support progress threads. Disabling FCA." >&2;} ompi_check_fca_happy="no" fi if test "$ompi_check_fca_happy" = "yes"; then : coll_fca_happy="yes" else if test ! -z "$with_fca" && test "$with_fca" != "no"; then : as_fn_error $? "FCA support requested but not found. Aborting" "$LINENO" 5 fi coll_fca_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 if test "$coll_fca_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build fca opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/fca/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components fca" if test "$compile_mode" = "dso" ; then dso_components="$dso_components fca" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/fca/lib${OMPI_LIB_PREFIX}mca_coll_fca.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/fca/libmca_coll_fca.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_fca_component;" >> $outfile.extern echo " &mca_coll_fca_component, " >> $outfile.struct static_components="$static_components fca" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:fca can compile" >&5 $as_echo_n "checking if MCA component coll:fca can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "fca" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component fca was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "fca" ; then as_fn_error $? "*** coll component fca was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_fca_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_fca_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_fca_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_fca_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_fca_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_fca_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_fca_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_fca_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_fca_WRAPPER_EXTRA_CPPFLAGS ($coll_fca_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_fca_WRAPPER_EXTRA_CPPFLAGS ($coll_fca_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:fca can compile" >&5 $as_echo_n "checking if MCA component coll:fca can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "fca" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fca\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"fca\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "fca" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fca\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"fca\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components fca" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_coll_fca_DSO=1 else BUILD_ompi_coll_fca_DSO=0 fi if test "$BUILD_ompi_coll_fca_DSO" = "1"; then MCA_BUILD_ompi_coll_fca_DSO_TRUE= MCA_BUILD_ompi_coll_fca_DSO_FALSE='#' else MCA_BUILD_ompi_coll_fca_DSO_TRUE='#' MCA_BUILD_ompi_coll_fca_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component coll:hcoll (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/coll/hcoll" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "hcoll" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_hcoll" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_hcoll" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_hcoll" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:hcoll compile mode" >&5 $as_echo_n "checking for MCA component coll:hcoll compile mode... " >&6; } if test "$DIRECT_coll" = "hcoll" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/coll/hcoll/Makefile" # 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_check_hcoll_dir ompi_check_hcoll_libs ompi_check_hcoll_happy CPPFLAGS_save LDFLAGS_save LIBS_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_check_hcoll_dir ompi_check_hcoll_libs ompi_check_hcoll_happy CPPFLAGS_save LDFLAGS_save LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-hcoll was given. if test "${with_hcoll+set}" = set; then : withval=$with_hcoll; fi if test "$with_hcoll" != "no"; then : ompi_check_hcoll_libs=hcoll if test ! -z "$with_hcoll" && test "$with_hcoll" != "yes"; then : ompi_check_hcoll_dir=$with_hcoll fi CPPFLAGS_save=$CPPFLAGS LDFLAGS_save=$LDFLAGS LIBS_save=$LIBS # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:288579: coll_hcoll_CPPFLAGS : $coll_hcoll_CPPFLAGS" >&5 else echo coll_hcoll_CPPFLAGS : $coll_hcoll_CPPFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:288587: coll_hcoll_LDFLAGS : $coll_hcoll_LDFLAGS" >&5 else echo coll_hcoll_LDFLAGS : $coll_hcoll_LDFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:288595: coll_hcoll_LIBS : $coll_hcoll_LIBS" >&5 else echo coll_hcoll_LIBS : $coll_hcoll_LIBS >&5 fi opal_check_package_coll_hcoll_save_CPPFLAGS="$CPPFLAGS" opal_check_package_coll_hcoll_save_LDFLAGS="$LDFLAGS" opal_check_package_coll_hcoll_save_LIBS="$LIBS" opal_check_package_coll_hcoll_orig_CPPFLAGS="$coll_hcoll_CPPFLAGS" opal_check_package_coll_hcoll_orig_LDFLAGS="$coll_hcoll_LDFLAGS" opal_check_package_coll_hcoll_orig_LIBS="$coll_hcoll_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_hcoll_api_hcoll_api_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_hcoll_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 hcoll/api/hcoll_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "hcoll/api/hcoll_api.h" "ac_cv_header_hcoll_api_hcoll_api_h" "$ac_includes_default" if test "x$ac_cv_header_hcoll_api_hcoll_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_HCOLL_API_HCOLL_API_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_hcoll_api_hcoll_api_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : coll_hcoll_CPPFLAGS="$coll_hcoll_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in hcoll/api/hcoll_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "hcoll/api/hcoll_api.h" "ac_cv_header_hcoll_api_hcoll_api_h" "$ac_includes_default" if test "x$ac_cv_header_hcoll_api_hcoll_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_HCOLL_API_HCOLL_API_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_hcoll_get_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there coll_hcoll_LDFLAGS="$coll_hcoll_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hcoll_get_version" >&5 $as_echo_n "checking for library containing hcoll_get_version... " >&6; } if ${ac_cv_search_hcoll_get_version+:} 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 hcoll_get_version (); int main () { return hcoll_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_hcoll_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hcoll_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hcoll_get_version+:} false; then : break fi done if ${ac_cv_search_hcoll_get_version+:} false; then : else ac_cv_search_hcoll_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hcoll_get_version" >&5 $as_echo "$ac_cv_search_hcoll_get_version" >&6; } ac_res=$ac_cv_search_hcoll_get_version 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_coll_hcoll_save_LDFLAGS" coll_hcoll_LDFLAGS="$opal_check_package_coll_hcoll_orig_LDFLAGS" unset ac_cv_search_hcoll_get_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_hcoll_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 hcoll_get_version" >&5 $as_echo_n "checking for library containing hcoll_get_version... " >&6; } if ${ac_cv_search_hcoll_get_version+:} 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 hcoll_get_version (); int main () { return hcoll_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_hcoll_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hcoll_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hcoll_get_version+:} false; then : break fi done if ${ac_cv_search_hcoll_get_version+:} false; then : else ac_cv_search_hcoll_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hcoll_get_version" >&5 $as_echo "$ac_cv_search_hcoll_get_version" >&6; } ac_res=$ac_cv_search_hcoll_get_version 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_coll_hcoll_save_LDFLAGS" coll_hcoll_LDFLAGS="$opal_check_package_coll_hcoll_orig_LDFLAGS" unset ac_cv_search_hcoll_get_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_hcoll_LDFLAGS="$coll_hcoll_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 hcoll_get_version" >&5 $as_echo_n "checking for library containing hcoll_get_version... " >&6; } if ${ac_cv_search_hcoll_get_version+:} 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 hcoll_get_version (); int main () { return hcoll_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_hcoll_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hcoll_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hcoll_get_version+:} false; then : break fi done if ${ac_cv_search_hcoll_get_version+:} false; then : else ac_cv_search_hcoll_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hcoll_get_version" >&5 $as_echo "$ac_cv_search_hcoll_get_version" >&6; } ac_res=$ac_cv_search_hcoll_get_version 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_coll_hcoll_save_LDFLAGS" coll_hcoll_LDFLAGS="$opal_check_package_coll_hcoll_orig_LDFLAGS" unset ac_cv_search_hcoll_get_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_hcoll_LDFLAGS="$coll_hcoll_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 hcoll_get_version" >&5 $as_echo_n "checking for library containing hcoll_get_version... " >&6; } if ${ac_cv_search_hcoll_get_version+:} 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 hcoll_get_version (); int main () { return hcoll_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_hcoll_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hcoll_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hcoll_get_version+:} false; then : break fi done if ${ac_cv_search_hcoll_get_version+:} false; then : else ac_cv_search_hcoll_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hcoll_get_version" >&5 $as_echo "$ac_cv_search_hcoll_get_version" >&6; } ac_res=$ac_cv_search_hcoll_get_version 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_coll_hcoll_save_LDFLAGS" coll_hcoll_LDFLAGS="$opal_check_package_coll_hcoll_orig_LDFLAGS" unset ac_cv_search_hcoll_get_version 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 lib$ompi_check_hcoll_libs requires libnl v1 or v3" >&5 $as_echo_n "checking if lib$ompi_check_hcoll_libs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void hcoll_get_version (void); int main(int argc, char *argv[]) { hcoll_get_version (); 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:289107: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_hcoll_libs $LIBS $coll_hcoll_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_hcoll_libs $LIBS $coll_hcoll_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:289114: \$? = $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 $ompi_check_hcoll_libs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib $ompi_check_hcoll_libs" >&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, lib$ompi_check_hcoll_libs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, lib$ompi_check_hcoll_libs 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 lib$ompi_check_hcoll_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_hcoll_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&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 $ompi_check_hcoll_libs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas $ompi_check_hcoll_libs 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 lib$ompi_check_hcoll_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_hcoll_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs $ompi_check_hcoll_libs" # 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 lib$ompi_check_hcoll_libs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas lib$ompi_check_hcoll_libs 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 lib$ompi_check_hcoll_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_hcoll_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs $ompi_check_hcoll_libs" # 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_hcoll_get_version" != "no" && test "$ac_cv_search_hcoll_get_version" != "none required"; then : coll_hcoll_LIBS="$ac_cv_search_hcoll_get_version " else coll_hcoll_LIBS="" 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_hcoll_get_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there coll_hcoll_LDFLAGS="$coll_hcoll_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hcoll_get_version" >&5 $as_echo_n "checking for library containing hcoll_get_version... " >&6; } if ${ac_cv_search_hcoll_get_version+:} 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 hcoll_get_version (); int main () { return hcoll_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_hcoll_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hcoll_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hcoll_get_version+:} false; then : break fi done if ${ac_cv_search_hcoll_get_version+:} false; then : else ac_cv_search_hcoll_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hcoll_get_version" >&5 $as_echo "$ac_cv_search_hcoll_get_version" >&6; } ac_res=$ac_cv_search_hcoll_get_version 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_coll_hcoll_save_LDFLAGS" coll_hcoll_LDFLAGS="$opal_check_package_coll_hcoll_orig_LDFLAGS" unset ac_cv_search_hcoll_get_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_hcoll_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 hcoll_get_version" >&5 $as_echo_n "checking for library containing hcoll_get_version... " >&6; } if ${ac_cv_search_hcoll_get_version+:} 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 hcoll_get_version (); int main () { return hcoll_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_hcoll_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hcoll_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hcoll_get_version+:} false; then : break fi done if ${ac_cv_search_hcoll_get_version+:} false; then : else ac_cv_search_hcoll_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hcoll_get_version" >&5 $as_echo "$ac_cv_search_hcoll_get_version" >&6; } ac_res=$ac_cv_search_hcoll_get_version 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_coll_hcoll_save_LDFLAGS" coll_hcoll_LDFLAGS="$opal_check_package_coll_hcoll_orig_LDFLAGS" unset ac_cv_search_hcoll_get_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_hcoll_LDFLAGS="$coll_hcoll_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 hcoll_get_version" >&5 $as_echo_n "checking for library containing hcoll_get_version... " >&6; } if ${ac_cv_search_hcoll_get_version+:} 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 hcoll_get_version (); int main () { return hcoll_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_hcoll_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hcoll_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hcoll_get_version+:} false; then : break fi done if ${ac_cv_search_hcoll_get_version+:} false; then : else ac_cv_search_hcoll_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hcoll_get_version" >&5 $as_echo "$ac_cv_search_hcoll_get_version" >&6; } ac_res=$ac_cv_search_hcoll_get_version 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_coll_hcoll_save_LDFLAGS" coll_hcoll_LDFLAGS="$opal_check_package_coll_hcoll_orig_LDFLAGS" unset ac_cv_search_hcoll_get_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_hcoll_LDFLAGS="$coll_hcoll_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 hcoll_get_version" >&5 $as_echo_n "checking for library containing hcoll_get_version... " >&6; } if ${ac_cv_search_hcoll_get_version+:} 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 hcoll_get_version (); int main () { return hcoll_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_hcoll_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hcoll_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_hcoll_get_version+:} false; then : break fi done if ${ac_cv_search_hcoll_get_version+:} false; then : else ac_cv_search_hcoll_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hcoll_get_version" >&5 $as_echo "$ac_cv_search_hcoll_get_version" >&6; } ac_res=$ac_cv_search_hcoll_get_version 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_coll_hcoll_save_LDFLAGS" coll_hcoll_LDFLAGS="$opal_check_package_coll_hcoll_orig_LDFLAGS" unset ac_cv_search_hcoll_get_version 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 lib$ompi_check_hcoll_libs requires libnl v1 or v3" >&5 $as_echo_n "checking if lib$ompi_check_hcoll_libs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void hcoll_get_version (void); int main(int argc, char *argv[]) { hcoll_get_version (); 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:289832: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_hcoll_libs $LIBS $coll_hcoll_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_hcoll_libs $LIBS $coll_hcoll_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:289839: \$? = $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 $ompi_check_hcoll_libs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib $ompi_check_hcoll_libs" >&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, lib$ompi_check_hcoll_libs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, lib$ompi_check_hcoll_libs 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 lib$ompi_check_hcoll_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_hcoll_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&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 $ompi_check_hcoll_libs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas $ompi_check_hcoll_libs 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 lib$ompi_check_hcoll_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_hcoll_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs $ompi_check_hcoll_libs" # 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 lib$ompi_check_hcoll_libs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas lib$ompi_check_hcoll_libs 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 lib$ompi_check_hcoll_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_hcoll_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_hcoll_libs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs $ompi_check_hcoll_libs" # 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_hcoll_get_version" != "no" && test "$ac_cv_search_hcoll_get_version" != "none required"; then : coll_hcoll_LIBS="$ac_cv_search_hcoll_get_version " else coll_hcoll_LIBS="" 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 : ompi_check_hcoll_happy="yes" else coll_hcoll_CPPFLAGS="$opal_check_package_coll_hcoll_orig_CPPFLAGS" coll_hcoll_LDFLAGS="$opal_check_package_coll_hcoll_orig_LDFLAGS" coll_hcoll_LIBS="$opal_check_package_coll_hcoll_orig_LIBS" ompi_check_hcoll_happy="no" fi CPPFLAGS="$opal_check_package_coll_hcoll_save_CPPFLAGS" LDFLAGS="$opal_check_package_coll_hcoll_save_LDFLAGS" LIBS="$opal_check_package_coll_hcoll_save_LIBS" if test "$ompi_check_hcoll_happy" = "yes"; then : CPPFLAGS=$coll_hcoll_CPPFLAGS LDFLAGS=$coll_hcoll_LDFLAGS LIBS=$coll_hcoll_LIBS for ac_func in hcoll_context_free do : ac_fn_c_check_func "$LINENO" "hcoll_context_free" "ac_cv_func_hcoll_context_free" if test "x$ac_cv_func_hcoll_context_free" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_HCOLL_CONTEXT_FREE 1 _ACEOF fi done fi CPPFLAGS=$CPPFLAGS_save LDFLAGS=$LDFLAGS_save LIBS=$LIBS_save else ompi_check_hcoll_happy=no fi if test "$ompi_check_hcoll_happy" = "yes" && test "$enable_progress_threads" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hcoll driver does not currently support progress threads. Disabling HCOLL." >&5 $as_echo "$as_me: WARNING: hcoll driver does not currently support progress threads. Disabling HCOLL." >&2;} ompi_check_hcoll_happy="no" fi if test "$ompi_check_hcoll_happy" = "yes"; then : coll_hcoll_happy="yes" else if test ! -z "$with_hcoll" && test "$with_hcoll" != "no"; then : as_fn_error $? "HCOLL support requested but not found. Aborting" "$LINENO" 5 fi coll_hcoll_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 if test "$coll_hcoll_happy" = "yes"; then : coll_hcoll_WRAPPER_EXTRA_LDFLAGS="$coll_hcoll_LDFLAGS" coll_hcoll_CPPFLAGS="$coll_hcoll_CPPFLAGS" coll_hcoll_WRAPPER_EXTRA_LIBS="$coll_hcoll_LIBS" should_build=$should_build else should_build=0 fi # substitute in the things needed to build hcoll opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/hcoll/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components hcoll" if test "$compile_mode" = "dso" ; then dso_components="$dso_components hcoll" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/hcoll/lib${OMPI_LIB_PREFIX}mca_coll_hcoll.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/hcoll/libmca_coll_hcoll.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_hcoll_component;" >> $outfile.extern echo " &mca_coll_hcoll_component, " >> $outfile.struct static_components="$static_components hcoll" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:hcoll can compile" >&5 $as_echo_n "checking if MCA component coll:hcoll can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "hcoll" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component hcoll was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "hcoll" ; then as_fn_error $? "*** coll component hcoll was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_hcoll_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_hcoll_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_hcoll_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_hcoll_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_hcoll_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_hcoll_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_hcoll_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_hcoll_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_hcoll_WRAPPER_EXTRA_CPPFLAGS ($coll_hcoll_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_hcoll_WRAPPER_EXTRA_CPPFLAGS ($coll_hcoll_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:hcoll can compile" >&5 $as_echo_n "checking if MCA component coll:hcoll can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "hcoll" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hcoll\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hcoll\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "hcoll" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hcoll\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"hcoll\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components hcoll" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_coll_hcoll_DSO=1 else BUILD_ompi_coll_hcoll_DSO=0 fi if test "$BUILD_ompi_coll_hcoll_DSO" = "1"; then MCA_BUILD_ompi_coll_hcoll_DSO_TRUE= MCA_BUILD_ompi_coll_hcoll_DSO_FALSE='#' else MCA_BUILD_ompi_coll_hcoll_DSO_TRUE='#' MCA_BUILD_ompi_coll_hcoll_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component coll:monitoring (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/coll/monitoring" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "monitoring" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_monitoring" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_monitoring" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_monitoring" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:monitoring compile mode" >&5 $as_echo_n "checking for MCA component coll:monitoring compile mode... " >&6; } if test "$DIRECT_coll" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/coll/monitoring/Makefile" if test "$MCA_BUILD_ompi_common_monitoring_DSO_TRUE" = ''; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/monitoring/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components monitoring" if test "$compile_mode" = "dso" ; then dso_components="$dso_components monitoring" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/monitoring/lib${OMPI_LIB_PREFIX}mca_coll_monitoring.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/monitoring/libmca_coll_monitoring.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_monitoring_component;" >> $outfile.extern echo " &mca_coll_monitoring_component, " >> $outfile.struct static_components="$static_components monitoring" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:monitoring can compile" >&5 $as_echo_n "checking if MCA component coll:monitoring can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "monitoring" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component monitoring was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "monitoring" ; then as_fn_error $? "*** coll component monitoring was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_monitoring_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_monitoring_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_monitoring_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_monitoring_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_monitoring_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_monitoring_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_monitoring_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_monitoring_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_monitoring_WRAPPER_EXTRA_CPPFLAGS ($coll_monitoring_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_monitoring_WRAPPER_EXTRA_CPPFLAGS ($coll_monitoring_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:monitoring can compile" >&5 $as_echo_n "checking if MCA component coll:monitoring can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"monitoring\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"monitoring\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"monitoring\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"monitoring\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components monitoring" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_coll_monitoring_DSO=1 else BUILD_ompi_coll_monitoring_DSO=0 fi if test "$BUILD_ompi_coll_monitoring_DSO" = "1"; then MCA_BUILD_ompi_coll_monitoring_DSO_TRUE= MCA_BUILD_ompi_coll_monitoring_DSO_FALSE='#' else MCA_BUILD_ompi_coll_monitoring_DSO_TRUE='#' MCA_BUILD_ompi_coll_monitoring_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component coll:portals4 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/coll/portals4" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "portals4" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_portals4" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_portals4" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_portals4" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:portals4 compile mode" >&5 $as_echo_n "checking for MCA component coll:portals4 compile mode... " >&6; } if test "$DIRECT_coll" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/coll/portals4/Makefile" if test -z "$ompi_check_portals4_happy" ; then # Check whether --with-portals4 was given. if test "${with_portals4+set}" = set; then : withval=$with_portals4; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals4 value" >&5 $as_echo_n "checking --with-portals4 value... " >&6; } if test "$with_portals4" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-portals4)" >&5 $as_echo "simple no (specified --without-portals4)" >&6; } else if test "$with_portals4" = "yes" || test "x$with_portals4" = "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_portals4"; 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_portals4 not found" >&5 $as_echo "$as_me: WARNING: Directory $with_portals4 not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_portals4/include/portals4.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_portals4/include/portals4.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_portals4/include/portals4.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals4)" >&5 $as_echo "sanity check ok ($with_portals4)" >&6; } fi fi fi fi # Check whether --with-portals4-libdir was given. if test "${with_portals4_libdir+set}" = set; then : withval=$with_portals4_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals4-libdir value" >&5 $as_echo_n "checking --with-portals4-libdir value... " >&6; } if test "$with_portals4_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-portals4-libdir)" >&5 $as_echo "simple no (specified --without-portals4-libdir)" >&6; } else if test "$with_portals4_libdir" = "yes" || test "x$with_portals4_libdir" = "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_portals4_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_portals4_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_portals4_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_portals4_libdir/libportals.* 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_portals4_libdir/libportals.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_portals4_libdir/libportals.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals4_libdir)" >&5 $as_echo "sanity check ok ($with_portals4_libdir)" >&6; } fi fi fi fi ompi_check_portals4_coll_portals4_save_CPPFLAGS="$CPPFLAGS" ompi_check_portals4_coll_portals4_save_LDFLAGS="$LDFLAGS" ompi_check_portals4_coll_portals4_save_LIBS="$LIBS" if test "$with_portals4" != "no"; then : if test ! -z "$with_portals4" && test "$with_portals4" != "yes"; then : ompi_check_portals4_dir="$with_portals4" fi if test ! -z "$with_portals4_libdir" && test "$with_portals4_libdir" != "yes"; then : ompi_check_portals4_libdir="$with_portals4_libdir" fi opal_check_package_opal_check_portals4_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_check_portals4_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_check_portals4_save_LIBS="$LIBS" opal_check_package_opal_check_portals4_orig_CPPFLAGS="$opal_check_portals4_CPPFLAGS" opal_check_package_opal_check_portals4_orig_LDFLAGS="$opal_check_portals4_LDFLAGS" opal_check_package_opal_check_portals4_orig_LIBS="$opal_check_portals4_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_portals4_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_portals4_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 portals4.h do : ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PORTALS4_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_portals4_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_check_portals4_CPPFLAGS="$opal_check_portals4_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in portals4.h do : ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PORTALS4_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_PtlLEAppend opal_check_package_lib_happy="no" if test "$ompi_check_portals4_libdir" != ""; then : # libdir was specified - search only there opal_check_portals4_LDFLAGS="$opal_check_portals4_LDFLAGS -L$ompi_check_portals4_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_portals4_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend 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 libportals requires libnl v1 or v3" >&5 $as_echo_n "checking if libportals requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PtlLEAppend (void); int main(int argc, char *argv[]) { PtlLEAppend (); 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:292194: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_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:292201: \$? = $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 portals" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib portals" >&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, libportals links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&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 portals requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas portals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs portals" # 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 libportals requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs portals" # 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_PtlLEAppend" != "no" && test "$ac_cv_search_PtlLEAppend" != "none required"; then : opal_check_portals4_LIBS="$ac_cv_search_PtlLEAppend " else opal_check_portals4_LIBS="" 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_PtlLEAppend opal_check_package_lib_happy="no" if test "$ompi_check_portals4_libdir" != ""; then : # libdir was specified - search only there opal_check_portals4_LDFLAGS="$opal_check_portals4_LDFLAGS -L$ompi_check_portals4_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_portals4_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend 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 libportals requires libnl v1 or v3" >&5 $as_echo_n "checking if libportals requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PtlLEAppend (void); int main(int argc, char *argv[]) { PtlLEAppend (); 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:292919: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_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:292926: \$? = $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 portals" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib portals" >&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, libportals links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&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 portals requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas portals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs portals" # 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 libportals requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs portals" # 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_PtlLEAppend" != "no" && test "$ac_cv_search_PtlLEAppend" != "none required"; then : opal_check_portals4_LIBS="$ac_cv_search_PtlLEAppend " else opal_check_portals4_LIBS="" 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 : ompi_check_portals4_happy="yes" else opal_check_portals4_CPPFLAGS="$opal_check_package_opal_check_portals4_orig_CPPFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" opal_check_portals4_LIBS="$opal_check_package_opal_check_portals4_orig_LIBS" ompi_check_portals4_happy="no" fi CPPFLAGS="$opal_check_package_opal_check_portals4_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_check_portals4_save_LDFLAGS" LIBS="$opal_check_package_opal_check_portals4_save_LIBS" else ompi_check_portals4_happy="no" fi CPPFLAGS="$ompi_check_portals4_coll_portals4_save_CPPFLAGS" LDFLAGS="$ompi_check_portals4_coll_portals4_save_LDFLAGS" LIBS="$ompi_check_portals4_coll_portals4_save_LIBS" max_md_size=0 # Check whether --with-portals4-max-md-size was given. if test "${with_portals4_max_md_size+set}" = set; then : withval=$with_portals4_max_md_size; fi if test "$with_portals4_max_md_size" = "yes" || test "$with_portals4_max_md_size" = "no"; then : as_fn_error $? "--with-portals4-max-md-size requires an integer argument" "$LINENO" 5 else if test -n "$with_portals4_max_md_size"; then : max_md_size="$with_portals4_max_md_size" fi fi cat >>confdefs.h <<_ACEOF #define OPAL_PORTALS4_MAX_MD_SIZE $max_md_size _ACEOF max_va_size=0 # Check whether --with-portals4-max-va-size was given. if test "${with_portals4_max_va_size+set}" = set; then : withval=$with_portals4_max_va_size; fi if test "$with_portals4_max_va_size" = "yes" || test "$with_portals4_max_va_size" = "no"; then : as_fn_error $? "--with-portals4-max-va-size requires an integer argument" "$LINENO" 5 else if test -n "$with_portals4_max_va_size"; then : max_va_size="$with_portals4_max_va_size" fi fi cat >>confdefs.h <<_ACEOF #define OPAL_PORTALS4_MAX_VA_SIZE $max_va_size _ACEOF if (test $max_md_size -eq 0 && test $max_va_size -ne 0 ) || (test $max_md_size -ne 0 && test $max_va_size -eq 0 ); then : as_fn_error $? "If either --with-portals4-max-md-size or --with-portals4-max-va-size is set, both must be set." "$LINENO" 5 fi if test $max_md_size -ge $max_va_size; then : max_md_size=0 max_va_size=0 fi if test $max_md_size -ne 0 && test $max_va_size -ne 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: Portals 4 address space size: $max_md_size, $max_va_size" >&5 $as_echo "$as_me: Portals 4 address space size: $max_md_size, $max_va_size" >&6;} 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 Transports | tr ' ' '_') ompi_summary_line="Portals4: $ompi_check_portals4_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 fi if test "$ompi_check_portals4_happy" = "yes"; then : coll_portals4_LDFLAGS="$coll_portals4_LDFLAGS $opal_check_portals4_LDFLAGS" coll_portals4_CPPFLAGS="$coll_portals4_CPPFLAGS $opal_check_portals4_CPPFLAGS" coll_portals4_LIBS="$coll_portals4_LIBS $opal_check_portals4_LIBS" coll_portals4_happy="yes" else if test ! -z "$with_portals4" && test "$with_portals4" != "no"; then : as_fn_error $? "Portals4 support requested but not found. Aborting" "$LINENO" 5 fi coll_portals4_happy="no" fi if test "$coll_portals4_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/portals4/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components portals4" if test "$compile_mode" = "dso" ; then dso_components="$dso_components portals4" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/portals4/lib${OMPI_LIB_PREFIX}mca_coll_portals4.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/portals4/libmca_coll_portals4.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_portals4_component;" >> $outfile.extern echo " &mca_coll_portals4_component, " >> $outfile.struct static_components="$static_components portals4" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:portals4 can compile" >&5 $as_echo_n "checking if MCA component coll:portals4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "portals4" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component portals4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "portals4" ; then as_fn_error $? "*** coll component portals4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_portals4_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_portals4_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_portals4_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_portals4_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_portals4_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_portals4_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_portals4_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_portals4_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_portals4_WRAPPER_EXTRA_CPPFLAGS ($coll_portals4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_portals4_WRAPPER_EXTRA_CPPFLAGS ($coll_portals4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:portals4 can compile" >&5 $as_echo_n "checking if MCA component coll:portals4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"portals4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"portals4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components portals4" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag PORTALS4" >&5 $as_echo_n "checking for index in endpoint array for tag PORTALS4... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_PORTALS4"; then : OMPI_PROC_ENDPOINT_TAG_PORTALS4=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_PORTALS4 $OMPI_PROC_ENDPOINT_TAG_PORTALS4 _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_PORTALS4" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_PORTALS4" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_coll_portals4_DSO=1 else BUILD_ompi_coll_portals4_DSO=0 fi if test "$BUILD_ompi_coll_portals4_DSO" = "1"; then MCA_BUILD_ompi_coll_portals4_DSO_TRUE= MCA_BUILD_ompi_coll_portals4_DSO_FALSE='#' else MCA_BUILD_ompi_coll_portals4_DSO_TRUE='#' MCA_BUILD_ompi_coll_portals4_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component coll:ucc (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/coll/ucc" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "ucc" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi if test "$DISABLE_coll_ucc" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_coll" SHARED_COMPONENT="$DSO_coll_ucc" STATIC_FRAMEWORK="$STATIC_coll" STATIC_COMPONENT="$STATIC_coll_ucc" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:ucc compile mode" >&5 $as_echo_n "checking for MCA component coll:ucc compile mode... " >&6; } if test "$DIRECT_coll" = "ucc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/coll/ucc/Makefile" # 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_check_ucc_dir ompi_check_ucc_happy CPPFLAGS_save LDFLAGS_save LIBS_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_check_ucc_dir ompi_check_ucc_happy CPPFLAGS_save LDFLAGS_save LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-ucc was given. if test "${with_ucc+set}" = set; then : withval=$with_ucc; fi if test "$with_ucc" != "no"; then : if test -n "$with_ucc" && test "$with_ucc" != "yes"; then : ompi_check_ucc_dir=$with_ucc fi CPPFLAGS_save=$CPPFLAGS LDFLAGS_save=$LDFLAGS LIBS_save=$LIBS # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:294167: coll_ucc_CPPFLAGS : $coll_ucc_CPPFLAGS" >&5 else echo coll_ucc_CPPFLAGS : $coll_ucc_CPPFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:294175: coll_ucc_LDFLAGS : $coll_ucc_LDFLAGS" >&5 else echo coll_ucc_LDFLAGS : $coll_ucc_LDFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:294183: coll_ucc_LIBS : $coll_ucc_LIBS" >&5 else echo coll_ucc_LIBS : $coll_ucc_LIBS >&5 fi opal_check_package_coll_ucc_save_CPPFLAGS="$CPPFLAGS" opal_check_package_coll_ucc_save_LDFLAGS="$LDFLAGS" opal_check_package_coll_ucc_save_LIBS="$LIBS" opal_check_package_coll_ucc_orig_CPPFLAGS="$coll_ucc_CPPFLAGS" opal_check_package_coll_ucc_orig_LDFLAGS="$coll_ucc_LDFLAGS" opal_check_package_coll_ucc_orig_LIBS="$coll_ucc_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_ucc_api_ucc_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ucc_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 ucc/api/ucc.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucc/api/ucc.h" "ac_cv_header_ucc_api_ucc_h" "$ac_includes_default" if test "x$ac_cv_header_ucc_api_ucc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCC_API_UCC_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_ucc_api_ucc_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : coll_ucc_CPPFLAGS="$coll_ucc_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucc/api/ucc.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucc/api/ucc.h" "ac_cv_header_ucc_api_ucc_h" "$ac_includes_default" if test "x$ac_cv_header_ucc_api_ucc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCC_API_UCC_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_ucc_init_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there coll_ucc_LDFLAGS="$coll_ucc_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_coll_ucc_save_LDFLAGS" coll_ucc_LDFLAGS="$opal_check_package_coll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_coll_ucc_save_LDFLAGS" coll_ucc_LDFLAGS="$opal_check_package_coll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_ucc_LDFLAGS="$coll_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_coll_ucc_save_LDFLAGS" coll_ucc_LDFLAGS="$opal_check_package_coll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_ucc_LDFLAGS="$coll_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_coll_ucc_save_LDFLAGS" coll_ucc_LDFLAGS="$opal_check_package_coll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version 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 libucc requires libnl v1 or v3" >&5 $as_echo_n "checking if libucc requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucc_init_version (void); int main(int argc, char *argv[]) { ucc_init_version (); 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:294695: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucc $LIBS $coll_ucc_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucc $LIBS $coll_ucc_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:294702: \$? = $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 ucc" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucc" >&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, libucc links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&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 ucc requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucc" # 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 libucc requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucc" # 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_ucc_init_version" != "no" && test "$ac_cv_search_ucc_init_version" != "none required"; then : coll_ucc_LIBS="$ac_cv_search_ucc_init_version " else coll_ucc_LIBS="" 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_ucc_init_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there coll_ucc_LDFLAGS="$coll_ucc_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_coll_ucc_save_LDFLAGS" coll_ucc_LDFLAGS="$opal_check_package_coll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_coll_ucc_save_LDFLAGS" coll_ucc_LDFLAGS="$opal_check_package_coll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_ucc_LDFLAGS="$coll_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_coll_ucc_save_LDFLAGS" coll_ucc_LDFLAGS="$opal_check_package_coll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : coll_ucc_LDFLAGS="$coll_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_coll_ucc_save_LDFLAGS" coll_ucc_LDFLAGS="$opal_check_package_coll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version 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 libucc requires libnl v1 or v3" >&5 $as_echo_n "checking if libucc requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucc_init_version (void); int main(int argc, char *argv[]) { ucc_init_version (); 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:295420: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucc $LIBS $coll_ucc_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucc $LIBS $coll_ucc_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:295427: \$? = $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 ucc" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucc" >&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, libucc links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&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 ucc requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucc" # 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 libucc requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucc" # 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_ucc_init_version" != "no" && test "$ac_cv_search_ucc_init_version" != "none required"; then : coll_ucc_LIBS="$ac_cv_search_ucc_init_version " else coll_ucc_LIBS="" 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 : ompi_check_ucc_happy="yes" else coll_ucc_CPPFLAGS="$opal_check_package_coll_ucc_orig_CPPFLAGS" coll_ucc_LDFLAGS="$opal_check_package_coll_ucc_orig_LDFLAGS" coll_ucc_LIBS="$opal_check_package_coll_ucc_orig_LIBS" ompi_check_ucc_happy="no" fi CPPFLAGS="$opal_check_package_coll_ucc_save_CPPFLAGS" LDFLAGS="$opal_check_package_coll_ucc_save_LDFLAGS" LIBS="$opal_check_package_coll_ucc_save_LIBS" if test "$ompi_check_ucc_happy" = "yes"; then : CPPFLAGS=$coll_ucc_CPPFLAGS LDFLAGS=$coll_ucc_LDFLAGS LIBS=$coll_ucc_LIBS for ac_func in ucc_comm_free do : ac_fn_c_check_func "$LINENO" "ucc_comm_free" "ac_cv_func_ucc_comm_free" if test "x$ac_cv_func_ucc_comm_free" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCC_COMM_FREE 1 _ACEOF fi done fi CPPFLAGS=$CPPFLAGS_save LDFLAGS=$LDFLAGS_save LIBS=$LIBS_save else ompi_check_ucc_happy=no fi if test "$ompi_check_ucc_happy" = "yes" && test "$enable_progress_threads" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ucc driver does not currently support progress threads. Disabling UCC." >&5 $as_echo "$as_me: WARNING: ucc driver does not currently support progress threads. Disabling UCC." >&2;} ompi_check_ucc_happy="no" fi if test "$ompi_check_ucc_happy" = "yes"; then : coll_ucc_happy="yes" else if test -n "$with_ucc" && test "$with_ucc" != "no"; then : as_fn_error $? "UCC support requested but not found. Aborting" "$LINENO" 5 fi coll_ucc_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 if test "$coll_ucc_happy" = "yes"; then : coll_ucc_WRAPPER_EXTRA_LDFLAGS="$coll_ucc_LDFLAGS" coll_ucc_CPPFLAGS="$coll_ucc_CPPFLAGS" coll_ucc_WRAPPER_EXTRA_LIBS="$coll_ucc_LIBS" should_build=$should_build else should_build=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="Open UCC: $coll_ucc_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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/ucc/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ucc" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ucc" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/ucc/lib${OMPI_LIB_PREFIX}mca_coll_ucc.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/ucc/libmca_coll_ucc.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_ucc_component;" >> $outfile.extern echo " &mca_coll_ucc_component, " >> $outfile.struct static_components="$static_components ucc" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:ucc can compile" >&5 $as_echo_n "checking if MCA component coll:ucc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "ucc" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component ucc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "ucc" ; then as_fn_error $? "*** coll component ucc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$coll_ucc_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $coll_ucc_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $coll_ucc_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$coll_ucc_WRAPPER_EXTRA_LIBS" = ""; 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_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 $coll_ucc_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $coll_ucc_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$coll_ucc_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $coll_ucc_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring coll_ucc_WRAPPER_EXTRA_CPPFLAGS ($coll_ucc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring coll_ucc_WRAPPER_EXTRA_CPPFLAGS ($coll_ucc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:ucc can compile" >&5 $as_echo_n "checking if MCA component coll:ucc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "ucc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "ucc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ucc" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_coll_ucc_DSO=1 else BUILD_ompi_coll_ucc_DSO=0 fi if test "$BUILD_ompi_coll_ucc_DSO" = "1"; then MCA_BUILD_ompi_coll_ucc_DSO_TRUE= MCA_BUILD_ompi_coll_ucc_DSO_FALSE='#' else MCA_BUILD_ompi_coll_ucc_DSO_TRUE='#' MCA_BUILD_ompi_coll_ucc_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/coll/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component coll:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/coll/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_coll" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_coll_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_coll" str="SHARED_COMPONENT=\$DSO_coll_$component" eval $str STATIC_FRAMEWORK="$STATIC_coll" str="STATIC_COMPONENT=\$STATIC_coll_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component coll:$component compile mode" >&5 $as_echo_n "checking for MCA component coll:$component compile mode... " >&6; } if test "$DIRECT_coll" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/coll/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/coll/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/coll/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then coll_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then coll_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/coll/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "coll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/coll/$component/lib${OMPI_LIB_PREFIX}mca_coll_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/coll/$component/libmca_coll_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_coll_$component_component;" >> $outfile.extern echo " &mca_coll_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:$component can compile" >&5 $as_echo_n "checking if MCA component coll:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_coll" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_coll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** coll component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_coll" = "$component" ; then as_fn_error $? "*** coll component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$coll_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$coll_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component coll:$component can compile" >&5 $as_echo_n "checking if MCA component coll:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_coll" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_coll" ; then if test "$DIRECT_coll" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_coll_ALL_COMPONENTS="$all_components" MCA_ompi_coll_STATIC_COMPONENTS="$static_components" MCA_ompi_coll_DSO_COMPONENTS="$dso_components" MCA_ompi_coll_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_coll_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_coll_ALL_SUBDIRS="$MCA_ompi_coll_ALL_SUBDIRS mca/coll/$item" done MCA_ompi_coll_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_coll_STATIC_SUBDIRS="$MCA_ompi_coll_STATIC_SUBDIRS mca/coll/$item" done MCA_ompi_coll_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_coll_DSO_SUBDIRS="$MCA_ompi_coll_DSO_SUBDIRS mca/coll/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "coll" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS crcp" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/crcp" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_crcp_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_crcp_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_crcp_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/crcp/libmca_crcp.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_crcp_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework crcp" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/crcp/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/crcp/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework crcp" >&5 $as_echo_n "checking for no configure components in framework crcp... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework crcp" >&5 $as_echo_n "checking for m4 configure components in framework crcp... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: bkmrk" >&5 $as_echo "bkmrk" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component crcp:bkmrk (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/crcp/bkmrk" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_crcp" ; then if test "$DIRECT_crcp" = "bkmrk" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_crcp" = "1"; then : want_component=0 fi if test "$DISABLE_crcp_bkmrk" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_crcp" SHARED_COMPONENT="$DSO_crcp_bkmrk" STATIC_FRAMEWORK="$STATIC_crcp" STATIC_COMPONENT="$STATIC_crcp_bkmrk" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component crcp:bkmrk compile mode" >&5 $as_echo_n "checking for MCA component crcp:bkmrk compile mode... " >&6; } if test "$DIRECT_crcp" = "bkmrk" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/crcp/bkmrk/Makefile" # If we don't want FT, don't compile this component if test "$opal_want_ft_cr" = "1"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/crcp/bkmrk/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components bkmrk" if test "$compile_mode" = "dso" ; then dso_components="$dso_components bkmrk" else if test "crcp" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/crcp/bkmrk/lib${OMPI_LIB_PREFIX}mca_crcp_bkmrk.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/crcp/bkmrk/libmca_crcp_bkmrk.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_crcp_bkmrk_component;" >> $outfile.extern echo " &mca_crcp_bkmrk_component, " >> $outfile.struct static_components="$static_components bkmrk" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crcp:bkmrk can compile" >&5 $as_echo_n "checking if MCA component crcp:bkmrk can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_crcp" = "bkmrk" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_crcp_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** crcp component bkmrk was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_crcp" = "bkmrk" ; then as_fn_error $? "*** crcp component bkmrk was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$crcp_bkmrk_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $crcp_bkmrk_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $crcp_bkmrk_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$crcp_bkmrk_WRAPPER_EXTRA_LIBS" = ""; 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_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 $crcp_bkmrk_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $crcp_bkmrk_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$crcp_bkmrk_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $crcp_bkmrk_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring crcp_bkmrk_WRAPPER_EXTRA_CPPFLAGS ($crcp_bkmrk_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring crcp_bkmrk_WRAPPER_EXTRA_CPPFLAGS ($crcp_bkmrk_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crcp:bkmrk can compile" >&5 $as_echo_n "checking if MCA component crcp:bkmrk can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_crcp" = "bkmrk" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_crcp" ; then if test "$DIRECT_crcp" = "bkmrk" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components bkmrk" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_crcp_bkmrk_DSO=1 else BUILD_ompi_crcp_bkmrk_DSO=0 fi if test "$BUILD_ompi_crcp_bkmrk_DSO" = "1"; then MCA_BUILD_ompi_crcp_bkmrk_DSO_TRUE= MCA_BUILD_ompi_crcp_bkmrk_DSO_FALSE='#' else MCA_BUILD_ompi_crcp_bkmrk_DSO_TRUE='#' MCA_BUILD_ompi_crcp_bkmrk_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/crcp/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component crcp:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/crcp/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_crcp" ; then if test "$DIRECT_crcp" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_crcp" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_crcp_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_crcp" str="SHARED_COMPONENT=\$DSO_crcp_$component" eval $str STATIC_FRAMEWORK="$STATIC_crcp" str="STATIC_COMPONENT=\$STATIC_crcp_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component crcp:$component compile mode" >&5 $as_echo_n "checking for MCA component crcp:$component compile mode... " >&6; } if test "$DIRECT_crcp" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/crcp/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/crcp/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/crcp/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then crcp_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then crcp_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/crcp/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "crcp" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/crcp/$component/lib${OMPI_LIB_PREFIX}mca_crcp_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/crcp/$component/libmca_crcp_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_crcp_$component_component;" >> $outfile.extern echo " &mca_crcp_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crcp:$component can compile" >&5 $as_echo_n "checking if MCA component crcp:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_crcp" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_crcp_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** crcp component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_crcp" = "$component" ; then as_fn_error $? "*** crcp component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$crcp_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$crcp_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component crcp:$component can compile" >&5 $as_echo_n "checking if MCA component crcp:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_crcp" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_crcp" ; then if test "$DIRECT_crcp" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_crcp_ALL_COMPONENTS="$all_components" MCA_ompi_crcp_STATIC_COMPONENTS="$static_components" MCA_ompi_crcp_DSO_COMPONENTS="$dso_components" MCA_ompi_crcp_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_crcp_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_crcp_ALL_SUBDIRS="$MCA_ompi_crcp_ALL_SUBDIRS mca/crcp/$item" done MCA_ompi_crcp_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_crcp_STATIC_SUBDIRS="$MCA_ompi_crcp_STATIC_SUBDIRS mca/crcp/$item" done MCA_ompi_crcp_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_crcp_DSO_SUBDIRS="$MCA_ompi_crcp_DSO_SUBDIRS mca/crcp/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "crcp" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS fbtl" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/fbtl" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_fbtl_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_fbtl_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_fbtl_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/fbtl/libmca_fbtl.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_fbtl_STATIC_LTLIBS)" # 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 want_io_ompio; 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=\"want_io_ompio\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test "$enable_io_ompio" != "no"; then : want_io_ompio=1 else want_io_ompio=0 fi opal_show_subsubtitle "Configuring MCA framework fbtl" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/fbtl/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/fbtl/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework fbtl" >&5 $as_echo_n "checking for no configure components in framework fbtl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework fbtl" >&5 $as_echo_n "checking for m4 configure components in framework fbtl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: ime, posix, pvfs2" >&5 $as_echo "ime, posix, pvfs2" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=$want_io_ompio components_last_result=0 opal_show_subsubsubtitle "MCA component fbtl:ime (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/fbtl/ime" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fbtl" ; then if test "$DIRECT_fbtl" = "ime" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fbtl" = "1"; then : want_component=0 fi if test "$DISABLE_fbtl_ime" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_fbtl" SHARED_COMPONENT="$DSO_fbtl_ime" STATIC_FRAMEWORK="$STATIC_fbtl" STATIC_COMPONENT="$STATIC_fbtl_ime" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fbtl:ime compile mode" >&5 $as_echo_n "checking for MCA component fbtl:ime compile mode... " >&6; } if test "$DIRECT_fbtl" = "ime" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/fbtl/ime/Makefile" check_ime_CPPFLAGS= check_ime_LDFLAGS= check_ime_LIBS= check_ime_configuration="none" ompi_check_ime_happy="yes" # Get some configuration information # Check whether --with-ime was given. if test "${with_ime+set}" = set; then : withval=$with_ime; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ime value" >&5 $as_echo_n "checking --with-ime value... " >&6; } if test "$with_ime" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ime)" >&5 $as_echo "simple no (specified --without-ime)" >&6; } else if test "$with_ime" = "yes" || test "x$with_ime" = "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_ime"; 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_ime not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ime not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ime/include/ime_native.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_ime/include/ime_native.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ime/include/ime_native.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ime)" >&5 $as_echo "sanity check ok ($with_ime)" >&6; } fi fi fi fi if test "$with_ime" = "no"; then : ompi_check_ime_happy="no" else if test -z "$with_ime"; then : ompi_check_ime_dir="/usr/local" else ompi_check_ime_dir=$with_ime fi if test -e "$ompi_check_ime_dir/lib64" ; then ompi_check_ime_libdir="$ompi_check_ime_dir/lib64" else ompi_check_ime_libdir="$ompi_check_ime_dir/lib" fi # Add correct -I and -L flags opal_check_package_fbtl_ime_save_CPPFLAGS="$CPPFLAGS" opal_check_package_fbtl_ime_save_LDFLAGS="$LDFLAGS" opal_check_package_fbtl_ime_save_LIBS="$LIBS" opal_check_package_fbtl_ime_orig_CPPFLAGS="$fbtl_ime_CPPFLAGS" opal_check_package_fbtl_ime_orig_LDFLAGS="$fbtl_ime_LDFLAGS" opal_check_package_fbtl_ime_orig_LIBS="$fbtl_ime_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_ime_native_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ime_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 ime_native.h do : ac_fn_c_check_header_mongrel "$LINENO" "ime_native.h" "ac_cv_header_ime_native_h" "$ac_includes_default" if test "x$ac_cv_header_ime_native_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IME_NATIVE_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_ime_native_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : fbtl_ime_CPPFLAGS="$fbtl_ime_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ime_native.h do : ac_fn_c_check_header_mongrel "$LINENO" "ime_native.h" "ac_cv_header_ime_native_h" "$ac_includes_default" if test "x$ac_cv_header_ime_native_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IME_NATIVE_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_ime_client_native2_init opal_check_package_lib_happy="no" if test "$ompi_check_ime_libdir" != ""; then : # libdir was specified - search only there fbtl_ime_LDFLAGS="$fbtl_ime_LDFLAGS -L$ompi_check_ime_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ime_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_ime_LDFLAGS="$fbtl_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_ime_LDFLAGS="$fbtl_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init 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 libim_client requires libnl v1 or v3" >&5 $as_echo_n "checking if libim_client requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ime_client_native2_init (void); int main(int argc, char *argv[]) { ime_client_native2_init (); 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:299330: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fbtl_ime_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fbtl_ime_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:299337: \$? = $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 im_client" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib im_client" >&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, libim_client links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&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 im_client requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas im_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs im_client" # 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 libim_client requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs im_client" # 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_ime_client_native2_init" != "no" && test "$ac_cv_search_ime_client_native2_init" != "none required"; then : fbtl_ime_LIBS="$ac_cv_search_ime_client_native2_init " else fbtl_ime_LIBS="" 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_ime_client_native2_init opal_check_package_lib_happy="no" if test "$ompi_check_ime_libdir" != ""; then : # libdir was specified - search only there fbtl_ime_LDFLAGS="$fbtl_ime_LDFLAGS -L$ompi_check_ime_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ime_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_ime_LDFLAGS="$fbtl_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_ime_LDFLAGS="$fbtl_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init 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 libim_client requires libnl v1 or v3" >&5 $as_echo_n "checking if libim_client requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ime_client_native2_init (void); int main(int argc, char *argv[]) { ime_client_native2_init (); 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:300055: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fbtl_ime_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fbtl_ime_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:300062: \$? = $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 im_client" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib im_client" >&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, libim_client links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&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 im_client requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas im_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs im_client" # 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 libim_client requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs im_client" # 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_ime_client_native2_init" != "no" && test "$ac_cv_search_ime_client_native2_init" != "none required"; then : fbtl_ime_LIBS="$ac_cv_search_ime_client_native2_init " else fbtl_ime_LIBS="" 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 : ompi_check_ime_happy="yes" else fbtl_ime_CPPFLAGS="$opal_check_package_fbtl_ime_orig_CPPFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" fbtl_ime_LIBS="$opal_check_package_fbtl_ime_orig_LIBS" opal_check_package_fbtl_ime_save_CPPFLAGS="$CPPFLAGS" opal_check_package_fbtl_ime_save_LDFLAGS="$LDFLAGS" opal_check_package_fbtl_ime_save_LIBS="$LIBS" opal_check_package_fbtl_ime_orig_CPPFLAGS="$fbtl_ime_CPPFLAGS" opal_check_package_fbtl_ime_orig_LDFLAGS="$fbtl_ime_LDFLAGS" opal_check_package_fbtl_ime_orig_LIBS="$fbtl_ime_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_ime_native_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ime_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 ime_native.h do : ac_fn_c_check_header_mongrel "$LINENO" "ime_native.h" "ac_cv_header_ime_native_h" "$ac_includes_default" if test "x$ac_cv_header_ime_native_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IME_NATIVE_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_ime_native_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : fbtl_ime_CPPFLAGS="$fbtl_ime_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ime_native.h do : ac_fn_c_check_header_mongrel "$LINENO" "ime_native.h" "ac_cv_header_ime_native_h" "$ac_includes_default" if test "x$ac_cv_header_ime_native_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IME_NATIVE_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_ime_native_init opal_check_package_lib_happy="no" if test "$ompi_check_ime_libdir" != ""; then : # libdir was specified - search only there fbtl_ime_LDFLAGS="$fbtl_ime_LDFLAGS -L$ompi_check_ime_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ime_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_ime_LDFLAGS="$fbtl_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_ime_LDFLAGS="$fbtl_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init 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 libim_client requires libnl v1 or v3" >&5 $as_echo_n "checking if libim_client requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ime_native_init (void); int main(int argc, char *argv[]) { ime_native_init (); 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:300909: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fbtl_ime_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fbtl_ime_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:300916: \$? = $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 im_client" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib im_client" >&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, libim_client links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&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 im_client requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas im_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs im_client" # 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 libim_client requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs im_client" # 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_ime_native_init" != "no" && test "$ac_cv_search_ime_native_init" != "none required"; then : fbtl_ime_LIBS="$ac_cv_search_ime_native_init " else fbtl_ime_LIBS="" 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_ime_native_init opal_check_package_lib_happy="no" if test "$ompi_check_ime_libdir" != ""; then : # libdir was specified - search only there fbtl_ime_LDFLAGS="$fbtl_ime_LDFLAGS -L$ompi_check_ime_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ime_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_ime_LDFLAGS="$fbtl_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_ime_LDFLAGS="$fbtl_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fbtl_ime_save_LDFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init 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 libim_client requires libnl v1 or v3" >&5 $as_echo_n "checking if libim_client requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ime_native_init (void); int main(int argc, char *argv[]) { ime_native_init (); 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:301634: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fbtl_ime_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fbtl_ime_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:301641: \$? = $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 im_client" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib im_client" >&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, libim_client links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&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 im_client requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas im_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs im_client" # 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 libim_client requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs im_client" # 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_ime_native_init" != "no" && test "$ac_cv_search_ime_native_init" != "none required"; then : fbtl_ime_LIBS="$ac_cv_search_ime_native_init " else fbtl_ime_LIBS="" 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 : ompi_check_ime_happy="yes" else fbtl_ime_CPPFLAGS="$opal_check_package_fbtl_ime_orig_CPPFLAGS" fbtl_ime_LDFLAGS="$opal_check_package_fbtl_ime_orig_LDFLAGS" fbtl_ime_LIBS="$opal_check_package_fbtl_ime_orig_LIBS" ompi_check_ime_happy="no" fi CPPFLAGS="$opal_check_package_fbtl_ime_save_CPPFLAGS" LDFLAGS="$opal_check_package_fbtl_ime_save_LDFLAGS" LIBS="$opal_check_package_fbtl_ime_save_LIBS" fi CPPFLAGS="$opal_check_package_fbtl_ime_save_CPPFLAGS" LDFLAGS="$opal_check_package_fbtl_ime_save_LDFLAGS" LIBS="$opal_check_package_fbtl_ime_save_LIBS" fi if test "$ompi_check_ime_happy" = "yes"; then : fbtl_ime_happy="yes" else if test ! -z "$with_ime" && test "$with_ime" != "no"; then : echo IME support not found fi fbtl_ime_happy="no" fi if test "$fbtl_ime_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build ime opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fbtl/ime/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ime" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ime" else if test "fbtl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fbtl/ime/lib${OMPI_LIB_PREFIX}mca_fbtl_ime.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fbtl/ime/libmca_fbtl_ime.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fbtl_ime_component;" >> $outfile.extern echo " &mca_fbtl_ime_component, " >> $outfile.struct static_components="$static_components ime" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fbtl:ime can compile" >&5 $as_echo_n "checking if MCA component fbtl:ime can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fbtl" = "ime" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fbtl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fbtl component ime was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fbtl" = "ime" ; then as_fn_error $? "*** fbtl component ime was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fbtl_ime_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fbtl_ime_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fbtl_ime_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fbtl_ime_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fbtl_ime_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fbtl_ime_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fbtl_ime_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fbtl_ime_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fbtl_ime_WRAPPER_EXTRA_CPPFLAGS ($fbtl_ime_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fbtl_ime_WRAPPER_EXTRA_CPPFLAGS ($fbtl_ime_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fbtl:ime can compile" >&5 $as_echo_n "checking if MCA component fbtl:ime can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fbtl" = "ime" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ime\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ime\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fbtl" ; then if test "$DIRECT_fbtl" = "ime" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ime\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ime\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ime" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_fbtl_ime_DSO=1 else BUILD_ompi_fbtl_ime_DSO=0 fi if test "$BUILD_ompi_fbtl_ime_DSO" = "1"; then MCA_BUILD_ompi_fbtl_ime_DSO_TRUE= MCA_BUILD_ompi_fbtl_ime_DSO_FALSE='#' else MCA_BUILD_ompi_fbtl_ime_DSO_TRUE='#' MCA_BUILD_ompi_fbtl_ime_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component fbtl:posix (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/fbtl/posix" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fbtl" ; then if test "$DIRECT_fbtl" = "posix" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fbtl" = "1"; then : want_component=0 fi if test "$DISABLE_fbtl_posix" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_fbtl" SHARED_COMPONENT="$DSO_fbtl_posix" STATIC_FRAMEWORK="$STATIC_fbtl" STATIC_COMPONENT="$STATIC_fbtl_posix" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fbtl:posix compile mode" >&5 $as_echo_n "checking for MCA component fbtl:posix compile mode... " >&6; } if test "$DIRECT_fbtl" = "posix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/fbtl/posix/Makefile" fbtl_posix_happy=no ac_fn_c_check_header_mongrel "$LINENO" "aio.h" "ac_cv_header_aio_h" "$ac_includes_default" if test "x$ac_cv_header_aio_h" = xyes; 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 LIBS_save add; 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=\"LIBS_save add\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` LIBS_save=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing aio_write" >&5 $as_echo_n "checking for library containing aio_write... " >&6; } if ${ac_cv_search_aio_write+:} 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 aio_write (); int main () { return aio_write (); ; return 0; } _ACEOF for ac_lib in '' rt; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_aio_write=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_aio_write+:} false; then : break fi done if ${ac_cv_search_aio_write+:} false; then : else ac_cv_search_aio_write=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_aio_write" >&5 $as_echo "$ac_cv_search_aio_write" >&6; } ac_res=$ac_cv_search_aio_write if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" # Found it! See if anything was added to LIBS add=`printf '%s\n' "$LIBS" | sed -e "s/$LIBS_save$//"` if test -n "$add"; 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_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 $add; 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 ${fbtl_posix_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$fbtl_posix_LIBS"; then : fbtl_posix_LIBS=$arg else fbtl_posix_LIBS="$fbtl_posix_LIBS $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 fbtl_posix_have_aio_write=1 fbtl_posix_happy="yes" else fbtl_posix_have_aio_write=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_FBTL_POSIX $fbtl_posix_have_aio_write _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 fi for ac_func in pwritev do : ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev" if test "x$ac_cv_func_pwritev" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PWRITEV 1 _ACEOF fi done for ac_func in preadv do : ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv" if test "x$ac_cv_func_preadv" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PREADV 1 _ACEOF fi done if test "$fbtl_posix_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fbtl/posix/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components posix" if test "$compile_mode" = "dso" ; then dso_components="$dso_components posix" else if test "fbtl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fbtl/posix/lib${OMPI_LIB_PREFIX}mca_fbtl_posix.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fbtl/posix/libmca_fbtl_posix.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fbtl_posix_component;" >> $outfile.extern echo " &mca_fbtl_posix_component, " >> $outfile.struct static_components="$static_components posix" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fbtl:posix can compile" >&5 $as_echo_n "checking if MCA component fbtl:posix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fbtl" = "posix" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fbtl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fbtl component posix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fbtl" = "posix" ; then as_fn_error $? "*** fbtl component posix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fbtl_posix_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fbtl_posix_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fbtl_posix_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fbtl_posix_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fbtl_posix_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fbtl_posix_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fbtl_posix_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fbtl_posix_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fbtl_posix_WRAPPER_EXTRA_CPPFLAGS ($fbtl_posix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fbtl_posix_WRAPPER_EXTRA_CPPFLAGS ($fbtl_posix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fbtl:posix can compile" >&5 $as_echo_n "checking if MCA component fbtl:posix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fbtl" = "posix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fbtl" ; then if test "$DIRECT_fbtl" = "posix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components posix" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_fbtl_posix_DSO=1 else BUILD_ompi_fbtl_posix_DSO=0 fi if test "$BUILD_ompi_fbtl_posix_DSO" = "1"; then MCA_BUILD_ompi_fbtl_posix_DSO_TRUE= MCA_BUILD_ompi_fbtl_posix_DSO_FALSE='#' else MCA_BUILD_ompi_fbtl_posix_DSO_TRUE='#' MCA_BUILD_ompi_fbtl_posix_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component fbtl:pvfs2 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/fbtl/pvfs2" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fbtl" ; then if test "$DIRECT_fbtl" = "pvfs2" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fbtl" = "1"; then : want_component=0 fi if test "$DISABLE_fbtl_pvfs2" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_fbtl" SHARED_COMPONENT="$DSO_fbtl_pvfs2" STATIC_FRAMEWORK="$STATIC_fbtl" STATIC_COMPONENT="$STATIC_fbtl_pvfs2" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fbtl:pvfs2 compile mode" >&5 $as_echo_n "checking for MCA component fbtl:pvfs2 compile mode... " >&6; } if test "$DIRECT_fbtl" = "pvfs2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/fbtl/pvfs2/Makefile" check_pvfs2_CPPFLAGS= check_pvfs2_LDFLAGS= check_pvfs2_LIBS= check_pvfs2_configuration="none" ompi_check_pvfs2_happy="yes" # Get some configuration information # Check whether --with-pvfs2 was given. if test "${with_pvfs2+set}" = set; then : withval=$with_pvfs2; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-pvfs2 value" >&5 $as_echo_n "checking --with-pvfs2 value... " >&6; } if test "$with_pvfs2" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-pvfs2)" >&5 $as_echo "simple no (specified --without-pvfs2)" >&6; } else if test "$with_pvfs2" = "yes" || test "x$with_pvfs2" = "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_pvfs2"; 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_pvfs2 not found" >&5 $as_echo "$as_me: WARNING: Directory $with_pvfs2 not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_pvfs2/include/pvfs2.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_pvfs2/include/pvfs2.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_pvfs2/include/pvfs2.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_pvfs2)" >&5 $as_echo "sanity check ok ($with_pvfs2)" >&6; } fi fi fi fi if test "$with_pvfs2" = "no"; then : ompi_check_pvfs2_happy="no" else if test -z "$with_pvfs2"; then : ompi_check_pvfs2_dir="/usr/local" else ompi_check_pvfs2_dir=$with_pvfs2 fi if test -e "$ompi_check_pvfs2_dir/lib64" ; then ompi_check_pvfs2_libdir="$ompi_check_pvfs2_dir/lib64" else ompi_check_pvfs2_libdir="$ompi_check_pvfs2_dir/lib" fi # Add correct -I and -L flags opal_check_package_fbtl_pvfs2_save_CPPFLAGS="$CPPFLAGS" opal_check_package_fbtl_pvfs2_save_LDFLAGS="$LDFLAGS" opal_check_package_fbtl_pvfs2_save_LIBS="$LIBS" opal_check_package_fbtl_pvfs2_orig_CPPFLAGS="$fbtl_pvfs2_CPPFLAGS" opal_check_package_fbtl_pvfs2_orig_LDFLAGS="$fbtl_pvfs2_LDFLAGS" opal_check_package_fbtl_pvfs2_orig_LIBS="$fbtl_pvfs2_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_pvfs2_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_pvfs2_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 pvfs2.h do : ac_fn_c_check_header_mongrel "$LINENO" "pvfs2.h" "ac_cv_header_pvfs2_h" "$ac_includes_default" if test "x$ac_cv_header_pvfs2_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PVFS2_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_pvfs2_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : fbtl_pvfs2_CPPFLAGS="$fbtl_pvfs2_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in pvfs2.h do : ac_fn_c_check_header_mongrel "$LINENO" "pvfs2.h" "ac_cv_header_pvfs2_h" "$ac_includes_default" if test "x$ac_cv_header_pvfs2_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PVFS2_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_PVFS_util_resolve opal_check_package_lib_happy="no" if test "$ompi_check_pvfs2_libdir" != ""; then : # libdir was specified - search only there fbtl_pvfs2_LDFLAGS="$fbtl_pvfs2_LDFLAGS -L$ompi_check_pvfs2_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_pvfs2_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fbtl_pvfs2_save_LDFLAGS" fbtl_pvfs2_LDFLAGS="$opal_check_package_fbtl_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fbtl_pvfs2_save_LDFLAGS" fbtl_pvfs2_LDFLAGS="$opal_check_package_fbtl_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_pvfs2_LDFLAGS="$fbtl_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fbtl_pvfs2_save_LDFLAGS" fbtl_pvfs2_LDFLAGS="$opal_check_package_fbtl_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_pvfs2_LDFLAGS="$fbtl_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fbtl_pvfs2_save_LDFLAGS" fbtl_pvfs2_LDFLAGS="$opal_check_package_fbtl_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve 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 libpvfs2 requires libnl v1 or v3" >&5 $as_echo_n "checking if libpvfs2 requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PVFS_util_resolve (void); int main(int argc, char *argv[]) { PVFS_util_resolve (); 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:304160: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpvfs2 $LIBS $fbtl_pvfs2_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpvfs2 $LIBS $fbtl_pvfs2_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:304167: \$? = $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 pvfs2" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pvfs2" >&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, libpvfs2 links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&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 pvfs2 requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pvfs2" # 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 libpvfs2 requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pvfs2" # 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_PVFS_util_resolve" != "no" && test "$ac_cv_search_PVFS_util_resolve" != "none required"; then : fbtl_pvfs2_LIBS="$ac_cv_search_PVFS_util_resolve " else fbtl_pvfs2_LIBS="" 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_PVFS_util_resolve opal_check_package_lib_happy="no" if test "$ompi_check_pvfs2_libdir" != ""; then : # libdir was specified - search only there fbtl_pvfs2_LDFLAGS="$fbtl_pvfs2_LDFLAGS -L$ompi_check_pvfs2_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_pvfs2_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fbtl_pvfs2_save_LDFLAGS" fbtl_pvfs2_LDFLAGS="$opal_check_package_fbtl_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fbtl_pvfs2_save_LDFLAGS" fbtl_pvfs2_LDFLAGS="$opal_check_package_fbtl_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_pvfs2_LDFLAGS="$fbtl_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fbtl_pvfs2_save_LDFLAGS" fbtl_pvfs2_LDFLAGS="$opal_check_package_fbtl_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fbtl_pvfs2_LDFLAGS="$fbtl_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fbtl_pvfs2_save_LDFLAGS" fbtl_pvfs2_LDFLAGS="$opal_check_package_fbtl_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve 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 libpvfs2 requires libnl v1 or v3" >&5 $as_echo_n "checking if libpvfs2 requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PVFS_util_resolve (void); int main(int argc, char *argv[]) { PVFS_util_resolve (); 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:304885: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpvfs2 $LIBS $fbtl_pvfs2_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpvfs2 $LIBS $fbtl_pvfs2_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:304892: \$? = $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 pvfs2" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pvfs2" >&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, libpvfs2 links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&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 pvfs2 requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pvfs2" # 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 libpvfs2 requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pvfs2" # 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_PVFS_util_resolve" != "no" && test "$ac_cv_search_PVFS_util_resolve" != "none required"; then : fbtl_pvfs2_LIBS="$ac_cv_search_PVFS_util_resolve " else fbtl_pvfs2_LIBS="" 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 : ompi_check_pvfs2_happy="yes" else fbtl_pvfs2_CPPFLAGS="$opal_check_package_fbtl_pvfs2_orig_CPPFLAGS" fbtl_pvfs2_LDFLAGS="$opal_check_package_fbtl_pvfs2_orig_LDFLAGS" fbtl_pvfs2_LIBS="$opal_check_package_fbtl_pvfs2_orig_LIBS" ompi_check_pvfs2_happy="no" fi CPPFLAGS="$opal_check_package_fbtl_pvfs2_save_CPPFLAGS" LDFLAGS="$opal_check_package_fbtl_pvfs2_save_LDFLAGS" LIBS="$opal_check_package_fbtl_pvfs2_save_LIBS" fi if test "$ompi_check_pvfs2_happy" = "yes"; then : fbtl_pvfs2_happy="yes" else if test ! -z "$with_pvfs2" && test "$with_pvfs2" != "no"; then : echo PVFS2 support not found fi fbtl_pvfs2_happy="no" fi if test "$fbtl_pvfs2_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build pvfs2 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fbtl/pvfs2/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components pvfs2" if test "$compile_mode" = "dso" ; then dso_components="$dso_components pvfs2" else if test "fbtl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fbtl/pvfs2/lib${OMPI_LIB_PREFIX}mca_fbtl_pvfs2.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fbtl/pvfs2/libmca_fbtl_pvfs2.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fbtl_pvfs2_component;" >> $outfile.extern echo " &mca_fbtl_pvfs2_component, " >> $outfile.struct static_components="$static_components pvfs2" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fbtl:pvfs2 can compile" >&5 $as_echo_n "checking if MCA component fbtl:pvfs2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fbtl" = "pvfs2" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fbtl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fbtl component pvfs2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fbtl" = "pvfs2" ; then as_fn_error $? "*** fbtl component pvfs2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fbtl_pvfs2_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fbtl_pvfs2_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fbtl_pvfs2_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fbtl_pvfs2_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fbtl_pvfs2_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fbtl_pvfs2_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fbtl_pvfs2_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fbtl_pvfs2_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fbtl_pvfs2_WRAPPER_EXTRA_CPPFLAGS ($fbtl_pvfs2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fbtl_pvfs2_WRAPPER_EXTRA_CPPFLAGS ($fbtl_pvfs2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fbtl:pvfs2 can compile" >&5 $as_echo_n "checking if MCA component fbtl:pvfs2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fbtl" = "pvfs2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pvfs2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pvfs2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fbtl" ; then if test "$DIRECT_fbtl" = "pvfs2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pvfs2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pvfs2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components pvfs2" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_fbtl_pvfs2_DSO=1 else BUILD_ompi_fbtl_pvfs2_DSO=0 fi if test "$BUILD_ompi_fbtl_pvfs2_DSO" = "1"; then MCA_BUILD_ompi_fbtl_pvfs2_DSO_TRUE= MCA_BUILD_ompi_fbtl_pvfs2_DSO_FALSE='#' else MCA_BUILD_ompi_fbtl_pvfs2_DSO_TRUE='#' MCA_BUILD_ompi_fbtl_pvfs2_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "$want_io_ompio" != "0"; then : for component_path in $srcdir/ompi/mca/fbtl/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component fbtl:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/fbtl/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fbtl" ; then if test "$DIRECT_fbtl" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fbtl" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_fbtl_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_fbtl" str="SHARED_COMPONENT=\$DSO_fbtl_$component" eval $str STATIC_FRAMEWORK="$STATIC_fbtl" str="STATIC_COMPONENT=\$STATIC_fbtl_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fbtl:$component compile mode" >&5 $as_echo_n "checking for MCA component fbtl:$component compile mode... " >&6; } if test "$DIRECT_fbtl" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/fbtl/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/fbtl/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/fbtl/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then fbtl_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then fbtl_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fbtl/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "fbtl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fbtl/$component/lib${OMPI_LIB_PREFIX}mca_fbtl_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fbtl/$component/libmca_fbtl_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fbtl_$component_component;" >> $outfile.extern echo " &mca_fbtl_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fbtl:$component can compile" >&5 $as_echo_n "checking if MCA component fbtl:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fbtl" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fbtl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fbtl component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fbtl" = "$component" ; then as_fn_error $? "*** fbtl component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$fbtl_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$fbtl_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fbtl:$component can compile" >&5 $as_echo_n "checking if MCA component fbtl:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fbtl" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fbtl" ; then if test "$DIRECT_fbtl" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_fbtl_ALL_COMPONENTS="$all_components" MCA_ompi_fbtl_STATIC_COMPONENTS="$static_components" MCA_ompi_fbtl_DSO_COMPONENTS="$dso_components" MCA_ompi_fbtl_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_fbtl_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_fbtl_ALL_SUBDIRS="$MCA_ompi_fbtl_ALL_SUBDIRS mca/fbtl/$item" done MCA_ompi_fbtl_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_fbtl_STATIC_SUBDIRS="$MCA_ompi_fbtl_STATIC_SUBDIRS mca/fbtl/$item" done MCA_ompi_fbtl_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_fbtl_DSO_SUBDIRS="$MCA_ompi_fbtl_DSO_SUBDIRS mca/fbtl/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "fbtl" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # 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 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS fcoll" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/fcoll" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_fcoll_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_fcoll_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_fcoll_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/fcoll/libmca_fcoll.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_fcoll_STATIC_LTLIBS)" # 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 want_io_ompio; 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=\"want_io_ompio\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test "$enable_io_ompio" != "no"; then : want_io_ompio=1 else want_io_ompio=0 fi opal_show_subsubtitle "Configuring MCA framework fcoll" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/fcoll/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/fcoll/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework fcoll" >&5 $as_echo_n "checking for no configure components in framework fcoll... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic, dynamic_gen2, individual, two_phase, vulcan" >&5 $as_echo "dynamic, dynamic_gen2, individual, two_phase, vulcan" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework fcoll" >&5 $as_echo_n "checking for m4 configure components in framework fcoll... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component fcoll:dynamic (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=$want_io_ompio" component_path="$srcdir/ompi/mca/fcoll/dynamic" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "dynamic" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fcoll" = "1"; then : want_component=0 fi if test "$DISABLE_fcoll_dynamic" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$want_io_ompio else should_build=0 fi SHARED_FRAMEWORK="$DSO_fcoll" SHARED_COMPONENT="$DSO_fcoll_dynamic" STATIC_FRAMEWORK="$STATIC_fcoll" STATIC_COMPONENT="$STATIC_fcoll_dynamic" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fcoll:dynamic compile mode" >&5 $as_echo_n "checking for MCA component fcoll:dynamic compile mode... " >&6; } if test "$DIRECT_fcoll" = "dynamic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fcoll/dynamic/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components dynamic" if test "$compile_mode" = "dso" ; then dso_components="$dso_components dynamic" else if test "fcoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fcoll/dynamic/lib${OMPI_LIB_PREFIX}mca_fcoll_dynamic.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fcoll/dynamic/libmca_fcoll_dynamic.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fcoll_dynamic_component;" >> $outfile.extern echo " &mca_fcoll_dynamic_component, " >> $outfile.struct static_components="$static_components dynamic" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:dynamic can compile" >&5 $as_echo_n "checking if MCA component fcoll:dynamic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fcoll" = "dynamic" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fcoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fcoll component dynamic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fcoll" = "dynamic" ; then as_fn_error $? "*** fcoll component dynamic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fcoll_dynamic_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fcoll_dynamic_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fcoll_dynamic_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fcoll_dynamic_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fcoll_dynamic_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fcoll_dynamic_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fcoll_dynamic_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fcoll_dynamic_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fcoll_dynamic_WRAPPER_EXTRA_CPPFLAGS ($fcoll_dynamic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fcoll_dynamic_WRAPPER_EXTRA_CPPFLAGS ($fcoll_dynamic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:dynamic can compile" >&5 $as_echo_n "checking if MCA component fcoll:dynamic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fcoll" = "dynamic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dynamic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"dynamic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "dynamic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dynamic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"dynamic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components dynamic" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_fcoll_dynamic_DSO=1 else BUILD_ompi_fcoll_dynamic_DSO=0 fi if test "$BUILD_ompi_fcoll_dynamic_DSO" = "1"; then MCA_BUILD_ompi_fcoll_dynamic_DSO_TRUE= MCA_BUILD_ompi_fcoll_dynamic_DSO_FALSE='#' else MCA_BUILD_ompi_fcoll_dynamic_DSO_TRUE='#' MCA_BUILD_ompi_fcoll_dynamic_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/fcoll/dynamic/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component fcoll:dynamic_gen2 (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=$want_io_ompio" component_path="$srcdir/ompi/mca/fcoll/dynamic_gen2" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "dynamic_gen2" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fcoll" = "1"; then : want_component=0 fi if test "$DISABLE_fcoll_dynamic_gen2" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$want_io_ompio else should_build=0 fi SHARED_FRAMEWORK="$DSO_fcoll" SHARED_COMPONENT="$DSO_fcoll_dynamic_gen2" STATIC_FRAMEWORK="$STATIC_fcoll" STATIC_COMPONENT="$STATIC_fcoll_dynamic_gen2" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fcoll:dynamic_gen2 compile mode" >&5 $as_echo_n "checking for MCA component fcoll:dynamic_gen2 compile mode... " >&6; } if test "$DIRECT_fcoll" = "dynamic_gen2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fcoll/dynamic_gen2/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components dynamic_gen2" if test "$compile_mode" = "dso" ; then dso_components="$dso_components dynamic_gen2" else if test "fcoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fcoll/dynamic_gen2/lib${OMPI_LIB_PREFIX}mca_fcoll_dynamic_gen2.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fcoll/dynamic_gen2/libmca_fcoll_dynamic_gen2.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fcoll_dynamic_gen2_component;" >> $outfile.extern echo " &mca_fcoll_dynamic_gen2_component, " >> $outfile.struct static_components="$static_components dynamic_gen2" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:dynamic_gen2 can compile" >&5 $as_echo_n "checking if MCA component fcoll:dynamic_gen2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fcoll" = "dynamic_gen2" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fcoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fcoll component dynamic_gen2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fcoll" = "dynamic_gen2" ; then as_fn_error $? "*** fcoll component dynamic_gen2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fcoll_dynamic_gen2_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fcoll_dynamic_gen2_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fcoll_dynamic_gen2_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fcoll_dynamic_gen2_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fcoll_dynamic_gen2_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fcoll_dynamic_gen2_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fcoll_dynamic_gen2_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fcoll_dynamic_gen2_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fcoll_dynamic_gen2_WRAPPER_EXTRA_CPPFLAGS ($fcoll_dynamic_gen2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fcoll_dynamic_gen2_WRAPPER_EXTRA_CPPFLAGS ($fcoll_dynamic_gen2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:dynamic_gen2 can compile" >&5 $as_echo_n "checking if MCA component fcoll:dynamic_gen2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fcoll" = "dynamic_gen2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dynamic_gen2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"dynamic_gen2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "dynamic_gen2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dynamic_gen2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"dynamic_gen2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components dynamic_gen2" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_fcoll_dynamic_gen2_DSO=1 else BUILD_ompi_fcoll_dynamic_gen2_DSO=0 fi if test "$BUILD_ompi_fcoll_dynamic_gen2_DSO" = "1"; then MCA_BUILD_ompi_fcoll_dynamic_gen2_DSO_TRUE= MCA_BUILD_ompi_fcoll_dynamic_gen2_DSO_FALSE='#' else MCA_BUILD_ompi_fcoll_dynamic_gen2_DSO_TRUE='#' MCA_BUILD_ompi_fcoll_dynamic_gen2_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/fcoll/dynamic_gen2/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component fcoll:individual (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=$want_io_ompio" component_path="$srcdir/ompi/mca/fcoll/individual" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "individual" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fcoll" = "1"; then : want_component=0 fi if test "$DISABLE_fcoll_individual" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$want_io_ompio else should_build=0 fi SHARED_FRAMEWORK="$DSO_fcoll" SHARED_COMPONENT="$DSO_fcoll_individual" STATIC_FRAMEWORK="$STATIC_fcoll" STATIC_COMPONENT="$STATIC_fcoll_individual" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fcoll:individual compile mode" >&5 $as_echo_n "checking for MCA component fcoll:individual compile mode... " >&6; } if test "$DIRECT_fcoll" = "individual" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fcoll/individual/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components individual" if test "$compile_mode" = "dso" ; then dso_components="$dso_components individual" else if test "fcoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fcoll/individual/lib${OMPI_LIB_PREFIX}mca_fcoll_individual.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fcoll/individual/libmca_fcoll_individual.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fcoll_individual_component;" >> $outfile.extern echo " &mca_fcoll_individual_component, " >> $outfile.struct static_components="$static_components individual" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:individual can compile" >&5 $as_echo_n "checking if MCA component fcoll:individual can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fcoll" = "individual" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fcoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fcoll component individual was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fcoll" = "individual" ; then as_fn_error $? "*** fcoll component individual was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fcoll_individual_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fcoll_individual_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fcoll_individual_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fcoll_individual_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fcoll_individual_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fcoll_individual_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fcoll_individual_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fcoll_individual_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fcoll_individual_WRAPPER_EXTRA_CPPFLAGS ($fcoll_individual_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fcoll_individual_WRAPPER_EXTRA_CPPFLAGS ($fcoll_individual_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:individual can compile" >&5 $as_echo_n "checking if MCA component fcoll:individual can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fcoll" = "individual" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"individual\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"individual\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "individual" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"individual\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"individual\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components individual" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_fcoll_individual_DSO=1 else BUILD_ompi_fcoll_individual_DSO=0 fi if test "$BUILD_ompi_fcoll_individual_DSO" = "1"; then MCA_BUILD_ompi_fcoll_individual_DSO_TRUE= MCA_BUILD_ompi_fcoll_individual_DSO_FALSE='#' else MCA_BUILD_ompi_fcoll_individual_DSO_TRUE='#' MCA_BUILD_ompi_fcoll_individual_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/fcoll/individual/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component fcoll:two_phase (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=$want_io_ompio" component_path="$srcdir/ompi/mca/fcoll/two_phase" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "two_phase" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fcoll" = "1"; then : want_component=0 fi if test "$DISABLE_fcoll_two_phase" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$want_io_ompio else should_build=0 fi SHARED_FRAMEWORK="$DSO_fcoll" SHARED_COMPONENT="$DSO_fcoll_two_phase" STATIC_FRAMEWORK="$STATIC_fcoll" STATIC_COMPONENT="$STATIC_fcoll_two_phase" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fcoll:two_phase compile mode" >&5 $as_echo_n "checking for MCA component fcoll:two_phase compile mode... " >&6; } if test "$DIRECT_fcoll" = "two_phase" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fcoll/two_phase/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components two_phase" if test "$compile_mode" = "dso" ; then dso_components="$dso_components two_phase" else if test "fcoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fcoll/two_phase/lib${OMPI_LIB_PREFIX}mca_fcoll_two_phase.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fcoll/two_phase/libmca_fcoll_two_phase.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fcoll_two_phase_component;" >> $outfile.extern echo " &mca_fcoll_two_phase_component, " >> $outfile.struct static_components="$static_components two_phase" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:two_phase can compile" >&5 $as_echo_n "checking if MCA component fcoll:two_phase can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fcoll" = "two_phase" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fcoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fcoll component two_phase was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fcoll" = "two_phase" ; then as_fn_error $? "*** fcoll component two_phase was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fcoll_two_phase_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fcoll_two_phase_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fcoll_two_phase_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fcoll_two_phase_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fcoll_two_phase_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fcoll_two_phase_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fcoll_two_phase_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fcoll_two_phase_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fcoll_two_phase_WRAPPER_EXTRA_CPPFLAGS ($fcoll_two_phase_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fcoll_two_phase_WRAPPER_EXTRA_CPPFLAGS ($fcoll_two_phase_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:two_phase can compile" >&5 $as_echo_n "checking if MCA component fcoll:two_phase can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fcoll" = "two_phase" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"two_phase\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"two_phase\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "two_phase" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"two_phase\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"two_phase\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components two_phase" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_fcoll_two_phase_DSO=1 else BUILD_ompi_fcoll_two_phase_DSO=0 fi if test "$BUILD_ompi_fcoll_two_phase_DSO" = "1"; then MCA_BUILD_ompi_fcoll_two_phase_DSO_TRUE= MCA_BUILD_ompi_fcoll_two_phase_DSO_FALSE='#' else MCA_BUILD_ompi_fcoll_two_phase_DSO_TRUE='#' MCA_BUILD_ompi_fcoll_two_phase_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/fcoll/two_phase/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component fcoll:vulcan (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=$want_io_ompio" component_path="$srcdir/ompi/mca/fcoll/vulcan" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "vulcan" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fcoll" = "1"; then : want_component=0 fi if test "$DISABLE_fcoll_vulcan" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$want_io_ompio else should_build=0 fi SHARED_FRAMEWORK="$DSO_fcoll" SHARED_COMPONENT="$DSO_fcoll_vulcan" STATIC_FRAMEWORK="$STATIC_fcoll" STATIC_COMPONENT="$STATIC_fcoll_vulcan" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fcoll:vulcan compile mode" >&5 $as_echo_n "checking for MCA component fcoll:vulcan compile mode... " >&6; } if test "$DIRECT_fcoll" = "vulcan" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fcoll/vulcan/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components vulcan" if test "$compile_mode" = "dso" ; then dso_components="$dso_components vulcan" else if test "fcoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fcoll/vulcan/lib${OMPI_LIB_PREFIX}mca_fcoll_vulcan.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fcoll/vulcan/libmca_fcoll_vulcan.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fcoll_vulcan_component;" >> $outfile.extern echo " &mca_fcoll_vulcan_component, " >> $outfile.struct static_components="$static_components vulcan" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:vulcan can compile" >&5 $as_echo_n "checking if MCA component fcoll:vulcan can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fcoll" = "vulcan" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fcoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fcoll component vulcan was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fcoll" = "vulcan" ; then as_fn_error $? "*** fcoll component vulcan was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fcoll_vulcan_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fcoll_vulcan_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fcoll_vulcan_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fcoll_vulcan_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fcoll_vulcan_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fcoll_vulcan_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fcoll_vulcan_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fcoll_vulcan_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fcoll_vulcan_WRAPPER_EXTRA_CPPFLAGS ($fcoll_vulcan_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fcoll_vulcan_WRAPPER_EXTRA_CPPFLAGS ($fcoll_vulcan_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:vulcan can compile" >&5 $as_echo_n "checking if MCA component fcoll:vulcan can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fcoll" = "vulcan" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"vulcan\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"vulcan\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "vulcan" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"vulcan\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"vulcan\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components vulcan" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_fcoll_vulcan_DSO=1 else BUILD_ompi_fcoll_vulcan_DSO=0 fi if test "$BUILD_ompi_fcoll_vulcan_DSO" = "1"; then MCA_BUILD_ompi_fcoll_vulcan_DSO_TRUE= MCA_BUILD_ompi_fcoll_vulcan_DSO_FALSE='#' else MCA_BUILD_ompi_fcoll_vulcan_DSO_TRUE='#' MCA_BUILD_ompi_fcoll_vulcan_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/fcoll/vulcan/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=$want_io_ompio components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "$want_io_ompio" != "0"; then : for component_path in $srcdir/ompi/mca/fcoll/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component fcoll:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/fcoll/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fcoll" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_fcoll_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_fcoll" str="SHARED_COMPONENT=\$DSO_fcoll_$component" eval $str STATIC_FRAMEWORK="$STATIC_fcoll" str="STATIC_COMPONENT=\$STATIC_fcoll_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fcoll:$component compile mode" >&5 $as_echo_n "checking for MCA component fcoll:$component compile mode... " >&6; } if test "$DIRECT_fcoll" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/fcoll/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/fcoll/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/fcoll/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then fcoll_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then fcoll_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fcoll/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "fcoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fcoll/$component/lib${OMPI_LIB_PREFIX}mca_fcoll_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fcoll/$component/libmca_fcoll_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fcoll_$component_component;" >> $outfile.extern echo " &mca_fcoll_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:$component can compile" >&5 $as_echo_n "checking if MCA component fcoll:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fcoll" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fcoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fcoll component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fcoll" = "$component" ; then as_fn_error $? "*** fcoll component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$fcoll_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$fcoll_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fcoll:$component can compile" >&5 $as_echo_n "checking if MCA component fcoll:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fcoll" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fcoll" ; then if test "$DIRECT_fcoll" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_fcoll_ALL_COMPONENTS="$all_components" MCA_ompi_fcoll_STATIC_COMPONENTS="$static_components" MCA_ompi_fcoll_DSO_COMPONENTS="$dso_components" MCA_ompi_fcoll_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_fcoll_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_fcoll_ALL_SUBDIRS="$MCA_ompi_fcoll_ALL_SUBDIRS mca/fcoll/$item" done MCA_ompi_fcoll_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_fcoll_STATIC_SUBDIRS="$MCA_ompi_fcoll_STATIC_SUBDIRS mca/fcoll/$item" done MCA_ompi_fcoll_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_fcoll_DSO_SUBDIRS="$MCA_ompi_fcoll_DSO_SUBDIRS mca/fcoll/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "fcoll" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # 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 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS fs" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/fs" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_fs_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_fs_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_fs_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/fs/libmca_fs.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_fs_STATIC_LTLIBS)" # 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 want_io_ompio; 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=\"want_io_ompio\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test "$enable_io_ompio" != "no"; then : want_io_ompio=1 else want_io_ompio=0 fi opal_show_subsubtitle "Configuring MCA framework fs" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/fs/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/fs/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework fs" >&5 $as_echo_n "checking for no configure components in framework fs... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework fs" >&5 $as_echo_n "checking for m4 configure components in framework fs... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: gpfs, ime, lustre, pvfs2, ufs" >&5 $as_echo "gpfs, ime, lustre, pvfs2, ufs" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=$want_io_ompio components_last_result=0 opal_show_subsubsubtitle "MCA component fs:gpfs (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/fs/gpfs" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "gpfs" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fs" = "1"; then : want_component=0 fi if test "$DISABLE_fs_gpfs" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_fs" SHARED_COMPONENT="$DSO_fs_gpfs" STATIC_FRAMEWORK="$STATIC_fs" STATIC_COMPONENT="$STATIC_fs_gpfs" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fs:gpfs compile mode" >&5 $as_echo_n "checking for MCA component fs:gpfs compile mode... " >&6; } if test "$DIRECT_fs" = "gpfs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/fs/gpfs/Makefile" check_gpfs_CPPFLAGS= check_gpfs_LDFLAGS= check_gpfs_LIBS= check_gpfs_save_LIBS="$LIBS" check_gpfs_save_LDFLAGS="$LDFLAGS" check_gpfs_save_CPPFLAGS="$CPPFLAGS" check_gpfs_configuration="none" ompi_check_gpfs_happy="yes" # Get some configuration information # Check whether --with-gpfs was given. if test "${with_gpfs+set}" = set; then : withval=$with_gpfs; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-gpfs value" >&5 $as_echo_n "checking --with-gpfs value... " >&6; } if test "$with_gpfs" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-gpfs)" >&5 $as_echo "simple no (specified --without-gpfs)" >&6; } else if test "$with_gpfs" = "yes" || test "x$with_gpfs" = "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_gpfs"; 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_gpfs not found" >&5 $as_echo "$as_me: WARNING: Directory $with_gpfs not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_gpfs/include/gpfs.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_gpfs/include/gpfs.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_gpfs/include/gpfs.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_gpfs)" >&5 $as_echo "sanity check ok ($with_gpfs)" >&6; } fi fi fi fi if test "$with_gpfs" = "no"; then : ompi_check_gpfs_happy="no" else if test -z "$with_gpfs" || test "$with_gpfs" = "yes"; then : ompi_check_gpfs_dir="/usr" else ompi_check_gpfs_dir=$with_gpfs fi if test -e "$ompi_check_gpfs_dir/lib64" ; then ompi_check_gpfs_libdir="$ompi_check_gpfs_dir/lib64" else ompi_check_gpfs_libdir="$ompi_check_gpfs_dir/lib" fi # Add correct -I and -L flags opal_check_package_fs_gpfs_save_CPPFLAGS="$CPPFLAGS" opal_check_package_fs_gpfs_save_LDFLAGS="$LDFLAGS" opal_check_package_fs_gpfs_save_LIBS="$LIBS" opal_check_package_fs_gpfs_orig_CPPFLAGS="$fs_gpfs_CPPFLAGS" opal_check_package_fs_gpfs_orig_LDFLAGS="$fs_gpfs_LDFLAGS" opal_check_package_fs_gpfs_orig_LIBS="$fs_gpfs_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_gpfs_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_gpfs_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 gpfs.h do : ac_fn_c_check_header_mongrel "$LINENO" "gpfs.h" "ac_cv_header_gpfs_h" "$ac_includes_default" if test "x$ac_cv_header_gpfs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GPFS_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_gpfs_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : fs_gpfs_CPPFLAGS="$fs_gpfs_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in gpfs.h do : ac_fn_c_check_header_mongrel "$LINENO" "gpfs.h" "ac_cv_header_gpfs_h" "$ac_includes_default" if test "x$ac_cv_header_gpfs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GPFS_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_gpfs_lib_init opal_check_package_lib_happy="no" if test "$ompi_check_gpfs_libdir" != ""; then : # libdir was specified - search only there fs_gpfs_LDFLAGS="$fs_gpfs_LDFLAGS -L$ompi_check_gpfs_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_gpfs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gpfs_lib_init" >&5 $as_echo_n "checking for library containing gpfs_lib_init... " >&6; } if ${ac_cv_search_gpfs_lib_init+:} 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 gpfs_lib_init (); int main () { return gpfs_lib_init (); ; return 0; } _ACEOF for ac_lib in '' gpfs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gpfs_lib_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gpfs_lib_init+:} false; then : break fi done if ${ac_cv_search_gpfs_lib_init+:} false; then : else ac_cv_search_gpfs_lib_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gpfs_lib_init" >&5 $as_echo "$ac_cv_search_gpfs_lib_init" >&6; } ac_res=$ac_cv_search_gpfs_lib_init 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_fs_gpfs_save_LDFLAGS" fs_gpfs_LDFLAGS="$opal_check_package_fs_gpfs_orig_LDFLAGS" unset ac_cv_search_gpfs_lib_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_gpfs_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 gpfs_lib_init" >&5 $as_echo_n "checking for library containing gpfs_lib_init... " >&6; } if ${ac_cv_search_gpfs_lib_init+:} 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 gpfs_lib_init (); int main () { return gpfs_lib_init (); ; return 0; } _ACEOF for ac_lib in '' gpfs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gpfs_lib_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gpfs_lib_init+:} false; then : break fi done if ${ac_cv_search_gpfs_lib_init+:} false; then : else ac_cv_search_gpfs_lib_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gpfs_lib_init" >&5 $as_echo "$ac_cv_search_gpfs_lib_init" >&6; } ac_res=$ac_cv_search_gpfs_lib_init 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_fs_gpfs_save_LDFLAGS" fs_gpfs_LDFLAGS="$opal_check_package_fs_gpfs_orig_LDFLAGS" unset ac_cv_search_gpfs_lib_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_gpfs_LDFLAGS="$fs_gpfs_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 gpfs_lib_init" >&5 $as_echo_n "checking for library containing gpfs_lib_init... " >&6; } if ${ac_cv_search_gpfs_lib_init+:} 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 gpfs_lib_init (); int main () { return gpfs_lib_init (); ; return 0; } _ACEOF for ac_lib in '' gpfs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gpfs_lib_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gpfs_lib_init+:} false; then : break fi done if ${ac_cv_search_gpfs_lib_init+:} false; then : else ac_cv_search_gpfs_lib_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gpfs_lib_init" >&5 $as_echo "$ac_cv_search_gpfs_lib_init" >&6; } ac_res=$ac_cv_search_gpfs_lib_init 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_fs_gpfs_save_LDFLAGS" fs_gpfs_LDFLAGS="$opal_check_package_fs_gpfs_orig_LDFLAGS" unset ac_cv_search_gpfs_lib_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_gpfs_LDFLAGS="$fs_gpfs_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 gpfs_lib_init" >&5 $as_echo_n "checking for library containing gpfs_lib_init... " >&6; } if ${ac_cv_search_gpfs_lib_init+:} 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 gpfs_lib_init (); int main () { return gpfs_lib_init (); ; return 0; } _ACEOF for ac_lib in '' gpfs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gpfs_lib_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gpfs_lib_init+:} false; then : break fi done if ${ac_cv_search_gpfs_lib_init+:} false; then : else ac_cv_search_gpfs_lib_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gpfs_lib_init" >&5 $as_echo "$ac_cv_search_gpfs_lib_init" >&6; } ac_res=$ac_cv_search_gpfs_lib_init 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_fs_gpfs_save_LDFLAGS" fs_gpfs_LDFLAGS="$opal_check_package_fs_gpfs_orig_LDFLAGS" unset ac_cv_search_gpfs_lib_init 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 libgpfs requires libnl v1 or v3" >&5 $as_echo_n "checking if libgpfs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void gpfs_lib_init (void); int main(int argc, char *argv[]) { gpfs_lib_init (); 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:311294: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lgpfs $LIBS $fs_gpfs_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lgpfs $LIBS $fs_gpfs_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:311301: \$? = $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 gpfs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib gpfs" >&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, libgpfs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libgpfs 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 libgpfs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libgpfs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libgpfs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libgpfs." >&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 gpfs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas gpfs 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 libgpfs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libgpfs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libgpfs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libgpfs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs gpfs" # 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 libgpfs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libgpfs 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 libgpfs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libgpfs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libgpfs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libgpfs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs gpfs" # 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_gpfs_lib_init" != "no" && test "$ac_cv_search_gpfs_lib_init" != "none required"; then : fs_gpfs_LIBS="$ac_cv_search_gpfs_lib_init " else fs_gpfs_LIBS="" 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_gpfs_lib_init opal_check_package_lib_happy="no" if test "$ompi_check_gpfs_libdir" != ""; then : # libdir was specified - search only there fs_gpfs_LDFLAGS="$fs_gpfs_LDFLAGS -L$ompi_check_gpfs_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_gpfs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gpfs_lib_init" >&5 $as_echo_n "checking for library containing gpfs_lib_init... " >&6; } if ${ac_cv_search_gpfs_lib_init+:} 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 gpfs_lib_init (); int main () { return gpfs_lib_init (); ; return 0; } _ACEOF for ac_lib in '' gpfs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gpfs_lib_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gpfs_lib_init+:} false; then : break fi done if ${ac_cv_search_gpfs_lib_init+:} false; then : else ac_cv_search_gpfs_lib_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gpfs_lib_init" >&5 $as_echo "$ac_cv_search_gpfs_lib_init" >&6; } ac_res=$ac_cv_search_gpfs_lib_init 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_fs_gpfs_save_LDFLAGS" fs_gpfs_LDFLAGS="$opal_check_package_fs_gpfs_orig_LDFLAGS" unset ac_cv_search_gpfs_lib_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_gpfs_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 gpfs_lib_init" >&5 $as_echo_n "checking for library containing gpfs_lib_init... " >&6; } if ${ac_cv_search_gpfs_lib_init+:} 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 gpfs_lib_init (); int main () { return gpfs_lib_init (); ; return 0; } _ACEOF for ac_lib in '' gpfs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gpfs_lib_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gpfs_lib_init+:} false; then : break fi done if ${ac_cv_search_gpfs_lib_init+:} false; then : else ac_cv_search_gpfs_lib_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gpfs_lib_init" >&5 $as_echo "$ac_cv_search_gpfs_lib_init" >&6; } ac_res=$ac_cv_search_gpfs_lib_init 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_fs_gpfs_save_LDFLAGS" fs_gpfs_LDFLAGS="$opal_check_package_fs_gpfs_orig_LDFLAGS" unset ac_cv_search_gpfs_lib_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_gpfs_LDFLAGS="$fs_gpfs_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 gpfs_lib_init" >&5 $as_echo_n "checking for library containing gpfs_lib_init... " >&6; } if ${ac_cv_search_gpfs_lib_init+:} 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 gpfs_lib_init (); int main () { return gpfs_lib_init (); ; return 0; } _ACEOF for ac_lib in '' gpfs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gpfs_lib_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gpfs_lib_init+:} false; then : break fi done if ${ac_cv_search_gpfs_lib_init+:} false; then : else ac_cv_search_gpfs_lib_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gpfs_lib_init" >&5 $as_echo "$ac_cv_search_gpfs_lib_init" >&6; } ac_res=$ac_cv_search_gpfs_lib_init 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_fs_gpfs_save_LDFLAGS" fs_gpfs_LDFLAGS="$opal_check_package_fs_gpfs_orig_LDFLAGS" unset ac_cv_search_gpfs_lib_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_gpfs_LDFLAGS="$fs_gpfs_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 gpfs_lib_init" >&5 $as_echo_n "checking for library containing gpfs_lib_init... " >&6; } if ${ac_cv_search_gpfs_lib_init+:} 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 gpfs_lib_init (); int main () { return gpfs_lib_init (); ; return 0; } _ACEOF for ac_lib in '' gpfs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gpfs_lib_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gpfs_lib_init+:} false; then : break fi done if ${ac_cv_search_gpfs_lib_init+:} false; then : else ac_cv_search_gpfs_lib_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gpfs_lib_init" >&5 $as_echo "$ac_cv_search_gpfs_lib_init" >&6; } ac_res=$ac_cv_search_gpfs_lib_init 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_fs_gpfs_save_LDFLAGS" fs_gpfs_LDFLAGS="$opal_check_package_fs_gpfs_orig_LDFLAGS" unset ac_cv_search_gpfs_lib_init 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 libgpfs requires libnl v1 or v3" >&5 $as_echo_n "checking if libgpfs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void gpfs_lib_init (void); int main(int argc, char *argv[]) { gpfs_lib_init (); 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:312019: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lgpfs $LIBS $fs_gpfs_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lgpfs $LIBS $fs_gpfs_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:312026: \$? = $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 gpfs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib gpfs" >&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, libgpfs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libgpfs 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 libgpfs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libgpfs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libgpfs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libgpfs." >&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 gpfs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas gpfs 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 libgpfs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libgpfs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libgpfs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libgpfs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs gpfs" # 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 libgpfs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libgpfs 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 libgpfs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libgpfs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libgpfs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libgpfs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs gpfs" # 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_gpfs_lib_init" != "no" && test "$ac_cv_search_gpfs_lib_init" != "none required"; then : fs_gpfs_LIBS="$ac_cv_search_gpfs_lib_init " else fs_gpfs_LIBS="" 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 : ompi_check_gpfs_happy="yes" else fs_gpfs_CPPFLAGS="$opal_check_package_fs_gpfs_orig_CPPFLAGS" fs_gpfs_LDFLAGS="$opal_check_package_fs_gpfs_orig_LDFLAGS" fs_gpfs_LIBS="$opal_check_package_fs_gpfs_orig_LIBS" ompi_check_gpfs_happy="no" fi CPPFLAGS="$opal_check_package_fs_gpfs_save_CPPFLAGS" LDFLAGS="$opal_check_package_fs_gpfs_save_LDFLAGS" LIBS="$opal_check_package_fs_gpfs_save_LIBS" fi if test "$ompi_check_gpfs_happy" = "yes"; then : fs_gpfs_happy="yes" else if test ! -z "$with_gpfs" && test "$with_gpfs" != "no"; then : as_fn_error $? "GPFS support requested but not found. Aborting" "$LINENO" 5 fi fs_gpfs_happy="no" fi if test "$fs_gpfs_happy" = "yes"; then : fs_gpfs_WRAPPER_EXTRA_LDFLAGS="$fs_gpfs_LDFLAGS" fs_gpfs_WRAPPER_EXTRA_LIBS="$fs_gpfs_LIBS" should_build=$should_build else should_build=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 OMPIO File Systems | tr ' ' '_') ompi_summary_line="IBM Spectrum Scale/GPFS: $fs_gpfs_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 # substitute in the things needed to build gpfs opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fs/gpfs/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components gpfs" if test "$compile_mode" = "dso" ; then dso_components="$dso_components gpfs" else if test "fs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fs/gpfs/lib${OMPI_LIB_PREFIX}mca_fs_gpfs.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fs/gpfs/libmca_fs_gpfs.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fs_gpfs_component;" >> $outfile.extern echo " &mca_fs_gpfs_component, " >> $outfile.struct static_components="$static_components gpfs" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:gpfs can compile" >&5 $as_echo_n "checking if MCA component fs:gpfs can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fs" = "gpfs" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fs component gpfs was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fs" = "gpfs" ; then as_fn_error $? "*** fs component gpfs was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fs_gpfs_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fs_gpfs_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fs_gpfs_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fs_gpfs_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fs_gpfs_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fs_gpfs_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fs_gpfs_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fs_gpfs_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fs_gpfs_WRAPPER_EXTRA_CPPFLAGS ($fs_gpfs_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fs_gpfs_WRAPPER_EXTRA_CPPFLAGS ($fs_gpfs_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:gpfs can compile" >&5 $as_echo_n "checking if MCA component fs:gpfs can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fs" = "gpfs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gpfs\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"gpfs\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "gpfs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"gpfs\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"gpfs\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components gpfs" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_fs_gpfs_DSO=1 else BUILD_ompi_fs_gpfs_DSO=0 fi if test "$BUILD_ompi_fs_gpfs_DSO" = "1"; then MCA_BUILD_ompi_fs_gpfs_DSO_TRUE= MCA_BUILD_ompi_fs_gpfs_DSO_FALSE='#' else MCA_BUILD_ompi_fs_gpfs_DSO_TRUE='#' MCA_BUILD_ompi_fs_gpfs_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component fs:ime (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/fs/ime" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "ime" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fs" = "1"; then : want_component=0 fi if test "$DISABLE_fs_ime" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_fs" SHARED_COMPONENT="$DSO_fs_ime" STATIC_FRAMEWORK="$STATIC_fs" STATIC_COMPONENT="$STATIC_fs_ime" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fs:ime compile mode" >&5 $as_echo_n "checking for MCA component fs:ime compile mode... " >&6; } if test "$DIRECT_fs" = "ime" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/fs/ime/Makefile" check_ime_CPPFLAGS= check_ime_LDFLAGS= check_ime_LIBS= check_ime_configuration="none" ompi_check_ime_happy="yes" # Get some configuration information # Check whether --with-ime was given. if test "${with_ime+set}" = set; then : withval=$with_ime; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ime value" >&5 $as_echo_n "checking --with-ime value... " >&6; } if test "$with_ime" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ime)" >&5 $as_echo "simple no (specified --without-ime)" >&6; } else if test "$with_ime" = "yes" || test "x$with_ime" = "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_ime"; 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_ime not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ime not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ime/include/ime_native.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_ime/include/ime_native.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ime/include/ime_native.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ime)" >&5 $as_echo "sanity check ok ($with_ime)" >&6; } fi fi fi fi if test "$with_ime" = "no"; then : ompi_check_ime_happy="no" else if test -z "$with_ime"; then : ompi_check_ime_dir="/usr/local" else ompi_check_ime_dir=$with_ime fi if test -e "$ompi_check_ime_dir/lib64" ; then ompi_check_ime_libdir="$ompi_check_ime_dir/lib64" else ompi_check_ime_libdir="$ompi_check_ime_dir/lib" fi # Add correct -I and -L flags opal_check_package_fs_ime_save_CPPFLAGS="$CPPFLAGS" opal_check_package_fs_ime_save_LDFLAGS="$LDFLAGS" opal_check_package_fs_ime_save_LIBS="$LIBS" opal_check_package_fs_ime_orig_CPPFLAGS="$fs_ime_CPPFLAGS" opal_check_package_fs_ime_orig_LDFLAGS="$fs_ime_LDFLAGS" opal_check_package_fs_ime_orig_LIBS="$fs_ime_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_ime_native_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ime_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 ime_native.h do : ac_fn_c_check_header_mongrel "$LINENO" "ime_native.h" "ac_cv_header_ime_native_h" "$ac_includes_default" if test "x$ac_cv_header_ime_native_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IME_NATIVE_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_ime_native_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : fs_ime_CPPFLAGS="$fs_ime_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ime_native.h do : ac_fn_c_check_header_mongrel "$LINENO" "ime_native.h" "ac_cv_header_ime_native_h" "$ac_includes_default" if test "x$ac_cv_header_ime_native_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IME_NATIVE_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_ime_client_native2_init opal_check_package_lib_happy="no" if test "$ompi_check_ime_libdir" != ""; then : # libdir was specified - search only there fs_ime_LDFLAGS="$fs_ime_LDFLAGS -L$ompi_check_ime_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ime_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_ime_LDFLAGS="$fs_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_ime_LDFLAGS="$fs_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init 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 libim_client requires libnl v1 or v3" >&5 $as_echo_n "checking if libim_client requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ime_client_native2_init (void); int main(int argc, char *argv[]) { ime_client_native2_init (); 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:313711: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fs_ime_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fs_ime_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:313718: \$? = $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 im_client" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib im_client" >&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, libim_client links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&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 im_client requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas im_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs im_client" # 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 libim_client requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs im_client" # 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_ime_client_native2_init" != "no" && test "$ac_cv_search_ime_client_native2_init" != "none required"; then : fs_ime_LIBS="$ac_cv_search_ime_client_native2_init " else fs_ime_LIBS="" 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_ime_client_native2_init opal_check_package_lib_happy="no" if test "$ompi_check_ime_libdir" != ""; then : # libdir was specified - search only there fs_ime_LDFLAGS="$fs_ime_LDFLAGS -L$ompi_check_ime_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ime_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_ime_LDFLAGS="$fs_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_ime_LDFLAGS="$fs_ime_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 ime_client_native2_init" >&5 $as_echo_n "checking for library containing ime_client_native2_init... " >&6; } if ${ac_cv_search_ime_client_native2_init+:} 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 ime_client_native2_init (); int main () { return ime_client_native2_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_client_native2_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_client_native2_init+:} false; then : break fi done if ${ac_cv_search_ime_client_native2_init+:} false; then : else ac_cv_search_ime_client_native2_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_client_native2_init" >&5 $as_echo "$ac_cv_search_ime_client_native2_init" >&6; } ac_res=$ac_cv_search_ime_client_native2_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_client_native2_init 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 libim_client requires libnl v1 or v3" >&5 $as_echo_n "checking if libim_client requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ime_client_native2_init (void); int main(int argc, char *argv[]) { ime_client_native2_init (); 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:314436: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fs_ime_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fs_ime_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:314443: \$? = $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 im_client" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib im_client" >&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, libim_client links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&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 im_client requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas im_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs im_client" # 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 libim_client requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs im_client" # 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_ime_client_native2_init" != "no" && test "$ac_cv_search_ime_client_native2_init" != "none required"; then : fs_ime_LIBS="$ac_cv_search_ime_client_native2_init " else fs_ime_LIBS="" 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 : ompi_check_ime_happy="yes" else fs_ime_CPPFLAGS="$opal_check_package_fs_ime_orig_CPPFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" fs_ime_LIBS="$opal_check_package_fs_ime_orig_LIBS" opal_check_package_fs_ime_save_CPPFLAGS="$CPPFLAGS" opal_check_package_fs_ime_save_LDFLAGS="$LDFLAGS" opal_check_package_fs_ime_save_LIBS="$LIBS" opal_check_package_fs_ime_orig_CPPFLAGS="$fs_ime_CPPFLAGS" opal_check_package_fs_ime_orig_LDFLAGS="$fs_ime_LDFLAGS" opal_check_package_fs_ime_orig_LIBS="$fs_ime_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_ime_native_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ime_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 ime_native.h do : ac_fn_c_check_header_mongrel "$LINENO" "ime_native.h" "ac_cv_header_ime_native_h" "$ac_includes_default" if test "x$ac_cv_header_ime_native_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IME_NATIVE_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_ime_native_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : fs_ime_CPPFLAGS="$fs_ime_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ime_native.h do : ac_fn_c_check_header_mongrel "$LINENO" "ime_native.h" "ac_cv_header_ime_native_h" "$ac_includes_default" if test "x$ac_cv_header_ime_native_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IME_NATIVE_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_ime_native_init opal_check_package_lib_happy="no" if test "$ompi_check_ime_libdir" != ""; then : # libdir was specified - search only there fs_ime_LDFLAGS="$fs_ime_LDFLAGS -L$ompi_check_ime_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ime_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_ime_LDFLAGS="$fs_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_ime_LDFLAGS="$fs_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init 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 libim_client requires libnl v1 or v3" >&5 $as_echo_n "checking if libim_client requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ime_native_init (void); int main(int argc, char *argv[]) { ime_native_init (); 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:315290: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fs_ime_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fs_ime_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:315297: \$? = $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 im_client" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib im_client" >&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, libim_client links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&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 im_client requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas im_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs im_client" # 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 libim_client requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs im_client" # 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_ime_native_init" != "no" && test "$ac_cv_search_ime_native_init" != "none required"; then : fs_ime_LIBS="$ac_cv_search_ime_native_init " else fs_ime_LIBS="" 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_ime_native_init opal_check_package_lib_happy="no" if test "$ompi_check_ime_libdir" != ""; then : # libdir was specified - search only there fs_ime_LDFLAGS="$fs_ime_LDFLAGS -L$ompi_check_ime_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ime_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_ime_LDFLAGS="$fs_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_ime_LDFLAGS="$fs_ime_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 ime_native_init" >&5 $as_echo_n "checking for library containing ime_native_init... " >&6; } if ${ac_cv_search_ime_native_init+:} 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 ime_native_init (); int main () { return ime_native_init (); ; return 0; } _ACEOF for ac_lib in '' im_client; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ime_native_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ime_native_init+:} false; then : break fi done if ${ac_cv_search_ime_native_init+:} false; then : else ac_cv_search_ime_native_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ime_native_init" >&5 $as_echo "$ac_cv_search_ime_native_init" >&6; } ac_res=$ac_cv_search_ime_native_init 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_fs_ime_save_LDFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" unset ac_cv_search_ime_native_init 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 libim_client requires libnl v1 or v3" >&5 $as_echo_n "checking if libim_client requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ime_native_init (void); int main(int argc, char *argv[]) { ime_native_init (); 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:316015: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fs_ime_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lim_client $LIBS $fs_ime_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:316022: \$? = $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 im_client" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib im_client" >&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, libim_client links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&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 im_client requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas im_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs im_client" # 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 libim_client requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libim_client 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 libim_client (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libim_client (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libim_client." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libim_client." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs im_client" # 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_ime_native_init" != "no" && test "$ac_cv_search_ime_native_init" != "none required"; then : fs_ime_LIBS="$ac_cv_search_ime_native_init " else fs_ime_LIBS="" 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 : ompi_check_ime_happy="yes" else fs_ime_CPPFLAGS="$opal_check_package_fs_ime_orig_CPPFLAGS" fs_ime_LDFLAGS="$opal_check_package_fs_ime_orig_LDFLAGS" fs_ime_LIBS="$opal_check_package_fs_ime_orig_LIBS" ompi_check_ime_happy="no" fi CPPFLAGS="$opal_check_package_fs_ime_save_CPPFLAGS" LDFLAGS="$opal_check_package_fs_ime_save_LDFLAGS" LIBS="$opal_check_package_fs_ime_save_LIBS" fi CPPFLAGS="$opal_check_package_fs_ime_save_CPPFLAGS" LDFLAGS="$opal_check_package_fs_ime_save_LDFLAGS" LIBS="$opal_check_package_fs_ime_save_LIBS" fi if test "$ompi_check_ime_happy" = "yes"; then : fs_ime_happy="yes" else if test ! -z "$with_ime" && test "$with_ime" != "no"; then : echo IME support not found fi fs_ime_happy="no" 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 OMPIO File Systems | tr ' ' '_') ompi_summary_line="DDN Infinite Memory Engine: $fs_ime_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 "$fs_ime_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build ime opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fs/ime/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ime" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ime" else if test "fs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fs/ime/lib${OMPI_LIB_PREFIX}mca_fs_ime.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fs/ime/libmca_fs_ime.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fs_ime_component;" >> $outfile.extern echo " &mca_fs_ime_component, " >> $outfile.struct static_components="$static_components ime" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:ime can compile" >&5 $as_echo_n "checking if MCA component fs:ime can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fs" = "ime" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fs component ime was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fs" = "ime" ; then as_fn_error $? "*** fs component ime was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fs_ime_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fs_ime_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fs_ime_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fs_ime_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fs_ime_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fs_ime_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fs_ime_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fs_ime_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fs_ime_WRAPPER_EXTRA_CPPFLAGS ($fs_ime_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fs_ime_WRAPPER_EXTRA_CPPFLAGS ($fs_ime_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:ime can compile" >&5 $as_echo_n "checking if MCA component fs:ime can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fs" = "ime" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ime\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ime\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "ime" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ime\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ime\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ime" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_fs_ime_DSO=1 else BUILD_ompi_fs_ime_DSO=0 fi if test "$BUILD_ompi_fs_ime_DSO" = "1"; then MCA_BUILD_ompi_fs_ime_DSO_TRUE= MCA_BUILD_ompi_fs_ime_DSO_FALSE='#' else MCA_BUILD_ompi_fs_ime_DSO_TRUE='#' MCA_BUILD_ompi_fs_ime_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component fs:lustre (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/fs/lustre" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "lustre" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fs" = "1"; then : want_component=0 fi if test "$DISABLE_fs_lustre" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_fs" SHARED_COMPONENT="$DSO_fs_lustre" STATIC_FRAMEWORK="$STATIC_fs" STATIC_COMPONENT="$STATIC_fs_lustre" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fs:lustre compile mode" >&5 $as_echo_n "checking for MCA component fs:lustre compile mode... " >&6; } if test "$DIRECT_fs" = "lustre" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/fs/lustre/Makefile" check_lustre_CPPFLAGS= check_lustre_LDFLAGS= check_lustre_LIBS= check_lustre_save_LIBS="$LIBS" check_lustre_save_LDFLAGS="$LDFLAGS" check_lustre_save_CPPFLAGS="$CPPFLAGS" ompi_check_lustre_happy="yes" # Get some configuration information # Check whether --with-lustre was given. if test "${with_lustre+set}" = set; then : withval=$with_lustre; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lustre value" >&5 $as_echo_n "checking --with-lustre value... " >&6; } if test "$with_lustre" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-lustre)" >&5 $as_echo "simple no (specified --without-lustre)" >&6; } else if test "$with_lustre" = "yes" || test "x$with_lustre" = "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_lustre"; 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_lustre not found" >&5 $as_echo "$as_me: WARNING: Directory $with_lustre not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_lustre/include/lustre/lustreapi.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_lustre/include/lustre/lustreapi.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_lustre/include/lustre/lustreapi.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_lustre)" >&5 $as_echo "sanity check ok ($with_lustre)" >&6; } fi fi fi fi if test "$with_lustre" = "no"; then : ompi_check_lustre_happy=no fi if test "$ompi_check_lustre_happy" != "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for lustre libraries and header files in" >&5 $as_echo_n "checking looking for lustre libraries and header files in... " >&6; } if test "$with_lustre" != "yes"; then : ompi_check_lustre_dir=$with_lustre { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ompi_check_lustre_dir)" >&5 $as_echo "($ompi_check_lustre_dir)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 $as_echo "(default search paths)" >&6; } fi if test -n "$with_lustre_libdir" && \ test "$with_lustre_libdir" != "yes"; then : ompi_check_lustre_libdir=$with_lustre_libdir fi fi if test "$ompi_check_lustre_happy" != "no" ; then : opal_check_package_fs_lustre_save_CPPFLAGS="$CPPFLAGS" opal_check_package_fs_lustre_save_LDFLAGS="$LDFLAGS" opal_check_package_fs_lustre_save_LIBS="$LIBS" opal_check_package_fs_lustre_orig_CPPFLAGS="$fs_lustre_CPPFLAGS" opal_check_package_fs_lustre_orig_LDFLAGS="$fs_lustre_LDFLAGS" opal_check_package_fs_lustre_orig_LIBS="$fs_lustre_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_lustre_lustreapi_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_lustre_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 lustre/lustreapi.h do : ac_fn_c_check_header_mongrel "$LINENO" "lustre/lustreapi.h" "ac_cv_header_lustre_lustreapi_h" "$ac_includes_default" if test "x$ac_cv_header_lustre_lustreapi_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LUSTRE_LUSTREAPI_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_lustre_lustreapi_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : fs_lustre_CPPFLAGS="$fs_lustre_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in lustre/lustreapi.h do : ac_fn_c_check_header_mongrel "$LINENO" "lustre/lustreapi.h" "ac_cv_header_lustre_lustreapi_h" "$ac_includes_default" if test "x$ac_cv_header_lustre_lustreapi_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LUSTRE_LUSTREAPI_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_llapi_file_create opal_check_package_lib_happy="no" if test "$ompi_check_lustre_libdir" != ""; then : # libdir was specified - search only there fs_lustre_LDFLAGS="$fs_lustre_LDFLAGS -L$ompi_check_lustre_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_lustre_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing llapi_file_create" >&5 $as_echo_n "checking for library containing llapi_file_create... " >&6; } if ${ac_cv_search_llapi_file_create+:} 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 llapi_file_create (); int main () { return llapi_file_create (); ; return 0; } _ACEOF for ac_lib in '' lustreapi; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_llapi_file_create=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_llapi_file_create+:} false; then : break fi done if ${ac_cv_search_llapi_file_create+:} false; then : else ac_cv_search_llapi_file_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llapi_file_create" >&5 $as_echo "$ac_cv_search_llapi_file_create" >&6; } ac_res=$ac_cv_search_llapi_file_create 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_fs_lustre_save_LDFLAGS" fs_lustre_LDFLAGS="$opal_check_package_fs_lustre_orig_LDFLAGS" unset ac_cv_search_llapi_file_create fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_lustre_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 llapi_file_create" >&5 $as_echo_n "checking for library containing llapi_file_create... " >&6; } if ${ac_cv_search_llapi_file_create+:} 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 llapi_file_create (); int main () { return llapi_file_create (); ; return 0; } _ACEOF for ac_lib in '' lustreapi; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_llapi_file_create=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_llapi_file_create+:} false; then : break fi done if ${ac_cv_search_llapi_file_create+:} false; then : else ac_cv_search_llapi_file_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llapi_file_create" >&5 $as_echo "$ac_cv_search_llapi_file_create" >&6; } ac_res=$ac_cv_search_llapi_file_create 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_fs_lustre_save_LDFLAGS" fs_lustre_LDFLAGS="$opal_check_package_fs_lustre_orig_LDFLAGS" unset ac_cv_search_llapi_file_create fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_lustre_LDFLAGS="$fs_lustre_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 llapi_file_create" >&5 $as_echo_n "checking for library containing llapi_file_create... " >&6; } if ${ac_cv_search_llapi_file_create+:} 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 llapi_file_create (); int main () { return llapi_file_create (); ; return 0; } _ACEOF for ac_lib in '' lustreapi; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_llapi_file_create=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_llapi_file_create+:} false; then : break fi done if ${ac_cv_search_llapi_file_create+:} false; then : else ac_cv_search_llapi_file_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llapi_file_create" >&5 $as_echo "$ac_cv_search_llapi_file_create" >&6; } ac_res=$ac_cv_search_llapi_file_create 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_fs_lustre_save_LDFLAGS" fs_lustre_LDFLAGS="$opal_check_package_fs_lustre_orig_LDFLAGS" unset ac_cv_search_llapi_file_create fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_lustre_LDFLAGS="$fs_lustre_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 llapi_file_create" >&5 $as_echo_n "checking for library containing llapi_file_create... " >&6; } if ${ac_cv_search_llapi_file_create+:} 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 llapi_file_create (); int main () { return llapi_file_create (); ; return 0; } _ACEOF for ac_lib in '' lustreapi; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_llapi_file_create=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_llapi_file_create+:} false; then : break fi done if ${ac_cv_search_llapi_file_create+:} false; then : else ac_cv_search_llapi_file_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llapi_file_create" >&5 $as_echo "$ac_cv_search_llapi_file_create" >&6; } ac_res=$ac_cv_search_llapi_file_create 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_fs_lustre_save_LDFLAGS" fs_lustre_LDFLAGS="$opal_check_package_fs_lustre_orig_LDFLAGS" unset ac_cv_search_llapi_file_create 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 liblustreapi requires libnl v1 or v3" >&5 $as_echo_n "checking if liblustreapi requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void llapi_file_create (void); int main(int argc, char *argv[]) { llapi_file_create (); 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:317721: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llustreapi $LIBS $fs_lustre_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llustreapi $LIBS $fs_lustre_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:317728: \$? = $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 lustreapi" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib lustreapi" >&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, liblustreapi links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, liblustreapi 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 liblustreapi (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblustreapi (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblustreapi." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblustreapi." >&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 lustreapi requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas lustreapi 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 liblustreapi (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblustreapi (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblustreapi." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblustreapi." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs lustreapi" # 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 liblustreapi requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas liblustreapi 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 liblustreapi (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblustreapi (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblustreapi." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblustreapi." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs lustreapi" # 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_llapi_file_create" != "no" && test "$ac_cv_search_llapi_file_create" != "none required"; then : fs_lustre_LIBS="$ac_cv_search_llapi_file_create " else fs_lustre_LIBS="" 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_llapi_file_create opal_check_package_lib_happy="no" if test "$ompi_check_lustre_libdir" != ""; then : # libdir was specified - search only there fs_lustre_LDFLAGS="$fs_lustre_LDFLAGS -L$ompi_check_lustre_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_lustre_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing llapi_file_create" >&5 $as_echo_n "checking for library containing llapi_file_create... " >&6; } if ${ac_cv_search_llapi_file_create+:} 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 llapi_file_create (); int main () { return llapi_file_create (); ; return 0; } _ACEOF for ac_lib in '' lustreapi; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_llapi_file_create=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_llapi_file_create+:} false; then : break fi done if ${ac_cv_search_llapi_file_create+:} false; then : else ac_cv_search_llapi_file_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llapi_file_create" >&5 $as_echo "$ac_cv_search_llapi_file_create" >&6; } ac_res=$ac_cv_search_llapi_file_create 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_fs_lustre_save_LDFLAGS" fs_lustre_LDFLAGS="$opal_check_package_fs_lustre_orig_LDFLAGS" unset ac_cv_search_llapi_file_create fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_lustre_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 llapi_file_create" >&5 $as_echo_n "checking for library containing llapi_file_create... " >&6; } if ${ac_cv_search_llapi_file_create+:} 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 llapi_file_create (); int main () { return llapi_file_create (); ; return 0; } _ACEOF for ac_lib in '' lustreapi; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_llapi_file_create=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_llapi_file_create+:} false; then : break fi done if ${ac_cv_search_llapi_file_create+:} false; then : else ac_cv_search_llapi_file_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llapi_file_create" >&5 $as_echo "$ac_cv_search_llapi_file_create" >&6; } ac_res=$ac_cv_search_llapi_file_create 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_fs_lustre_save_LDFLAGS" fs_lustre_LDFLAGS="$opal_check_package_fs_lustre_orig_LDFLAGS" unset ac_cv_search_llapi_file_create fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_lustre_LDFLAGS="$fs_lustre_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 llapi_file_create" >&5 $as_echo_n "checking for library containing llapi_file_create... " >&6; } if ${ac_cv_search_llapi_file_create+:} 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 llapi_file_create (); int main () { return llapi_file_create (); ; return 0; } _ACEOF for ac_lib in '' lustreapi; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_llapi_file_create=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_llapi_file_create+:} false; then : break fi done if ${ac_cv_search_llapi_file_create+:} false; then : else ac_cv_search_llapi_file_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llapi_file_create" >&5 $as_echo "$ac_cv_search_llapi_file_create" >&6; } ac_res=$ac_cv_search_llapi_file_create 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_fs_lustre_save_LDFLAGS" fs_lustre_LDFLAGS="$opal_check_package_fs_lustre_orig_LDFLAGS" unset ac_cv_search_llapi_file_create fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_lustre_LDFLAGS="$fs_lustre_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 llapi_file_create" >&5 $as_echo_n "checking for library containing llapi_file_create... " >&6; } if ${ac_cv_search_llapi_file_create+:} 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 llapi_file_create (); int main () { return llapi_file_create (); ; return 0; } _ACEOF for ac_lib in '' lustreapi; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_llapi_file_create=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_llapi_file_create+:} false; then : break fi done if ${ac_cv_search_llapi_file_create+:} false; then : else ac_cv_search_llapi_file_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llapi_file_create" >&5 $as_echo "$ac_cv_search_llapi_file_create" >&6; } ac_res=$ac_cv_search_llapi_file_create 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_fs_lustre_save_LDFLAGS" fs_lustre_LDFLAGS="$opal_check_package_fs_lustre_orig_LDFLAGS" unset ac_cv_search_llapi_file_create 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 liblustreapi requires libnl v1 or v3" >&5 $as_echo_n "checking if liblustreapi requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void llapi_file_create (void); int main(int argc, char *argv[]) { llapi_file_create (); 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:318446: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llustreapi $LIBS $fs_lustre_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -llustreapi $LIBS $fs_lustre_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:318453: \$? = $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 lustreapi" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib lustreapi" >&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, liblustreapi links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, liblustreapi 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 liblustreapi (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblustreapi (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblustreapi." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblustreapi." >&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 lustreapi requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas lustreapi 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 liblustreapi (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblustreapi (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblustreapi." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblustreapi." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs lustreapi" # 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 liblustreapi requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas liblustreapi 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 liblustreapi (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in liblustreapi (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using liblustreapi." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using liblustreapi." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs lustreapi" # 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_llapi_file_create" != "no" && test "$ac_cv_search_llapi_file_create" != "none required"; then : fs_lustre_LIBS="$ac_cv_search_llapi_file_create " else fs_lustre_LIBS="" 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 : ompi_check_lustre_happy="yes" else fs_lustre_CPPFLAGS="$opal_check_package_fs_lustre_orig_CPPFLAGS" fs_lustre_LDFLAGS="$opal_check_package_fs_lustre_orig_LDFLAGS" fs_lustre_LIBS="$opal_check_package_fs_lustre_orig_LIBS" ompi_check_lustre_happy="no" fi CPPFLAGS="$opal_check_package_fs_lustre_save_CPPFLAGS" LDFLAGS="$opal_check_package_fs_lustre_save_LDFLAGS" LIBS="$opal_check_package_fs_lustre_save_LIBS" fi if test "$ompi_check_lustre_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required lustre data structures" >&5 $as_echo_n "checking for required lustre data structures... " >&6; } cat > conftest.c <&5 $CC $CFLAGS -I$ompi_check_lustre_dir/include -c conftest.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:318829: \$? = $opal_status" >&5 else echo \$? = $opal_status >&5 fi if test "$opal_status" = "0"; then unset opal_status ompi_check_lustre_struct_happy="yes" else unset opal_status ompi_check_lustre_struct_happy="no" ompi_check_lustre_happy="no" fi rm -f conftest.c conftest.o { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_lustre_struct_happy" >&5 $as_echo "$ompi_check_lustre_struct_happy" >&6; } fi if test "$ompi_check_lustre_happy" = "yes"; then : fs_lustre_happy="yes" else if test -n "$with_lustre" && test "$with_lustre" != "no"; then : as_fn_error $? "Lustre support requested but not found. Aborting" "$LINENO" 5 fi fs_lustre_happy="no" fi if test "$fs_lustre_happy" = "yes"; then : should_build=$should_build else should_build=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 OMPIO File Systems | tr ' ' '_') ompi_summary_line="Lustre: $fs_lustre_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 # substitute in the things needed to build lustre opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fs/lustre/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components lustre" if test "$compile_mode" = "dso" ; then dso_components="$dso_components lustre" else if test "fs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fs/lustre/lib${OMPI_LIB_PREFIX}mca_fs_lustre.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fs/lustre/libmca_fs_lustre.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fs_lustre_component;" >> $outfile.extern echo " &mca_fs_lustre_component, " >> $outfile.struct static_components="$static_components lustre" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:lustre can compile" >&5 $as_echo_n "checking if MCA component fs:lustre can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fs" = "lustre" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fs component lustre was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fs" = "lustre" ; then as_fn_error $? "*** fs component lustre was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fs_lustre_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fs_lustre_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fs_lustre_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fs_lustre_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fs_lustre_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fs_lustre_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fs_lustre_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fs_lustre_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fs_lustre_WRAPPER_EXTRA_CPPFLAGS ($fs_lustre_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fs_lustre_WRAPPER_EXTRA_CPPFLAGS ($fs_lustre_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:lustre can compile" >&5 $as_echo_n "checking if MCA component fs:lustre can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fs" = "lustre" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lustre\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lustre\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "lustre" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lustre\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lustre\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components lustre" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_fs_lustre_DSO=1 else BUILD_ompi_fs_lustre_DSO=0 fi if test "$BUILD_ompi_fs_lustre_DSO" = "1"; then MCA_BUILD_ompi_fs_lustre_DSO_TRUE= MCA_BUILD_ompi_fs_lustre_DSO_FALSE='#' else MCA_BUILD_ompi_fs_lustre_DSO_TRUE='#' MCA_BUILD_ompi_fs_lustre_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component fs:pvfs2 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/fs/pvfs2" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "pvfs2" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fs" = "1"; then : want_component=0 fi if test "$DISABLE_fs_pvfs2" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_fs" SHARED_COMPONENT="$DSO_fs_pvfs2" STATIC_FRAMEWORK="$STATIC_fs" STATIC_COMPONENT="$STATIC_fs_pvfs2" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fs:pvfs2 compile mode" >&5 $as_echo_n "checking for MCA component fs:pvfs2 compile mode... " >&6; } if test "$DIRECT_fs" = "pvfs2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/fs/pvfs2/Makefile" check_pvfs2_CPPFLAGS= check_pvfs2_LDFLAGS= check_pvfs2_LIBS= check_pvfs2_configuration="none" ompi_check_pvfs2_happy="yes" # Get some configuration information # Check whether --with-pvfs2 was given. if test "${with_pvfs2+set}" = set; then : withval=$with_pvfs2; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-pvfs2 value" >&5 $as_echo_n "checking --with-pvfs2 value... " >&6; } if test "$with_pvfs2" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-pvfs2)" >&5 $as_echo "simple no (specified --without-pvfs2)" >&6; } else if test "$with_pvfs2" = "yes" || test "x$with_pvfs2" = "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_pvfs2"; 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_pvfs2 not found" >&5 $as_echo "$as_me: WARNING: Directory $with_pvfs2 not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_pvfs2/include/pvfs2.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_pvfs2/include/pvfs2.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_pvfs2/include/pvfs2.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_pvfs2)" >&5 $as_echo "sanity check ok ($with_pvfs2)" >&6; } fi fi fi fi if test "$with_pvfs2" = "no"; then : ompi_check_pvfs2_happy="no" else if test -z "$with_pvfs2"; then : ompi_check_pvfs2_dir="/usr/local" else ompi_check_pvfs2_dir=$with_pvfs2 fi if test -e "$ompi_check_pvfs2_dir/lib64" ; then ompi_check_pvfs2_libdir="$ompi_check_pvfs2_dir/lib64" else ompi_check_pvfs2_libdir="$ompi_check_pvfs2_dir/lib" fi # Add correct -I and -L flags opal_check_package_fs_pvfs2_save_CPPFLAGS="$CPPFLAGS" opal_check_package_fs_pvfs2_save_LDFLAGS="$LDFLAGS" opal_check_package_fs_pvfs2_save_LIBS="$LIBS" opal_check_package_fs_pvfs2_orig_CPPFLAGS="$fs_pvfs2_CPPFLAGS" opal_check_package_fs_pvfs2_orig_LDFLAGS="$fs_pvfs2_LDFLAGS" opal_check_package_fs_pvfs2_orig_LIBS="$fs_pvfs2_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_pvfs2_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_pvfs2_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 pvfs2.h do : ac_fn_c_check_header_mongrel "$LINENO" "pvfs2.h" "ac_cv_header_pvfs2_h" "$ac_includes_default" if test "x$ac_cv_header_pvfs2_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PVFS2_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_pvfs2_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : fs_pvfs2_CPPFLAGS="$fs_pvfs2_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in pvfs2.h do : ac_fn_c_check_header_mongrel "$LINENO" "pvfs2.h" "ac_cv_header_pvfs2_h" "$ac_includes_default" if test "x$ac_cv_header_pvfs2_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PVFS2_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_PVFS_util_resolve opal_check_package_lib_happy="no" if test "$ompi_check_pvfs2_libdir" != ""; then : # libdir was specified - search only there fs_pvfs2_LDFLAGS="$fs_pvfs2_LDFLAGS -L$ompi_check_pvfs2_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_pvfs2_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fs_pvfs2_save_LDFLAGS" fs_pvfs2_LDFLAGS="$opal_check_package_fs_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fs_pvfs2_save_LDFLAGS" fs_pvfs2_LDFLAGS="$opal_check_package_fs_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_pvfs2_LDFLAGS="$fs_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fs_pvfs2_save_LDFLAGS" fs_pvfs2_LDFLAGS="$opal_check_package_fs_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_pvfs2_LDFLAGS="$fs_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fs_pvfs2_save_LDFLAGS" fs_pvfs2_LDFLAGS="$opal_check_package_fs_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve 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 libpvfs2 requires libnl v1 or v3" >&5 $as_echo_n "checking if libpvfs2 requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PVFS_util_resolve (void); int main(int argc, char *argv[]) { PVFS_util_resolve (); 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:320180: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpvfs2 $LIBS $fs_pvfs2_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpvfs2 $LIBS $fs_pvfs2_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:320187: \$? = $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 pvfs2" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pvfs2" >&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, libpvfs2 links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&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 pvfs2 requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pvfs2" # 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 libpvfs2 requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pvfs2" # 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_PVFS_util_resolve" != "no" && test "$ac_cv_search_PVFS_util_resolve" != "none required"; then : fs_pvfs2_LIBS="$ac_cv_search_PVFS_util_resolve " else fs_pvfs2_LIBS="" 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_PVFS_util_resolve opal_check_package_lib_happy="no" if test "$ompi_check_pvfs2_libdir" != ""; then : # libdir was specified - search only there fs_pvfs2_LDFLAGS="$fs_pvfs2_LDFLAGS -L$ompi_check_pvfs2_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_pvfs2_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fs_pvfs2_save_LDFLAGS" fs_pvfs2_LDFLAGS="$opal_check_package_fs_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fs_pvfs2_save_LDFLAGS" fs_pvfs2_LDFLAGS="$opal_check_package_fs_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_pvfs2_LDFLAGS="$fs_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fs_pvfs2_save_LDFLAGS" fs_pvfs2_LDFLAGS="$opal_check_package_fs_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : fs_pvfs2_LDFLAGS="$fs_pvfs2_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 PVFS_util_resolve" >&5 $as_echo_n "checking for library containing PVFS_util_resolve... " >&6; } if ${ac_cv_search_PVFS_util_resolve+:} 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 PVFS_util_resolve (); int main () { return PVFS_util_resolve (); ; return 0; } _ACEOF for ac_lib in '' pvfs2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PVFS_util_resolve=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PVFS_util_resolve+:} false; then : break fi done if ${ac_cv_search_PVFS_util_resolve+:} false; then : else ac_cv_search_PVFS_util_resolve=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PVFS_util_resolve" >&5 $as_echo "$ac_cv_search_PVFS_util_resolve" >&6; } ac_res=$ac_cv_search_PVFS_util_resolve 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_fs_pvfs2_save_LDFLAGS" fs_pvfs2_LDFLAGS="$opal_check_package_fs_pvfs2_orig_LDFLAGS" unset ac_cv_search_PVFS_util_resolve 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 libpvfs2 requires libnl v1 or v3" >&5 $as_echo_n "checking if libpvfs2 requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PVFS_util_resolve (void); int main(int argc, char *argv[]) { PVFS_util_resolve (); 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:320905: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpvfs2 $LIBS $fs_pvfs2_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpvfs2 $LIBS $fs_pvfs2_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:320912: \$? = $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 pvfs2" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib pvfs2" >&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, libpvfs2 links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&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 pvfs2 requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas pvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs pvfs2" # 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 libpvfs2 requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpvfs2 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 libpvfs2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpvfs2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpvfs2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpvfs2." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs pvfs2" # 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_PVFS_util_resolve" != "no" && test "$ac_cv_search_PVFS_util_resolve" != "none required"; then : fs_pvfs2_LIBS="$ac_cv_search_PVFS_util_resolve " else fs_pvfs2_LIBS="" 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 : ompi_check_pvfs2_happy="yes" else fs_pvfs2_CPPFLAGS="$opal_check_package_fs_pvfs2_orig_CPPFLAGS" fs_pvfs2_LDFLAGS="$opal_check_package_fs_pvfs2_orig_LDFLAGS" fs_pvfs2_LIBS="$opal_check_package_fs_pvfs2_orig_LIBS" ompi_check_pvfs2_happy="no" fi CPPFLAGS="$opal_check_package_fs_pvfs2_save_CPPFLAGS" LDFLAGS="$opal_check_package_fs_pvfs2_save_LDFLAGS" LIBS="$opal_check_package_fs_pvfs2_save_LIBS" fi if test "$ompi_check_pvfs2_happy" = "yes"; then : fs_pvfs2_happy="yes" else if test ! -z "$with_pvfs2" && test "$with_pvfs2" != "no"; then : echo PVFS2 support not found fi fs_pvfs2_happy="no" 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 OMPIO File Systems | tr ' ' '_') ompi_summary_line="PVFS2/OrangeFS: $fs_pvfs2_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 "$fs_pvfs2_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # AC_CHECK_HEADERS([pvfs2.h], [], # [AC_CHECK_HEADERS([pvfs2.h], [], [should_build=0], # [AC_INCLUDES_DEFAULT])], # [AC_INCLUDES_DEFAULT]) # substitute in the things needed to build pvfs2 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fs/pvfs2/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components pvfs2" if test "$compile_mode" = "dso" ; then dso_components="$dso_components pvfs2" else if test "fs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fs/pvfs2/lib${OMPI_LIB_PREFIX}mca_fs_pvfs2.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fs/pvfs2/libmca_fs_pvfs2.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fs_pvfs2_component;" >> $outfile.extern echo " &mca_fs_pvfs2_component, " >> $outfile.struct static_components="$static_components pvfs2" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:pvfs2 can compile" >&5 $as_echo_n "checking if MCA component fs:pvfs2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fs" = "pvfs2" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fs component pvfs2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fs" = "pvfs2" ; then as_fn_error $? "*** fs component pvfs2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fs_pvfs2_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fs_pvfs2_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fs_pvfs2_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fs_pvfs2_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fs_pvfs2_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fs_pvfs2_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fs_pvfs2_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fs_pvfs2_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fs_pvfs2_WRAPPER_EXTRA_CPPFLAGS ($fs_pvfs2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fs_pvfs2_WRAPPER_EXTRA_CPPFLAGS ($fs_pvfs2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:pvfs2 can compile" >&5 $as_echo_n "checking if MCA component fs:pvfs2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fs" = "pvfs2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pvfs2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pvfs2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "pvfs2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pvfs2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pvfs2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components pvfs2" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_fs_pvfs2_DSO=1 else BUILD_ompi_fs_pvfs2_DSO=0 fi if test "$BUILD_ompi_fs_pvfs2_DSO" = "1"; then MCA_BUILD_ompi_fs_pvfs2_DSO_TRUE= MCA_BUILD_ompi_fs_pvfs2_DSO_FALSE='#' else MCA_BUILD_ompi_fs_pvfs2_DSO_TRUE='#' MCA_BUILD_ompi_fs_pvfs2_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component fs:ufs (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/fs/ufs" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "ufs" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fs" = "1"; then : want_component=0 fi if test "$DISABLE_fs_ufs" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_fs" SHARED_COMPONENT="$DSO_fs_ufs" STATIC_FRAMEWORK="$STATIC_fs" STATIC_COMPONENT="$STATIC_fs_ufs" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fs:ufs compile mode" >&5 $as_echo_n "checking for MCA component fs:ufs compile mode... " >&6; } if test "$DIRECT_fs" = "ufs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/fs/ufs/Makefile" # 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 OMPIO File Systems | tr ' ' '_') ompi_summary_line="Generic Unix FS: yes" 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fs/ufs/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ufs" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ufs" else if test "fs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fs/ufs/lib${OMPI_LIB_PREFIX}mca_fs_ufs.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fs/ufs/libmca_fs_ufs.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fs_ufs_component;" >> $outfile.extern echo " &mca_fs_ufs_component, " >> $outfile.struct static_components="$static_components ufs" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:ufs can compile" >&5 $as_echo_n "checking if MCA component fs:ufs can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fs" = "ufs" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fs component ufs was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fs" = "ufs" ; then as_fn_error $? "*** fs component ufs was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$fs_ufs_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $fs_ufs_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $fs_ufs_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$fs_ufs_WRAPPER_EXTRA_LIBS" = ""; 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_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 $fs_ufs_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $fs_ufs_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$fs_ufs_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $fs_ufs_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring fs_ufs_WRAPPER_EXTRA_CPPFLAGS ($fs_ufs_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring fs_ufs_WRAPPER_EXTRA_CPPFLAGS ($fs_ufs_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:ufs can compile" >&5 $as_echo_n "checking if MCA component fs:ufs can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fs" = "ufs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ufs\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ufs\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "ufs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ufs\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ufs\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ufs" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_fs_ufs_DSO=1 else BUILD_ompi_fs_ufs_DSO=0 fi if test "$BUILD_ompi_fs_ufs_DSO" = "1"; then MCA_BUILD_ompi_fs_ufs_DSO_TRUE= MCA_BUILD_ompi_fs_ufs_DSO_FALSE='#' else MCA_BUILD_ompi_fs_ufs_DSO_TRUE='#' MCA_BUILD_ompi_fs_ufs_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "$want_io_ompio" != "0"; then : for component_path in $srcdir/ompi/mca/fs/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component fs:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/fs/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_fs" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_fs_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_fs" str="SHARED_COMPONENT=\$DSO_fs_$component" eval $str STATIC_FRAMEWORK="$STATIC_fs" str="STATIC_COMPONENT=\$STATIC_fs_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component fs:$component compile mode" >&5 $as_echo_n "checking for MCA component fs:$component compile mode... " >&6; } if test "$DIRECT_fs" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/fs/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/fs/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/fs/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then fs_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then fs_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/fs/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "fs" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/fs/$component/lib${OMPI_LIB_PREFIX}mca_fs_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/fs/$component/libmca_fs_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_fs_$component_component;" >> $outfile.extern echo " &mca_fs_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:$component can compile" >&5 $as_echo_n "checking if MCA component fs:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_fs" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_fs_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** fs component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_fs" = "$component" ; then as_fn_error $? "*** fs component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$fs_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$fs_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component fs:$component can compile" >&5 $as_echo_n "checking if MCA component fs:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_fs" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_fs" ; then if test "$DIRECT_fs" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_fs_ALL_COMPONENTS="$all_components" MCA_ompi_fs_STATIC_COMPONENTS="$static_components" MCA_ompi_fs_DSO_COMPONENTS="$dso_components" MCA_ompi_fs_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_fs_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_fs_ALL_SUBDIRS="$MCA_ompi_fs_ALL_SUBDIRS mca/fs/$item" done MCA_ompi_fs_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_fs_STATIC_SUBDIRS="$MCA_ompi_fs_STATIC_SUBDIRS mca/fs/$item" done MCA_ompi_fs_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_fs_DSO_SUBDIRS="$MCA_ompi_fs_DSO_SUBDIRS mca/fs/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "fs" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # 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 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS hook" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/hook" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_hook_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_hook_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_hook_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/hook/libmca_hook.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_hook_STATIC_LTLIBS)" # configure all the components opal_show_subsubtitle "Configuring MCA framework hook" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/hook/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/hook/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework hook" >&5 $as_echo_n "checking for no configure components in framework hook... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework hook" >&5 $as_echo_n "checking for m4 configure components in framework hook... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/hook/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component hook:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/hook/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_hook" ; then if test "$DIRECT_hook" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_hook" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_hook_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_hook" str="SHARED_COMPONENT=\$DSO_hook_$component" eval $str STATIC_FRAMEWORK="$STATIC_hook" str="STATIC_COMPONENT=\$STATIC_hook_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component hook:$component compile mode" >&5 $as_echo_n "checking for MCA component hook:$component compile mode... " >&6; } if test "$DIRECT_hook" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/hook/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/hook/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/hook/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then hook_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then hook_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/hook/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "hook" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/hook/$component/lib${OMPI_LIB_PREFIX}mca_hook_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/hook/$component/libmca_hook_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_hook_$component_component;" >> $outfile.extern echo " &mca_hook_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component hook:$component can compile" >&5 $as_echo_n "checking if MCA component hook:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_hook" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_hook_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** hook component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_hook" = "$component" ; then as_fn_error $? "*** hook component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$hook_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$hook_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component hook:$component can compile" >&5 $as_echo_n "checking if MCA component hook:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_hook" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_hook" ; then if test "$DIRECT_hook" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_hook_ALL_COMPONENTS="$all_components" MCA_ompi_hook_STATIC_COMPONENTS="$static_components" MCA_ompi_hook_DSO_COMPONENTS="$dso_components" MCA_ompi_hook_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_hook_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_hook_ALL_SUBDIRS="$MCA_ompi_hook_ALL_SUBDIRS mca/hook/$item" done MCA_ompi_hook_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_hook_STATIC_SUBDIRS="$MCA_ompi_hook_STATIC_SUBDIRS mca/hook/$item" done MCA_ompi_hook_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_hook_DSO_SUBDIRS="$MCA_ompi_hook_DSO_SUBDIRS mca/hook/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "hook" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS io" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/io" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_io_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_io_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_io_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/io/libmca_io.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_io_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework io" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/io/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/io/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework io" >&5 $as_echo_n "checking for no configure components in framework io... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework io" >&5 $as_echo_n "checking for m4 configure components in framework io... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: ompio, romio321" >&5 $as_echo "ompio, romio321" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component io:ompio (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/io/ompio" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_io" ; then if test "$DIRECT_io" = "ompio" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_io" = "1"; then : want_component=0 fi if test "$DISABLE_io_ompio" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_io" SHARED_COMPONENT="$DSO_io_ompio" STATIC_FRAMEWORK="$STATIC_io" STATIC_COMPONENT="$STATIC_io_ompio" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component io:ompio compile mode" >&5 $as_echo_n "checking for MCA component io:ompio compile mode... " >&6; } if test "$DIRECT_io" = "ompio" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/io/ompio/Makefile" if test "$enable_io_ompio" != "no"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/io/ompio/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ompio" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ompio" else if test "io" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/io/ompio/lib${OMPI_LIB_PREFIX}mca_io_ompio.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/io/ompio/libmca_io_ompio.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_io_ompio_component;" >> $outfile.extern echo " &mca_io_ompio_component, " >> $outfile.struct static_components="$static_components ompio" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component io:ompio can compile" >&5 $as_echo_n "checking if MCA component io:ompio can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_io" = "ompio" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_io_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** io component ompio was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_io" = "ompio" ; then as_fn_error $? "*** io component ompio was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$io_ompio_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $io_ompio_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $io_ompio_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$io_ompio_WRAPPER_EXTRA_LIBS" = ""; 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_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 $io_ompio_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $io_ompio_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$io_ompio_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $io_ompio_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring io_ompio_WRAPPER_EXTRA_CPPFLAGS ($io_ompio_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring io_ompio_WRAPPER_EXTRA_CPPFLAGS ($io_ompio_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component io:ompio can compile" >&5 $as_echo_n "checking if MCA component io:ompio can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_io" = "ompio" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ompio\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ompio\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_io" ; then if test "$DIRECT_io" = "ompio" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ompio\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ompio\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ompio" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_io_ompio_DSO=1 else BUILD_ompi_io_ompio_DSO=0 fi if test "$BUILD_ompi_io_ompio_DSO" = "1"; then MCA_BUILD_ompi_io_ompio_DSO_TRUE= MCA_BUILD_ompi_io_ompio_DSO_FALSE='#' else MCA_BUILD_ompi_io_ompio_DSO_TRUE='#' MCA_BUILD_ompi_io_ompio_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component io:romio321 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/io/romio321" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_io" ; then if test "$DIRECT_io" = "romio321" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_io" = "1"; then : want_component=0 fi if test "$DISABLE_io_romio321" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_io" SHARED_COMPONENT="$DSO_io_romio321" STATIC_FRAMEWORK="$STATIC_io" STATIC_COMPONENT="$STATIC_io_romio321" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component io:romio321 compile mode" >&5 $as_echo_n "checking for MCA component io:romio321 compile mode... " >&6; } if test "$DIRECT_io" = "romio321" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/io/romio321/Makefile" # 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 io_romio321_flags io_romio321_flags_define io_romio321_happy io_romio321_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=\"io_romio321_flags io_romio321_flags_define io_romio321_happy io_romio321_save_LIBS\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --enable-io-romio was given. if test "${enable_io_romio+set}" = set; then : enableval=$enable_io_romio; fi # Check whether --with-io-romio-flags was given. if test "${with_io_romio_flags+set}" = set; then : withval=$with_io_romio_flags; fi cat >>confdefs.h <<_ACEOF #define MCA_io_romio321_USER_CONFIGURE_FLAGS "$with_io_romio_flags" _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want ROMIO component" >&5 $as_echo_n "checking if want ROMIO component... " >&6; } if test "$enable_io_romio" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } should_build=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI profiling is enabled" >&5 $as_echo_n "checking if MPI profiling is enabled... " >&6; } if test "$enable_mpi_profile" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&5 $as_echo "$as_me: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&2;} if test "$enable_io_romio" = "yes"; then : as_fn_error $? "*** ROMIO requested but not available. Aborting" "$LINENO" 5 fi should_build=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -n "$with_io_romio_flags" && test "$with_io_romio_flags" != "no"; then : io_romio321_flags="$with_io_romio_flags $io_romio321_flags" else io_romio321_flags= fi # If ROMIO is going to end up in a DSO, all we need is # shared library-ized objects, as we're only building a # DSO (which is always shared). Otherwise, build with # same flags as OMPI, as we might need any combination of # shared and static-ized objects... if test "$compile_mode" = "dso"; then : io_romio321_shared=enable io_romio321_static=disable else if test "$enable_shared" = "yes"; then : io_romio321_shared=enable else io_romio321_shared=disable fi if test "$enable_static" = "yes"; then : io_romio321_static=enable else io_romio321_static=disable fi fi if test -n "$prefix" && test "$prefix" != "NONE"; then : io_romio321_prefix_arg="--prefix=$prefix" else io_romio321_prefix_arg= fi if test "$cross_compiling" = "yes"; then : if test ! -z $build; then : io_romio321_flags="$io_romio321_flags --build=$build" fi if test ! -z $host; then : io_romio321_flags="$io_romio321_flags --host=$host" fi if test ! -z $target; then : io_romio321_flags="$io_romio321_flags --target=$target" fi fi if test "$enable_grequest_extensions" = "yes"; then : io_romio321_flags="$io_romio321_flags --enable-grequest-extensions" fi io_romio321_flags_define="$io_romio321_flags FROM_OMPI=yes CC='$CC' CFLAGS='$CFLAGS -D__EXTENSIONS__' CPPFLAGS='$CPPFLAGS' FFLAGS='$FFLAGS' LDFLAGS='$LDFLAGS' --$io_romio321_shared-shared --$io_romio321_static-static $io_romio321_flags $io_romio321_prefix_arg --disable-aio --disable-weak-symbols --enable-strict --disable-f77 --disable-f90" cat >>confdefs.h <<_ACEOF #define MCA_io_romio321_COMPLETE_CONFIGURE_FLAGS "$io_romio321_flags_define" _ACEOF io_romio321_flags="$io_romio321_flags FROM_OMPI=yes CC="'"'"$CC"'"'" CFLAGS="'"'"$CFLAGS -D__EXTENSIONS__"'"'" CPPFLAGS="'"'"$CPPFLAGS"'"'" FFLAGS="'"'"$FFLAGS"'"'" LDFLAGS="'"'"$LDFLAGS"'"'" --$io_romio321_shared-shared --$io_romio321_static-static $io_romio321_flags $io_romio321_prefix_arg --disable-aio --disable-weak-symbols --enable-strict --disable-f77 --disable-f90" opal_show_subtitle "Configuring ROMIO distribution" # 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/io/romio321/romio is the directory to invoke in # $io_romio321_flags is the list of arguments to pass # io_romio321_happy=1 is actions to execute upon success # io_romio321_happy=0 is actions to execute upon failure # subdir_dir="ompi/mca/io/romio321/romio" subdir_args="$io_romio321_flags" subdir_success="io_romio321_happy=1" subdir_failure="io_romio321_happy=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 "$io_romio321_happy" = "1"; then : # grab the libraries list from ROMIO. We don't # need this for building the component, as libtool # will figure that part out. But we do need it for # the wrapper settings io_romio321_save_LIBS="$LIBS" LIBS= . ompi/mca/io/romio321/romio/localdefs io_romio321_LIBS="$LIBS" LIBS="$io_romio321_save_LIBS" echo "ROMIO distribution configured successfully" should_build=$should_build else if test "$enable_io_romio" = "yes"; then : as_fn_error $? "ROMIO distribution did not configure successfully" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ROMIO distribution did not configure successfully" >&5 $as_echo "$as_me: WARNING: ROMIO distribution did not configure successfully" >&2;} fi should_build=0 fi fi fi # Unwind the index 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 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/io/romio321/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components romio321" if test "$compile_mode" = "dso" ; then dso_components="$dso_components romio321" else if test "io" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/io/romio321/lib${OMPI_LIB_PREFIX}mca_io_romio321.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/io/romio321/libmca_io_romio321.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_io_romio321_component;" >> $outfile.extern echo " &mca_io_romio321_component, " >> $outfile.struct static_components="$static_components romio321" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component io:romio321 can compile" >&5 $as_echo_n "checking if MCA component io:romio321 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_io" = "romio321" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_io_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** io component romio321 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_io" = "romio321" ; then as_fn_error $? "*** io component romio321 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$io_romio321_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $io_romio321_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $io_romio321_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$io_romio321_WRAPPER_EXTRA_LIBS" = ""; 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_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 $io_romio321_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $io_romio321_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$io_romio321_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $io_romio321_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring io_romio321_WRAPPER_EXTRA_CPPFLAGS ($io_romio321_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring io_romio321_WRAPPER_EXTRA_CPPFLAGS ($io_romio321_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component io:romio321 can compile" >&5 $as_echo_n "checking if MCA component io:romio321 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_io" = "romio321" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"romio321\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"romio321\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_io" ; then if test "$DIRECT_io" = "romio321" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"romio321\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"romio321\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components romio321" fi if test $should_build -eq 1; then MCA_io_romio321_SHOULD_BUILD_TRUE= MCA_io_romio321_SHOULD_BUILD_FALSE='#' else MCA_io_romio321_SHOULD_BUILD_TRUE='#' MCA_io_romio321_SHOULD_BUILD_FALSE= fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_io_romio321_DSO=1 else BUILD_ompi_io_romio321_DSO=0 fi if test "$BUILD_ompi_io_romio321_DSO" = "1"; then MCA_BUILD_ompi_io_romio321_DSO_TRUE= MCA_BUILD_ompi_io_romio321_DSO_FALSE='#' else MCA_BUILD_ompi_io_romio321_DSO_TRUE='#' MCA_BUILD_ompi_io_romio321_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/io/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component io:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/io/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_io" ; then if test "$DIRECT_io" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_io" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_io_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_io" str="SHARED_COMPONENT=\$DSO_io_$component" eval $str STATIC_FRAMEWORK="$STATIC_io" str="STATIC_COMPONENT=\$STATIC_io_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component io:$component compile mode" >&5 $as_echo_n "checking for MCA component io:$component compile mode... " >&6; } if test "$DIRECT_io" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/io/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/io/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/io/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then io_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then io_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/io/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "io" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/io/$component/lib${OMPI_LIB_PREFIX}mca_io_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/io/$component/libmca_io_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_io_$component_component;" >> $outfile.extern echo " &mca_io_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component io:$component can compile" >&5 $as_echo_n "checking if MCA component io:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_io" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_io_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** io component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_io" = "$component" ; then as_fn_error $? "*** io component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$io_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$io_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component io:$component can compile" >&5 $as_echo_n "checking if MCA component io:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_io" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_io" ; then if test "$DIRECT_io" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_io_ALL_COMPONENTS="$all_components" MCA_ompi_io_STATIC_COMPONENTS="$static_components" MCA_ompi_io_DSO_COMPONENTS="$dso_components" MCA_ompi_io_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_io_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_io_ALL_SUBDIRS="$MCA_ompi_io_ALL_SUBDIRS mca/io/$item" done MCA_ompi_io_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_io_STATIC_SUBDIRS="$MCA_ompi_io_STATIC_SUBDIRS mca/io/$item" done MCA_ompi_io_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_io_DSO_SUBDIRS="$MCA_ompi_io_DSO_SUBDIRS mca/io/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "io" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mtl" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mtl" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_mtl_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_mtl_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_mtl_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mtl/libmca_mtl.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_mtl_STATIC_LTLIBS)" # configure all the components opal_show_subsubtitle "Configuring MCA framework mtl" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/mtl/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/mtl/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework mtl" >&5 $as_echo_n "checking for no configure components in framework mtl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework mtl" >&5 $as_echo_n "checking for m4 configure components in framework mtl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: ofi, portals4, psm, psm2" >&5 $as_echo "ofi, portals4, psm, psm2" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component mtl:ofi (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/mtl/ofi" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "ofi" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_mtl" = "1"; then : want_component=0 fi if test "$DISABLE_mtl_ofi" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_mtl" SHARED_COMPONENT="$DSO_mtl_ofi" STATIC_FRAMEWORK="$STATIC_mtl" STATIC_COMPONENT="$STATIC_mtl_ofi" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component mtl:ofi compile mode" >&5 $as_echo_n "checking for MCA component mtl:ofi compile mode... " >&6; } if test "$DIRECT_mtl" = "ofi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/mtl/ofi/Makefile" # Check for OFI # Check for OFI libfabric. Note that $opal_ofi_happy is used in # other configure.m4's to know if OFI/libfabric configured # successfully. We only need to run the back-end checks once, but # at least emit a "checking..." statement each subsequent time # this macro is invoked so that configure's stdout has # sensible/logical output. if test -z "$opal_ofi_happy"; then : # Add --with options # Check whether --with-libfabric was given. if test "${with_libfabric+set}" = set; then : withval=$with_libfabric; fi # Check whether --with-libfabric-libdir was given. if test "${with_libfabric_libdir+set}" = set; then : withval=$with_libfabric_libdir; fi # Check whether --with-ofi was given. if test "${with_ofi+set}" = set; then : withval=$with_ofi; fi # Check whether --with-ofi-libdir was given. if test "${with_ofi_libdir+set}" = set; then : withval=$with_ofi_libdir; fi if test "$with_ofi" = ""; then with_ofi=$with_libfabric fi if test "$with_ofi_libdir" = ""; then with_ofi_libdir=$with_libfabric_libdir fi # Sanity check the --with values { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ofi value" >&5 $as_echo_n "checking --with-ofi value... " >&6; } if test "$with_ofi" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ofi)" >&5 $as_echo "simple no (specified --without-ofi)" >&6; } else if test "$with_ofi" = "yes" || test "x$with_ofi" = "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_ofi"; 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_ofi not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ofi not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ofi/include/rdma/fabric.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_ofi/include/rdma/fabric.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ofi/include/rdma/fabric.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ofi)" >&5 $as_echo "sanity check ok ($with_ofi)" >&6; } fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ofi-libdir value" >&5 $as_echo_n "checking --with-ofi-libdir value... " >&6; } if test "$with_ofi_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ofi-libdir)" >&5 $as_echo "simple no (specified --without-ofi-libdir)" >&6; } else if test "$with_ofi_libdir" = "yes" || test "x$with_ofi_libdir" = "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_ofi_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ofi_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ofi_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ofi_libdir/libfabric.* 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_ofi_libdir/libfabric.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ofi_libdir/libfabric.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ofi_libdir)" >&5 $as_echo "sanity check ok ($with_ofi_libdir)" >&6; } fi fi fi 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_check_ofi_save_CPPFLAGS opal_check_ofi_save_LDFLAGS opal_check_ofi_save_LIBS opal_check_fi_info_pci; 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_check_ofi_save_CPPFLAGS opal_check_ofi_save_LDFLAGS opal_check_ofi_save_LIBS opal_check_fi_info_pci\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` opal_check_ofi_save_CPPFLAGS=$CPPFLAGS opal_check_ofi_save_LDFLAGS=$LDFLAGS opal_check_ofi_save_LIBS=$LIBS opal_check_fi_info_pci=0 opal_ofi_happy=yes if test "$with_ofi" = "no"; then : opal_ofi_happy=no fi if test $opal_ofi_happy = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for OFI libfabric in" >&5 $as_echo_n "checking looking for OFI libfabric in... " >&6; } if test "$with_ofi" != "yes"; then : opal_ofi_dir=$with_ofi { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($opal_ofi_dir)" >&5 $as_echo "($opal_ofi_dir)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5 $as_echo "(default search paths)" >&6; } fi if test ! -z "$with_ofi_libdir" && \ test "$with_ofi_libdir" != "yes"; then : opal_ofi_libdir=$with_ofi_libdir fi fi if test $opal_ofi_happy = yes; then : opal_check_package_opal_ofi_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_ofi_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_ofi_save_LIBS="$LIBS" opal_check_package_opal_ofi_orig_CPPFLAGS="$opal_ofi_CPPFLAGS" opal_check_package_opal_ofi_orig_LDFLAGS="$opal_ofi_LDFLAGS" opal_check_package_opal_ofi_orig_LIBS="$opal_ofi_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_rdma_fabric_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_ofi_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 rdma/fabric.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FABRIC_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_rdma_fabric_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_ofi_CPPFLAGS="$opal_ofi_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in rdma/fabric.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FABRIC_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_fi_getinfo opal_check_package_lib_happy="no" if test "$opal_ofi_libdir" != ""; then : # libdir was specified - search only there opal_ofi_LDFLAGS="$opal_ofi_LDFLAGS -L$opal_ofi_libdir" LDFLAGS="$LDFLAGS -L$opal_ofi_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo 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 libfabric requires libnl v1 or v3" >&5 $as_echo_n "checking if libfabric requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fi_getinfo (void); int main(int argc, char *argv[]) { fi_getinfo (); 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:327364: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_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:327371: \$? = $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 fabric" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib fabric" >&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, libfabric links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&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 fabric requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas fabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs fabric" # 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 libfabric requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs fabric" # 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_fi_getinfo" != "no" && test "$ac_cv_search_fi_getinfo" != "none required"; then : opal_ofi_LIBS="$ac_cv_search_fi_getinfo " else opal_ofi_LIBS="" 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_fi_getinfo opal_check_package_lib_happy="no" if test "$opal_ofi_libdir" != ""; then : # libdir was specified - search only there opal_ofi_LDFLAGS="$opal_ofi_LDFLAGS -L$opal_ofi_libdir" LDFLAGS="$LDFLAGS -L$opal_ofi_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_ofi_LDFLAGS="$opal_ofi_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 fi_getinfo" >&5 $as_echo_n "checking for library containing fi_getinfo... " >&6; } if ${ac_cv_search_fi_getinfo+:} 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 fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF for ac_lib in '' fabric; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fi_getinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fi_getinfo+:} false; then : break fi done if ${ac_cv_search_fi_getinfo+:} false; then : else ac_cv_search_fi_getinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fi_getinfo" >&5 $as_echo "$ac_cv_search_fi_getinfo" >&6; } ac_res=$ac_cv_search_fi_getinfo 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_ofi_save_LDFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" unset ac_cv_search_fi_getinfo 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 libfabric requires libnl v1 or v3" >&5 $as_echo_n "checking if libfabric requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fi_getinfo (void); int main(int argc, char *argv[]) { fi_getinfo (); 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:328089: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lfabric $LIBS $opal_ofi_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:328096: \$? = $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 fabric" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib fabric" >&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, libfabric links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&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 fabric requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas fabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs fabric" # 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 libfabric requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libfabric 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 libfabric (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libfabric (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libfabric." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libfabric." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs fabric" # 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_fi_getinfo" != "no" && test "$ac_cv_search_fi_getinfo" != "none required"; then : opal_ofi_LIBS="$ac_cv_search_fi_getinfo " else opal_ofi_LIBS="" 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 : else opal_ofi_CPPFLAGS="$opal_check_package_opal_ofi_orig_CPPFLAGS" opal_ofi_LDFLAGS="$opal_check_package_opal_ofi_orig_LDFLAGS" opal_ofi_LIBS="$opal_check_package_opal_ofi_orig_LIBS" opal_ofi_happy=no fi CPPFLAGS="$opal_check_package_opal_ofi_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_ofi_save_LDFLAGS" LIBS="$opal_check_package_opal_ofi_save_LIBS" fi CPPFLAGS="$CPPFLAGS $opal_ofi_CPPFLAGS" if test $opal_ofi_happy = yes; then : for ac_header in rdma/fi_ext.h do : ac_fn_c_check_header_mongrel "$LINENO" "rdma/fi_ext.h" "ac_cv_header_rdma_fi_ext_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fi_ext_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RDMA_FI_EXT_H 1 _ACEOF fi done ac_fn_c_check_member "$LINENO" "struct fi_info" "nic" "ac_cv_member_struct_fi_info_nic" "#include " if test "x$ac_cv_member_struct_fi_info_nic" = xyes; then : opal_check_fi_info_pci=1 else opal_check_fi_info_pci=0 fi cat >>confdefs.h <<_ACEOF #define OPAL_OFI_PCI_DATA_AVAILABLE $opal_check_fi_info_pci _ACEOF ac_fn_c_check_decl "$LINENO" "PMIX_PACKAGE_RANK" "ac_cv_have_decl_PMIX_PACKAGE_RANK" "#include " if test "x$ac_cv_have_decl_PMIX_PACKAGE_RANK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PMIX_PACKAGE_RANK $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "struct fi_ops_mem_monitor" "ac_cv_type_struct_fi_ops_mem_monitor" "#ifdef HAVE_RDMA_FI_EXT_H #include #endif " if test "x$ac_cv_type_struct_fi_ops_mem_monitor" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_FI_OPS_MEM_MONITOR 1 _ACEOF fi fi CPPFLAGS=$opal_check_ofi_save_CPPFLAGS LDFLAGS=$opal_check_ofi_save_LDFLAGS LIBS=$opal_check_ofi_save_LIBS # 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 Transports | tr ' ' '_') ompi_summary_line="OpenFabrics OFI Libfabric: $opal_ofi_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 # 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_ofi_happy = no; then : if test -n "$with_ofi" && test "$with_ofi" != "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found." >&5 $as_echo "$as_me: WARNING: OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found." >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OFI libfabric is available" >&5 $as_echo_n "checking if OFI libfabric is available... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_ofi_happy" >&5 $as_echo "$opal_ofi_happy" >&6; } fi # The OFI MTL requires at least OFI libfabric v1.5. if test "$opal_ofi_happy" = "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 opal_ofi_ver_ge_save_CPPFLAGS opal_ofi_ver_ge_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=\"opal_ofi_ver_ge_save_CPPFLAGS opal_ofi_ver_ge_happy\"" 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 OFI API version number is >= 1,5" >&5 $as_echo_n "checking if OFI API version number is >= 1,5... " >&6; } opal_ofi_ver_ge_save_CPPFLAGS=$CPPFLAGS CPPFLAGS=$opal_ofi_CPPFLAGS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined(FI_MAJOR_VERSION) #error "we cannot check the version -- sad panda" #elif FI_VERSION_LT(FI_VERSION(FI_MAJOR_VERSION, FI_MINOR_VERSION), FI_VERSION(1,5)) #error "version is too low -- nopes" #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : opal_ofi_ver_ge_happy=1 else opal_ofi_ver_ge_happy=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $opal_ofi_ver_ge_happy -eq 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; } opal_ofi_happy=no fi CPPFLAGS=$opal_ofi_ver_ge_save_CPPFLAGS # 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 "$opal_ofi_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/mtl/ofi/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ofi" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ofi" else if test "mtl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/mtl/ofi/lib${OMPI_LIB_PREFIX}mca_mtl_ofi.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/mtl/ofi/libmca_mtl_ofi.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_mtl_ofi_component;" >> $outfile.extern echo " &mca_mtl_ofi_component, " >> $outfile.struct static_components="$static_components ofi" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:ofi can compile" >&5 $as_echo_n "checking if MCA component mtl:ofi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_mtl" = "ofi" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_mtl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** mtl component ofi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_mtl" = "ofi" ; then as_fn_error $? "*** mtl component ofi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$mtl_ofi_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $mtl_ofi_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $mtl_ofi_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$mtl_ofi_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mtl_ofi_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $mtl_ofi_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$mtl_ofi_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $mtl_ofi_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring mtl_ofi_WRAPPER_EXTRA_CPPFLAGS ($mtl_ofi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring mtl_ofi_WRAPPER_EXTRA_CPPFLAGS ($mtl_ofi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:ofi can compile" >&5 $as_echo_n "checking if MCA component mtl:ofi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_mtl" = "ofi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ofi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ofi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "ofi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ofi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ofi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ofi" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag MTL" >&5 $as_echo_n "checking for index in endpoint array for tag MTL... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_MTL"; then : OMPI_PROC_ENDPOINT_TAG_MTL=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_MTL $OMPI_PROC_ENDPOINT_TAG_MTL _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_MTL" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_MTL" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_mtl_ofi_DSO=1 else BUILD_ompi_mtl_ofi_DSO=0 fi if test "$BUILD_ompi_mtl_ofi_DSO" = "1"; then MCA_BUILD_ompi_mtl_ofi_DSO_TRUE= MCA_BUILD_ompi_mtl_ofi_DSO_FALSE='#' else MCA_BUILD_ompi_mtl_ofi_DSO_TRUE='#' MCA_BUILD_ompi_mtl_ofi_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component mtl:portals4 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/mtl/portals4" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "portals4" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_mtl" = "1"; then : want_component=0 fi if test "$DISABLE_mtl_portals4" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_mtl" SHARED_COMPONENT="$DSO_mtl_portals4" STATIC_FRAMEWORK="$STATIC_mtl" STATIC_COMPONENT="$STATIC_mtl_portals4" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component mtl:portals4 compile mode" >&5 $as_echo_n "checking for MCA component mtl:portals4 compile mode... " >&6; } if test "$DIRECT_mtl" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/mtl/portals4/Makefile" if test -z "$ompi_check_portals4_happy" ; then # Check whether --with-portals4 was given. if test "${with_portals4+set}" = set; then : withval=$with_portals4; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals4 value" >&5 $as_echo_n "checking --with-portals4 value... " >&6; } if test "$with_portals4" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-portals4)" >&5 $as_echo "simple no (specified --without-portals4)" >&6; } else if test "$with_portals4" = "yes" || test "x$with_portals4" = "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_portals4"; 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_portals4 not found" >&5 $as_echo "$as_me: WARNING: Directory $with_portals4 not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_portals4/include/portals4.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_portals4/include/portals4.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_portals4/include/portals4.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals4)" >&5 $as_echo "sanity check ok ($with_portals4)" >&6; } fi fi fi fi # Check whether --with-portals4-libdir was given. if test "${with_portals4_libdir+set}" = set; then : withval=$with_portals4_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals4-libdir value" >&5 $as_echo_n "checking --with-portals4-libdir value... " >&6; } if test "$with_portals4_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-portals4-libdir)" >&5 $as_echo "simple no (specified --without-portals4-libdir)" >&6; } else if test "$with_portals4_libdir" = "yes" || test "x$with_portals4_libdir" = "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_portals4_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_portals4_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_portals4_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_portals4_libdir/libportals.* 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_portals4_libdir/libportals.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_portals4_libdir/libportals.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals4_libdir)" >&5 $as_echo "sanity check ok ($with_portals4_libdir)" >&6; } fi fi fi fi ompi_check_portals4_mtl_portals4_save_CPPFLAGS="$CPPFLAGS" ompi_check_portals4_mtl_portals4_save_LDFLAGS="$LDFLAGS" ompi_check_portals4_mtl_portals4_save_LIBS="$LIBS" if test "$with_portals4" != "no"; then : if test ! -z "$with_portals4" && test "$with_portals4" != "yes"; then : ompi_check_portals4_dir="$with_portals4" fi if test ! -z "$with_portals4_libdir" && test "$with_portals4_libdir" != "yes"; then : ompi_check_portals4_libdir="$with_portals4_libdir" fi opal_check_package_opal_check_portals4_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_check_portals4_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_check_portals4_save_LIBS="$LIBS" opal_check_package_opal_check_portals4_orig_CPPFLAGS="$opal_check_portals4_CPPFLAGS" opal_check_package_opal_check_portals4_orig_LDFLAGS="$opal_check_portals4_LDFLAGS" opal_check_package_opal_check_portals4_orig_LIBS="$opal_check_portals4_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_portals4_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_portals4_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 portals4.h do : ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PORTALS4_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_portals4_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_check_portals4_CPPFLAGS="$opal_check_portals4_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in portals4.h do : ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PORTALS4_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_PtlLEAppend opal_check_package_lib_happy="no" if test "$ompi_check_portals4_libdir" != ""; then : # libdir was specified - search only there opal_check_portals4_LDFLAGS="$opal_check_portals4_LDFLAGS -L$ompi_check_portals4_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_portals4_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend 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 libportals requires libnl v1 or v3" >&5 $as_echo_n "checking if libportals requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PtlLEAppend (void); int main(int argc, char *argv[]) { PtlLEAppend (); 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:330026: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_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:330033: \$? = $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 portals" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib portals" >&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, libportals links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&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 portals requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas portals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs portals" # 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 libportals requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs portals" # 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_PtlLEAppend" != "no" && test "$ac_cv_search_PtlLEAppend" != "none required"; then : opal_check_portals4_LIBS="$ac_cv_search_PtlLEAppend " else opal_check_portals4_LIBS="" 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_PtlLEAppend opal_check_package_lib_happy="no" if test "$ompi_check_portals4_libdir" != ""; then : # libdir was specified - search only there opal_check_portals4_LDFLAGS="$opal_check_portals4_LDFLAGS -L$ompi_check_portals4_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_portals4_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend 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 libportals requires libnl v1 or v3" >&5 $as_echo_n "checking if libportals requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PtlLEAppend (void); int main(int argc, char *argv[]) { PtlLEAppend (); 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:330751: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_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:330758: \$? = $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 portals" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib portals" >&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, libportals links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&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 portals requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas portals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs portals" # 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 libportals requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs portals" # 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_PtlLEAppend" != "no" && test "$ac_cv_search_PtlLEAppend" != "none required"; then : opal_check_portals4_LIBS="$ac_cv_search_PtlLEAppend " else opal_check_portals4_LIBS="" 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 : ompi_check_portals4_happy="yes" else opal_check_portals4_CPPFLAGS="$opal_check_package_opal_check_portals4_orig_CPPFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" opal_check_portals4_LIBS="$opal_check_package_opal_check_portals4_orig_LIBS" ompi_check_portals4_happy="no" fi CPPFLAGS="$opal_check_package_opal_check_portals4_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_check_portals4_save_LDFLAGS" LIBS="$opal_check_package_opal_check_portals4_save_LIBS" else ompi_check_portals4_happy="no" fi CPPFLAGS="$ompi_check_portals4_mtl_portals4_save_CPPFLAGS" LDFLAGS="$ompi_check_portals4_mtl_portals4_save_LDFLAGS" LIBS="$ompi_check_portals4_mtl_portals4_save_LIBS" max_md_size=0 # Check whether --with-portals4-max-md-size was given. if test "${with_portals4_max_md_size+set}" = set; then : withval=$with_portals4_max_md_size; fi if test "$with_portals4_max_md_size" = "yes" || test "$with_portals4_max_md_size" = "no"; then : as_fn_error $? "--with-portals4-max-md-size requires an integer argument" "$LINENO" 5 else if test -n "$with_portals4_max_md_size"; then : max_md_size="$with_portals4_max_md_size" fi fi cat >>confdefs.h <<_ACEOF #define OPAL_PORTALS4_MAX_MD_SIZE $max_md_size _ACEOF max_va_size=0 # Check whether --with-portals4-max-va-size was given. if test "${with_portals4_max_va_size+set}" = set; then : withval=$with_portals4_max_va_size; fi if test "$with_portals4_max_va_size" = "yes" || test "$with_portals4_max_va_size" = "no"; then : as_fn_error $? "--with-portals4-max-va-size requires an integer argument" "$LINENO" 5 else if test -n "$with_portals4_max_va_size"; then : max_va_size="$with_portals4_max_va_size" fi fi cat >>confdefs.h <<_ACEOF #define OPAL_PORTALS4_MAX_VA_SIZE $max_va_size _ACEOF if (test $max_md_size -eq 0 && test $max_va_size -ne 0 ) || (test $max_md_size -ne 0 && test $max_va_size -eq 0 ); then : as_fn_error $? "If either --with-portals4-max-md-size or --with-portals4-max-va-size is set, both must be set." "$LINENO" 5 fi if test $max_md_size -ge $max_va_size; then : max_md_size=0 max_va_size=0 fi if test $max_md_size -ne 0 && test $max_va_size -ne 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: Portals 4 address space size: $max_md_size, $max_va_size" >&5 $as_echo "$as_me: Portals 4 address space size: $max_md_size, $max_va_size" >&6;} 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 Transports | tr ' ' '_') ompi_summary_line="Portals4: $ompi_check_portals4_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 fi if test "$ompi_check_portals4_happy" = "yes"; then : mtl_portals4_LDFLAGS="$mtl_portals4_LDFLAGS $opal_check_portals4_LDFLAGS" mtl_portals4_CPPFLAGS="$mtl_portals4_CPPFLAGS $opal_check_portals4_CPPFLAGS" mtl_portals4_LIBS="$mtl_portals4_LIBS $opal_check_portals4_LIBS" mtl_portals4_happy="yes" else if test ! -z "$with_portals4" && test "$with_portals4" != "no"; then : as_fn_error $? "Portals4 support requested but not found. Aborting" "$LINENO" 5 fi mtl_portals4_happy="no" fi if test "$mtl_portals4_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # need to propogate CPPFLAGS to all of OMPI if test "$DIRECT_mtl" = "portals4"; then : mtl_portals4_WRAPPER_EXTRA_CPPFLAGS="$mtl_portals4_CPPFLAGS" CPPFLAGS="$CPPFLAGS $mtl_portals4_CPPFLAGS" fi # Check whether --enable-mtl-portals4-flow-control was given. if test "${enable_mtl_portals4_flow_control+set}" = set; then : enableval=$enable_mtl_portals4_flow_control; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable flow control" >&5 $as_echo_n "checking whether to enable flow control... " >&6; } if test "$enable_mtl_portals4_flow_control" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } mtl_portals4_flow_control_enabled=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } mtl_portals4_flow_control_enabled=0 fi cat >>confdefs.h <<_ACEOF #define OMPI_MTL_PORTALS4_FLOW_CONTROL $mtl_portals4_flow_control_enabled _ACEOF if test "$mtl_portals4_flow_control_enabled" = "1"; then OMPI_MTL_PORTALS4_FLOW_CONTROL_TRUE= OMPI_MTL_PORTALS4_FLOW_CONTROL_FALSE='#' else OMPI_MTL_PORTALS4_FLOW_CONTROL_TRUE='#' OMPI_MTL_PORTALS4_FLOW_CONTROL_FALSE= fi # substitute in the things needed to build portals4 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/mtl/portals4/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components portals4" if test "$compile_mode" = "dso" ; then dso_components="$dso_components portals4" else if test "mtl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/mtl/portals4/lib${OMPI_LIB_PREFIX}mca_mtl_portals4.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/mtl/portals4/libmca_mtl_portals4.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_mtl_portals4_component;" >> $outfile.extern echo " &mca_mtl_portals4_component, " >> $outfile.struct static_components="$static_components portals4" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:portals4 can compile" >&5 $as_echo_n "checking if MCA component mtl:portals4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_mtl" = "portals4" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_mtl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** mtl component portals4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_mtl" = "portals4" ; then as_fn_error $? "*** mtl component portals4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$mtl_portals4_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $mtl_portals4_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $mtl_portals4_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$mtl_portals4_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mtl_portals4_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $mtl_portals4_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$mtl_portals4_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $mtl_portals4_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring mtl_portals4_WRAPPER_EXTRA_CPPFLAGS ($mtl_portals4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring mtl_portals4_WRAPPER_EXTRA_CPPFLAGS ($mtl_portals4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:portals4 can compile" >&5 $as_echo_n "checking if MCA component mtl:portals4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_mtl" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"portals4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"portals4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components portals4" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag PORTALS4" >&5 $as_echo_n "checking for index in endpoint array for tag PORTALS4... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_PORTALS4"; then : OMPI_PROC_ENDPOINT_TAG_PORTALS4=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_PORTALS4 $OMPI_PROC_ENDPOINT_TAG_PORTALS4 _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_PORTALS4" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_PORTALS4" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_mtl_portals4_DSO=1 else BUILD_ompi_mtl_portals4_DSO=0 fi if test "$BUILD_ompi_mtl_portals4_DSO" = "1"; then MCA_BUILD_ompi_mtl_portals4_DSO_TRUE= MCA_BUILD_ompi_mtl_portals4_DSO_FALSE='#' else MCA_BUILD_ompi_mtl_portals4_DSO_TRUE='#' MCA_BUILD_ompi_mtl_portals4_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component mtl:psm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/mtl/psm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "psm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_mtl" = "1"; then : want_component=0 fi if test "$DISABLE_mtl_psm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_mtl" SHARED_COMPONENT="$DSO_mtl_psm" STATIC_FRAMEWORK="$STATIC_mtl" STATIC_COMPONENT="$STATIC_mtl_psm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component mtl:psm compile mode" >&5 $as_echo_n "checking for MCA component mtl:psm compile mode... " >&6; } if test "$DIRECT_mtl" = "psm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/mtl/psm/Makefile" if test -z "$ompi_check_psm_happy" ; then # Check whether --with-psm was given. if test "${with_psm+set}" = set; then : withval=$with_psm; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-psm value" >&5 $as_echo_n "checking --with-psm value... " >&6; } if test "$with_psm" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-psm)" >&5 $as_echo "simple no (specified --without-psm)" >&6; } else if test "$with_psm" = "yes" || test "x$with_psm" = "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_psm"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_psm not found" >&5 $as_echo "$as_me: WARNING: Directory $with_psm not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_psm/include/psm.h 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_psm/include/psm.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_psm/include/psm.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_psm)" >&5 $as_echo "sanity check ok ($with_psm)" >&6; } fi fi fi fi # Check whether --with-psm-libdir was given. if test "${with_psm_libdir+set}" = set; then : withval=$with_psm_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-psm-libdir value" >&5 $as_echo_n "checking --with-psm-libdir value... " >&6; } if test "$with_psm_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-psm-libdir)" >&5 $as_echo "simple no (specified --without-psm-libdir)" >&6; } else if test "$with_psm_libdir" = "yes" || test "x$with_psm_libdir" = "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_psm_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_psm_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_psm_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_psm_libdir/libpsm_infinipath.* 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_psm_libdir/libpsm_infinipath.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_psm_libdir/libpsm_infinipath.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_psm_libdir)" >&5 $as_echo "sanity check ok ($with_psm_libdir)" >&6; } fi fi fi fi ompi_check_psm_mtl_psm_save_CPPFLAGS="$CPPFLAGS" ompi_check_psm_mtl_psm_save_LDFLAGS="$LDFLAGS" ompi_check_psm_mtl_psm_save_LIBS="$LIBS" if test "$with_psm" != "no"; then : if test ! -z "$with_psm" && test "$with_psm" != "yes"; then : ompi_check_psm_dir="$with_psm" fi if test ! -z "$with_psm_libdir" && test "$with_psm_libdir" != "yes"; then : ompi_check_psm_libdir="$with_psm_libdir" fi opal_check_package_ompi_check_psm_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_psm_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_psm_save_LIBS="$LIBS" opal_check_package_ompi_check_psm_orig_CPPFLAGS="$ompi_check_psm_CPPFLAGS" opal_check_package_ompi_check_psm_orig_LDFLAGS="$ompi_check_psm_LDFLAGS" opal_check_package_ompi_check_psm_orig_LIBS="$ompi_check_psm_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_psm_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_psm_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 psm.h do : ac_fn_c_check_header_mongrel "$LINENO" "psm.h" "ac_cv_header_psm_h" "$ac_includes_default" if test "x$ac_cv_header_psm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PSM_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_psm_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_psm_CPPFLAGS="$ompi_check_psm_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in psm.h do : ac_fn_c_check_header_mongrel "$LINENO" "psm.h" "ac_cv_header_psm_h" "$ac_includes_default" if test "x$ac_cv_header_psm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PSM_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_psm_finalize opal_check_package_lib_happy="no" if test "$ompi_check_psm_libdir" != ""; then : # libdir was specified - search only there ompi_check_psm_LDFLAGS="$ompi_check_psm_LDFLAGS -L$ompi_check_psm_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psm_finalize" >&5 $as_echo_n "checking for library containing psm_finalize... " >&6; } if ${ac_cv_search_psm_finalize+:} 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 psm_finalize (); int main () { return psm_finalize (); ; return 0; } _ACEOF for ac_lib in '' psm_infinipath; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm_finalize=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm_finalize+:} false; then : break fi done if ${ac_cv_search_psm_finalize+:} false; then : else ac_cv_search_psm_finalize=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm_finalize" >&5 $as_echo "$ac_cv_search_psm_finalize" >&6; } ac_res=$ac_cv_search_psm_finalize 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_ompi_check_psm_save_LDFLAGS" ompi_check_psm_LDFLAGS="$opal_check_package_ompi_check_psm_orig_LDFLAGS" unset ac_cv_search_psm_finalize fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_psm_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 psm_finalize" >&5 $as_echo_n "checking for library containing psm_finalize... " >&6; } if ${ac_cv_search_psm_finalize+:} 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 psm_finalize (); int main () { return psm_finalize (); ; return 0; } _ACEOF for ac_lib in '' psm_infinipath; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm_finalize=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm_finalize+:} false; then : break fi done if ${ac_cv_search_psm_finalize+:} false; then : else ac_cv_search_psm_finalize=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm_finalize" >&5 $as_echo "$ac_cv_search_psm_finalize" >&6; } ac_res=$ac_cv_search_psm_finalize 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_ompi_check_psm_save_LDFLAGS" ompi_check_psm_LDFLAGS="$opal_check_package_ompi_check_psm_orig_LDFLAGS" unset ac_cv_search_psm_finalize fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_psm_LDFLAGS="$ompi_check_psm_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 psm_finalize" >&5 $as_echo_n "checking for library containing psm_finalize... " >&6; } if ${ac_cv_search_psm_finalize+:} 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 psm_finalize (); int main () { return psm_finalize (); ; return 0; } _ACEOF for ac_lib in '' psm_infinipath; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm_finalize=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm_finalize+:} false; then : break fi done if ${ac_cv_search_psm_finalize+:} false; then : else ac_cv_search_psm_finalize=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm_finalize" >&5 $as_echo "$ac_cv_search_psm_finalize" >&6; } ac_res=$ac_cv_search_psm_finalize 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_ompi_check_psm_save_LDFLAGS" ompi_check_psm_LDFLAGS="$opal_check_package_ompi_check_psm_orig_LDFLAGS" unset ac_cv_search_psm_finalize fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_psm_LDFLAGS="$ompi_check_psm_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 psm_finalize" >&5 $as_echo_n "checking for library containing psm_finalize... " >&6; } if ${ac_cv_search_psm_finalize+:} 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 psm_finalize (); int main () { return psm_finalize (); ; return 0; } _ACEOF for ac_lib in '' psm_infinipath; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm_finalize=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm_finalize+:} false; then : break fi done if ${ac_cv_search_psm_finalize+:} false; then : else ac_cv_search_psm_finalize=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm_finalize" >&5 $as_echo "$ac_cv_search_psm_finalize" >&6; } ac_res=$ac_cv_search_psm_finalize 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_ompi_check_psm_save_LDFLAGS" ompi_check_psm_LDFLAGS="$opal_check_package_ompi_check_psm_orig_LDFLAGS" unset ac_cv_search_psm_finalize 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 libpsm_infinipath requires libnl v1 or v3" >&5 $as_echo_n "checking if libpsm_infinipath requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void psm_finalize (void); int main(int argc, char *argv[]) { psm_finalize (); 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:332589: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpsm_infinipath $LIBS $ompi_check_psm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpsm_infinipath $LIBS $ompi_check_psm_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:332596: \$? = $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 psm_infinipath" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib psm_infinipath" >&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, libpsm_infinipath links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpsm_infinipath 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 libpsm_infinipath (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm_infinipath (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&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 psm_infinipath requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas psm_infinipath 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 libpsm_infinipath (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm_infinipath (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs psm_infinipath" # 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 libpsm_infinipath requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpsm_infinipath 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 libpsm_infinipath (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm_infinipath (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs psm_infinipath" # 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_psm_finalize" != "no" && test "$ac_cv_search_psm_finalize" != "none required"; then : ompi_check_psm_LIBS="$ac_cv_search_psm_finalize " else ompi_check_psm_LIBS="" 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_psm_finalize opal_check_package_lib_happy="no" if test "$ompi_check_psm_libdir" != ""; then : # libdir was specified - search only there ompi_check_psm_LDFLAGS="$ompi_check_psm_LDFLAGS -L$ompi_check_psm_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psm_finalize" >&5 $as_echo_n "checking for library containing psm_finalize... " >&6; } if ${ac_cv_search_psm_finalize+:} 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 psm_finalize (); int main () { return psm_finalize (); ; return 0; } _ACEOF for ac_lib in '' psm_infinipath; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm_finalize=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm_finalize+:} false; then : break fi done if ${ac_cv_search_psm_finalize+:} false; then : else ac_cv_search_psm_finalize=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm_finalize" >&5 $as_echo "$ac_cv_search_psm_finalize" >&6; } ac_res=$ac_cv_search_psm_finalize 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_ompi_check_psm_save_LDFLAGS" ompi_check_psm_LDFLAGS="$opal_check_package_ompi_check_psm_orig_LDFLAGS" unset ac_cv_search_psm_finalize fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_psm_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 psm_finalize" >&5 $as_echo_n "checking for library containing psm_finalize... " >&6; } if ${ac_cv_search_psm_finalize+:} 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 psm_finalize (); int main () { return psm_finalize (); ; return 0; } _ACEOF for ac_lib in '' psm_infinipath; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm_finalize=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm_finalize+:} false; then : break fi done if ${ac_cv_search_psm_finalize+:} false; then : else ac_cv_search_psm_finalize=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm_finalize" >&5 $as_echo "$ac_cv_search_psm_finalize" >&6; } ac_res=$ac_cv_search_psm_finalize 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_ompi_check_psm_save_LDFLAGS" ompi_check_psm_LDFLAGS="$opal_check_package_ompi_check_psm_orig_LDFLAGS" unset ac_cv_search_psm_finalize fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_psm_LDFLAGS="$ompi_check_psm_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 psm_finalize" >&5 $as_echo_n "checking for library containing psm_finalize... " >&6; } if ${ac_cv_search_psm_finalize+:} 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 psm_finalize (); int main () { return psm_finalize (); ; return 0; } _ACEOF for ac_lib in '' psm_infinipath; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm_finalize=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm_finalize+:} false; then : break fi done if ${ac_cv_search_psm_finalize+:} false; then : else ac_cv_search_psm_finalize=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm_finalize" >&5 $as_echo "$ac_cv_search_psm_finalize" >&6; } ac_res=$ac_cv_search_psm_finalize 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_ompi_check_psm_save_LDFLAGS" ompi_check_psm_LDFLAGS="$opal_check_package_ompi_check_psm_orig_LDFLAGS" unset ac_cv_search_psm_finalize fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_psm_LDFLAGS="$ompi_check_psm_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 psm_finalize" >&5 $as_echo_n "checking for library containing psm_finalize... " >&6; } if ${ac_cv_search_psm_finalize+:} 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 psm_finalize (); int main () { return psm_finalize (); ; return 0; } _ACEOF for ac_lib in '' psm_infinipath; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm_finalize=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm_finalize+:} false; then : break fi done if ${ac_cv_search_psm_finalize+:} false; then : else ac_cv_search_psm_finalize=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm_finalize" >&5 $as_echo "$ac_cv_search_psm_finalize" >&6; } ac_res=$ac_cv_search_psm_finalize 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_ompi_check_psm_save_LDFLAGS" ompi_check_psm_LDFLAGS="$opal_check_package_ompi_check_psm_orig_LDFLAGS" unset ac_cv_search_psm_finalize 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 libpsm_infinipath requires libnl v1 or v3" >&5 $as_echo_n "checking if libpsm_infinipath requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void psm_finalize (void); int main(int argc, char *argv[]) { psm_finalize (); 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:333314: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpsm_infinipath $LIBS $ompi_check_psm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpsm_infinipath $LIBS $ompi_check_psm_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:333321: \$? = $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 psm_infinipath" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib psm_infinipath" >&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, libpsm_infinipath links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpsm_infinipath 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 libpsm_infinipath (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm_infinipath (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&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 psm_infinipath requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas psm_infinipath 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 libpsm_infinipath (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm_infinipath (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs psm_infinipath" # 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 libpsm_infinipath requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpsm_infinipath 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 libpsm_infinipath (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm_infinipath (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm_infinipath." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs psm_infinipath" # 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_psm_finalize" != "no" && test "$ac_cv_search_psm_finalize" != "none required"; then : ompi_check_psm_LIBS="$ac_cv_search_psm_finalize " else ompi_check_psm_LIBS="" 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 : ompi_check_psm_happy="yes" else ompi_check_psm_CPPFLAGS="$opal_check_package_ompi_check_psm_orig_CPPFLAGS" ompi_check_psm_LDFLAGS="$opal_check_package_ompi_check_psm_orig_LDFLAGS" ompi_check_psm_LIBS="$opal_check_package_ompi_check_psm_orig_LIBS" ompi_check_psm_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_psm_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_psm_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_psm_save_LIBS" else ompi_check_psm_happy="no" fi CPPFLAGS="$ompi_check_psm_mtl_psm_save_CPPFLAGS" LDFLAGS="$ompi_check_psm_mtl_psm_save_LDFLAGS" LIBS="$ompi_check_psm_mtl_psm_save_LIBS" if test "$ompi_check_psm_happy" = "yes" && test "$enable_progress_threads" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PSM driver does not currently support progress threads. Disabling BTL." >&5 $as_echo "$as_me: WARNING: PSM driver does not currently support progress threads. Disabling BTL." >&2;} ompi_check_psm_happy="no" fi if test "$ompi_check_psm_happy" = "yes"; then : for ac_header in glob.h do : ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" if test "x$ac_cv_header_glob_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GLOB_H 1 _ACEOF else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: glob.h not found. Can not build component." >&5 $as_echo "$as_me: WARNING: glob.h not found. Can not build component." >&2;} ompi_check_psm_happy="no" fi done 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 Transports | tr ' ' '_') ompi_summary_line="Intel TrueScale (PSM): $ompi_check_psm_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 fi if test "$ompi_check_psm_happy" = "yes"; then : mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS $ompi_check_psm_LDFLAGS" mtl_psm_CPPFLAGS="$mtl_psm_CPPFLAGS $ompi_check_psm_CPPFLAGS" mtl_psm_LIBS="$mtl_psm_LIBS $ompi_check_psm_LIBS" mtl_psm_happy="yes" else if test ! -z "$with_psm" && test "$with_psm" != "no"; then : as_fn_error $? "PSM support requested but not found. Aborting" "$LINENO" 5 fi mtl_psm_happy="no" fi if test "$mtl_psm_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build psm opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/mtl/psm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components psm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components psm" else if test "mtl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/mtl/psm/lib${OMPI_LIB_PREFIX}mca_mtl_psm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/mtl/psm/libmca_mtl_psm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_mtl_psm_component;" >> $outfile.extern echo " &mca_mtl_psm_component, " >> $outfile.struct static_components="$static_components psm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:psm can compile" >&5 $as_echo_n "checking if MCA component mtl:psm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_mtl" = "psm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_mtl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** mtl component psm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_mtl" = "psm" ; then as_fn_error $? "*** mtl component psm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$mtl_psm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $mtl_psm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $mtl_psm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$mtl_psm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mtl_psm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $mtl_psm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$mtl_psm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $mtl_psm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring mtl_psm_WRAPPER_EXTRA_CPPFLAGS ($mtl_psm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring mtl_psm_WRAPPER_EXTRA_CPPFLAGS ($mtl_psm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:psm can compile" >&5 $as_echo_n "checking if MCA component mtl:psm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_mtl" = "psm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"psm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "psm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"psm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components psm" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag MTL" >&5 $as_echo_n "checking for index in endpoint array for tag MTL... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_MTL"; then : OMPI_PROC_ENDPOINT_TAG_MTL=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_MTL $OMPI_PROC_ENDPOINT_TAG_MTL _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_MTL" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_MTL" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_mtl_psm_DSO=1 else BUILD_ompi_mtl_psm_DSO=0 fi if test "$BUILD_ompi_mtl_psm_DSO" = "1"; then MCA_BUILD_ompi_mtl_psm_DSO_TRUE= MCA_BUILD_ompi_mtl_psm_DSO_FALSE='#' else MCA_BUILD_ompi_mtl_psm_DSO_TRUE='#' MCA_BUILD_ompi_mtl_psm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component mtl:psm2 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/mtl/psm2" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "psm2" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_mtl" = "1"; then : want_component=0 fi if test "$DISABLE_mtl_psm2" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_mtl" SHARED_COMPONENT="$DSO_mtl_psm2" STATIC_FRAMEWORK="$STATIC_mtl" STATIC_COMPONENT="$STATIC_mtl_psm2" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component mtl:psm2 compile mode" >&5 $as_echo_n "checking for MCA component mtl:psm2 compile mode... " >&6; } if test "$DIRECT_mtl" = "psm2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/mtl/psm2/Makefile" if test -z "$ompi_check_psm2_happy" ; then # Check whether --with-psm2 was given. if test "${with_psm2+set}" = set; then : withval=$with_psm2; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-psm2 value" >&5 $as_echo_n "checking --with-psm2 value... " >&6; } if test "$with_psm2" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-psm2)" >&5 $as_echo "simple no (specified --without-psm2)" >&6; } else if test "$with_psm2" = "yes" || test "x$with_psm2" = "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_psm2"; 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_psm2 not found" >&5 $as_echo "$as_me: WARNING: Directory $with_psm2 not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_psm2/include/psm2.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_psm2/include/psm2.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_psm2/include/psm2.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_psm2)" >&5 $as_echo "sanity check ok ($with_psm2)" >&6; } fi fi fi fi # Check whether --with-psm2-libdir was given. if test "${with_psm2_libdir+set}" = set; then : withval=$with_psm2_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-psm2-libdir value" >&5 $as_echo_n "checking --with-psm2-libdir value... " >&6; } if test "$with_psm2_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-psm2-libdir)" >&5 $as_echo "simple no (specified --without-psm2-libdir)" >&6; } else if test "$with_psm2_libdir" = "yes" || test "x$with_psm2_libdir" = "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_psm2_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_psm2_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_psm2_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_psm2_libdir/libpsm2.* 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_psm2_libdir/libpsm2.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_psm2_libdir/libpsm2.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_psm2_libdir)" >&5 $as_echo "sanity check ok ($with_psm2_libdir)" >&6; } fi fi fi fi # Check whether --enable-psm2-version-check was given. if test "${enable_psm2_version_check+set}" = set; then : enableval=$enable_psm2_version_check; fi ompi_check_psm2_mtl_psm2_save_CPPFLAGS="$CPPFLAGS" ompi_check_psm2_mtl_psm2_save_LDFLAGS="$LDFLAGS" ompi_check_psm2_mtl_psm2_save_LIBS="$LIBS" if test "$with_psm2" != "no"; then : if test ! -z "$with_psm2" && test "$with_psm2" != "yes"; then : ompi_check_psm2_dir="$with_psm2" fi if test ! -z "$with_psm2_libdir" && test "$with_psm2_libdir" != "yes"; then : ompi_check_psm2_libdir="$with_psm2_libdir" fi opal_check_package_ompi_check_psm2_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_psm2_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_psm2_save_LIBS="$LIBS" opal_check_package_ompi_check_psm2_orig_CPPFLAGS="$ompi_check_psm2_CPPFLAGS" opal_check_package_ompi_check_psm2_orig_LDFLAGS="$ompi_check_psm2_LDFLAGS" opal_check_package_ompi_check_psm2_orig_LIBS="$ompi_check_psm2_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_psm2_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_psm2_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 psm2.h do : ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default" if test "x$ac_cv_header_psm2_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PSM2_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_psm2_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_psm2_CPPFLAGS="$ompi_check_psm2_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in psm2.h do : ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default" if test "x$ac_cv_header_psm2_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PSM2_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_psm2_mq_irecv2 opal_check_package_lib_happy="no" if test "$ompi_check_psm2_libdir" != ""; then : # libdir was specified - search only there ompi_check_psm2_LDFLAGS="$ompi_check_psm2_LDFLAGS -L$ompi_check_psm2_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_psm2_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psm2_mq_irecv2" >&5 $as_echo_n "checking for library containing psm2_mq_irecv2... " >&6; } if ${ac_cv_search_psm2_mq_irecv2+:} 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 psm2_mq_irecv2 (); int main () { return psm2_mq_irecv2 (); ; return 0; } _ACEOF for ac_lib in '' psm2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm2_mq_irecv2=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm2_mq_irecv2+:} false; then : break fi done if ${ac_cv_search_psm2_mq_irecv2+:} false; then : else ac_cv_search_psm2_mq_irecv2=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm2_mq_irecv2" >&5 $as_echo "$ac_cv_search_psm2_mq_irecv2" >&6; } ac_res=$ac_cv_search_psm2_mq_irecv2 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_ompi_check_psm2_save_LDFLAGS" ompi_check_psm2_LDFLAGS="$opal_check_package_ompi_check_psm2_orig_LDFLAGS" unset ac_cv_search_psm2_mq_irecv2 fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_psm2_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 psm2_mq_irecv2" >&5 $as_echo_n "checking for library containing psm2_mq_irecv2... " >&6; } if ${ac_cv_search_psm2_mq_irecv2+:} 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 psm2_mq_irecv2 (); int main () { return psm2_mq_irecv2 (); ; return 0; } _ACEOF for ac_lib in '' psm2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm2_mq_irecv2=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm2_mq_irecv2+:} false; then : break fi done if ${ac_cv_search_psm2_mq_irecv2+:} false; then : else ac_cv_search_psm2_mq_irecv2=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm2_mq_irecv2" >&5 $as_echo "$ac_cv_search_psm2_mq_irecv2" >&6; } ac_res=$ac_cv_search_psm2_mq_irecv2 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_ompi_check_psm2_save_LDFLAGS" ompi_check_psm2_LDFLAGS="$opal_check_package_ompi_check_psm2_orig_LDFLAGS" unset ac_cv_search_psm2_mq_irecv2 fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_psm2_LDFLAGS="$ompi_check_psm2_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 psm2_mq_irecv2" >&5 $as_echo_n "checking for library containing psm2_mq_irecv2... " >&6; } if ${ac_cv_search_psm2_mq_irecv2+:} 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 psm2_mq_irecv2 (); int main () { return psm2_mq_irecv2 (); ; return 0; } _ACEOF for ac_lib in '' psm2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm2_mq_irecv2=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm2_mq_irecv2+:} false; then : break fi done if ${ac_cv_search_psm2_mq_irecv2+:} false; then : else ac_cv_search_psm2_mq_irecv2=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm2_mq_irecv2" >&5 $as_echo "$ac_cv_search_psm2_mq_irecv2" >&6; } ac_res=$ac_cv_search_psm2_mq_irecv2 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_ompi_check_psm2_save_LDFLAGS" ompi_check_psm2_LDFLAGS="$opal_check_package_ompi_check_psm2_orig_LDFLAGS" unset ac_cv_search_psm2_mq_irecv2 fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_psm2_LDFLAGS="$ompi_check_psm2_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 psm2_mq_irecv2" >&5 $as_echo_n "checking for library containing psm2_mq_irecv2... " >&6; } if ${ac_cv_search_psm2_mq_irecv2+:} 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 psm2_mq_irecv2 (); int main () { return psm2_mq_irecv2 (); ; return 0; } _ACEOF for ac_lib in '' psm2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm2_mq_irecv2=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm2_mq_irecv2+:} false; then : break fi done if ${ac_cv_search_psm2_mq_irecv2+:} false; then : else ac_cv_search_psm2_mq_irecv2=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm2_mq_irecv2" >&5 $as_echo "$ac_cv_search_psm2_mq_irecv2" >&6; } ac_res=$ac_cv_search_psm2_mq_irecv2 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_ompi_check_psm2_save_LDFLAGS" ompi_check_psm2_LDFLAGS="$opal_check_package_ompi_check_psm2_orig_LDFLAGS" unset ac_cv_search_psm2_mq_irecv2 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 libpsm2 requires libnl v1 or v3" >&5 $as_echo_n "checking if libpsm2 requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void psm2_mq_irecv2 (void); int main(int argc, char *argv[]) { psm2_mq_irecv2 (); 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:335096: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpsm2 $LIBS $ompi_check_psm2_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpsm2 $LIBS $ompi_check_psm2_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:335103: \$? = $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 psm2" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib psm2" >&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, libpsm2 links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpsm2 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 libpsm2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm2." >&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 psm2 requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas psm2 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 libpsm2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm2." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs psm2" # 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 libpsm2 requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpsm2 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 libpsm2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm2." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs psm2" # 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_psm2_mq_irecv2" != "no" && test "$ac_cv_search_psm2_mq_irecv2" != "none required"; then : ompi_check_psm2_LIBS="$ac_cv_search_psm2_mq_irecv2 " else ompi_check_psm2_LIBS="" 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_psm2_mq_irecv2 opal_check_package_lib_happy="no" if test "$ompi_check_psm2_libdir" != ""; then : # libdir was specified - search only there ompi_check_psm2_LDFLAGS="$ompi_check_psm2_LDFLAGS -L$ompi_check_psm2_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_psm2_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psm2_mq_irecv2" >&5 $as_echo_n "checking for library containing psm2_mq_irecv2... " >&6; } if ${ac_cv_search_psm2_mq_irecv2+:} 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 psm2_mq_irecv2 (); int main () { return psm2_mq_irecv2 (); ; return 0; } _ACEOF for ac_lib in '' psm2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm2_mq_irecv2=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm2_mq_irecv2+:} false; then : break fi done if ${ac_cv_search_psm2_mq_irecv2+:} false; then : else ac_cv_search_psm2_mq_irecv2=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm2_mq_irecv2" >&5 $as_echo "$ac_cv_search_psm2_mq_irecv2" >&6; } ac_res=$ac_cv_search_psm2_mq_irecv2 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_ompi_check_psm2_save_LDFLAGS" ompi_check_psm2_LDFLAGS="$opal_check_package_ompi_check_psm2_orig_LDFLAGS" unset ac_cv_search_psm2_mq_irecv2 fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_psm2_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 psm2_mq_irecv2" >&5 $as_echo_n "checking for library containing psm2_mq_irecv2... " >&6; } if ${ac_cv_search_psm2_mq_irecv2+:} 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 psm2_mq_irecv2 (); int main () { return psm2_mq_irecv2 (); ; return 0; } _ACEOF for ac_lib in '' psm2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm2_mq_irecv2=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm2_mq_irecv2+:} false; then : break fi done if ${ac_cv_search_psm2_mq_irecv2+:} false; then : else ac_cv_search_psm2_mq_irecv2=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm2_mq_irecv2" >&5 $as_echo "$ac_cv_search_psm2_mq_irecv2" >&6; } ac_res=$ac_cv_search_psm2_mq_irecv2 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_ompi_check_psm2_save_LDFLAGS" ompi_check_psm2_LDFLAGS="$opal_check_package_ompi_check_psm2_orig_LDFLAGS" unset ac_cv_search_psm2_mq_irecv2 fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_psm2_LDFLAGS="$ompi_check_psm2_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 psm2_mq_irecv2" >&5 $as_echo_n "checking for library containing psm2_mq_irecv2... " >&6; } if ${ac_cv_search_psm2_mq_irecv2+:} 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 psm2_mq_irecv2 (); int main () { return psm2_mq_irecv2 (); ; return 0; } _ACEOF for ac_lib in '' psm2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm2_mq_irecv2=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm2_mq_irecv2+:} false; then : break fi done if ${ac_cv_search_psm2_mq_irecv2+:} false; then : else ac_cv_search_psm2_mq_irecv2=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm2_mq_irecv2" >&5 $as_echo "$ac_cv_search_psm2_mq_irecv2" >&6; } ac_res=$ac_cv_search_psm2_mq_irecv2 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_ompi_check_psm2_save_LDFLAGS" ompi_check_psm2_LDFLAGS="$opal_check_package_ompi_check_psm2_orig_LDFLAGS" unset ac_cv_search_psm2_mq_irecv2 fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_psm2_LDFLAGS="$ompi_check_psm2_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 psm2_mq_irecv2" >&5 $as_echo_n "checking for library containing psm2_mq_irecv2... " >&6; } if ${ac_cv_search_psm2_mq_irecv2+:} 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 psm2_mq_irecv2 (); int main () { return psm2_mq_irecv2 (); ; return 0; } _ACEOF for ac_lib in '' psm2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_psm2_mq_irecv2=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_psm2_mq_irecv2+:} false; then : break fi done if ${ac_cv_search_psm2_mq_irecv2+:} false; then : else ac_cv_search_psm2_mq_irecv2=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psm2_mq_irecv2" >&5 $as_echo "$ac_cv_search_psm2_mq_irecv2" >&6; } ac_res=$ac_cv_search_psm2_mq_irecv2 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_ompi_check_psm2_save_LDFLAGS" ompi_check_psm2_LDFLAGS="$opal_check_package_ompi_check_psm2_orig_LDFLAGS" unset ac_cv_search_psm2_mq_irecv2 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 libpsm2 requires libnl v1 or v3" >&5 $as_echo_n "checking if libpsm2 requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void psm2_mq_irecv2 (void); int main(int argc, char *argv[]) { psm2_mq_irecv2 (); 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:335821: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpsm2 $LIBS $ompi_check_psm2_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lpsm2 $LIBS $ompi_check_psm2_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:335828: \$? = $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 psm2" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib psm2" >&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, libpsm2 links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libpsm2 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 libpsm2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm2." >&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 psm2 requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas psm2 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 libpsm2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm2." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs psm2" # 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 libpsm2 requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libpsm2 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 libpsm2 (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libpsm2 (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libpsm2." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libpsm2." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs psm2" # 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_psm2_mq_irecv2" != "no" && test "$ac_cv_search_psm2_mq_irecv2" != "none required"; then : ompi_check_psm2_LIBS="$ac_cv_search_psm2_mq_irecv2 " else ompi_check_psm2_LIBS="" 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 : ompi_check_psm2_happy="yes" else ompi_check_psm2_CPPFLAGS="$opal_check_package_ompi_check_psm2_orig_CPPFLAGS" ompi_check_psm2_LDFLAGS="$opal_check_package_ompi_check_psm2_orig_LDFLAGS" ompi_check_psm2_LIBS="$opal_check_package_ompi_check_psm2_orig_LIBS" ompi_check_psm2_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_psm2_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_psm2_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_psm2_save_LIBS" else ompi_check_psm2_happy="no" fi if test "$ompi_check_psm2_happy" = "yes" && test "$enable_progress_threads" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PSM2 driver does not currently support progress threads. Disabling MTL." >&5 $as_echo "$as_me: WARNING: PSM2 driver does not currently support progress threads. Disabling MTL." >&2;} ompi_check_psm2_happy="no" fi if test "$ompi_check_psm2_happy" = "yes"; then : for ac_header in glob.h do : ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" if test "x$ac_cv_header_glob_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GLOB_H 1 _ACEOF else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: glob.h not found. Can not build component." >&5 $as_echo "$as_me: WARNING: glob.h not found. Can not build component." >&2;} ompi_check_psm2_happy="no" fi done fi if test "$ompi_check_psm2_happy" = "yes"; then : if test ! -z "$ompi_check_psm2_dir"; then : CPPFLAGS="-I $ompi_check_psm2_dir/include $CPPFLAGS" fi ac_fn_c_check_decl "$LINENO" "PSM2_LIB_REFCOUNT_CAP" "ac_cv_have_decl_PSM2_LIB_REFCOUNT_CAP" "#include " if test "x$ac_cv_have_decl_PSM2_LIB_REFCOUNT_CAP" = xyes; then : $as_echo "#define HAVE_PSM2_LIB_REFCOUNT_CAP 1" >>confdefs.h else if test "x$enable_psm2_version_check" != "xno"; then : ompi_check_psm2_happy="no" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PSM2 needs to be version 11.2.173 or later. Disabling MTL." >&5 $as_echo "$as_me: WARNING: PSM2 needs to be version 11.2.173 or later. Disabling MTL." >&2;} fi fi fi CPPFLAGS="$ompi_check_psm2_mtl_psm2_save_CPPFLAGS" LDFLAGS="$ompi_check_psm2_mtl_psm2_save_LDFLAGS" LIBS="$ompi_check_psm2_mtl_psm2_save_LIBS" # 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 Transports | tr ' ' '_') ompi_summary_line="Intel Omnipath (PSM2): $ompi_check_psm2_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 fi if test "$ompi_check_psm2_happy" = "yes"; then : mtl_psm2_LDFLAGS="$mtl_psm2_LDFLAGS $ompi_check_psm2_LDFLAGS" mtl_psm2_CPPFLAGS="$mtl_psm2_CPPFLAGS $ompi_check_psm2_CPPFLAGS" mtl_psm2_LIBS="$mtl_psm2_LIBS $ompi_check_psm2_LIBS" mtl_psm2_happy="yes" else if test ! -z "$with_psm2" && test "$with_psm2" != "no"; then : as_fn_error $? "PSM2 support requested but not found. Aborting" "$LINENO" 5 fi mtl_psm2_happy="no" fi if test "$mtl_psm2_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build psm2 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/mtl/psm2/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components psm2" if test "$compile_mode" = "dso" ; then dso_components="$dso_components psm2" else if test "mtl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/mtl/psm2/lib${OMPI_LIB_PREFIX}mca_mtl_psm2.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/mtl/psm2/libmca_mtl_psm2.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_mtl_psm2_component;" >> $outfile.extern echo " &mca_mtl_psm2_component, " >> $outfile.struct static_components="$static_components psm2" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:psm2 can compile" >&5 $as_echo_n "checking if MCA component mtl:psm2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_mtl" = "psm2" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_mtl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** mtl component psm2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_mtl" = "psm2" ; then as_fn_error $? "*** mtl component psm2 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$mtl_psm2_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $mtl_psm2_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $mtl_psm2_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$mtl_psm2_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mtl_psm2_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $mtl_psm2_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$mtl_psm2_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $mtl_psm2_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring mtl_psm2_WRAPPER_EXTRA_CPPFLAGS ($mtl_psm2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring mtl_psm2_WRAPPER_EXTRA_CPPFLAGS ($mtl_psm2_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:psm2 can compile" >&5 $as_echo_n "checking if MCA component mtl:psm2 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_mtl" = "psm2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"psm2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"psm2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "psm2" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"psm2\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"psm2\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components psm2" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag MTL" >&5 $as_echo_n "checking for index in endpoint array for tag MTL... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_MTL"; then : OMPI_PROC_ENDPOINT_TAG_MTL=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_MTL $OMPI_PROC_ENDPOINT_TAG_MTL _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_MTL" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_MTL" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_mtl_psm2_DSO=1 else BUILD_ompi_mtl_psm2_DSO=0 fi if test "$BUILD_ompi_mtl_psm2_DSO" = "1"; then MCA_BUILD_ompi_mtl_psm2_DSO_TRUE= MCA_BUILD_ompi_mtl_psm2_DSO_FALSE='#' else MCA_BUILD_ompi_mtl_psm2_DSO_TRUE='#' MCA_BUILD_ompi_mtl_psm2_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/mtl/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component mtl:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/mtl/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_mtl" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_mtl_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_mtl" str="SHARED_COMPONENT=\$DSO_mtl_$component" eval $str STATIC_FRAMEWORK="$STATIC_mtl" str="STATIC_COMPONENT=\$STATIC_mtl_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component mtl:$component compile mode" >&5 $as_echo_n "checking for MCA component mtl:$component compile mode... " >&6; } if test "$DIRECT_mtl" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/mtl/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/mtl/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/mtl/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then mtl_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then mtl_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/mtl/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "mtl" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/mtl/$component/lib${OMPI_LIB_PREFIX}mca_mtl_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/mtl/$component/libmca_mtl_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_mtl_$component_component;" >> $outfile.extern echo " &mca_mtl_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:$component can compile" >&5 $as_echo_n "checking if MCA component mtl:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_mtl" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_mtl_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** mtl component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_mtl" = "$component" ; then as_fn_error $? "*** mtl component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$mtl_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$mtl_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component mtl:$component can compile" >&5 $as_echo_n "checking if MCA component mtl:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_mtl" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_mtl" ; then if test "$DIRECT_mtl" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_mtl_ALL_COMPONENTS="$all_components" MCA_ompi_mtl_STATIC_COMPONENTS="$static_components" MCA_ompi_mtl_DSO_COMPONENTS="$dso_components" MCA_ompi_mtl_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_mtl_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_mtl_ALL_SUBDIRS="$MCA_ompi_mtl_ALL_SUBDIRS mca/mtl/$item" done MCA_ompi_mtl_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_mtl_STATIC_SUBDIRS="$MCA_ompi_mtl_STATIC_SUBDIRS mca/mtl/$item" done MCA_ompi_mtl_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_mtl_DSO_SUBDIRS="$MCA_ompi_mtl_DSO_SUBDIRS mca/mtl/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "mtl" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # this is a direct callable component, so set that up. if test ! -z "$DIRECT_mtl" ; then MCA_ompi_mtl_DIRECT_CALL_COMPONENT=$DIRECT_mtl MCA_ompi_mtl_DIRECT_CALL=1 else MCA_ompi_mtl_DIRECT_CALL_COMPONENT= MCA_ompi_mtl_DIRECT_CALL=0 fi cat >>confdefs.h <<_ACEOF #define MCA_ompi_mtl_DIRECT_CALL $MCA_ompi_mtl_DIRECT_CALL _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_ompi_mtl_DIRECT_CALL_COMPONENT $MCA_ompi_mtl_DIRECT_CALL_COMPONENT _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_ompi_mtl_DIRECT_CALL_HEADER "$MCA_ompi_mtl_DIRECT_CALL_HEADER" _ACEOF MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS op" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/op" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_op_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_op_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_op_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/op/libmca_op.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_op_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework op" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/op/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/op/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework op" >&5 $as_echo_n "checking for no configure components in framework op... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework op" >&5 $as_echo_n "checking for m4 configure components in framework op... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: avx" >&5 $as_echo "avx" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component op:avx (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/op/avx" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_op" ; then if test "$DIRECT_op" = "avx" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_op" = "1"; then : want_component=0 fi if test "$DISABLE_op_avx" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_op" SHARED_COMPONENT="$DSO_op_avx" STATIC_FRAMEWORK="$STATIC_op" STATIC_COMPONENT="$STATIC_op_avx" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component op:avx compile mode" >&5 $as_echo_n "checking for MCA component op:avx compile mode... " >&6; } if test "$DIRECT_op" = "avx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/op/avx/Makefile" MCA_BUILD_OP_AVX_FLAGS="" MCA_BUILD_OP_AVX2_FLAGS="" MCA_BUILD_OP_AVX512_FLAGS="" op_sse3_support=0 op_sse41_support=0 op_avx_support=0 op_avx2_support=0 op_avx512_support=0 # 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 op_avx_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=\"op_avx_cflags_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test "$opal_cv_asm_arch" = "X86_64"; then : ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # # Check for AVX512 support # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512 support" >&5 $as_echo_n "checking for AVX512 support... " >&6; } if ${ompi_cv_op_avx_check_avx512+:} false; then : $as_echo_n "(cached) " >&6 else ompi_cv_op_avx_check_avx512=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_op_avx_check_avx512" >&5 $as_echo "$ompi_cv_op_avx_check_avx512" >&6; } if test "$ompi_cv_op_avx_check_avx512" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512 support (no additional flags)" >&5 $as_echo_n "checking for AVX512 support (no additional flags)... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__AVX512F__) #error "icc needs the -m flags to provide the AVX* detection macros #endif __m512 vA, vB; _mm512_add_ps(vA, vB) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_avx512_support=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $op_avx512_support -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512 support (with -mavx512f -mavx512bw -mavx512vl -mavx512dq)" >&5 $as_echo_n "checking for AVX512 support (with -mavx512f -mavx512bw -mavx512vl -mavx512dq)... " >&6; } op_avx_cflags_save="$CFLAGS" CFLAGS="-mavx512f -mavx512bw -mavx512vl -mavx512dq $CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__AVX512F__) #error "icc needs the -m flags to provide the AVX* detection macros #endif __m512 vA, vB; _mm512_add_ps(vA, vB) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_avx512_support=1 MCA_BUILD_OP_AVX512_FLAGS="-mavx512f -mavx512bw -mavx512vl -mavx512dq" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$op_avx_cflags_save" fi # # Some combination of gcc and older as would not correctly build the code generated by # _mm256_loadu_si256. Screen them out. # if test $op_avx512_support -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _mm512_loadu_si512 generates code that can be compiled" >&5 $as_echo_n "checking if _mm512_loadu_si512 generates code that can be compiled... " >&6; } op_avx_cflags_save="$CFLAGS" CFLAGS="$CFLAGS_WITHOUT_OPTFLAGS -O0 $MCA_BUILD_OP_AVX512_FLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__AVX512F__) #error "icc needs the -m flags to provide the AVX* detection macros #endif int A[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; __m512i vA = _mm512_loadu_si512((__m512i*)&(A[1])) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else op_avx512_support=0 MCA_BUILD_OP_AVX512_FLAGS="" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$op_avx_cflags_save" fi # # Some PGI compilers do not define _mm512_mullo_epi64. Screen them out. # if test $op_avx512_support -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _mm512_mullo_epi64 generates code that can be compiled" >&5 $as_echo_n "checking if _mm512_mullo_epi64 generates code that can be compiled... " >&6; } op_avx_cflags_save="$CFLAGS" CFLAGS="$CFLAGS_WITHOUT_OPTFLAGS -O0 $MCA_BUILD_OP_AVX512_FLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__AVX512F__) #error "icc needs the -m flags to provide the AVX* detection macros #endif __m512i vA, vB; _mm512_mullo_epi64(vA, vB) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else op_avx512_support=0 MCA_BUILD_OP_AVX512_FLAGS="" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$op_avx_cflags_save" fi fi # # Check support for AVX2 # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2 support" >&5 $as_echo_n "checking for AVX2 support... " >&6; } if ${ompi_cv_op_avx_check_avx2+:} false; then : $as_echo_n "(cached) " >&6 else ompi_cv_op_avx_check_avx2=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_op_avx_check_avx2" >&5 $as_echo "$ompi_cv_op_avx_check_avx2" >&6; } if test "$ompi_cv_op_avx_check_avx2" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2 support (no additional flags)" >&5 $as_echo_n "checking for AVX2 support (no additional flags)... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__AVX2__) #error "icc needs the -m flags to provide the AVX* detection macros #endif __m256i vA, vB, vC; vC = _mm256_and_si256(vA, vB) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_avx2_support=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $op_avx2_support -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2 support (with -mavx2)" >&5 $as_echo_n "checking for AVX2 support (with -mavx2)... " >&6; } op_avx_cflags_save="$CFLAGS" CFLAGS="-mavx2 $CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__AVX2__) #error "icc needs the -m flags to provide the AVX* detection macros #endif __m256i vA, vB, vC; vC = _mm256_and_si256(vA, vB) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_avx2_support=1 MCA_BUILD_OP_AVX2_FLAGS="-mavx2" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$op_avx_cflags_save" fi # # Some combination of gcc and older as would not correctly build the code generated by # _mm256_loadu_si256. Screen them out. # if test $op_avx2_support -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _mm256_loadu_si256 generates code that can be compiled" >&5 $as_echo_n "checking if _mm256_loadu_si256 generates code that can be compiled... " >&6; } op_avx_cflags_save="$CFLAGS" CFLAGS="$CFLAGS_WITHOUT_OPTFLAGS -O0 $MCA_BUILD_OP_AVX2_FLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__AVX2__) #error "icc needs the -m flags to provide the AVX* detection macros #endif int A[8] = {0, 1, 2, 3, 4, 5, 6, 7}; __m256i vA = _mm256_loadu_si256((__m256i*)&A) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else op_avx2_support=0 MCA_BUILD_OP_AVX2_FLAGS="" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$op_avx_cflags_save" fi fi # # What about early AVX support? The rest of the logic is slightly different as # we need to include some of the SSE4.1 and SSE3 instructions. So, we first check # if we can compile AVX code without a flag, then we validate that we have support # for the SSE4.1 and SSE3 instructions we need. If not, we check for the usage of # the AVX flag, and then recheck if we have support for the SSE4.1 and SSE3 # instructions. # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX support" >&5 $as_echo_n "checking for AVX support... " >&6; } if ${ompi_cv_op_avx_check_avx+:} false; then : $as_echo_n "(cached) " >&6 else ompi_cv_op_avx_check_avx=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_op_avx_check_avx" >&5 $as_echo "$ompi_cv_op_avx_check_avx" >&6; } if test "$ompi_cv_op_avx_check_avx" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX support (no additional flags)" >&5 $as_echo_n "checking for AVX support (no additional flags)... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__AVX__) #error "icc needs the -m flags to provide the AVX* detection macros #endif __m256 vA, vB, vC; vC = _mm256_add_ps(vA, vB) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_avx_support=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # # Check for SSE4.1 support # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 support" >&5 $as_echo_n "checking for SSE4.1 support... " >&6; } if ${ompi_cv_op_avx_check_sse41+:} false; then : $as_echo_n "(cached) " >&6 else ompi_cv_op_avx_check_sse41=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_op_avx_check_sse41" >&5 $as_echo "$ompi_cv_op_avx_check_sse41" >&6; } if test $op_avx_support -eq 1 && test "$ompi_cv_op_avx_check_sse41" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 support" >&5 $as_echo_n "checking for SSE4.1 support... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__SSE4_1__) #error "icc needs the -m flags to provide the AVX* detection macros #endif __m128i vA, vB; (void)_mm_max_epi8(vA, vB) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_sse41_support=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # # Check for SSE3 support # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 support" >&5 $as_echo_n "checking for SSE3 support... " >&6; } if ${ompi_cv_op_avx_check_sse3+:} false; then : $as_echo_n "(cached) " >&6 else ompi_cv_op_avx_check_sse3=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_op_avx_check_sse3" >&5 $as_echo "$ompi_cv_op_avx_check_sse3" >&6; } if test $op_avx_support -eq 1 && test "$ompi_cv_op_avx_check_sse3" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 support" >&5 $as_echo_n "checking for SSE3 support... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__SSE3__) #error "icc needs the -m flags to provide the AVX* detection macros #endif int A[4] = {0, 1, 2, 3}; __m128i vA = _mm_lddqu_si128((__m128i*)&A) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_sse3_support=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # Second pass, do we need to add the AVX flag ? if test $op_avx_support -eq 0 || test $op_sse41_support -eq 0 || test $op_sse3_support -eq 0; then : if test "$ompi_cv_op_avx_check_avx" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX support (with -mavx)" >&5 $as_echo_n "checking for AVX support (with -mavx)... " >&6; } op_avx_cflags_save="$CFLAGS" CFLAGS="-mavx $CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { __m256 vA, vB, vC; #if defined(__ICC) && !defined(__AVX__) #error "icc needs the -m flags to provide the AVX* detection macros #endif vC = _mm256_add_ps(vA, vB) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_avx_support=1 MCA_BUILD_OP_AVX_FLAGS="-mavx" op_sse41_support=0 op_sse3_support=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test "$ompi_cv_op_avx_check_sse41" = "yes" && test $op_sse41_support -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 support" >&5 $as_echo_n "checking for SSE4.1 support... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__SSE4_1__) #error "icc needs the -m flags to provide the AVX* detection macros #endif __m128i vA, vB; (void)_mm_max_epi8(vA, vB) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_sse41_support=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test "$ompi_cv_op_avx_check_sse3" = "yes" && test $op_sse3_support -eq 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 support" >&5 $as_echo_n "checking for SSE3 support... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if defined(__ICC) && !defined(__SSE3__) #error "icc needs the -m flags to provide the AVX* detection macros #endif int A[4] = {0, 1, 2, 3}; __m128i vA = _mm_lddqu_si128((__m128i*)&A) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : op_sse3_support=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$op_avx_cflags_save" 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_MCA_OP_HAVE_AVX512 $op_avx512_support _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_MCA_OP_HAVE_AVX2 $op_avx2_support _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_MCA_OP_HAVE_AVX $op_avx_support _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_MCA_OP_HAVE_SSE41 $op_sse41_support _ACEOF cat >>confdefs.h <<_ACEOF #define OMPI_MCA_OP_HAVE_SSE3 $op_sse3_support _ACEOF if test "$op_avx512_support" == "1"; then MCA_BUILD_ompi_op_has_avx512_support_TRUE= MCA_BUILD_ompi_op_has_avx512_support_FALSE='#' else MCA_BUILD_ompi_op_has_avx512_support_TRUE='#' MCA_BUILD_ompi_op_has_avx512_support_FALSE= fi if test "$op_avx2_support" == "1"; then MCA_BUILD_ompi_op_has_avx2_support_TRUE= MCA_BUILD_ompi_op_has_avx2_support_FALSE='#' else MCA_BUILD_ompi_op_has_avx2_support_TRUE='#' MCA_BUILD_ompi_op_has_avx2_support_FALSE= fi if test "$op_avx_support" == "1"; then MCA_BUILD_ompi_op_has_avx_support_TRUE= MCA_BUILD_ompi_op_has_avx_support_FALSE='#' else MCA_BUILD_ompi_op_has_avx_support_TRUE='#' MCA_BUILD_ompi_op_has_avx_support_FALSE= fi if test "$op_sse41_support" == "1"; then MCA_BUILD_ompi_op_has_sse41_support_TRUE= MCA_BUILD_ompi_op_has_sse41_support_FALSE='#' else MCA_BUILD_ompi_op_has_sse41_support_TRUE='#' MCA_BUILD_ompi_op_has_sse41_support_FALSE= fi if test "$op_sse3_support" == "1"; then MCA_BUILD_ompi_op_has_sse3_support_TRUE= MCA_BUILD_ompi_op_has_sse3_support_FALSE='#' else MCA_BUILD_ompi_op_has_sse3_support_TRUE='#' MCA_BUILD_ompi_op_has_sse3_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 # Enable this component iff we have at least the most basic form of support # for vectorial ISA if test $op_avx_support -eq 1 || test $op_avx2_support -eq 1 || test $op_avx512_support -eq 1; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/op/avx/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components avx" if test "$compile_mode" = "dso" ; then dso_components="$dso_components avx" else if test "op" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/op/avx/lib${OMPI_LIB_PREFIX}mca_op_avx.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/op/avx/libmca_op_avx.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_op_avx_component;" >> $outfile.extern echo " &mca_op_avx_component, " >> $outfile.struct static_components="$static_components avx" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component op:avx can compile" >&5 $as_echo_n "checking if MCA component op:avx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_op" = "avx" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_op_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** op component avx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_op" = "avx" ; then as_fn_error $? "*** op component avx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$op_avx_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $op_avx_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $op_avx_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$op_avx_WRAPPER_EXTRA_LIBS" = ""; 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_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 $op_avx_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $op_avx_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$op_avx_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $op_avx_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring op_avx_WRAPPER_EXTRA_CPPFLAGS ($op_avx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring op_avx_WRAPPER_EXTRA_CPPFLAGS ($op_avx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component op:avx can compile" >&5 $as_echo_n "checking if MCA component op:avx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_op" = "avx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"avx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"avx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_op" ; then if test "$DIRECT_op" = "avx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"avx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"avx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components avx" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_op_avx_DSO=1 else BUILD_ompi_op_avx_DSO=0 fi if test "$BUILD_ompi_op_avx_DSO" = "1"; then MCA_BUILD_ompi_op_avx_DSO_TRUE= MCA_BUILD_ompi_op_avx_DSO_FALSE='#' else MCA_BUILD_ompi_op_avx_DSO_TRUE='#' MCA_BUILD_ompi_op_avx_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/op/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component op:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/op/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_op" ; then if test "$DIRECT_op" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_op" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_op_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_op" str="SHARED_COMPONENT=\$DSO_op_$component" eval $str STATIC_FRAMEWORK="$STATIC_op" str="STATIC_COMPONENT=\$STATIC_op_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component op:$component compile mode" >&5 $as_echo_n "checking for MCA component op:$component compile mode... " >&6; } if test "$DIRECT_op" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/op/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/op/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/op/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then op_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then op_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/op/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "op" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/op/$component/lib${OMPI_LIB_PREFIX}mca_op_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/op/$component/libmca_op_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_op_$component_component;" >> $outfile.extern echo " &mca_op_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component op:$component can compile" >&5 $as_echo_n "checking if MCA component op:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_op" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_op_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** op component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_op" = "$component" ; then as_fn_error $? "*** op component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$op_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$op_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component op:$component can compile" >&5 $as_echo_n "checking if MCA component op:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_op" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_op" ; then if test "$DIRECT_op" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_op_ALL_COMPONENTS="$all_components" MCA_ompi_op_STATIC_COMPONENTS="$static_components" MCA_ompi_op_DSO_COMPONENTS="$dso_components" MCA_ompi_op_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_op_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_op_ALL_SUBDIRS="$MCA_ompi_op_ALL_SUBDIRS mca/op/$item" done MCA_ompi_op_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_op_STATIC_SUBDIRS="$MCA_ompi_op_STATIC_SUBDIRS mca/op/$item" done MCA_ompi_op_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_op_DSO_SUBDIRS="$MCA_ompi_op_DSO_SUBDIRS mca/op/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "op" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS osc" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/osc" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_osc_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_osc_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_osc_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/osc/libmca_osc.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_osc_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework osc" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/osc/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/osc/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework osc" >&5 $as_echo_n "checking for no configure components in framework osc... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: sm" >&5 $as_echo "sm" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework osc" >&5 $as_echo_n "checking for m4 configure components in framework osc... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: monitoring, portals4, pt2pt, rdma, ucx" >&5 $as_echo "monitoring, portals4, pt2pt, rdma, ucx" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component osc:sm (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/osc/sm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "sm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_osc" = "1"; then : want_component=0 fi if test "$DISABLE_osc_sm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_osc" SHARED_COMPONENT="$DSO_osc_sm" STATIC_FRAMEWORK="$STATIC_osc" STATIC_COMPONENT="$STATIC_osc_sm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component osc:sm compile mode" >&5 $as_echo_n "checking for MCA component osc:sm compile mode... " >&6; } if test "$DIRECT_osc" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/osc/sm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components sm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components sm" else if test "osc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/osc/sm/lib${OMPI_LIB_PREFIX}mca_osc_sm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/osc/sm/libmca_osc_sm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_osc_sm_component;" >> $outfile.extern echo " &mca_osc_sm_component, " >> $outfile.struct static_components="$static_components sm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:sm can compile" >&5 $as_echo_n "checking if MCA component osc:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_osc" = "sm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_osc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** osc component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_osc" = "sm" ; then as_fn_error $? "*** osc component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$osc_sm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $osc_sm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $osc_sm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$osc_sm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $osc_sm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $osc_sm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$osc_sm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $osc_sm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring osc_sm_WRAPPER_EXTRA_CPPFLAGS ($osc_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring osc_sm_WRAPPER_EXTRA_CPPFLAGS ($osc_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:sm can compile" >&5 $as_echo_n "checking if MCA component osc:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_osc" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components sm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_osc_sm_DSO=1 else BUILD_ompi_osc_sm_DSO=0 fi if test "$BUILD_ompi_osc_sm_DSO" = "1"; then MCA_BUILD_ompi_osc_sm_DSO_TRUE= MCA_BUILD_ompi_osc_sm_DSO_FALSE='#' else MCA_BUILD_ompi_osc_sm_DSO_TRUE='#' MCA_BUILD_ompi_osc_sm_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/osc/sm/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component osc:monitoring (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/osc/monitoring" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "monitoring" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_osc" = "1"; then : want_component=0 fi if test "$DISABLE_osc_monitoring" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_osc" SHARED_COMPONENT="$DSO_osc_monitoring" STATIC_FRAMEWORK="$STATIC_osc" STATIC_COMPONENT="$STATIC_osc_monitoring" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component osc:monitoring compile mode" >&5 $as_echo_n "checking for MCA component osc:monitoring compile mode... " >&6; } if test "$DIRECT_osc" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/osc/monitoring/Makefile" if test "$MCA_BUILD_ompi_common_monitoring_DSO_TRUE" = ''; then : should_build=$should_build else should_build=0 fi ac_config_commands="$ac_config_commands ompi/mca/osc/monitoring/osc_monitoring_template_gen.h" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/osc/monitoring/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components monitoring" if test "$compile_mode" = "dso" ; then dso_components="$dso_components monitoring" else if test "osc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/osc/monitoring/lib${OMPI_LIB_PREFIX}mca_osc_monitoring.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/osc/monitoring/libmca_osc_monitoring.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_osc_monitoring_component;" >> $outfile.extern echo " &mca_osc_monitoring_component, " >> $outfile.struct static_components="$static_components monitoring" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:monitoring can compile" >&5 $as_echo_n "checking if MCA component osc:monitoring can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_osc" = "monitoring" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_osc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** osc component monitoring was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_osc" = "monitoring" ; then as_fn_error $? "*** osc component monitoring was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$osc_monitoring_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $osc_monitoring_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $osc_monitoring_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$osc_monitoring_WRAPPER_EXTRA_LIBS" = ""; 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_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 $osc_monitoring_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $osc_monitoring_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$osc_monitoring_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $osc_monitoring_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring osc_monitoring_WRAPPER_EXTRA_CPPFLAGS ($osc_monitoring_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring osc_monitoring_WRAPPER_EXTRA_CPPFLAGS ($osc_monitoring_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:monitoring can compile" >&5 $as_echo_n "checking if MCA component osc:monitoring can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_osc" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"monitoring\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"monitoring\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"monitoring\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"monitoring\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components monitoring" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_osc_monitoring_DSO=1 else BUILD_ompi_osc_monitoring_DSO=0 fi if test "$BUILD_ompi_osc_monitoring_DSO" = "1"; then MCA_BUILD_ompi_osc_monitoring_DSO_TRUE= MCA_BUILD_ompi_osc_monitoring_DSO_FALSE='#' else MCA_BUILD_ompi_osc_monitoring_DSO_TRUE='#' MCA_BUILD_ompi_osc_monitoring_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component osc:portals4 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/osc/portals4" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "portals4" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_osc" = "1"; then : want_component=0 fi if test "$DISABLE_osc_portals4" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_osc" SHARED_COMPONENT="$DSO_osc_portals4" STATIC_FRAMEWORK="$STATIC_osc" STATIC_COMPONENT="$STATIC_osc_portals4" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component osc:portals4 compile mode" >&5 $as_echo_n "checking for MCA component osc:portals4 compile mode... " >&6; } if test "$DIRECT_osc" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/osc/portals4/Makefile" if test -z "$ompi_check_portals4_happy" ; then # Check whether --with-portals4 was given. if test "${with_portals4+set}" = set; then : withval=$with_portals4; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals4 value" >&5 $as_echo_n "checking --with-portals4 value... " >&6; } if test "$with_portals4" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-portals4)" >&5 $as_echo "simple no (specified --without-portals4)" >&6; } else if test "$with_portals4" = "yes" || test "x$with_portals4" = "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_portals4"; 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_portals4 not found" >&5 $as_echo "$as_me: WARNING: Directory $with_portals4 not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_portals4/include/portals4.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_portals4/include/portals4.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_portals4/include/portals4.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals4)" >&5 $as_echo "sanity check ok ($with_portals4)" >&6; } fi fi fi fi # Check whether --with-portals4-libdir was given. if test "${with_portals4_libdir+set}" = set; then : withval=$with_portals4_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-portals4-libdir value" >&5 $as_echo_n "checking --with-portals4-libdir value... " >&6; } if test "$with_portals4_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-portals4-libdir)" >&5 $as_echo "simple no (specified --without-portals4-libdir)" >&6; } else if test "$with_portals4_libdir" = "yes" || test "x$with_portals4_libdir" = "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_portals4_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_portals4_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_portals4_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_portals4_libdir/libportals.* 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_portals4_libdir/libportals.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_portals4_libdir/libportals.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_portals4_libdir)" >&5 $as_echo "sanity check ok ($with_portals4_libdir)" >&6; } fi fi fi fi ompi_check_portals4_osc_portals4_save_CPPFLAGS="$CPPFLAGS" ompi_check_portals4_osc_portals4_save_LDFLAGS="$LDFLAGS" ompi_check_portals4_osc_portals4_save_LIBS="$LIBS" if test "$with_portals4" != "no"; then : if test ! -z "$with_portals4" && test "$with_portals4" != "yes"; then : ompi_check_portals4_dir="$with_portals4" fi if test ! -z "$with_portals4_libdir" && test "$with_portals4_libdir" != "yes"; then : ompi_check_portals4_libdir="$with_portals4_libdir" fi opal_check_package_opal_check_portals4_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_check_portals4_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_check_portals4_save_LIBS="$LIBS" opal_check_package_opal_check_portals4_orig_CPPFLAGS="$opal_check_portals4_CPPFLAGS" opal_check_package_opal_check_portals4_orig_LDFLAGS="$opal_check_portals4_LDFLAGS" opal_check_package_opal_check_portals4_orig_LIBS="$opal_check_portals4_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_portals4_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_portals4_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 portals4.h do : ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PORTALS4_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_portals4_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_check_portals4_CPPFLAGS="$opal_check_portals4_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in portals4.h do : ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PORTALS4_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_PtlLEAppend opal_check_package_lib_happy="no" if test "$ompi_check_portals4_libdir" != ""; then : # libdir was specified - search only there opal_check_portals4_LDFLAGS="$opal_check_portals4_LDFLAGS -L$ompi_check_portals4_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_portals4_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend 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 libportals requires libnl v1 or v3" >&5 $as_echo_n "checking if libportals requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PtlLEAppend (void); int main(int argc, char *argv[]) { PtlLEAppend (); 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:341760: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_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:341767: \$? = $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 portals" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib portals" >&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, libportals links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&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 portals requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas portals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs portals" # 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 libportals requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs portals" # 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_PtlLEAppend" != "no" && test "$ac_cv_search_PtlLEAppend" != "none required"; then : opal_check_portals4_LIBS="$ac_cv_search_PtlLEAppend " else opal_check_portals4_LIBS="" 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_PtlLEAppend opal_check_package_lib_happy="no" if test "$ompi_check_portals4_libdir" != ""; then : # libdir was specified - search only there opal_check_portals4_LDFLAGS="$opal_check_portals4_LDFLAGS -L$ompi_check_portals4_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_portals4_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_portals4_LDFLAGS="$opal_check_portals4_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 PtlLEAppend" >&5 $as_echo_n "checking for library containing PtlLEAppend... " >&6; } if ${ac_cv_search_PtlLEAppend+:} 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 PtlLEAppend (); int main () { return PtlLEAppend (); ; return 0; } _ACEOF for ac_lib in '' portals; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_PtlLEAppend=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_PtlLEAppend+:} false; then : break fi done if ${ac_cv_search_PtlLEAppend+:} false; then : else ac_cv_search_PtlLEAppend=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlLEAppend" >&5 $as_echo "$ac_cv_search_PtlLEAppend" >&6; } ac_res=$ac_cv_search_PtlLEAppend 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_check_portals4_save_LDFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" unset ac_cv_search_PtlLEAppend 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 libportals requires libnl v1 or v3" >&5 $as_echo_n "checking if libportals requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void PtlLEAppend (void); int main(int argc, char *argv[]) { PtlLEAppend (); 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:342485: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lportals $LIBS $opal_check_portals4_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:342492: \$? = $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 portals" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib portals" >&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, libportals links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&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 portals requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas portals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs portals" # 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 libportals requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libportals 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 libportals (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libportals (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libportals." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libportals." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs portals" # 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_PtlLEAppend" != "no" && test "$ac_cv_search_PtlLEAppend" != "none required"; then : opal_check_portals4_LIBS="$ac_cv_search_PtlLEAppend " else opal_check_portals4_LIBS="" 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 : ompi_check_portals4_happy="yes" else opal_check_portals4_CPPFLAGS="$opal_check_package_opal_check_portals4_orig_CPPFLAGS" opal_check_portals4_LDFLAGS="$opal_check_package_opal_check_portals4_orig_LDFLAGS" opal_check_portals4_LIBS="$opal_check_package_opal_check_portals4_orig_LIBS" ompi_check_portals4_happy="no" fi CPPFLAGS="$opal_check_package_opal_check_portals4_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_check_portals4_save_LDFLAGS" LIBS="$opal_check_package_opal_check_portals4_save_LIBS" else ompi_check_portals4_happy="no" fi CPPFLAGS="$ompi_check_portals4_osc_portals4_save_CPPFLAGS" LDFLAGS="$ompi_check_portals4_osc_portals4_save_LDFLAGS" LIBS="$ompi_check_portals4_osc_portals4_save_LIBS" max_md_size=0 # Check whether --with-portals4-max-md-size was given. if test "${with_portals4_max_md_size+set}" = set; then : withval=$with_portals4_max_md_size; fi if test "$with_portals4_max_md_size" = "yes" || test "$with_portals4_max_md_size" = "no"; then : as_fn_error $? "--with-portals4-max-md-size requires an integer argument" "$LINENO" 5 else if test -n "$with_portals4_max_md_size"; then : max_md_size="$with_portals4_max_md_size" fi fi cat >>confdefs.h <<_ACEOF #define OPAL_PORTALS4_MAX_MD_SIZE $max_md_size _ACEOF max_va_size=0 # Check whether --with-portals4-max-va-size was given. if test "${with_portals4_max_va_size+set}" = set; then : withval=$with_portals4_max_va_size; fi if test "$with_portals4_max_va_size" = "yes" || test "$with_portals4_max_va_size" = "no"; then : as_fn_error $? "--with-portals4-max-va-size requires an integer argument" "$LINENO" 5 else if test -n "$with_portals4_max_va_size"; then : max_va_size="$with_portals4_max_va_size" fi fi cat >>confdefs.h <<_ACEOF #define OPAL_PORTALS4_MAX_VA_SIZE $max_va_size _ACEOF if (test $max_md_size -eq 0 && test $max_va_size -ne 0 ) || (test $max_md_size -ne 0 && test $max_va_size -eq 0 ); then : as_fn_error $? "If either --with-portals4-max-md-size or --with-portals4-max-va-size is set, both must be set." "$LINENO" 5 fi if test $max_md_size -ge $max_va_size; then : max_md_size=0 max_va_size=0 fi if test $max_md_size -ne 0 && test $max_va_size -ne 0; then : { $as_echo "$as_me:${as_lineno-$LINENO}: Portals 4 address space size: $max_md_size, $max_va_size" >&5 $as_echo "$as_me: Portals 4 address space size: $max_md_size, $max_va_size" >&6;} 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 Transports | tr ' ' '_') ompi_summary_line="Portals4: $ompi_check_portals4_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 fi if test "$ompi_check_portals4_happy" = "yes"; then : osc_portals4_LDFLAGS="$osc_portals4_LDFLAGS $opal_check_portals4_LDFLAGS" osc_portals4_CPPFLAGS="$osc_portals4_CPPFLAGS $opal_check_portals4_CPPFLAGS" osc_portals4_LIBS="$osc_portals4_LIBS $opal_check_portals4_LIBS" osc_portals4_happy="yes" else if test ! -z "$with_portals4" && test "$with_portals4" != "no"; then : as_fn_error $? "Portals4 support requested but not found. Aborting" "$LINENO" 5 fi osc_portals4_happy="no" fi if test "$osc_portals4_happy" = "yes"; then : osc_portals4_WRAPPER_EXTRA_LDFLAGS="$osc_portals4_LDFLAGS" osc_portals4_WRAPPER_EXTRA_LIBS="$osc_portals4_LIBS" should_build=$should_build else should_build=0 fi # need to propogate CPPFLAGS to all of OMPI if test "$DIRECT_osc" = "portals4"; then : CPPFLAGS="$CPPFLAGS $osc_portals4_CPPFLAGS" fi # substitute in the things needed to build portals4 opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/osc/portals4/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components portals4" if test "$compile_mode" = "dso" ; then dso_components="$dso_components portals4" else if test "osc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/osc/portals4/lib${OMPI_LIB_PREFIX}mca_osc_portals4.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/osc/portals4/libmca_osc_portals4.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_osc_portals4_component;" >> $outfile.extern echo " &mca_osc_portals4_component, " >> $outfile.struct static_components="$static_components portals4" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:portals4 can compile" >&5 $as_echo_n "checking if MCA component osc:portals4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_osc" = "portals4" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_osc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** osc component portals4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_osc" = "portals4" ; then as_fn_error $? "*** osc component portals4 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$osc_portals4_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $osc_portals4_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $osc_portals4_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$osc_portals4_WRAPPER_EXTRA_LIBS" = ""; 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_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 $osc_portals4_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $osc_portals4_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$osc_portals4_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $osc_portals4_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring osc_portals4_WRAPPER_EXTRA_CPPFLAGS ($osc_portals4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring osc_portals4_WRAPPER_EXTRA_CPPFLAGS ($osc_portals4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:portals4 can compile" >&5 $as_echo_n "checking if MCA component osc:portals4 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_osc" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"portals4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "portals4" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"portals4\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"portals4\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components portals4" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag PORTALS4" >&5 $as_echo_n "checking for index in endpoint array for tag PORTALS4... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_PORTALS4"; then : OMPI_PROC_ENDPOINT_TAG_PORTALS4=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_PORTALS4 $OMPI_PROC_ENDPOINT_TAG_PORTALS4 _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_PORTALS4" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_PORTALS4" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_osc_portals4_DSO=1 else BUILD_ompi_osc_portals4_DSO=0 fi if test "$BUILD_ompi_osc_portals4_DSO" = "1"; then MCA_BUILD_ompi_osc_portals4_DSO_TRUE= MCA_BUILD_ompi_osc_portals4_DSO_FALSE='#' else MCA_BUILD_ompi_osc_portals4_DSO_TRUE='#' MCA_BUILD_ompi_osc_portals4_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component osc:pt2pt (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/osc/pt2pt" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "pt2pt" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_osc" = "1"; then : want_component=0 fi if test "$DISABLE_osc_pt2pt" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_osc" SHARED_COMPONENT="$DSO_osc_pt2pt" STATIC_FRAMEWORK="$STATIC_osc" STATIC_COMPONENT="$STATIC_osc_pt2pt" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component osc:pt2pt compile mode" >&5 $as_echo_n "checking for MCA component osc:pt2pt compile mode... " >&6; } if test "$DIRECT_osc" = "pt2pt" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/osc/pt2pt/Makefile" should_build=$should_build opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/osc/pt2pt/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components pt2pt" if test "$compile_mode" = "dso" ; then dso_components="$dso_components pt2pt" else if test "osc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/osc/pt2pt/lib${OMPI_LIB_PREFIX}mca_osc_pt2pt.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/osc/pt2pt/libmca_osc_pt2pt.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_osc_pt2pt_component;" >> $outfile.extern echo " &mca_osc_pt2pt_component, " >> $outfile.struct static_components="$static_components pt2pt" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:pt2pt can compile" >&5 $as_echo_n "checking if MCA component osc:pt2pt can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_osc" = "pt2pt" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_osc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** osc component pt2pt was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_osc" = "pt2pt" ; then as_fn_error $? "*** osc component pt2pt was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$osc_pt2pt_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $osc_pt2pt_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $osc_pt2pt_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$osc_pt2pt_WRAPPER_EXTRA_LIBS" = ""; 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_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 $osc_pt2pt_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $osc_pt2pt_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$osc_pt2pt_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $osc_pt2pt_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring osc_pt2pt_WRAPPER_EXTRA_CPPFLAGS ($osc_pt2pt_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring osc_pt2pt_WRAPPER_EXTRA_CPPFLAGS ($osc_pt2pt_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:pt2pt can compile" >&5 $as_echo_n "checking if MCA component osc:pt2pt can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_osc" = "pt2pt" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "pt2pt" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components pt2pt" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_osc_pt2pt_DSO=1 else BUILD_ompi_osc_pt2pt_DSO=0 fi if test "$BUILD_ompi_osc_pt2pt_DSO" = "1"; then MCA_BUILD_ompi_osc_pt2pt_DSO_TRUE= MCA_BUILD_ompi_osc_pt2pt_DSO_FALSE='#' else MCA_BUILD_ompi_osc_pt2pt_DSO_TRUE='#' MCA_BUILD_ompi_osc_pt2pt_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component osc:rdma (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/osc/rdma" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "rdma" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_osc" = "1"; then : want_component=0 fi if test "$DISABLE_osc_rdma" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_osc" SHARED_COMPONENT="$DSO_osc_rdma" STATIC_FRAMEWORK="$STATIC_osc" STATIC_COMPONENT="$STATIC_osc_rdma" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component osc:rdma compile mode" >&5 $as_echo_n "checking for MCA component osc:rdma compile mode... " >&6; } if test "$DIRECT_osc" = "rdma" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/osc/rdma/Makefile" should_build=$should_build opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/osc/rdma/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components rdma" if test "$compile_mode" = "dso" ; then dso_components="$dso_components rdma" else if test "osc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/osc/rdma/lib${OMPI_LIB_PREFIX}mca_osc_rdma.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/osc/rdma/libmca_osc_rdma.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_osc_rdma_component;" >> $outfile.extern echo " &mca_osc_rdma_component, " >> $outfile.struct static_components="$static_components rdma" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:rdma can compile" >&5 $as_echo_n "checking if MCA component osc:rdma can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_osc" = "rdma" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_osc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** osc component rdma was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_osc" = "rdma" ; then as_fn_error $? "*** osc component rdma was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$osc_rdma_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $osc_rdma_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $osc_rdma_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$osc_rdma_WRAPPER_EXTRA_LIBS" = ""; 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_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 $osc_rdma_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $osc_rdma_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$osc_rdma_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $osc_rdma_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring osc_rdma_WRAPPER_EXTRA_CPPFLAGS ($osc_rdma_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring osc_rdma_WRAPPER_EXTRA_CPPFLAGS ($osc_rdma_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:rdma can compile" >&5 $as_echo_n "checking if MCA component osc:rdma can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_osc" = "rdma" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rdma\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "rdma" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"rdma\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components rdma" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag BML" >&5 $as_echo_n "checking for index in endpoint array for tag BML... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_BML"; then : OMPI_PROC_ENDPOINT_TAG_BML=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_BML $OMPI_PROC_ENDPOINT_TAG_BML _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_BML" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_BML" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_osc_rdma_DSO=1 else BUILD_ompi_osc_rdma_DSO=0 fi if test "$BUILD_ompi_osc_rdma_DSO" = "1"; then MCA_BUILD_ompi_osc_rdma_DSO_TRUE= MCA_BUILD_ompi_osc_rdma_DSO_FALSE='#' else MCA_BUILD_ompi_osc_rdma_DSO_TRUE='#' MCA_BUILD_ompi_osc_rdma_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component osc:ucx (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/osc/ucx" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "ucx" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_osc" = "1"; then : want_component=0 fi if test "$DISABLE_osc_ucx" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_osc" SHARED_COMPONENT="$DSO_osc_ucx" STATIC_FRAMEWORK="$STATIC_osc" STATIC_COMPONENT="$STATIC_osc_ucx" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component osc:ucx compile mode" >&5 $as_echo_n "checking for MCA component osc:ucx compile mode... " >&6; } if test "$DIRECT_osc" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/osc/ucx/Makefile" # 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_check_ucx_dir; 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_check_ucx_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test -z "$ompi_check_ucx_happy"; then : # Check whether --with-ucx was given. if test "${with_ucx+set}" = set; then : withval=$with_ucx; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx value" >&5 $as_echo_n "checking --with-ucx value... " >&6; } if test "$with_ucx" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx)" >&5 $as_echo "simple no (specified --without-ucx)" >&6; } else if test "$with_ucx" = "yes" || test "x$with_ucx" = "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_ucx"; 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_ucx not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx/include/ucp/api/ucp.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_ucx/include/ucp/api/ucp.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx/include/ucp/api/ucp.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx)" >&5 $as_echo "sanity check ok ($with_ucx)" >&6; } fi fi fi fi # Check whether --with-ucx-libdir was given. if test "${with_ucx_libdir+set}" = set; then : withval=$with_ucx_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx-libdir value" >&5 $as_echo_n "checking --with-ucx-libdir value... " >&6; } if test "$with_ucx_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx-libdir)" >&5 $as_echo "simple no (specified --without-ucx-libdir)" >&6; } else if test "$with_ucx_libdir" = "yes" || test "x$with_ucx_libdir" = "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_ucx_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ucx_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx_libdir/libucp.* 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_ucx_libdir/libucp.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx_libdir/libucp.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx_libdir)" >&5 $as_echo "sanity check ok ($with_ucx_libdir)" >&6; } fi fi fi fi if test "$with_ucx" != "no"; then : if test -n "$with_ucx" && test "$with_ucx" != "yes"; then : ompi_check_ucx_dir="$with_ucx" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucx" >&5 $as_echo_n "checking for ucx... " >&6; } if test -n "$ucx_CFLAGS"; then pkg_cv_ucx_CFLAGS="$ucx_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_CFLAGS=`$PKG_CONFIG --cflags "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_LIBS"; then pkg_cv_ucx_LIBS="$ucx_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_LIBS=`$PKG_CONFIG --libs "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_STATIC_LIBS"; then pkg_cv_ucx_STATIC_LIBS="$ucx_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_STATIC_LIBS=`$PKG_CONFIG --libs --static "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ucx_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ucx" 2>&1` else ucx_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ucx" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ucx_PKG_ERRORS" >&5 true elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } true else ucx_CFLAGS=$pkg_cv_ucx_CFLAGS ucx_LIBS=$pkg_cv_ucx_LIBS ucx_STATIC_LIBS=$pkg_cv_ucx_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_check_ucx_dir=`$PKG_CONFIG --variable=prefix ucx` if test "$ompi_check_ucx_dir" = "/usr"; then : ompi_check_ucx_dir= fi fi fi ompi_check_ucx_happy="no" if test -z "$ompi_check_ucx_dir"; then : opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo | 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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:345750: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:345757: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:346475: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:346482: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } fi if test "$ompi_check_ucx_happy" = "no"; then : ompi_check_ucx_dir=/opt/ucx fi fi if test "$ompi_check_ucx_happy" != yes; then : if test -n "$with_ucx_libdir"; then : ompi_check_ucx_libdir="$with_ucx_libdir" else files=`ls $ompi_check_ucx_dir/lib64/libucp.* 2> /dev/null | wc -l` if test "$files" -gt 0; then : ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib64 else ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib fi fi ompi_check_ucx_osc_ucx_save_CPPFLAGS="$CPPFLAGS" ompi_check_ucx_osc_ucx_save_LDFLAGS="$LDFLAGS" ompi_check_ucx_osc_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ucx_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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:347381: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:347388: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:348106: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:348113: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" CPPFLAGS="$ompi_check_ucx_osc_ucx_save_CPPFLAGS" LDFLAGS="$ompi_check_ucx_osc_ucx_save_LDFLAGS" LIBS="$ompi_check_ucx_osc_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } CPPFLAGS=$old_CPPFLAGS fi fi old_CPPFLAGS="$CPPFLAGS" if test -n "$ompi_check_ucx_dir"; then : CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" fi # Turn off UCX version v1.8 due to issue #8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCX version" >&5 $as_echo_n "checking UCX version... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if (UCP_API_MAJOR == 1) && (UCP_API_MINOR == 8) #error "Invalid version" #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (not 1.8.x)" >&5 $as_echo "ok (not 1.8.x)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad (1.8.x)" >&5 $as_echo "bad (1.8.x)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&5 $as_echo "$as_me: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please upgrade to UCX version 1.9 or higher." >&5 $as_echo "$as_me: WARNING: Please upgrade to UCX version 1.9 or higher." >&2;} ompi_check_ucx_happy=no fi rm -f conftest.err conftest.i conftest.$ac_ext if test "$ompi_check_ucx_happy" = yes; then : ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbr" "ac_cv_have_decl_ucp_tag_send_nbr" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbr" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBR $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_TAG_SEND_NBR 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nb" "ac_cv_have_decl_ucp_ep_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_worker_flush_nb" "ac_cv_have_decl_ucp_worker_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_worker_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_request_check_status" "ac_cv_have_decl_ucp_request_check_status" "#include " if test "x$ac_cv_have_decl_ucp_request_check_status" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_REQUEST_CHECK_STATUS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nb" "ac_cv_have_decl_ucp_put_nb" "#include " if test "x$ac_cv_have_decl_ucp_put_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nb" "ac_cv_have_decl_ucp_get_nb" "#include " if test "x$ac_cv_have_decl_ucp_get_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nbx" "ac_cv_have_decl_ucp_put_nbx" "#include " if test "x$ac_cv_have_decl_ucp_put_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nbx" "ac_cv_have_decl_ucp_get_nbx" "#include " if test "x$ac_cv_have_decl_ucp_get_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_atomic_op_nbx" "ac_cv_have_decl_ucp_atomic_op_nbx" "#include " if test "x$ac_cv_have_decl_ucp_atomic_op_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_OP_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nbx" "ac_cv_have_decl_ucp_ep_flush_nbx" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_events" "ac_cv_have_decl_ucm_test_events" "#include " if test "x$ac_cv_have_decl_ucm_test_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_external_events" "ac_cv_have_decl_ucm_test_external_events" "#include " if test "x$ac_cv_have_decl_ucm_test_external_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EXTERNAL_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_AND" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_AND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_OR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_OR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_XOR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_XOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FAND" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FAND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FXOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FXOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "#include " if test "x$ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_OP_ATTR_FLAG_MULTI_SEND" "ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" "#include " if test "x$ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_OP_ATTR_FLAG_MULTI_SEND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_WORKER_ADDRESS_FLAGS 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "UCP_ATTR_FIELD_MEMORY_TYPES" "ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" "#include " if test "x$ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATTR_FIELD_MEMORY_TYPES $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_ATTR_MEMORY_TYPES 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbx" "ac_cv_have_decl_ucp_tag_send_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_send_sync_nbx" "ac_cv_have_decl_ucp_tag_send_sync_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_sync_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_SYNC_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_recv_nbx" "ac_cv_have_decl_ucp_tag_recv_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_recv_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_RECV_NBX $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "ucp_request_param_t" "ac_cv_type_ucp_request_param_t" "#include " if test "x$ac_cv_type_ucp_request_param_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_REQUEST_PARAM_T 1 _ACEOF fi fi CPPFLAGS=$old_CPPFLAGS # 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 Transports | tr ' ' '_') ompi_summary_line="Open UCX: $ompi_check_ucx_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 fi fi if test "$ompi_check_ucx_happy" = "yes"; then : osc_ucx_CPPFLAGS="$osc_ucx_CPPFLAGS $ompi_check_ucx_CPPFLAGS" osc_ucx_LDFLAGS="$osc_ucx_LDFLAGS $ompi_check_ucx_LDFLAGS" osc_ucx_LIBS="$osc_ucx_LIBS $ompi_check_ucx_LIBS" $as_echo "#define HAVE_UCX 1" >>confdefs.h osc_ucx_happy="yes" else if test ! -z "$with_ucx" && test "$with_ucx" != "no"; then : as_fn_error $? "UCX support requested but not found. Aborting" "$LINENO" 5 fi $as_echo "#define HAVE_UCX 0" >>confdefs.h osc_ucx_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 if test "$osc_ucx_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build ucx opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/osc/ucx/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ucx" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ucx" else if test "osc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/osc/ucx/lib${OMPI_LIB_PREFIX}mca_osc_ucx.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/osc/ucx/libmca_osc_ucx.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_osc_ucx_component;" >> $outfile.extern echo " &mca_osc_ucx_component, " >> $outfile.struct static_components="$static_components ucx" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:ucx can compile" >&5 $as_echo_n "checking if MCA component osc:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_osc" = "ucx" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_osc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** osc component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_osc" = "ucx" ; then as_fn_error $? "*** osc component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$osc_ucx_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $osc_ucx_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $osc_ucx_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$osc_ucx_WRAPPER_EXTRA_LIBS" = ""; 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_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 $osc_ucx_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $osc_ucx_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$osc_ucx_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $osc_ucx_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring osc_ucx_WRAPPER_EXTRA_CPPFLAGS ($osc_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring osc_ucx_WRAPPER_EXTRA_CPPFLAGS ($osc_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:ucx can compile" >&5 $as_echo_n "checking if MCA component osc:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_osc" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ucx" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag UCX" >&5 $as_echo_n "checking for index in endpoint array for tag UCX... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_UCX"; then : OMPI_PROC_ENDPOINT_TAG_UCX=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_UCX $OMPI_PROC_ENDPOINT_TAG_UCX _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_UCX" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_UCX" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_osc_ucx_DSO=1 else BUILD_ompi_osc_ucx_DSO=0 fi if test "$BUILD_ompi_osc_ucx_DSO" = "1"; then MCA_BUILD_ompi_osc_ucx_DSO_TRUE= MCA_BUILD_ompi_osc_ucx_DSO_FALSE='#' else MCA_BUILD_ompi_osc_ucx_DSO_TRUE='#' MCA_BUILD_ompi_osc_ucx_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/osc/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component osc:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/osc/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_osc" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_osc_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_osc" str="SHARED_COMPONENT=\$DSO_osc_$component" eval $str STATIC_FRAMEWORK="$STATIC_osc" str="STATIC_COMPONENT=\$STATIC_osc_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component osc:$component compile mode" >&5 $as_echo_n "checking for MCA component osc:$component compile mode... " >&6; } if test "$DIRECT_osc" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/osc/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/osc/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/osc/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then osc_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then osc_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/osc/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "osc" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/osc/$component/lib${OMPI_LIB_PREFIX}mca_osc_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/osc/$component/libmca_osc_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_osc_$component_component;" >> $outfile.extern echo " &mca_osc_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:$component can compile" >&5 $as_echo_n "checking if MCA component osc:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_osc" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_osc_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** osc component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_osc" = "$component" ; then as_fn_error $? "*** osc component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$osc_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$osc_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component osc:$component can compile" >&5 $as_echo_n "checking if MCA component osc:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_osc" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_osc" ; then if test "$DIRECT_osc" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_osc_ALL_COMPONENTS="$all_components" MCA_ompi_osc_STATIC_COMPONENTS="$static_components" MCA_ompi_osc_DSO_COMPONENTS="$dso_components" MCA_ompi_osc_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_osc_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_osc_ALL_SUBDIRS="$MCA_ompi_osc_ALL_SUBDIRS mca/osc/$item" done MCA_ompi_osc_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_osc_STATIC_SUBDIRS="$MCA_ompi_osc_STATIC_SUBDIRS mca/osc/$item" done MCA_ompi_osc_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_osc_DSO_SUBDIRS="$MCA_ompi_osc_DSO_SUBDIRS mca/osc/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "osc" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pml" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pml" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_pml_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_pml_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_pml_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pml/libmca_pml.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_pml_STATIC_LTLIBS)" # configure all the components opal_show_subsubtitle "Configuring MCA framework pml" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/pml/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/pml/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pml" >&5 $as_echo_n "checking for no configure components in framework pml... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: cm" >&5 $as_echo "cm" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pml" >&5 $as_echo_n "checking for m4 configure components in framework pml... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: crcpw, monitoring, ob1, ucx, v, yalla" >&5 $as_echo "crcpw, monitoring, ob1, ucx, v, yalla" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component pml:cm (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/pml/cm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "cm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pml" = "1"; then : want_component=0 fi if test "$DISABLE_pml_cm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_pml" SHARED_COMPONENT="$DSO_pml_cm" STATIC_FRAMEWORK="$STATIC_pml" STATIC_COMPONENT="$STATIC_pml_cm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pml:cm compile mode" >&5 $as_echo_n "checking for MCA component pml:cm compile mode... " >&6; } if test "$DIRECT_pml" = "cm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/pml/cm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components cm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components cm" else if test "pml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pml/cm/lib${OMPI_LIB_PREFIX}mca_pml_cm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pml/cm/libmca_pml_cm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pml_cm_component;" >> $outfile.extern echo " &mca_pml_cm_component, " >> $outfile.struct static_components="$static_components cm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:cm can compile" >&5 $as_echo_n "checking if MCA component pml:cm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pml" = "cm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_pml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pml component cm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pml" = "cm" ; then as_fn_error $? "*** pml component cm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pml_cm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pml_cm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pml_cm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pml_cm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pml_cm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pml_cm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pml_cm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pml_cm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pml_cm_WRAPPER_EXTRA_CPPFLAGS ($pml_cm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pml_cm_WRAPPER_EXTRA_CPPFLAGS ($pml_cm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:cm can compile" >&5 $as_echo_n "checking if MCA component pml:cm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pml" = "cm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "cm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"cm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components cm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_pml_cm_DSO=1 else BUILD_ompi_pml_cm_DSO=0 fi if test "$BUILD_ompi_pml_cm_DSO" = "1"; then MCA_BUILD_ompi_pml_cm_DSO_TRUE= MCA_BUILD_ompi_pml_cm_DSO_FALSE='#' else MCA_BUILD_ompi_pml_cm_DSO_TRUE='#' MCA_BUILD_ompi_pml_cm_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/pml/cm/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component pml:crcpw (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/pml/crcpw" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "crcpw" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pml" = "1"; then : want_component=0 fi if test "$DISABLE_pml_crcpw" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pml" SHARED_COMPONENT="$DSO_pml_crcpw" STATIC_FRAMEWORK="$STATIC_pml" STATIC_COMPONENT="$STATIC_pml_crcpw" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pml:crcpw compile mode" >&5 $as_echo_n "checking for MCA component pml:crcpw compile mode... " >&6; } if test "$DIRECT_pml" = "crcpw" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/pml/crcpw/Makefile" # If we don't want FT, don't compile this component if test "$opal_want_ft_cr" = "1"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/pml/crcpw/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components crcpw" if test "$compile_mode" = "dso" ; then dso_components="$dso_components crcpw" else if test "pml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pml/crcpw/lib${OMPI_LIB_PREFIX}mca_pml_crcpw.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pml/crcpw/libmca_pml_crcpw.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pml_crcpw_component;" >> $outfile.extern echo " &mca_pml_crcpw_component, " >> $outfile.struct static_components="$static_components crcpw" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:crcpw can compile" >&5 $as_echo_n "checking if MCA component pml:crcpw can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pml" = "crcpw" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_pml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pml component crcpw was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pml" = "crcpw" ; then as_fn_error $? "*** pml component crcpw was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pml_crcpw_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pml_crcpw_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pml_crcpw_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pml_crcpw_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pml_crcpw_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pml_crcpw_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pml_crcpw_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pml_crcpw_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pml_crcpw_WRAPPER_EXTRA_CPPFLAGS ($pml_crcpw_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pml_crcpw_WRAPPER_EXTRA_CPPFLAGS ($pml_crcpw_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:crcpw can compile" >&5 $as_echo_n "checking if MCA component pml:crcpw can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pml" = "crcpw" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"crcpw\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "crcpw" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"crcpw\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components crcpw" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_pml_crcpw_DSO=1 else BUILD_ompi_pml_crcpw_DSO=0 fi if test "$BUILD_ompi_pml_crcpw_DSO" = "1"; then MCA_BUILD_ompi_pml_crcpw_DSO_TRUE= MCA_BUILD_ompi_pml_crcpw_DSO_FALSE='#' else MCA_BUILD_ompi_pml_crcpw_DSO_TRUE='#' MCA_BUILD_ompi_pml_crcpw_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pml:monitoring (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/pml/monitoring" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "monitoring" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pml" = "1"; then : want_component=0 fi if test "$DISABLE_pml_monitoring" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pml" SHARED_COMPONENT="$DSO_pml_monitoring" STATIC_FRAMEWORK="$STATIC_pml" STATIC_COMPONENT="$STATIC_pml_monitoring" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pml:monitoring compile mode" >&5 $as_echo_n "checking for MCA component pml:monitoring compile mode... " >&6; } if test "$DIRECT_pml" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/pml/monitoring/Makefile" if test "$MCA_BUILD_ompi_common_monitoring_DSO_TRUE" = ''; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/pml/monitoring/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components monitoring" if test "$compile_mode" = "dso" ; then dso_components="$dso_components monitoring" else if test "pml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pml/monitoring/lib${OMPI_LIB_PREFIX}mca_pml_monitoring.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pml/monitoring/libmca_pml_monitoring.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pml_monitoring_component;" >> $outfile.extern echo " &mca_pml_monitoring_component, " >> $outfile.struct static_components="$static_components monitoring" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:monitoring can compile" >&5 $as_echo_n "checking if MCA component pml:monitoring can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pml" = "monitoring" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_pml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pml component monitoring was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pml" = "monitoring" ; then as_fn_error $? "*** pml component monitoring was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pml_monitoring_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pml_monitoring_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pml_monitoring_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pml_monitoring_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pml_monitoring_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pml_monitoring_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pml_monitoring_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pml_monitoring_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pml_monitoring_WRAPPER_EXTRA_CPPFLAGS ($pml_monitoring_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pml_monitoring_WRAPPER_EXTRA_CPPFLAGS ($pml_monitoring_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:monitoring can compile" >&5 $as_echo_n "checking if MCA component pml:monitoring can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pml" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"monitoring\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"monitoring\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "monitoring" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"monitoring\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"monitoring\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components monitoring" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_pml_monitoring_DSO=1 else BUILD_ompi_pml_monitoring_DSO=0 fi if test "$BUILD_ompi_pml_monitoring_DSO" = "1"; then MCA_BUILD_ompi_pml_monitoring_DSO_TRUE= MCA_BUILD_ompi_pml_monitoring_DSO_FALSE='#' else MCA_BUILD_ompi_pml_monitoring_DSO_TRUE='#' MCA_BUILD_ompi_pml_monitoring_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pml:ob1 (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/pml/ob1" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "ob1" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pml" = "1"; then : want_component=0 fi if test "$DISABLE_pml_ob1" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pml" SHARED_COMPONENT="$DSO_pml_ob1" STATIC_FRAMEWORK="$STATIC_pml" STATIC_COMPONENT="$STATIC_pml_ob1" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pml:ob1 compile mode" >&5 $as_echo_n "checking for MCA component pml:ob1 compile mode... " >&6; } if test "$DIRECT_pml" = "ob1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/pml/ob1/Makefile" should_build=$should_build opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/pml/ob1/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ob1" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ob1" else if test "pml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pml/ob1/lib${OMPI_LIB_PREFIX}mca_pml_ob1.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pml/ob1/libmca_pml_ob1.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pml_ob1_component;" >> $outfile.extern echo " &mca_pml_ob1_component, " >> $outfile.struct static_components="$static_components ob1" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:ob1 can compile" >&5 $as_echo_n "checking if MCA component pml:ob1 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pml" = "ob1" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_pml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pml component ob1 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pml" = "ob1" ; then as_fn_error $? "*** pml component ob1 was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pml_ob1_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pml_ob1_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pml_ob1_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pml_ob1_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pml_ob1_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pml_ob1_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pml_ob1_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pml_ob1_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pml_ob1_WRAPPER_EXTRA_CPPFLAGS ($pml_ob1_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pml_ob1_WRAPPER_EXTRA_CPPFLAGS ($pml_ob1_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:ob1 can compile" >&5 $as_echo_n "checking if MCA component pml:ob1 can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pml" = "ob1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ob1\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "ob1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ob1\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ob1" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag BML" >&5 $as_echo_n "checking for index in endpoint array for tag BML... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_BML"; then : OMPI_PROC_ENDPOINT_TAG_BML=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_BML $OMPI_PROC_ENDPOINT_TAG_BML _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_BML" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_BML" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_pml_ob1_DSO=1 else BUILD_ompi_pml_ob1_DSO=0 fi if test "$BUILD_ompi_pml_ob1_DSO" = "1"; then MCA_BUILD_ompi_pml_ob1_DSO_TRUE= MCA_BUILD_ompi_pml_ob1_DSO_FALSE='#' else MCA_BUILD_ompi_pml_ob1_DSO_TRUE='#' MCA_BUILD_ompi_pml_ob1_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pml:ucx (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/pml/ucx" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "ucx" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pml" = "1"; then : want_component=0 fi if test "$DISABLE_pml_ucx" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pml" SHARED_COMPONENT="$DSO_pml_ucx" STATIC_FRAMEWORK="$STATIC_pml" STATIC_COMPONENT="$STATIC_pml_ucx" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pml:ucx compile mode" >&5 $as_echo_n "checking for MCA component pml:ucx compile mode... " >&6; } if test "$DIRECT_pml" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/pml/ucx/Makefile" # 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_check_ucx_dir; 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_check_ucx_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test -z "$ompi_check_ucx_happy"; then : # Check whether --with-ucx was given. if test "${with_ucx+set}" = set; then : withval=$with_ucx; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx value" >&5 $as_echo_n "checking --with-ucx value... " >&6; } if test "$with_ucx" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx)" >&5 $as_echo "simple no (specified --without-ucx)" >&6; } else if test "$with_ucx" = "yes" || test "x$with_ucx" = "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_ucx"; 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_ucx not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx/include/ucp/api/ucp.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_ucx/include/ucp/api/ucp.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx/include/ucp/api/ucp.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx)" >&5 $as_echo "sanity check ok ($with_ucx)" >&6; } fi fi fi fi # Check whether --with-ucx-libdir was given. if test "${with_ucx_libdir+set}" = set; then : withval=$with_ucx_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx-libdir value" >&5 $as_echo_n "checking --with-ucx-libdir value... " >&6; } if test "$with_ucx_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx-libdir)" >&5 $as_echo "simple no (specified --without-ucx-libdir)" >&6; } else if test "$with_ucx_libdir" = "yes" || test "x$with_ucx_libdir" = "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_ucx_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ucx_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx_libdir/libucp.* 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_ucx_libdir/libucp.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx_libdir/libucp.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx_libdir)" >&5 $as_echo "sanity check ok ($with_ucx_libdir)" >&6; } fi fi fi fi if test "$with_ucx" != "no"; then : if test -n "$with_ucx" && test "$with_ucx" != "yes"; then : ompi_check_ucx_dir="$with_ucx" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucx" >&5 $as_echo_n "checking for ucx... " >&6; } if test -n "$ucx_CFLAGS"; then pkg_cv_ucx_CFLAGS="$ucx_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_CFLAGS=`$PKG_CONFIG --cflags "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_LIBS"; then pkg_cv_ucx_LIBS="$ucx_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_LIBS=`$PKG_CONFIG --libs "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_STATIC_LIBS"; then pkg_cv_ucx_STATIC_LIBS="$ucx_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_STATIC_LIBS=`$PKG_CONFIG --libs --static "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ucx_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ucx" 2>&1` else ucx_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ucx" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ucx_PKG_ERRORS" >&5 true elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } true else ucx_CFLAGS=$pkg_cv_ucx_CFLAGS ucx_LIBS=$pkg_cv_ucx_LIBS ucx_STATIC_LIBS=$pkg_cv_ucx_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_check_ucx_dir=`$PKG_CONFIG --variable=prefix ucx` if test "$ompi_check_ucx_dir" = "/usr"; then : ompi_check_ucx_dir= fi fi fi ompi_check_ucx_happy="no" if test -z "$ompi_check_ucx_dir"; then : opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo | 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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:353766: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:353773: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:354491: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:354498: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } fi if test "$ompi_check_ucx_happy" = "no"; then : ompi_check_ucx_dir=/opt/ucx fi fi if test "$ompi_check_ucx_happy" != yes; then : if test -n "$with_ucx_libdir"; then : ompi_check_ucx_libdir="$with_ucx_libdir" else files=`ls $ompi_check_ucx_dir/lib64/libucp.* 2> /dev/null | wc -l` if test "$files" -gt 0; then : ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib64 else ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib fi fi ompi_check_ucx_pml_ucx_save_CPPFLAGS="$CPPFLAGS" ompi_check_ucx_pml_ucx_save_LDFLAGS="$LDFLAGS" ompi_check_ucx_pml_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ucx_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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:355397: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:355404: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:356122: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:356129: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" CPPFLAGS="$ompi_check_ucx_pml_ucx_save_CPPFLAGS" LDFLAGS="$ompi_check_ucx_pml_ucx_save_LDFLAGS" LIBS="$ompi_check_ucx_pml_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } CPPFLAGS=$old_CPPFLAGS fi fi old_CPPFLAGS="$CPPFLAGS" if test -n "$ompi_check_ucx_dir"; then : CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" fi # Turn off UCX version v1.8 due to issue #8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCX version" >&5 $as_echo_n "checking UCX version... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if (UCP_API_MAJOR == 1) && (UCP_API_MINOR == 8) #error "Invalid version" #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (not 1.8.x)" >&5 $as_echo "ok (not 1.8.x)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad (1.8.x)" >&5 $as_echo "bad (1.8.x)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&5 $as_echo "$as_me: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please upgrade to UCX version 1.9 or higher." >&5 $as_echo "$as_me: WARNING: Please upgrade to UCX version 1.9 or higher." >&2;} ompi_check_ucx_happy=no fi rm -f conftest.err conftest.i conftest.$ac_ext if test "$ompi_check_ucx_happy" = yes; then : ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbr" "ac_cv_have_decl_ucp_tag_send_nbr" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbr" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBR $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_TAG_SEND_NBR 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nb" "ac_cv_have_decl_ucp_ep_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_worker_flush_nb" "ac_cv_have_decl_ucp_worker_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_worker_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_request_check_status" "ac_cv_have_decl_ucp_request_check_status" "#include " if test "x$ac_cv_have_decl_ucp_request_check_status" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_REQUEST_CHECK_STATUS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nb" "ac_cv_have_decl_ucp_put_nb" "#include " if test "x$ac_cv_have_decl_ucp_put_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nb" "ac_cv_have_decl_ucp_get_nb" "#include " if test "x$ac_cv_have_decl_ucp_get_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nbx" "ac_cv_have_decl_ucp_put_nbx" "#include " if test "x$ac_cv_have_decl_ucp_put_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nbx" "ac_cv_have_decl_ucp_get_nbx" "#include " if test "x$ac_cv_have_decl_ucp_get_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_atomic_op_nbx" "ac_cv_have_decl_ucp_atomic_op_nbx" "#include " if test "x$ac_cv_have_decl_ucp_atomic_op_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_OP_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nbx" "ac_cv_have_decl_ucp_ep_flush_nbx" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_events" "ac_cv_have_decl_ucm_test_events" "#include " if test "x$ac_cv_have_decl_ucm_test_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_external_events" "ac_cv_have_decl_ucm_test_external_events" "#include " if test "x$ac_cv_have_decl_ucm_test_external_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EXTERNAL_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_AND" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_AND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_OR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_OR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_XOR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_XOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FAND" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FAND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FXOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FXOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "#include " if test "x$ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_OP_ATTR_FLAG_MULTI_SEND" "ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" "#include " if test "x$ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_OP_ATTR_FLAG_MULTI_SEND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_WORKER_ADDRESS_FLAGS 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "UCP_ATTR_FIELD_MEMORY_TYPES" "ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" "#include " if test "x$ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATTR_FIELD_MEMORY_TYPES $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_ATTR_MEMORY_TYPES 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbx" "ac_cv_have_decl_ucp_tag_send_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_send_sync_nbx" "ac_cv_have_decl_ucp_tag_send_sync_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_sync_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_SYNC_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_recv_nbx" "ac_cv_have_decl_ucp_tag_recv_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_recv_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_RECV_NBX $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "ucp_request_param_t" "ac_cv_type_ucp_request_param_t" "#include " if test "x$ac_cv_type_ucp_request_param_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_REQUEST_PARAM_T 1 _ACEOF fi fi CPPFLAGS=$old_CPPFLAGS # 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 Transports | tr ' ' '_') ompi_summary_line="Open UCX: $ompi_check_ucx_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 fi fi if test "$ompi_check_ucx_happy" = "yes"; then : pml_ucx_CPPFLAGS="$pml_ucx_CPPFLAGS $ompi_check_ucx_CPPFLAGS" pml_ucx_LDFLAGS="$pml_ucx_LDFLAGS $ompi_check_ucx_LDFLAGS" pml_ucx_LIBS="$pml_ucx_LIBS $ompi_check_ucx_LIBS" $as_echo "#define HAVE_UCX 1" >>confdefs.h pml_ucx_happy="yes" else if test ! -z "$with_ucx" && test "$with_ucx" != "no"; then : as_fn_error $? "UCX support requested but not found. Aborting" "$LINENO" 5 fi $as_echo "#define HAVE_UCX 0" >>confdefs.h pml_ucx_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 if test "$pml_ucx_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build ucx opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/pml/ucx/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ucx" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ucx" else if test "pml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pml/ucx/lib${OMPI_LIB_PREFIX}mca_pml_ucx.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pml/ucx/libmca_pml_ucx.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pml_ucx_component;" >> $outfile.extern echo " &mca_pml_ucx_component, " >> $outfile.struct static_components="$static_components ucx" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:ucx can compile" >&5 $as_echo_n "checking if MCA component pml:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pml" = "ucx" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_pml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pml component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pml" = "ucx" ; then as_fn_error $? "*** pml component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pml_ucx_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pml_ucx_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pml_ucx_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pml_ucx_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pml_ucx_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pml_ucx_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pml_ucx_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pml_ucx_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pml_ucx_WRAPPER_EXTRA_CPPFLAGS ($pml_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pml_ucx_WRAPPER_EXTRA_CPPFLAGS ($pml_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:ucx can compile" >&5 $as_echo_n "checking if MCA component pml:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pml" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ucx" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag PML" >&5 $as_echo_n "checking for index in endpoint array for tag PML... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_PML"; then : OMPI_PROC_ENDPOINT_TAG_PML=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_PML $OMPI_PROC_ENDPOINT_TAG_PML _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_PML" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_PML" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_pml_ucx_DSO=1 else BUILD_ompi_pml_ucx_DSO=0 fi if test "$BUILD_ompi_pml_ucx_DSO" = "1"; then MCA_BUILD_ompi_pml_ucx_DSO_TRUE= MCA_BUILD_ompi_pml_ucx_DSO_FALSE='#' else MCA_BUILD_ompi_pml_ucx_DSO_TRUE='#' MCA_BUILD_ompi_pml_ucx_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pml:v (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/pml/v" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "v" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pml" = "1"; then : want_component=0 fi if test "$DISABLE_pml_v" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pml:v compile mode" >&5 $as_echo_n "checking for MCA component pml:v compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files ompi/mca/pml/v/Makefile" should_build=$should_build opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/pml/v/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components v" if test "$compile_mode" = "dso" ; then dso_components="$dso_components v" else if test "pml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pml/v/lib${OMPI_LIB_PREFIX}mca_pml_v.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pml/v/libmca_pml_v.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pml_v_component;" >> $outfile.extern echo " &mca_pml_v_component, " >> $outfile.struct static_components="$static_components v" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:v can compile" >&5 $as_echo_n "checking if MCA component pml:v can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pml" = "v" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_pml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pml component v was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pml" = "v" ; then as_fn_error $? "*** pml component v was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pml_v_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pml_v_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pml_v_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pml_v_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pml_v_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pml_v_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pml_v_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pml_v_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pml_v_WRAPPER_EXTRA_CPPFLAGS ($pml_v_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pml_v_WRAPPER_EXTRA_CPPFLAGS ($pml_v_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:v can compile" >&5 $as_echo_n "checking if MCA component pml:v can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pml" = "v" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "v" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components v" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_pml_v_DSO=1 else BUILD_ompi_pml_v_DSO=0 fi if test "$BUILD_ompi_pml_v_DSO" = "1"; then MCA_BUILD_ompi_pml_v_DSO_TRUE= MCA_BUILD_ompi_pml_v_DSO_FALSE='#' else MCA_BUILD_ompi_pml_v_DSO_TRUE='#' MCA_BUILD_ompi_pml_v_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component pml:yalla (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/pml/yalla" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "yalla" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pml" = "1"; then : want_component=0 fi if test "$DISABLE_pml_yalla" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_pml" SHARED_COMPONENT="$DSO_pml_yalla" STATIC_FRAMEWORK="$STATIC_pml" STATIC_COMPONENT="$STATIC_pml_yalla" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pml:yalla compile mode" >&5 $as_echo_n "checking for MCA component pml:yalla compile mode... " >&6; } if test "$DIRECT_pml" = "yalla" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/pml/yalla/Makefile" if test -z "$ompi_check_mxm_happy" ; then # Check whether --with-mxm was given. if test "${with_mxm+set}" = set; then : withval=$with_mxm; fi # Check whether --with-mxm-libdir was given. if test "${with_mxm_libdir+set}" = set; then : withval=$with_mxm_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mxm-libdir value" >&5 $as_echo_n "checking --with-mxm-libdir value... " >&6; } if test "$with_mxm_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-mxm-libdir)" >&5 $as_echo "simple no (specified --without-mxm-libdir)" >&6; } else if test "$with_mxm_libdir" = "yes" || test "x$with_mxm_libdir" = "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_mxm_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mxm_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_mxm_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_mxm_libdir/libmxm.* 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mxm_libdir/libmxm.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_mxm_libdir/libmxm.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mxm_libdir)" >&5 $as_echo "sanity check ok ($with_mxm_libdir)" >&6; } fi fi fi fi ompi_check_mxm_pml_yalla_save_CPPFLAGS="$CPPFLAGS" ompi_check_mxm_pml_yalla_save_LDFLAGS="$LDFLAGS" ompi_check_mxm_pml_yalla_save_LIBS="$LIBS" if test "$with_mxm" != "no"; then : if test ! -z "$with_mxm" && test "$with_mxm" != "yes"; then : ompi_check_mxm_dir="$with_mxm" fi if test ! -z "$with_mxm_libdir" && test "$with_mxm_libdir" != "yes"; then : ompi_check_mxm_libdir="$with_mxm_libdir" fi opal_check_package_ompi_check_mxm_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_mxm_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_mxm_save_LIBS="$LIBS" opal_check_package_ompi_check_mxm_orig_CPPFLAGS="$ompi_check_mxm_CPPFLAGS" opal_check_package_ompi_check_mxm_orig_LDFLAGS="$ompi_check_mxm_LDFLAGS" opal_check_package_ompi_check_mxm_orig_LIBS="$ompi_check_mxm_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_mxm_api_mxm_api_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_mxm_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 mxm/api/mxm_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default" if test "x$ac_cv_header_mxm_api_mxm_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MXM_API_MXM_API_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_mxm_api_mxm_api_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_mxm_CPPFLAGS="$ompi_check_mxm_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in mxm/api/mxm_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default" if test "x$ac_cv_header_mxm_api_mxm_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MXM_API_MXM_API_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_mxm_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_mxm_libdir" != ""; then : # libdir was specified - search only there ompi_check_mxm_LDFLAGS="$ompi_check_mxm_LDFLAGS -L$ompi_check_mxm_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_mxm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup 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 libmxm requires libnl v1 or v3" >&5 $as_echo_n "checking if libmxm requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void mxm_cleanup (void); int main(int argc, char *argv[]) { mxm_cleanup (); 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:358880: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_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:358887: \$? = $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 mxm" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib mxm" >&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, libmxm links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&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 mxm requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas mxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs mxm" # 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 libmxm requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs mxm" # 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_mxm_cleanup" != "no" && test "$ac_cv_search_mxm_cleanup" != "none required"; then : ompi_check_mxm_LIBS="$ac_cv_search_mxm_cleanup " else ompi_check_mxm_LIBS="" 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_mxm_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_mxm_libdir" != ""; then : # libdir was specified - search only there ompi_check_mxm_LDFLAGS="$ompi_check_mxm_LDFLAGS -L$ompi_check_mxm_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_mxm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup 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 libmxm requires libnl v1 or v3" >&5 $as_echo_n "checking if libmxm requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void mxm_cleanup (void); int main(int argc, char *argv[]) { mxm_cleanup (); 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:359605: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_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:359612: \$? = $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 mxm" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib mxm" >&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, libmxm links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&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 mxm requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas mxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs mxm" # 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 libmxm requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs mxm" # 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_mxm_cleanup" != "no" && test "$ac_cv_search_mxm_cleanup" != "none required"; then : ompi_check_mxm_LIBS="$ac_cv_search_mxm_cleanup " else ompi_check_mxm_LIBS="" 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 : ompi_check_mxm_happy="yes" else ompi_check_mxm_CPPFLAGS="$opal_check_package_ompi_check_mxm_orig_CPPFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" ompi_check_mxm_LIBS="$opal_check_package_ompi_check_mxm_orig_LIBS" ompi_check_mxm_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_mxm_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_mxm_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_mxm_save_LIBS" else ompi_check_mxm_happy="no" fi CPPFLAGS="$ompi_check_mxm_pml_yalla_save_CPPFLAGS" LDFLAGS="$ompi_check_mxm_pml_yalla_save_LDFLAGS" LIBS="$ompi_check_mxm_pml_yalla_save_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MXM version compatibility" >&5 $as_echo_n "checking for MXM version compatibility... " >&6; } old_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -I$ompi_check_mxm_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef MXM_VERSION #error "MXM Version is less than 2.1, please upgrade" #endif # #if MXM_API < MXM_VERSION(2,1) #error "MXM Version is less than 2.1, please upgrade" #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_mxm_version_ok="yes" else ompi_mxm_version_ok="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_mxm_version_ok" >&5 $as_echo "$ompi_mxm_version_ok" >&6; } CFLAGS=$old_CFLAGS if test "$ompi_mxm_version_ok" = "no"; then : ompi_check_mxm_happy="no" 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 Transports | tr ' ' '_') ompi_summary_line="Mellanox MXM: $ompi_check_mxm_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 fi if test "$ompi_check_mxm_happy" = "yes"; then : pml_yalla_LDFLAGS="$pml_yalla_LDFLAGS $ompi_check_mxm_LDFLAGS" pml_yalla_LIBS="$pml_yalla_LIBS $ompi_check_mxm_LIBS" pml_yalla_CPPFLAGS="$pml_yalla_CPPFLAGS $ompi_check_mxm_CPPFLAGS" pml_yalla_happy="yes" else if test ! -z "$with_mxm" && test "$with_mxm" != "no"; then : as_fn_error $? "MXM support requested but not found. Aborting" "$LINENO" 5 fi pml_yalla_happy="no" fi if test "$pml_yalla_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build mxm opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/pml/yalla/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components yalla" if test "$compile_mode" = "dso" ; then dso_components="$dso_components yalla" else if test "pml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pml/yalla/lib${OMPI_LIB_PREFIX}mca_pml_yalla.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pml/yalla/libmca_pml_yalla.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pml_yalla_component;" >> $outfile.extern echo " &mca_pml_yalla_component, " >> $outfile.struct static_components="$static_components yalla" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:yalla can compile" >&5 $as_echo_n "checking if MCA component pml:yalla can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pml" = "yalla" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_pml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pml component yalla was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pml" = "yalla" ; then as_fn_error $? "*** pml component yalla was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$pml_yalla_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $pml_yalla_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $pml_yalla_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$pml_yalla_WRAPPER_EXTRA_LIBS" = ""; 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_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 $pml_yalla_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $pml_yalla_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$pml_yalla_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $pml_yalla_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pml_yalla_WRAPPER_EXTRA_CPPFLAGS ($pml_yalla_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring pml_yalla_WRAPPER_EXTRA_CPPFLAGS ($pml_yalla_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:yalla can compile" >&5 $as_echo_n "checking if MCA component pml:yalla can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pml" = "yalla" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"yalla\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"yalla\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "yalla" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"yalla\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"yalla\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components yalla" fi if test "$should_build" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for index in endpoint array for tag PML" >&5 $as_echo_n "checking for index in endpoint array for tag PML... " >&6; } if test -z "$OMPI_PROC_ENDPOINT_TAG_PML"; then : OMPI_PROC_ENDPOINT_TAG_PML=$ompi_endpoint_tag_counter cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_PML $OMPI_PROC_ENDPOINT_TAG_PML _ACEOF ompi_endpoint_tag_counter=`expr $ompi_endpoint_tag_counter + 1` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PROC_ENDPOINT_TAG_PML" >&5 $as_echo "$OMPI_PROC_ENDPOINT_TAG_PML" >&6; } fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_pml_yalla_DSO=1 else BUILD_ompi_pml_yalla_DSO=0 fi if test "$BUILD_ompi_pml_yalla_DSO" = "1"; then MCA_BUILD_ompi_pml_yalla_DSO_TRUE= MCA_BUILD_ompi_pml_yalla_DSO_FALSE='#' else MCA_BUILD_ompi_pml_yalla_DSO_TRUE='#' MCA_BUILD_ompi_pml_yalla_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/pml/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component pml:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/pml/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_pml" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_pml_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_pml" str="SHARED_COMPONENT=\$DSO_pml_$component" eval $str STATIC_FRAMEWORK="$STATIC_pml" str="STATIC_COMPONENT=\$STATIC_pml_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pml:$component compile mode" >&5 $as_echo_n "checking for MCA component pml:$component compile mode... " >&6; } if test "$DIRECT_pml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/pml/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/pml/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/pml/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then pml_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then pml_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/pml/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "pml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/pml/$component/lib${OMPI_LIB_PREFIX}mca_pml_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/pml/$component/libmca_pml_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_pml_$component_component;" >> $outfile.extern echo " &mca_pml_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:$component can compile" >&5 $as_echo_n "checking if MCA component pml:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_pml" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_pml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** pml component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_pml" = "$component" ; then as_fn_error $? "*** pml component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$pml_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$pml_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pml:$component can compile" >&5 $as_echo_n "checking if MCA component pml:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_pml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_pml" ; then if test "$DIRECT_pml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_pml_ALL_COMPONENTS="$all_components" MCA_ompi_pml_STATIC_COMPONENTS="$static_components" MCA_ompi_pml_DSO_COMPONENTS="$dso_components" MCA_ompi_pml_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_pml_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_pml_ALL_SUBDIRS="$MCA_ompi_pml_ALL_SUBDIRS mca/pml/$item" done MCA_ompi_pml_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_pml_STATIC_SUBDIRS="$MCA_ompi_pml_STATIC_SUBDIRS mca/pml/$item" done MCA_ompi_pml_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_pml_DSO_SUBDIRS="$MCA_ompi_pml_DSO_SUBDIRS mca/pml/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "pml" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # this is a direct callable component, so set that up. if test ! -z "$DIRECT_pml" ; then MCA_ompi_pml_DIRECT_CALL_COMPONENT=$DIRECT_pml MCA_ompi_pml_DIRECT_CALL=1 else MCA_ompi_pml_DIRECT_CALL_COMPONENT= MCA_ompi_pml_DIRECT_CALL=0 fi cat >>confdefs.h <<_ACEOF #define MCA_ompi_pml_DIRECT_CALL $MCA_ompi_pml_DIRECT_CALL _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_ompi_pml_DIRECT_CALL_COMPONENT $MCA_ompi_pml_DIRECT_CALL_COMPONENT _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_ompi_pml_DIRECT_CALL_HEADER "$MCA_ompi_pml_DIRECT_CALL_HEADER" _ACEOF MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS rte" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/rte" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_rte_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_rte_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_rte_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/rte/libmca_rte.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_rte_STATIC_LTLIBS)" ompi_rte_base_include= # configure all the components opal_show_subsubtitle "Configuring MCA framework rte" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/rte/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/rte/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework rte" >&5 $as_echo_n "checking for no configure components in framework rte... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework rte" >&5 $as_echo_n "checking for m4 configure components in framework rte... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: orte, pmix" >&5 $as_echo "orte, pmix" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component rte:pmix (m4 configuration macro, priority 50)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/rte/pmix" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rte" ; then if test "$DIRECT_rte" = "pmix" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rte" = "1"; then : want_component=0 fi if test "$DISABLE_rte_pmix" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rte:pmix compile mode" >&5 $as_echo_n "checking for MCA component rte:pmix compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files ompi/mca/rte/pmix/Makefile" # Check whether --with-ompi-pmix-rte was given. if test "${with_ompi_pmix_rte+set}" = set; then : withval=$with_ompi_pmix_rte; fi if test "$with_ompi_pmix_rte" == "yes"; then : should_build=$should_build { $as_echo "$as_me:${as_lineno-$LINENO}: PMIx RTE selected by user" >&5 $as_echo "$as_me: PMIx RTE selected by user" >&6;} else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/rte/pmix/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components pmix" if test "$compile_mode" = "dso" ; then dso_components="$dso_components pmix" else if test "rte" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rte/pmix/lib${OMPI_LIB_PREFIX}mca_rte_pmix.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rte/pmix/libmca_rte_pmix.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rte_pmix_component;" >> $outfile.extern echo " &mca_rte_pmix_component, " >> $outfile.struct static_components="$static_components pmix" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rte:pmix can compile" >&5 $as_echo_n "checking if MCA component rte:pmix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rte" = "pmix" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_rte_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rte component pmix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rte" = "pmix" ; then as_fn_error $? "*** rte component pmix was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rte_pmix_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rte_pmix_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rte_pmix_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rte_pmix_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rte_pmix_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rte_pmix_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rte_pmix_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rte_pmix_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rte_pmix_WRAPPER_EXTRA_CPPFLAGS ($rte_pmix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rte_pmix_WRAPPER_EXTRA_CPPFLAGS ($rte_pmix_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rte:pmix can compile" >&5 $as_echo_n "checking if MCA component rte:pmix can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rte" = "pmix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pmix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pmix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rte" ; then if test "$DIRECT_rte" = "pmix" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pmix\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pmix\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components pmix" fi if test "$should_build" = "1"; then : ompi_rte_base_include="pmix/rte_pmix.h" fi cat >>confdefs.h <<_ACEOF #define OMPI_RTE_PMIX $should_build _ACEOF if test $should_build = 1; then OMPI_RTE_PMIX_TRUE= OMPI_RTE_PMIX_FALSE='#' else OMPI_RTE_PMIX_TRUE='#' OMPI_RTE_PMIX_FALSE= fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_rte_pmix_DSO=1 else BUILD_ompi_rte_pmix_DSO=0 fi if test "$BUILD_ompi_rte_pmix_DSO" = "1"; then MCA_BUILD_ompi_rte_pmix_DSO_TRUE= MCA_BUILD_ompi_rte_pmix_DSO_FALSE='#' else MCA_BUILD_ompi_rte_pmix_DSO_TRUE='#' MCA_BUILD_ompi_rte_pmix_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi opal_show_subsubsubtitle "MCA component rte:orte (m4 configuration macro, priority 10)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/rte/orte" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_rte" ; then if test "$DIRECT_rte" = "orte" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_rte" = "1"; then : want_component=0 fi if test "$DISABLE_rte_orte" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component rte:orte compile mode" >&5 $as_echo_n "checking for MCA component rte:orte compile mode... " >&6; } compile_mode="static" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } # try to configure the component ac_config_files="$ac_config_files ompi/mca/rte/orte/Makefile" # This will need to get more complicated when we can build against # an external ORTE. # Check whether --with-orte was given. if test "${with_orte+set}" = set; then : withval=$with_orte; fi if test "$with_orte" != "no"; then : should_build=$should_build else { $as_echo "$as_me:${as_lineno-$LINENO}: ORTE disabled by user" >&5 $as_echo "$as_me: ORTE disabled by user" >&6;} should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/rte/orte/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components orte" if test "$compile_mode" = "dso" ; then dso_components="$dso_components orte" else if test "rte" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/rte/orte/lib${OMPI_LIB_PREFIX}mca_rte_orte.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/rte/orte/libmca_rte_orte.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_rte_orte_component;" >> $outfile.extern echo " &mca_rte_orte_component, " >> $outfile.struct static_components="$static_components orte" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rte:orte can compile" >&5 $as_echo_n "checking if MCA component rte:orte can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_rte" = "orte" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_rte_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** rte component orte was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_rte" = "orte" ; then as_fn_error $? "*** rte component orte was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$rte_orte_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $rte_orte_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $rte_orte_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$rte_orte_WRAPPER_EXTRA_LIBS" = ""; 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_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 $rte_orte_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $rte_orte_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$rte_orte_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=1 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $rte_orte_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring rte_orte_WRAPPER_EXTRA_CPPFLAGS ($rte_orte_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring rte_orte_WRAPPER_EXTRA_CPPFLAGS ($rte_orte_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component rte:orte can compile" >&5 $as_echo_n "checking if MCA component rte:orte can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_rte" = "orte" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orte\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_rte" ; then if test "$DIRECT_rte" = "orte" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"orte\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components orte" fi if test "$should_build" = "1"; then : ompi_rte_base_include="orte/rte_orte.h" fi cat >>confdefs.h <<_ACEOF #define OMPI_RTE_ORTE $should_build _ACEOF if test $should_build = 1; then OMPI_RTE_ORTE_TRUE= OMPI_RTE_ORTE_FALSE='#' else OMPI_RTE_ORTE_TRUE='#' OMPI_RTE_ORTE_FALSE= fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_rte_orte_DSO=1 else BUILD_ompi_rte_orte_DSO=0 fi if test "$BUILD_ompi_rte_orte_DSO" = "1"; then MCA_BUILD_ompi_rte_orte_DSO_TRUE= MCA_BUILD_ompi_rte_orte_DSO_FALSE='#' else MCA_BUILD_ompi_rte_orte_DSO_TRUE='#' MCA_BUILD_ompi_rte_orte_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode if test $components_last_result -eq 1; then : components_looking_for_succeed=0 fi # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) MCA_ompi_rte_ALL_COMPONENTS="$all_components" MCA_ompi_rte_STATIC_COMPONENTS="$static_components" MCA_ompi_rte_DSO_COMPONENTS="$dso_components" MCA_ompi_rte_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_rte_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_rte_ALL_SUBDIRS="$MCA_ompi_rte_ALL_SUBDIRS mca/rte/$item" done MCA_ompi_rte_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_rte_STATIC_SUBDIRS="$MCA_ompi_rte_STATIC_SUBDIRS mca/rte/$item" done MCA_ompi_rte_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_rte_DSO_SUBDIRS="$MCA_ompi_rte_DSO_SUBDIRS mca/rte/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "rte" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real if test "$ompi_rte_base_include" = ""; then : as_fn_error $? "Did not find a suitable rte component" "$LINENO" 5 fi cat >>confdefs.h <<_ACEOF #define MCA_rte_IMPLEMENTATION_HEADER "ompi/mca/rte/$ompi_rte_base_include" _ACEOF MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS sharedfp" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/sharedfp" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_sharedfp_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_sharedfp_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_sharedfp_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/sharedfp/libmca_sharedfp.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_sharedfp_STATIC_LTLIBS)" # 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 want_io_ompio; 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=\"want_io_ompio\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test "$enable_io_ompio" != "no"; then : want_io_ompio=1 else want_io_ompio=0 fi opal_show_subsubtitle "Configuring MCA framework sharedfp" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/sharedfp/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/sharedfp/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework sharedfp" >&5 $as_echo_n "checking for no configure components in framework sharedfp... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: individual, lockedfile" >&5 $as_echo "individual, lockedfile" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework sharedfp" >&5 $as_echo_n "checking for m4 configure components in framework sharedfp... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: sm" >&5 $as_echo "sm" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component sharedfp:individual (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=$want_io_ompio" component_path="$srcdir/ompi/mca/sharedfp/individual" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sharedfp" ; then if test "$DIRECT_sharedfp" = "individual" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sharedfp" = "1"; then : want_component=0 fi if test "$DISABLE_sharedfp_individual" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$want_io_ompio else should_build=0 fi SHARED_FRAMEWORK="$DSO_sharedfp" SHARED_COMPONENT="$DSO_sharedfp_individual" STATIC_FRAMEWORK="$STATIC_sharedfp" STATIC_COMPONENT="$STATIC_sharedfp_individual" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sharedfp:individual compile mode" >&5 $as_echo_n "checking for MCA component sharedfp:individual compile mode... " >&6; } if test "$DIRECT_sharedfp" = "individual" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/sharedfp/individual/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components individual" if test "$compile_mode" = "dso" ; then dso_components="$dso_components individual" else if test "sharedfp" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sharedfp/individual/lib${OMPI_LIB_PREFIX}mca_sharedfp_individual.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sharedfp/individual/libmca_sharedfp_individual.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sharedfp_individual_component;" >> $outfile.extern echo " &mca_sharedfp_individual_component, " >> $outfile.struct static_components="$static_components individual" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sharedfp:individual can compile" >&5 $as_echo_n "checking if MCA component sharedfp:individual can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sharedfp" = "individual" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_sharedfp_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sharedfp component individual was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sharedfp" = "individual" ; then as_fn_error $? "*** sharedfp component individual was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$sharedfp_individual_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $sharedfp_individual_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $sharedfp_individual_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$sharedfp_individual_WRAPPER_EXTRA_LIBS" = ""; 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_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 $sharedfp_individual_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $sharedfp_individual_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$sharedfp_individual_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $sharedfp_individual_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring sharedfp_individual_WRAPPER_EXTRA_CPPFLAGS ($sharedfp_individual_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring sharedfp_individual_WRAPPER_EXTRA_CPPFLAGS ($sharedfp_individual_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sharedfp:individual can compile" >&5 $as_echo_n "checking if MCA component sharedfp:individual can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sharedfp" = "individual" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"individual\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"individual\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sharedfp" ; then if test "$DIRECT_sharedfp" = "individual" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"individual\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"individual\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components individual" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_sharedfp_individual_DSO=1 else BUILD_ompi_sharedfp_individual_DSO=0 fi if test "$BUILD_ompi_sharedfp_individual_DSO" = "1"; then MCA_BUILD_ompi_sharedfp_individual_DSO_TRUE= MCA_BUILD_ompi_sharedfp_individual_DSO_FALSE='#' else MCA_BUILD_ompi_sharedfp_individual_DSO_TRUE='#' MCA_BUILD_ompi_sharedfp_individual_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/sharedfp/individual/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component sharedfp:lockedfile (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=$want_io_ompio" component_path="$srcdir/ompi/mca/sharedfp/lockedfile" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sharedfp" ; then if test "$DIRECT_sharedfp" = "lockedfile" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sharedfp" = "1"; then : want_component=0 fi if test "$DISABLE_sharedfp_lockedfile" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$want_io_ompio else should_build=0 fi SHARED_FRAMEWORK="$DSO_sharedfp" SHARED_COMPONENT="$DSO_sharedfp_lockedfile" STATIC_FRAMEWORK="$STATIC_sharedfp" STATIC_COMPONENT="$STATIC_sharedfp_lockedfile" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sharedfp:lockedfile compile mode" >&5 $as_echo_n "checking for MCA component sharedfp:lockedfile compile mode... " >&6; } if test "$DIRECT_sharedfp" = "lockedfile" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/sharedfp/lockedfile/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components lockedfile" if test "$compile_mode" = "dso" ; then dso_components="$dso_components lockedfile" else if test "sharedfp" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sharedfp/lockedfile/lib${OMPI_LIB_PREFIX}mca_sharedfp_lockedfile.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sharedfp/lockedfile/libmca_sharedfp_lockedfile.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sharedfp_lockedfile_component;" >> $outfile.extern echo " &mca_sharedfp_lockedfile_component, " >> $outfile.struct static_components="$static_components lockedfile" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sharedfp:lockedfile can compile" >&5 $as_echo_n "checking if MCA component sharedfp:lockedfile can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sharedfp" = "lockedfile" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_sharedfp_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sharedfp component lockedfile was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sharedfp" = "lockedfile" ; then as_fn_error $? "*** sharedfp component lockedfile was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$sharedfp_lockedfile_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $sharedfp_lockedfile_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $sharedfp_lockedfile_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$sharedfp_lockedfile_WRAPPER_EXTRA_LIBS" = ""; 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_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 $sharedfp_lockedfile_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $sharedfp_lockedfile_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$sharedfp_lockedfile_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $sharedfp_lockedfile_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring sharedfp_lockedfile_WRAPPER_EXTRA_CPPFLAGS ($sharedfp_lockedfile_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring sharedfp_lockedfile_WRAPPER_EXTRA_CPPFLAGS ($sharedfp_lockedfile_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sharedfp:lockedfile can compile" >&5 $as_echo_n "checking if MCA component sharedfp:lockedfile can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sharedfp" = "lockedfile" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lockedfile\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lockedfile\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sharedfp" ; then if test "$DIRECT_sharedfp" = "lockedfile" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"lockedfile\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"lockedfile\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components lockedfile" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_sharedfp_lockedfile_DSO=1 else BUILD_ompi_sharedfp_lockedfile_DSO=0 fi if test "$BUILD_ompi_sharedfp_lockedfile_DSO" = "1"; then MCA_BUILD_ompi_sharedfp_lockedfile_DSO_TRUE= MCA_BUILD_ompi_sharedfp_lockedfile_DSO_FALSE='#' else MCA_BUILD_ompi_sharedfp_lockedfile_DSO_TRUE='#' MCA_BUILD_ompi_sharedfp_lockedfile_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/sharedfp/lockedfile/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=$want_io_ompio components_last_result=0 opal_show_subsubsubtitle "MCA component sharedfp:sm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/sharedfp/sm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sharedfp" ; then if test "$DIRECT_sharedfp" = "sm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sharedfp" = "1"; then : want_component=0 fi if test "$DISABLE_sharedfp_sm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_sharedfp" SHARED_COMPONENT="$DSO_sharedfp_sm" STATIC_FRAMEWORK="$STATIC_sharedfp" STATIC_COMPONENT="$STATIC_sharedfp_sm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sharedfp:sm compile mode" >&5 $as_echo_n "checking for MCA component sharedfp:sm compile mode... " >&6; } if test "$DIRECT_sharedfp" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files ompi/mca/sharedfp/sm/Makefile" sharedfp_sm_happy=no ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" if test "x$ac_cv_header_semaphore_h" = xyes; then : for ac_func in sem_open do : ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open" if test "x$ac_cv_func_sem_open" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SEM_OPEN 1 _ACEOF sharedfp_sm_happy=yes fi done fi ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" if test "x$ac_cv_header_semaphore_h" = xyes; then : for ac_func in sem_init do : ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" if test "x$ac_cv_func_sem_init" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SEM_INIT 1 _ACEOF sharedfp_sm_happy=yes fi done fi if test "$sharedfp_sm_happy" = "yes"; then : should_build=$should_build else should_build=0 fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/sharedfp/sm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components sm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components sm" else if test "sharedfp" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sharedfp/sm/lib${OMPI_LIB_PREFIX}mca_sharedfp_sm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sharedfp/sm/libmca_sharedfp_sm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sharedfp_sm_component;" >> $outfile.extern echo " &mca_sharedfp_sm_component, " >> $outfile.struct static_components="$static_components sm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sharedfp:sm can compile" >&5 $as_echo_n "checking if MCA component sharedfp:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sharedfp" = "sm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_sharedfp_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sharedfp component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sharedfp" = "sm" ; then as_fn_error $? "*** sharedfp component sm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$sharedfp_sm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $sharedfp_sm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $sharedfp_sm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$sharedfp_sm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $sharedfp_sm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $sharedfp_sm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$sharedfp_sm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $sharedfp_sm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring sharedfp_sm_WRAPPER_EXTRA_CPPFLAGS ($sharedfp_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring sharedfp_sm_WRAPPER_EXTRA_CPPFLAGS ($sharedfp_sm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sharedfp:sm can compile" >&5 $as_echo_n "checking if MCA component sharedfp:sm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sharedfp" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sharedfp" ; then if test "$DIRECT_sharedfp" = "sm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components sm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_sharedfp_sm_DSO=1 else BUILD_ompi_sharedfp_sm_DSO=0 fi if test "$BUILD_ompi_sharedfp_sm_DSO" = "1"; then MCA_BUILD_ompi_sharedfp_sm_DSO_TRUE= MCA_BUILD_ompi_sharedfp_sm_DSO_FALSE='#' else MCA_BUILD_ompi_sharedfp_sm_DSO_TRUE='#' MCA_BUILD_ompi_sharedfp_sm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "$want_io_ompio" != "0"; then : for component_path in $srcdir/ompi/mca/sharedfp/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component sharedfp:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/sharedfp/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sharedfp" ; then if test "$DIRECT_sharedfp" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sharedfp" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_sharedfp_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_sharedfp" str="SHARED_COMPONENT=\$DSO_sharedfp_$component" eval $str STATIC_FRAMEWORK="$STATIC_sharedfp" str="STATIC_COMPONENT=\$STATIC_sharedfp_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sharedfp:$component compile mode" >&5 $as_echo_n "checking for MCA component sharedfp:$component compile mode... " >&6; } if test "$DIRECT_sharedfp" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/sharedfp/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/sharedfp/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/sharedfp/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then sharedfp_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then sharedfp_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/sharedfp/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "sharedfp" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sharedfp/$component/lib${OMPI_LIB_PREFIX}mca_sharedfp_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sharedfp/$component/libmca_sharedfp_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sharedfp_$component_component;" >> $outfile.extern echo " &mca_sharedfp_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sharedfp:$component can compile" >&5 $as_echo_n "checking if MCA component sharedfp:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sharedfp" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_sharedfp_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sharedfp component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sharedfp" = "$component" ; then as_fn_error $? "*** sharedfp component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$sharedfp_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$sharedfp_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sharedfp:$component can compile" >&5 $as_echo_n "checking if MCA component sharedfp:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sharedfp" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sharedfp" ; then if test "$DIRECT_sharedfp" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_sharedfp_ALL_COMPONENTS="$all_components" MCA_ompi_sharedfp_STATIC_COMPONENTS="$static_components" MCA_ompi_sharedfp_DSO_COMPONENTS="$dso_components" MCA_ompi_sharedfp_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_sharedfp_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_sharedfp_ALL_SUBDIRS="$MCA_ompi_sharedfp_ALL_SUBDIRS mca/sharedfp/$item" done MCA_ompi_sharedfp_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_sharedfp_STATIC_SUBDIRS="$MCA_ompi_sharedfp_STATIC_SUBDIRS mca/sharedfp/$item" done MCA_ompi_sharedfp_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_sharedfp_DSO_SUBDIRS="$MCA_ompi_sharedfp_DSO_SUBDIRS mca/sharedfp/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "sharedfp" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # 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 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS topo" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/topo" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_topo_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_topo_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_topo_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/topo/libmca_topo.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_topo_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework topo" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/topo/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/topo/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework topo" >&5 $as_echo_n "checking for no configure components in framework topo... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: basic" >&5 $as_echo "basic" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework topo" >&5 $as_echo_n "checking for m4 configure components in framework topo... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: treematch" >&5 $as_echo "treematch" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component topo:basic (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/topo/basic" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_topo" ; then if test "$DIRECT_topo" = "basic" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_topo" = "1"; then : want_component=0 fi if test "$DISABLE_topo_basic" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_topo" SHARED_COMPONENT="$DSO_topo_basic" STATIC_FRAMEWORK="$STATIC_topo" STATIC_COMPONENT="$STATIC_topo_basic" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component topo:basic compile mode" >&5 $as_echo_n "checking for MCA component topo:basic compile mode... " >&6; } if test "$DIRECT_topo" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/topo/basic/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components basic" if test "$compile_mode" = "dso" ; then dso_components="$dso_components basic" else if test "topo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/topo/basic/lib${OMPI_LIB_PREFIX}mca_topo_basic.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/topo/basic/libmca_topo_basic.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_topo_basic_component;" >> $outfile.extern echo " &mca_topo_basic_component, " >> $outfile.struct static_components="$static_components basic" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component topo:basic can compile" >&5 $as_echo_n "checking if MCA component topo:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_topo" = "basic" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_topo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** topo component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_topo" = "basic" ; then as_fn_error $? "*** topo component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$topo_basic_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $topo_basic_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $topo_basic_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$topo_basic_WRAPPER_EXTRA_LIBS" = ""; 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_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 $topo_basic_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $topo_basic_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$topo_basic_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $topo_basic_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring topo_basic_WRAPPER_EXTRA_CPPFLAGS ($topo_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring topo_basic_WRAPPER_EXTRA_CPPFLAGS ($topo_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component topo:basic can compile" >&5 $as_echo_n "checking if MCA component topo:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_topo" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_topo" ; then if test "$DIRECT_topo" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components basic" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_topo_basic_DSO=1 else BUILD_ompi_topo_basic_DSO=0 fi if test "$BUILD_ompi_topo_basic_DSO" = "1"; then MCA_BUILD_ompi_topo_basic_DSO_TRUE= MCA_BUILD_ompi_topo_basic_DSO_FALSE='#' else MCA_BUILD_ompi_topo_basic_DSO_TRUE='#' MCA_BUILD_ompi_topo_basic_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/topo/basic/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component topo:treematch (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/ompi/mca/topo/treematch" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_topo" ; then if test "$DIRECT_topo" = "treematch" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_topo" = "1"; then : want_component=0 fi if test "$DISABLE_topo_treematch" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_topo" SHARED_COMPONENT="$DSO_topo_treematch" STATIC_FRAMEWORK="$STATIC_topo" STATIC_COMPONENT="$STATIC_topo_treematch" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component topo:treematch compile mode" >&5 $as_echo_n "checking for MCA component topo:treematch compile mode... " >&6; } if test "$DIRECT_topo" = "treematch" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component # Check whether --with-treematch was given. if test "${with_treematch+set}" = set; then : withval=$with_treematch; fi # Check whether --with-treematch-include was given. if test "${with_treematch_include+set}" = set; then : withval=$with_treematch_include; fi # Check whether --with-treematch-libdir was given. if test "${with_treematch_libdir+set}" = set; then : withval=$with_treematch_libdir; fi treematch_files_local="no" ompi_topo_treematch_dir=$srcdir ompi_topo_treematch_libdir= ompi_topo_treematch_happy=0 if test "x$with_treematch" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking TreeMatch headers" >&5 $as_echo_n "checking TreeMatch headers... " >&6; } if test "x$with_treematch_include" = x; then : if test "x$with_treematch" != "xno"; then : treematch_files_local="yes" with_treematch_include="$OMPI_TOP_SRCDIR/ompi/mca/topo/treematch/treematch" else with_treematch_include="$with_treematch/include" fi fi if test -f "$with_treematch_include/tm_tree.h"; then : if test "x$with_treematch" != "xno"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: in the source" >&5 $as_echo "in the source" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: user provided" >&5 $as_echo "user provided" >&6; } fi opal_check_treematch_dir=$with_treematch_include ompi_topo_treematch_happy=1 else as_fn_error $? "missing tm_tree.h (${with_treematch}:${with_treematch_include})" "$LINENO" 5 fi fi if test $ompi_topo_treematch_happy -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-treematch value" >&5 $as_echo_n "checking --with-treematch value... " >&6; } if test "$with_treematch_include" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-treematch)" >&5 $as_echo "simple no (specified --without-treematch)" >&6; } else if test "$with_treematch_include" = "yes" || test "x$with_treematch_include" = "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_treematch_include"; 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_treematch_include not found" >&5 $as_echo "$as_me: WARNING: Directory $with_treematch_include not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_treematch_include/tm_tree.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_treematch_include/tm_tree.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_treematch_include/tm_tree.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_treematch_include)" >&5 $as_echo "sanity check ok ($with_treematch_include)" >&6; } fi fi fi fi if test "x$with_treematch_libdir" = x; then : if test "x$with_treematch" != "xyes"; then : with_treematch_libdir=$with_treematch/lib with_treematch_libdir=$OMPI_TOP_SRCDIR/ompi/mca/topo/treematch/treematch fi fi if test "x$treematch_files_local" = xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-treematch-libdir value" >&5 $as_echo_n "checking --with-treematch-libdir value... " >&6; } if test "$with_treematch_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-treematch-libdir)" >&5 $as_echo "simple no (specified --without-treematch-libdir)" >&6; } else if test "$with_treematch_libdir" = "yes" || test "x$with_treematch_libdir" = "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_treematch_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_treematch_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_treematch_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_treematch_libdir/libtreematch.* 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_treematch_libdir/libtreematch.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_treematch_libdir/libtreematch.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_treematch_libdir)" >&5 $as_echo "sanity check ok ($with_treematch_libdir)" >&6; } fi fi fi fi if test "x$with_treematch" != xno && test "x$with_treematch" != "xyes"; then : if test ! -z "$with_treematch" && test "$with_treematch" != "yes"; then : ompi_topo_treematch_dir="$with_treematch" fi if test ! -z "$with_treematch_libdir" && test "$with_treematch_libdir" != "yes"; then : ompi_topo_treematch_libdir="$with_treematch_libdir" fi opal_check_package_topo_treematch_save_CPPFLAGS="$CPPFLAGS" opal_check_package_topo_treematch_save_LDFLAGS="$LDFLAGS" opal_check_package_topo_treematch_save_LIBS="$LIBS" opal_check_package_topo_treematch_orig_CPPFLAGS="$topo_treematch_CPPFLAGS" opal_check_package_topo_treematch_orig_LDFLAGS="$topo_treematch_LDFLAGS" opal_check_package_topo_treematch_orig_LIBS="$topo_treematch_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_tm_tree_h # get rid of the trailing slash(es) dir_prefix=$(echo $with_treematch_include | 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 tm_tree.h do : ac_fn_c_check_header_mongrel "$LINENO" "tm_tree.h" "ac_cv_header_tm_tree_h" "$ac_includes_default" if test "x$ac_cv_header_tm_tree_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TM_TREE_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_tm_tree_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : topo_treematch_CPPFLAGS="$topo_treematch_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in tm_tree.h do : ac_fn_c_check_header_mongrel "$LINENO" "tm_tree.h" "ac_cv_header_tm_tree_h" "$ac_includes_default" if test "x$ac_cv_header_tm_tree_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TM_TREE_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_build_tree opal_check_package_lib_happy="no" if test "$with_treematch_libdir" != ""; then : # libdir was specified - search only there topo_treematch_LDFLAGS="$topo_treematch_LDFLAGS -L$with_treematch_libdir" LDFLAGS="$LDFLAGS -L$with_treematch_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing build_tree" >&5 $as_echo_n "checking for library containing build_tree... " >&6; } if ${ac_cv_search_build_tree+:} 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 build_tree (); int main () { return build_tree (); ; return 0; } _ACEOF for ac_lib in '' treematch; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_build_tree=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_build_tree+:} false; then : break fi done if ${ac_cv_search_build_tree+:} false; then : else ac_cv_search_build_tree=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_build_tree" >&5 $as_echo "$ac_cv_search_build_tree" >&6; } ac_res=$ac_cv_search_build_tree 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_topo_treematch_save_LDFLAGS" topo_treematch_LDFLAGS="$opal_check_package_topo_treematch_orig_LDFLAGS" unset ac_cv_search_build_tree fi else # libdir was not specified - go through search path opal_check_package_libdir="$with_treematch_include" 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 build_tree" >&5 $as_echo_n "checking for library containing build_tree... " >&6; } if ${ac_cv_search_build_tree+:} 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 build_tree (); int main () { return build_tree (); ; return 0; } _ACEOF for ac_lib in '' treematch; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_build_tree=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_build_tree+:} false; then : break fi done if ${ac_cv_search_build_tree+:} false; then : else ac_cv_search_build_tree=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_build_tree" >&5 $as_echo "$ac_cv_search_build_tree" >&6; } ac_res=$ac_cv_search_build_tree 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_topo_treematch_save_LDFLAGS" topo_treematch_LDFLAGS="$opal_check_package_topo_treematch_orig_LDFLAGS" unset ac_cv_search_build_tree fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : topo_treematch_LDFLAGS="$topo_treematch_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 build_tree" >&5 $as_echo_n "checking for library containing build_tree... " >&6; } if ${ac_cv_search_build_tree+:} 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 build_tree (); int main () { return build_tree (); ; return 0; } _ACEOF for ac_lib in '' treematch; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_build_tree=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_build_tree+:} false; then : break fi done if ${ac_cv_search_build_tree+:} false; then : else ac_cv_search_build_tree=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_build_tree" >&5 $as_echo "$ac_cv_search_build_tree" >&6; } ac_res=$ac_cv_search_build_tree 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_topo_treematch_save_LDFLAGS" topo_treematch_LDFLAGS="$opal_check_package_topo_treematch_orig_LDFLAGS" unset ac_cv_search_build_tree fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : topo_treematch_LDFLAGS="$topo_treematch_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 build_tree" >&5 $as_echo_n "checking for library containing build_tree... " >&6; } if ${ac_cv_search_build_tree+:} 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 build_tree (); int main () { return build_tree (); ; return 0; } _ACEOF for ac_lib in '' treematch; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_build_tree=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_build_tree+:} false; then : break fi done if ${ac_cv_search_build_tree+:} false; then : else ac_cv_search_build_tree=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_build_tree" >&5 $as_echo "$ac_cv_search_build_tree" >&6; } ac_res=$ac_cv_search_build_tree 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_topo_treematch_save_LDFLAGS" topo_treematch_LDFLAGS="$opal_check_package_topo_treematch_orig_LDFLAGS" unset ac_cv_search_build_tree 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 libtreematch requires libnl v1 or v3" >&5 $as_echo_n "checking if libtreematch requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void build_tree (void); int main(int argc, char *argv[]) { build_tree (); 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:367087: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltreematch $LIBS $topo_treematch_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltreematch $LIBS $topo_treematch_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:367094: \$? = $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 treematch" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib treematch" >&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, libtreematch links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libtreematch 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 libtreematch (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtreematch (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtreematch." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtreematch." >&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 treematch requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas treematch 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 libtreematch (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtreematch (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtreematch." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtreematch." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs treematch" # 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 libtreematch requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libtreematch 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 libtreematch (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtreematch (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtreematch." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtreematch." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs treematch" # 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_build_tree" != "no" && test "$ac_cv_search_build_tree" != "none required"; then : topo_treematch_LIBS="$ac_cv_search_build_tree " else topo_treematch_LIBS="" 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_build_tree opal_check_package_lib_happy="no" if test "$with_treematch_libdir" != ""; then : # libdir was specified - search only there topo_treematch_LDFLAGS="$topo_treematch_LDFLAGS -L$with_treematch_libdir" LDFLAGS="$LDFLAGS -L$with_treematch_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing build_tree" >&5 $as_echo_n "checking for library containing build_tree... " >&6; } if ${ac_cv_search_build_tree+:} 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 build_tree (); int main () { return build_tree (); ; return 0; } _ACEOF for ac_lib in '' treematch; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_build_tree=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_build_tree+:} false; then : break fi done if ${ac_cv_search_build_tree+:} false; then : else ac_cv_search_build_tree=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_build_tree" >&5 $as_echo "$ac_cv_search_build_tree" >&6; } ac_res=$ac_cv_search_build_tree 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_topo_treematch_save_LDFLAGS" topo_treematch_LDFLAGS="$opal_check_package_topo_treematch_orig_LDFLAGS" unset ac_cv_search_build_tree fi else # libdir was not specified - go through search path opal_check_package_libdir="$with_treematch_include" 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 build_tree" >&5 $as_echo_n "checking for library containing build_tree... " >&6; } if ${ac_cv_search_build_tree+:} 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 build_tree (); int main () { return build_tree (); ; return 0; } _ACEOF for ac_lib in '' treematch; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_build_tree=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_build_tree+:} false; then : break fi done if ${ac_cv_search_build_tree+:} false; then : else ac_cv_search_build_tree=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_build_tree" >&5 $as_echo "$ac_cv_search_build_tree" >&6; } ac_res=$ac_cv_search_build_tree 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_topo_treematch_save_LDFLAGS" topo_treematch_LDFLAGS="$opal_check_package_topo_treematch_orig_LDFLAGS" unset ac_cv_search_build_tree fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : topo_treematch_LDFLAGS="$topo_treematch_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 build_tree" >&5 $as_echo_n "checking for library containing build_tree... " >&6; } if ${ac_cv_search_build_tree+:} 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 build_tree (); int main () { return build_tree (); ; return 0; } _ACEOF for ac_lib in '' treematch; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_build_tree=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_build_tree+:} false; then : break fi done if ${ac_cv_search_build_tree+:} false; then : else ac_cv_search_build_tree=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_build_tree" >&5 $as_echo "$ac_cv_search_build_tree" >&6; } ac_res=$ac_cv_search_build_tree 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_topo_treematch_save_LDFLAGS" topo_treematch_LDFLAGS="$opal_check_package_topo_treematch_orig_LDFLAGS" unset ac_cv_search_build_tree fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : topo_treematch_LDFLAGS="$topo_treematch_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 build_tree" >&5 $as_echo_n "checking for library containing build_tree... " >&6; } if ${ac_cv_search_build_tree+:} 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 build_tree (); int main () { return build_tree (); ; return 0; } _ACEOF for ac_lib in '' treematch; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_build_tree=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_build_tree+:} false; then : break fi done if ${ac_cv_search_build_tree+:} false; then : else ac_cv_search_build_tree=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_build_tree" >&5 $as_echo "$ac_cv_search_build_tree" >&6; } ac_res=$ac_cv_search_build_tree 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_topo_treematch_save_LDFLAGS" topo_treematch_LDFLAGS="$opal_check_package_topo_treematch_orig_LDFLAGS" unset ac_cv_search_build_tree 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 libtreematch requires libnl v1 or v3" >&5 $as_echo_n "checking if libtreematch requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void build_tree (void); int main(int argc, char *argv[]) { build_tree (); 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:367812: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltreematch $LIBS $topo_treematch_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -ltreematch $LIBS $topo_treematch_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:367819: \$? = $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 treematch" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib treematch" >&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, libtreematch links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libtreematch 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 libtreematch (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtreematch (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtreematch." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtreematch." >&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 treematch requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas treematch 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 libtreematch (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtreematch (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtreematch." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtreematch." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs treematch" # 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 libtreematch requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libtreematch 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 libtreematch (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libtreematch (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libtreematch." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libtreematch." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs treematch" # 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_build_tree" != "no" && test "$ac_cv_search_build_tree" != "none required"; then : topo_treematch_LIBS="$ac_cv_search_build_tree " else topo_treematch_LIBS="" 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 : ompi_topo_treematch_happy=1 else topo_treematch_CPPFLAGS="$opal_check_package_topo_treematch_orig_CPPFLAGS" topo_treematch_LDFLAGS="$opal_check_package_topo_treematch_orig_LDFLAGS" topo_treematch_LIBS="$opal_check_package_topo_treematch_orig_LIBS" ompi_topo_treematch_happy=1 fi CPPFLAGS="$opal_check_package_topo_treematch_save_CPPFLAGS" LDFLAGS="$opal_check_package_topo_treematch_save_LDFLAGS" LIBS="$opal_check_package_topo_treematch_save_LIBS" else ompi_topo_treematch_happy=1 fi fi fi if test $ompi_topo_treematch_happy -eq 1; then : if test "x$treematch_files_local" = "xyes"; then : if ! test -d $OMPI_TOP_BUILDDIR/ompi/mca/topo/treematch; then : mkdir -p $OMPI_TOP_BUILDDIR/ompi/mca/topo/treematch fi cat > $OMPI_TOP_BUILDDIR/ompi/mca/topo/treematch/config.h << EOF /* * This file is automatically generated by configure. Edits will be lost * * This is an dummy config.h in order to prevent the embedded treematch from using * the config.h from the embedded hwloc * * see https://github.com/open-mpi/ompi/pull/6185#issuecomment-458807930 */ EOF fi should_build=$should_build else if test ! -z "$with_treematch" && test "$with_treematch" != "no"; then : as_fn_error $? "TreeMatch support requested but not found. Aborting" "$LINENO" 5 fi should_build=0 fi ac_config_files="$ac_config_files ompi/mca/topo/treematch/Makefile" if test $ompi_topo_treematch_happy -eq 1 && \ test "x$treematch_files_local" = "xyes"; then topo_treematch_local_TRUE= topo_treematch_local_FALSE='#' else topo_treematch_local_TRUE='#' topo_treematch_local_FALSE= fi opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/topo/treematch/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components treematch" if test "$compile_mode" = "dso" ; then dso_components="$dso_components treematch" else if test "topo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/topo/treematch/lib${OMPI_LIB_PREFIX}mca_topo_treematch.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/topo/treematch/libmca_topo_treematch.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_topo_treematch_component;" >> $outfile.extern echo " &mca_topo_treematch_component, " >> $outfile.struct static_components="$static_components treematch" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component topo:treematch can compile" >&5 $as_echo_n "checking if MCA component topo:treematch can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_topo" = "treematch" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_topo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** topo component treematch was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_topo" = "treematch" ; then as_fn_error $? "*** topo component treematch was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$topo_treematch_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $topo_treematch_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $topo_treematch_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$topo_treematch_WRAPPER_EXTRA_LIBS" = ""; 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_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 $topo_treematch_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $topo_treematch_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$topo_treematch_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $topo_treematch_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring topo_treematch_WRAPPER_EXTRA_CPPFLAGS ($topo_treematch_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring topo_treematch_WRAPPER_EXTRA_CPPFLAGS ($topo_treematch_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component topo:treematch can compile" >&5 $as_echo_n "checking if MCA component topo:treematch can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_topo" = "treematch" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"treematch\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"treematch\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_topo" ; then if test "$DIRECT_topo" = "treematch" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"treematch\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"treematch\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components treematch" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_ompi_topo_treematch_DSO=1 else BUILD_ompi_topo_treematch_DSO=0 fi if test "$BUILD_ompi_topo_treematch_DSO" = "1"; then MCA_BUILD_ompi_topo_treematch_DSO_TRUE= MCA_BUILD_ompi_topo_treematch_DSO_FALSE='#' else MCA_BUILD_ompi_topo_treematch_DSO_TRUE='#' MCA_BUILD_ompi_topo_treematch_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/topo/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component topo:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/topo/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_topo" ; then if test "$DIRECT_topo" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_topo" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_topo_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_topo" str="SHARED_COMPONENT=\$DSO_topo_$component" eval $str STATIC_FRAMEWORK="$STATIC_topo" str="STATIC_COMPONENT=\$STATIC_topo_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component topo:$component compile mode" >&5 $as_echo_n "checking for MCA component topo:$component compile mode... " >&6; } if test "$DIRECT_topo" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/topo/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/topo/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/topo/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then topo_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then topo_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/topo/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "topo" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/topo/$component/lib${OMPI_LIB_PREFIX}mca_topo_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/topo/$component/libmca_topo_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_topo_$component_component;" >> $outfile.extern echo " &mca_topo_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component topo:$component can compile" >&5 $as_echo_n "checking if MCA component topo:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_topo" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_topo_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** topo component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_topo" = "$component" ; then as_fn_error $? "*** topo component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$topo_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$topo_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component topo:$component can compile" >&5 $as_echo_n "checking if MCA component topo:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_topo" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_topo" ; then if test "$DIRECT_topo" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_topo_ALL_COMPONENTS="$all_components" MCA_ompi_topo_STATIC_COMPONENTS="$static_components" MCA_ompi_topo_DSO_COMPONENTS="$dso_components" MCA_ompi_topo_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_topo_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_topo_ALL_SUBDIRS="$MCA_ompi_topo_ALL_SUBDIRS mca/topo/$item" done MCA_ompi_topo_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_topo_STATIC_SUBDIRS="$MCA_ompi_topo_STATIC_SUBDIRS mca/topo/$item" done MCA_ompi_topo_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_topo_DSO_SUBDIRS="$MCA_ompi_topo_DSO_SUBDIRS mca/topo/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "topo" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS vprotocol" MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/vprotocol" MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ompi_vprotocol_ALL_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ompi_vprotocol_DSO_SUBDIRS)" MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ompi_vprotocol_STATIC_SUBDIRS)" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/vprotocol/libmca_vprotocol.la" MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_ompi_vprotocol_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework vprotocol" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=ompi/mca/vprotocol/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files ompi/mca/vprotocol/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework vprotocol" >&5 $as_echo_n "checking for no configure components in framework vprotocol... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: pessimist" >&5 $as_echo "pessimist" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework vprotocol" >&5 $as_echo_n "checking for m4 configure components in framework vprotocol... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component vprotocol:pessimist (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/ompi/mca/vprotocol/pessimist" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_vprotocol" ; then if test "$DIRECT_vprotocol" = "pessimist" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_vprotocol" = "1"; then : want_component=0 fi if test "$DISABLE_vprotocol_pessimist" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_vprotocol" SHARED_COMPONENT="$DSO_vprotocol_pessimist" STATIC_FRAMEWORK="$STATIC_vprotocol" STATIC_COMPONENT="$STATIC_vprotocol_pessimist" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component vprotocol:pessimist compile mode" >&5 $as_echo_n "checking for MCA component vprotocol:pessimist compile mode... " >&6; } if test "$DIRECT_vprotocol" = "pessimist" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/vprotocol/pessimist/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components pessimist" if test "$compile_mode" = "dso" ; then dso_components="$dso_components pessimist" else if test "vprotocol" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/vprotocol/pessimist/lib${OMPI_LIB_PREFIX}mca_vprotocol_pessimist.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/vprotocol/pessimist/libmca_vprotocol_pessimist.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_vprotocol_pessimist_component;" >> $outfile.extern echo " &mca_vprotocol_pessimist_component, " >> $outfile.struct static_components="$static_components pessimist" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component vprotocol:pessimist can compile" >&5 $as_echo_n "checking if MCA component vprotocol:pessimist can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_vprotocol" = "pessimist" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_vprotocol_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** vprotocol component pessimist was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_vprotocol" = "pessimist" ; then as_fn_error $? "*** vprotocol component pessimist was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$vprotocol_pessimist_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $vprotocol_pessimist_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $vprotocol_pessimist_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$vprotocol_pessimist_WRAPPER_EXTRA_LIBS" = ""; 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_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 $vprotocol_pessimist_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $vprotocol_pessimist_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$vprotocol_pessimist_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $vprotocol_pessimist_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring vprotocol_pessimist_WRAPPER_EXTRA_CPPFLAGS ($vprotocol_pessimist_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring vprotocol_pessimist_WRAPPER_EXTRA_CPPFLAGS ($vprotocol_pessimist_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component vprotocol:pessimist can compile" >&5 $as_echo_n "checking if MCA component vprotocol:pessimist can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_vprotocol" = "pessimist" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pessimist\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_vprotocol" ; then if test "$DIRECT_vprotocol" = "pessimist" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pessimist\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components pessimist" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_ompi_vprotocol_pessimist_DSO=1 else BUILD_ompi_vprotocol_pessimist_DSO=0 fi if test "$BUILD_ompi_vprotocol_pessimist_DSO" = "1"; then MCA_BUILD_ompi_vprotocol_pessimist_DSO_TRUE= MCA_BUILD_ompi_vprotocol_pessimist_DSO_FALSE='#' else MCA_BUILD_ompi_vprotocol_pessimist_DSO_TRUE='#' MCA_BUILD_ompi_vprotocol_pessimist_DSO_FALSE= fi ac_config_files="$ac_config_files ompi/mca/vprotocol/pessimist/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/ompi/mca/vprotocol/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component vprotocol:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/ompi/mca/vprotocol/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_vprotocol" ; then if test "$DIRECT_vprotocol" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_vprotocol" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_vprotocol_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_vprotocol" str="SHARED_COMPONENT=\$DSO_vprotocol_$component" eval $str STATIC_FRAMEWORK="$STATIC_vprotocol" str="STATIC_COMPONENT=\$STATIC_vprotocol_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component vprotocol:$component compile mode" >&5 $as_echo_n "checking for MCA component vprotocol:$component compile mode... " >&6; } if test "$DIRECT_vprotocol" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # ompi/mca/vprotocol/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="ompi/mca/vprotocol/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/ompi/mca/vprotocol/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then vprotocol_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then vprotocol_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/ompi/mca/vprotocol/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "vprotocol" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/vprotocol/$component/lib${OMPI_LIB_PREFIX}mca_vprotocol_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/vprotocol/$component/libmca_vprotocol_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_vprotocol_$component_component;" >> $outfile.extern echo " &mca_vprotocol_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component vprotocol:$component can compile" >&5 $as_echo_n "checking if MCA component vprotocol:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_vprotocol" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_ompi_vprotocol_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** vprotocol component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_vprotocol" = "$component" ; then as_fn_error $? "*** vprotocol component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$vprotocol_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$vprotocol_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component vprotocol:$component can compile" >&5 $as_echo_n "checking if MCA component vprotocol:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_vprotocol" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_vprotocol" ; then if test "$DIRECT_vprotocol" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_ompi_vprotocol_ALL_COMPONENTS="$all_components" MCA_ompi_vprotocol_STATIC_COMPONENTS="$static_components" MCA_ompi_vprotocol_DSO_COMPONENTS="$dso_components" MCA_ompi_vprotocol_STATIC_LTLIBS="$static_ltlibs" MCA_ompi_vprotocol_ALL_SUBDIRS= for item in $all_components ; do MCA_ompi_vprotocol_ALL_SUBDIRS="$MCA_ompi_vprotocol_ALL_SUBDIRS mca/vprotocol/$item" done MCA_ompi_vprotocol_STATIC_SUBDIRS= for item in $static_components ; do MCA_ompi_vprotocol_STATIC_SUBDIRS="$MCA_ompi_vprotocol_STATIC_SUBDIRS mca/vprotocol/$item" done MCA_ompi_vprotocol_DSO_SUBDIRS= for item in $dso_components ; do MCA_ompi_vprotocol_DSO_SUBDIRS="$MCA_ompi_vprotocol_DSO_SUBDIRS mca/vprotocol/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "vprotocol" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # note that mca_wrapper_extra_* is a running list, and we take checkpoints at the end of our project ompi_mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags" ompi_mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags" ompi_mca_wrapper_extra_libs="$mca_wrapper_extra_libs" # BWB: Until projects have separate configure scripts # and can skip running all of ORTE, just avoid recursing # into orte sub directory if orte disabled if (test "oshmem" = "ompi" && test "$enable_mpi" != "no") || test "oshmem" = "opal" || test "oshmem" = "orte" || test "oshmem" = "oshmem"; then MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS oshmem" MCA_PROJECT_DIST_SUBDIRS="$MCA_PROJECT_DIST_SUBDIRS oshmem" fi # can't use a variable rename here because these need to be evaled # at auto* time. opal_show_subtitle "Configuring MCA for oshmem" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks for oshmem" >&5 $as_echo_n "checking for frameworks for oshmem... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: atomic, memheap, scoll, spml, sshmem" >&5 $as_echo "atomic, memheap, scoll, spml, sshmem" >&6; } # iterate through the list of frameworks. There is something # funky with m4 foreach if the list is defined, but empty. It # will call the 3rd argument once with an empty value for the # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK # with an empty second argument. Grrr.... # if there isn't a project list, abort # # Also setup two variables for Makefiles: # MCA_project_FRAMEWORKS - list of frameworks in that project # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing # to more libraries) that must be included # in the project's main library MCA_oshmem_FRAMEWORKS= MCA_oshmem_FRAMEWORKS_SUBDIRS= MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS= MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS= MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= MCA_oshmem_FRAMEWORK_LIBS= MCA_oshmem_FRAMEWORKS="$MCA_oshmem_FRAMEWORKS atomic" MCA_oshmem_FRAMEWORKS_SUBDIRS="$MCA_oshmem_FRAMEWORKS_SUBDIRS mca/atomic" MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oshmem_atomic_ALL_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oshmem_atomic_DSO_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oshmem_atomic_STATIC_SUBDIRS)" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS mca/atomic/libmca_atomic.la" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS \$(MCA_oshmem_atomic_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework atomic" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=oshmem/mca/atomic/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files oshmem/mca/atomic/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework atomic" >&5 $as_echo_n "checking for no configure components in framework atomic... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: basic" >&5 $as_echo "basic" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework atomic" >&5 $as_echo_n "checking for m4 configure components in framework atomic... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: mxm, ucx" >&5 $as_echo "mxm, ucx" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component atomic:basic (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/oshmem/mca/atomic/basic" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_atomic" ; then if test "$DIRECT_atomic" = "basic" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_atomic" = "1"; then : want_component=0 fi if test "$DISABLE_atomic_basic" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_atomic" SHARED_COMPONENT="$DSO_atomic_basic" STATIC_FRAMEWORK="$STATIC_atomic" STATIC_COMPONENT="$STATIC_atomic_basic" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component atomic:basic compile mode" >&5 $as_echo_n "checking for MCA component atomic:basic compile mode... " >&6; } if test "$DIRECT_atomic" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/atomic/basic/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components basic" if test "$compile_mode" = "dso" ; then dso_components="$dso_components basic" else if test "atomic" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/atomic/basic/lib${OSHMEM_LIB_PREFIX}mca_atomic_basic.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/atomic/basic/libmca_atomic_basic.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_atomic_basic_component;" >> $outfile.extern echo " &mca_atomic_basic_component, " >> $outfile.struct static_components="$static_components basic" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component atomic:basic can compile" >&5 $as_echo_n "checking if MCA component atomic:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_atomic" = "basic" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_atomic_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** atomic component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_atomic" = "basic" ; then as_fn_error $? "*** atomic component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$atomic_basic_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $atomic_basic_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $atomic_basic_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$atomic_basic_WRAPPER_EXTRA_LIBS" = ""; 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_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 $atomic_basic_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $atomic_basic_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$atomic_basic_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $atomic_basic_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring atomic_basic_WRAPPER_EXTRA_CPPFLAGS ($atomic_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring atomic_basic_WRAPPER_EXTRA_CPPFLAGS ($atomic_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component atomic:basic can compile" >&5 $as_echo_n "checking if MCA component atomic:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_atomic" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_atomic" ; then if test "$DIRECT_atomic" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components basic" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_oshmem_atomic_basic_DSO=1 else BUILD_oshmem_atomic_basic_DSO=0 fi if test "$BUILD_oshmem_atomic_basic_DSO" = "1"; then MCA_BUILD_oshmem_atomic_basic_DSO_TRUE= MCA_BUILD_oshmem_atomic_basic_DSO_FALSE='#' else MCA_BUILD_oshmem_atomic_basic_DSO_TRUE='#' MCA_BUILD_oshmem_atomic_basic_DSO_FALSE= fi ac_config_files="$ac_config_files oshmem/mca/atomic/basic/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component atomic:mxm (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/atomic/mxm" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_atomic" ; then if test "$DIRECT_atomic" = "mxm" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_atomic" = "1"; then : want_component=0 fi if test "$DISABLE_atomic_mxm" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_atomic" SHARED_COMPONENT="$DSO_atomic_mxm" STATIC_FRAMEWORK="$STATIC_atomic" STATIC_COMPONENT="$STATIC_atomic_mxm" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component atomic:mxm compile mode" >&5 $as_echo_n "checking for MCA component atomic:mxm compile mode... " >&6; } if test "$DIRECT_atomic" = "mxm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/atomic/mxm/Makefile" if test -z "$ompi_check_mxm_happy" ; then # Check whether --with-mxm was given. if test "${with_mxm+set}" = set; then : withval=$with_mxm; fi # Check whether --with-mxm-libdir was given. if test "${with_mxm_libdir+set}" = set; then : withval=$with_mxm_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mxm-libdir value" >&5 $as_echo_n "checking --with-mxm-libdir value... " >&6; } if test "$with_mxm_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-mxm-libdir)" >&5 $as_echo "simple no (specified --without-mxm-libdir)" >&6; } else if test "$with_mxm_libdir" = "yes" || test "x$with_mxm_libdir" = "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_mxm_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mxm_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_mxm_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_mxm_libdir/libmxm.* 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mxm_libdir/libmxm.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_mxm_libdir/libmxm.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mxm_libdir)" >&5 $as_echo "sanity check ok ($with_mxm_libdir)" >&6; } fi fi fi fi ompi_check_mxm_atomic_mxm_save_CPPFLAGS="$CPPFLAGS" ompi_check_mxm_atomic_mxm_save_LDFLAGS="$LDFLAGS" ompi_check_mxm_atomic_mxm_save_LIBS="$LIBS" if test "$with_mxm" != "no"; then : if test ! -z "$with_mxm" && test "$with_mxm" != "yes"; then : ompi_check_mxm_dir="$with_mxm" fi if test ! -z "$with_mxm_libdir" && test "$with_mxm_libdir" != "yes"; then : ompi_check_mxm_libdir="$with_mxm_libdir" fi opal_check_package_ompi_check_mxm_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_mxm_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_mxm_save_LIBS="$LIBS" opal_check_package_ompi_check_mxm_orig_CPPFLAGS="$ompi_check_mxm_CPPFLAGS" opal_check_package_ompi_check_mxm_orig_LDFLAGS="$ompi_check_mxm_LDFLAGS" opal_check_package_ompi_check_mxm_orig_LIBS="$ompi_check_mxm_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_mxm_api_mxm_api_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_mxm_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 mxm/api/mxm_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default" if test "x$ac_cv_header_mxm_api_mxm_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MXM_API_MXM_API_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_mxm_api_mxm_api_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_mxm_CPPFLAGS="$ompi_check_mxm_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in mxm/api/mxm_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default" if test "x$ac_cv_header_mxm_api_mxm_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MXM_API_MXM_API_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_mxm_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_mxm_libdir" != ""; then : # libdir was specified - search only there ompi_check_mxm_LDFLAGS="$ompi_check_mxm_LDFLAGS -L$ompi_check_mxm_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_mxm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup 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 libmxm requires libnl v1 or v3" >&5 $as_echo_n "checking if libmxm requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void mxm_cleanup (void); int main(int argc, char *argv[]) { mxm_cleanup (); 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:372230: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_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:372237: \$? = $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 mxm" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib mxm" >&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, libmxm links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&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 mxm requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas mxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs mxm" # 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 libmxm requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs mxm" # 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_mxm_cleanup" != "no" && test "$ac_cv_search_mxm_cleanup" != "none required"; then : ompi_check_mxm_LIBS="$ac_cv_search_mxm_cleanup " else ompi_check_mxm_LIBS="" 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_mxm_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_mxm_libdir" != ""; then : # libdir was specified - search only there ompi_check_mxm_LDFLAGS="$ompi_check_mxm_LDFLAGS -L$ompi_check_mxm_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_mxm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup 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 libmxm requires libnl v1 or v3" >&5 $as_echo_n "checking if libmxm requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void mxm_cleanup (void); int main(int argc, char *argv[]) { mxm_cleanup (); 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:372955: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_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:372962: \$? = $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 mxm" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib mxm" >&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, libmxm links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&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 mxm requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas mxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs mxm" # 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 libmxm requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs mxm" # 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_mxm_cleanup" != "no" && test "$ac_cv_search_mxm_cleanup" != "none required"; then : ompi_check_mxm_LIBS="$ac_cv_search_mxm_cleanup " else ompi_check_mxm_LIBS="" 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 : ompi_check_mxm_happy="yes" else ompi_check_mxm_CPPFLAGS="$opal_check_package_ompi_check_mxm_orig_CPPFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" ompi_check_mxm_LIBS="$opal_check_package_ompi_check_mxm_orig_LIBS" ompi_check_mxm_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_mxm_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_mxm_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_mxm_save_LIBS" else ompi_check_mxm_happy="no" fi CPPFLAGS="$ompi_check_mxm_atomic_mxm_save_CPPFLAGS" LDFLAGS="$ompi_check_mxm_atomic_mxm_save_LDFLAGS" LIBS="$ompi_check_mxm_atomic_mxm_save_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MXM version compatibility" >&5 $as_echo_n "checking for MXM version compatibility... " >&6; } old_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -I$ompi_check_mxm_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef MXM_VERSION #error "MXM Version is less than 2.1, please upgrade" #endif # #if MXM_API < MXM_VERSION(2,1) #error "MXM Version is less than 2.1, please upgrade" #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_mxm_version_ok="yes" else ompi_mxm_version_ok="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_mxm_version_ok" >&5 $as_echo "$ompi_mxm_version_ok" >&6; } CFLAGS=$old_CFLAGS if test "$ompi_mxm_version_ok" = "no"; then : ompi_check_mxm_happy="no" 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 Transports | tr ' ' '_') ompi_summary_line="Mellanox MXM: $ompi_check_mxm_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 fi if test "$ompi_check_mxm_happy" = "yes"; then : atomic_mxm_LDFLAGS="$atomic_mxm_LDFLAGS $ompi_check_mxm_LDFLAGS" atomic_mxm_LIBS="$atomic_mxm_LIBS $ompi_check_mxm_LIBS" atomic_mxm_CPPFLAGS="$atomic_mxm_CPPFLAGS $ompi_check_mxm_CPPFLAGS" save_CPPFLAGS="$CPPFLAGS" save_LDFLAGS="$LDFLAGS" save_LIBS="$LIBS" CPPFLAGS="$CPPFLAGS -I$ompi_check_mxm_dir/include" LDFLAGS="$LDFLAGS -L$ompi_check_mxm_dir/lib" LIBS="$LIBS -lmxm" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main() { if (mxm_get_version() < MXM_VERSION(1,5) ) return 1; /* if compiler sees these constansts then mxm has atomic support*/ int add_index = MXM_REQ_OP_ATOMIC_ADD; int swap_index = MXM_REQ_OP_ATOMIC_SWAP; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : $as_echo "#define OSHMEM_HAS_ATOMIC_MXM 1" >>confdefs.h atomic_mxm_happy="yes" else atomic_mxm_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS else if test ! -z "$with_mxm" && test "$with_mxm" != "no"; then : as_fn_error $? "MXM support requested but not found. Aborting" "$LINENO" 5 fi atomic_mxm_happy="no" fi if test "$atomic_mxm_happy" = "yes"; then : atomic_mxm_WRAPPER_EXTRA_LDFLAGS="$atomic_mxm_LDFLAGS" atomic_mxm_WRAPPER_EXTRA_LIBS="$atomic_mxm_LIBS" should_build=$should_build else should_build=0 fi # substitute in the things needed to build mxm { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oshmem/atomic/mxm component can be compiled" >&5 $as_echo_n "checking if oshmem/atomic/mxm component can be compiled... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $atomic_mxm_happy" >&5 $as_echo "$atomic_mxm_happy" >&6; } opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/atomic/mxm/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components mxm" if test "$compile_mode" = "dso" ; then dso_components="$dso_components mxm" else if test "atomic" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/atomic/mxm/lib${OSHMEM_LIB_PREFIX}mca_atomic_mxm.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/atomic/mxm/libmca_atomic_mxm.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_atomic_mxm_component;" >> $outfile.extern echo " &mca_atomic_mxm_component, " >> $outfile.struct static_components="$static_components mxm" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component atomic:mxm can compile" >&5 $as_echo_n "checking if MCA component atomic:mxm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_atomic" = "mxm" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_atomic_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** atomic component mxm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_atomic" = "mxm" ; then as_fn_error $? "*** atomic component mxm was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$atomic_mxm_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $atomic_mxm_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $atomic_mxm_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$atomic_mxm_WRAPPER_EXTRA_LIBS" = ""; 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_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 $atomic_mxm_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $atomic_mxm_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$atomic_mxm_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $atomic_mxm_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring atomic_mxm_WRAPPER_EXTRA_CPPFLAGS ($atomic_mxm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring atomic_mxm_WRAPPER_EXTRA_CPPFLAGS ($atomic_mxm_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component atomic:mxm can compile" >&5 $as_echo_n "checking if MCA component atomic:mxm can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_atomic" = "mxm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mxm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mxm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_atomic" ; then if test "$DIRECT_atomic" = "mxm" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mxm\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mxm\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components mxm" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_atomic_mxm_DSO=1 else BUILD_oshmem_atomic_mxm_DSO=0 fi if test "$BUILD_oshmem_atomic_mxm_DSO" = "1"; then MCA_BUILD_oshmem_atomic_mxm_DSO_TRUE= MCA_BUILD_oshmem_atomic_mxm_DSO_FALSE='#' else MCA_BUILD_oshmem_atomic_mxm_DSO_TRUE='#' MCA_BUILD_oshmem_atomic_mxm_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component atomic:ucx (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/atomic/ucx" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_atomic" ; then if test "$DIRECT_atomic" = "ucx" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_atomic" = "1"; then : want_component=0 fi if test "$DISABLE_atomic_ucx" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_atomic" SHARED_COMPONENT="$DSO_atomic_ucx" STATIC_FRAMEWORK="$STATIC_atomic" STATIC_COMPONENT="$STATIC_atomic_ucx" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component atomic:ucx compile mode" >&5 $as_echo_n "checking for MCA component atomic:ucx compile mode... " >&6; } if test "$DIRECT_atomic" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/atomic/ucx/Makefile" # 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_check_ucx_dir; 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_check_ucx_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test -z "$ompi_check_ucx_happy"; then : # Check whether --with-ucx was given. if test "${with_ucx+set}" = set; then : withval=$with_ucx; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx value" >&5 $as_echo_n "checking --with-ucx value... " >&6; } if test "$with_ucx" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx)" >&5 $as_echo "simple no (specified --without-ucx)" >&6; } else if test "$with_ucx" = "yes" || test "x$with_ucx" = "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_ucx"; 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_ucx not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx/include/ucp/api/ucp.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_ucx/include/ucp/api/ucp.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx/include/ucp/api/ucp.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx)" >&5 $as_echo "sanity check ok ($with_ucx)" >&6; } fi fi fi fi # Check whether --with-ucx-libdir was given. if test "${with_ucx_libdir+set}" = set; then : withval=$with_ucx_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx-libdir value" >&5 $as_echo_n "checking --with-ucx-libdir value... " >&6; } if test "$with_ucx_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx-libdir)" >&5 $as_echo "simple no (specified --without-ucx-libdir)" >&6; } else if test "$with_ucx_libdir" = "yes" || test "x$with_ucx_libdir" = "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_ucx_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ucx_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx_libdir/libucp.* 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_ucx_libdir/libucp.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx_libdir/libucp.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx_libdir)" >&5 $as_echo "sanity check ok ($with_ucx_libdir)" >&6; } fi fi fi fi if test "$with_ucx" != "no"; then : if test -n "$with_ucx" && test "$with_ucx" != "yes"; then : ompi_check_ucx_dir="$with_ucx" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucx" >&5 $as_echo_n "checking for ucx... " >&6; } if test -n "$ucx_CFLAGS"; then pkg_cv_ucx_CFLAGS="$ucx_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_CFLAGS=`$PKG_CONFIG --cflags "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_LIBS"; then pkg_cv_ucx_LIBS="$ucx_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_LIBS=`$PKG_CONFIG --libs "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_STATIC_LIBS"; then pkg_cv_ucx_STATIC_LIBS="$ucx_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_STATIC_LIBS=`$PKG_CONFIG --libs --static "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ucx_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ucx" 2>&1` else ucx_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ucx" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ucx_PKG_ERRORS" >&5 true elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } true else ucx_CFLAGS=$pkg_cv_ucx_CFLAGS ucx_LIBS=$pkg_cv_ucx_LIBS ucx_STATIC_LIBS=$pkg_cv_ucx_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_check_ucx_dir=`$PKG_CONFIG --variable=prefix ucx` if test "$ompi_check_ucx_dir" = "/usr"; then : ompi_check_ucx_dir= fi fi fi ompi_check_ucx_happy="no" if test -z "$ompi_check_ucx_dir"; then : opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo | 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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:374891: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:374898: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:375616: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:375623: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } fi if test "$ompi_check_ucx_happy" = "no"; then : ompi_check_ucx_dir=/opt/ucx fi fi if test "$ompi_check_ucx_happy" != yes; then : if test -n "$with_ucx_libdir"; then : ompi_check_ucx_libdir="$with_ucx_libdir" else files=`ls $ompi_check_ucx_dir/lib64/libucp.* 2> /dev/null | wc -l` if test "$files" -gt 0; then : ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib64 else ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib fi fi ompi_check_ucx_atomic_ucx_save_CPPFLAGS="$CPPFLAGS" ompi_check_ucx_atomic_ucx_save_LDFLAGS="$LDFLAGS" ompi_check_ucx_atomic_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ucx_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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:376522: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:376529: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:377247: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:377254: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" CPPFLAGS="$ompi_check_ucx_atomic_ucx_save_CPPFLAGS" LDFLAGS="$ompi_check_ucx_atomic_ucx_save_LDFLAGS" LIBS="$ompi_check_ucx_atomic_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } CPPFLAGS=$old_CPPFLAGS fi fi old_CPPFLAGS="$CPPFLAGS" if test -n "$ompi_check_ucx_dir"; then : CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" fi # Turn off UCX version v1.8 due to issue #8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCX version" >&5 $as_echo_n "checking UCX version... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if (UCP_API_MAJOR == 1) && (UCP_API_MINOR == 8) #error "Invalid version" #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (not 1.8.x)" >&5 $as_echo "ok (not 1.8.x)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad (1.8.x)" >&5 $as_echo "bad (1.8.x)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&5 $as_echo "$as_me: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please upgrade to UCX version 1.9 or higher." >&5 $as_echo "$as_me: WARNING: Please upgrade to UCX version 1.9 or higher." >&2;} ompi_check_ucx_happy=no fi rm -f conftest.err conftest.i conftest.$ac_ext if test "$ompi_check_ucx_happy" = yes; then : ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbr" "ac_cv_have_decl_ucp_tag_send_nbr" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbr" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBR $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_TAG_SEND_NBR 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nb" "ac_cv_have_decl_ucp_ep_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_worker_flush_nb" "ac_cv_have_decl_ucp_worker_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_worker_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_request_check_status" "ac_cv_have_decl_ucp_request_check_status" "#include " if test "x$ac_cv_have_decl_ucp_request_check_status" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_REQUEST_CHECK_STATUS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nb" "ac_cv_have_decl_ucp_put_nb" "#include " if test "x$ac_cv_have_decl_ucp_put_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nb" "ac_cv_have_decl_ucp_get_nb" "#include " if test "x$ac_cv_have_decl_ucp_get_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nbx" "ac_cv_have_decl_ucp_put_nbx" "#include " if test "x$ac_cv_have_decl_ucp_put_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nbx" "ac_cv_have_decl_ucp_get_nbx" "#include " if test "x$ac_cv_have_decl_ucp_get_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_atomic_op_nbx" "ac_cv_have_decl_ucp_atomic_op_nbx" "#include " if test "x$ac_cv_have_decl_ucp_atomic_op_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_OP_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nbx" "ac_cv_have_decl_ucp_ep_flush_nbx" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_events" "ac_cv_have_decl_ucm_test_events" "#include " if test "x$ac_cv_have_decl_ucm_test_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_external_events" "ac_cv_have_decl_ucm_test_external_events" "#include " if test "x$ac_cv_have_decl_ucm_test_external_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EXTERNAL_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_AND" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_AND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_OR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_OR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_XOR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_XOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FAND" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FAND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FXOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FXOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "#include " if test "x$ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_OP_ATTR_FLAG_MULTI_SEND" "ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" "#include " if test "x$ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_OP_ATTR_FLAG_MULTI_SEND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_WORKER_ADDRESS_FLAGS 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "UCP_ATTR_FIELD_MEMORY_TYPES" "ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" "#include " if test "x$ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATTR_FIELD_MEMORY_TYPES $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_ATTR_MEMORY_TYPES 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbx" "ac_cv_have_decl_ucp_tag_send_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_send_sync_nbx" "ac_cv_have_decl_ucp_tag_send_sync_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_sync_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_SYNC_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_recv_nbx" "ac_cv_have_decl_ucp_tag_recv_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_recv_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_RECV_NBX $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "ucp_request_param_t" "ac_cv_type_ucp_request_param_t" "#include " if test "x$ac_cv_type_ucp_request_param_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_REQUEST_PARAM_T 1 _ACEOF fi fi CPPFLAGS=$old_CPPFLAGS # 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 Transports | tr ' ' '_') ompi_summary_line="Open UCX: $ompi_check_ucx_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 fi fi if test "$ompi_check_ucx_happy" = "yes"; then : atomic_ucx_CPPFLAGS="$atomic_ucx_CPPFLAGS $ompi_check_ucx_CPPFLAGS" atomic_ucx_LDFLAGS="$atomic_ucx_LDFLAGS $ompi_check_ucx_LDFLAGS" atomic_ucx_LIBS="$atomic_ucx_LIBS $ompi_check_ucx_LIBS" $as_echo "#define HAVE_UCX 1" >>confdefs.h atomic_ucx_happy="yes" else if test ! -z "$with_ucx" && test "$with_ucx" != "no"; then : as_fn_error $? "UCX support requested but not found. Aborting" "$LINENO" 5 fi $as_echo "#define HAVE_UCX 0" >>confdefs.h atomic_ucx_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 if test "$atomic_ucx_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build ucx opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/atomic/ucx/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ucx" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ucx" else if test "atomic" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/atomic/ucx/lib${OSHMEM_LIB_PREFIX}mca_atomic_ucx.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/atomic/ucx/libmca_atomic_ucx.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_atomic_ucx_component;" >> $outfile.extern echo " &mca_atomic_ucx_component, " >> $outfile.struct static_components="$static_components ucx" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component atomic:ucx can compile" >&5 $as_echo_n "checking if MCA component atomic:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_atomic" = "ucx" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_atomic_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** atomic component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_atomic" = "ucx" ; then as_fn_error $? "*** atomic component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$atomic_ucx_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $atomic_ucx_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $atomic_ucx_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$atomic_ucx_WRAPPER_EXTRA_LIBS" = ""; 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_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 $atomic_ucx_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $atomic_ucx_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$atomic_ucx_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $atomic_ucx_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring atomic_ucx_WRAPPER_EXTRA_CPPFLAGS ($atomic_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring atomic_ucx_WRAPPER_EXTRA_CPPFLAGS ($atomic_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component atomic:ucx can compile" >&5 $as_echo_n "checking if MCA component atomic:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_atomic" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_atomic" ; then if test "$DIRECT_atomic" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ucx" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_atomic_ucx_DSO=1 else BUILD_oshmem_atomic_ucx_DSO=0 fi if test "$BUILD_oshmem_atomic_ucx_DSO" = "1"; then MCA_BUILD_oshmem_atomic_ucx_DSO_TRUE= MCA_BUILD_oshmem_atomic_ucx_DSO_FALSE='#' else MCA_BUILD_oshmem_atomic_ucx_DSO_TRUE='#' MCA_BUILD_oshmem_atomic_ucx_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/oshmem/mca/atomic/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component atomic:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/oshmem/mca/atomic/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_atomic" ; then if test "$DIRECT_atomic" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_atomic" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_atomic_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_atomic" str="SHARED_COMPONENT=\$DSO_atomic_$component" eval $str STATIC_FRAMEWORK="$STATIC_atomic" str="STATIC_COMPONENT=\$STATIC_atomic_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component atomic:$component compile mode" >&5 $as_echo_n "checking for MCA component atomic:$component compile mode... " >&6; } if test "$DIRECT_atomic" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # oshmem/mca/atomic/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="oshmem/mca/atomic/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/oshmem/mca/atomic/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then atomic_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then atomic_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/atomic/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "atomic" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/atomic/$component/lib${OSHMEM_LIB_PREFIX}mca_atomic_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/atomic/$component/libmca_atomic_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_atomic_$component_component;" >> $outfile.extern echo " &mca_atomic_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component atomic:$component can compile" >&5 $as_echo_n "checking if MCA component atomic:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_atomic" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_atomic_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** atomic component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_atomic" = "$component" ; then as_fn_error $? "*** atomic component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$atomic_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$atomic_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component atomic:$component can compile" >&5 $as_echo_n "checking if MCA component atomic:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_atomic" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_atomic" ; then if test "$DIRECT_atomic" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_oshmem_atomic_ALL_COMPONENTS="$all_components" MCA_oshmem_atomic_STATIC_COMPONENTS="$static_components" MCA_oshmem_atomic_DSO_COMPONENTS="$dso_components" MCA_oshmem_atomic_STATIC_LTLIBS="$static_ltlibs" MCA_oshmem_atomic_ALL_SUBDIRS= for item in $all_components ; do MCA_oshmem_atomic_ALL_SUBDIRS="$MCA_oshmem_atomic_ALL_SUBDIRS mca/atomic/$item" done MCA_oshmem_atomic_STATIC_SUBDIRS= for item in $static_components ; do MCA_oshmem_atomic_STATIC_SUBDIRS="$MCA_oshmem_atomic_STATIC_SUBDIRS mca/atomic/$item" done MCA_oshmem_atomic_DSO_SUBDIRS= for item in $dso_components ; do MCA_oshmem_atomic_DSO_SUBDIRS="$MCA_oshmem_atomic_DSO_SUBDIRS mca/atomic/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "atomic" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_oshmem_FRAMEWORKS="$MCA_oshmem_FRAMEWORKS memheap" MCA_oshmem_FRAMEWORKS_SUBDIRS="$MCA_oshmem_FRAMEWORKS_SUBDIRS mca/memheap" MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oshmem_memheap_ALL_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oshmem_memheap_DSO_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oshmem_memheap_STATIC_SUBDIRS)" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS mca/memheap/libmca_memheap.la" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS \$(MCA_oshmem_memheap_STATIC_LTLIBS)" # configure all the components opal_show_subsubtitle "Configuring MCA framework memheap" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=oshmem/mca/memheap/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files oshmem/mca/memheap/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework memheap" >&5 $as_echo_n "checking for no configure components in framework memheap... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: buddy, ptmalloc" >&5 $as_echo "buddy, ptmalloc" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework memheap" >&5 $as_echo_n "checking for m4 configure components in framework memheap... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component memheap:buddy (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/oshmem/mca/memheap/buddy" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_memheap" ; then if test "$DIRECT_memheap" = "buddy" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_memheap" = "1"; then : want_component=0 fi if test "$DISABLE_memheap_buddy" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_memheap" SHARED_COMPONENT="$DSO_memheap_buddy" STATIC_FRAMEWORK="$STATIC_memheap" STATIC_COMPONENT="$STATIC_memheap_buddy" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component memheap:buddy compile mode" >&5 $as_echo_n "checking for MCA component memheap:buddy compile mode... " >&6; } if test "$DIRECT_memheap" = "buddy" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/memheap/buddy/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components buddy" if test "$compile_mode" = "dso" ; then dso_components="$dso_components buddy" else if test "memheap" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/memheap/buddy/lib${OSHMEM_LIB_PREFIX}mca_memheap_buddy.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/memheap/buddy/libmca_memheap_buddy.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_memheap_buddy_component;" >> $outfile.extern echo " &mca_memheap_buddy_component, " >> $outfile.struct static_components="$static_components buddy" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memheap:buddy can compile" >&5 $as_echo_n "checking if MCA component memheap:buddy can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_memheap" = "buddy" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_memheap_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** memheap component buddy was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_memheap" = "buddy" ; then as_fn_error $? "*** memheap component buddy was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$memheap_buddy_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $memheap_buddy_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $memheap_buddy_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$memheap_buddy_WRAPPER_EXTRA_LIBS" = ""; 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_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 $memheap_buddy_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $memheap_buddy_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$memheap_buddy_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $memheap_buddy_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring memheap_buddy_WRAPPER_EXTRA_CPPFLAGS ($memheap_buddy_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring memheap_buddy_WRAPPER_EXTRA_CPPFLAGS ($memheap_buddy_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memheap:buddy can compile" >&5 $as_echo_n "checking if MCA component memheap:buddy can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_memheap" = "buddy" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"buddy\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"buddy\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_memheap" ; then if test "$DIRECT_memheap" = "buddy" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"buddy\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"buddy\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components buddy" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_oshmem_memheap_buddy_DSO=1 else BUILD_oshmem_memheap_buddy_DSO=0 fi if test "$BUILD_oshmem_memheap_buddy_DSO" = "1"; then MCA_BUILD_oshmem_memheap_buddy_DSO_TRUE= MCA_BUILD_oshmem_memheap_buddy_DSO_FALSE='#' else MCA_BUILD_oshmem_memheap_buddy_DSO_TRUE='#' MCA_BUILD_oshmem_memheap_buddy_DSO_FALSE= fi ac_config_files="$ac_config_files oshmem/mca/memheap/buddy/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component memheap:ptmalloc (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/oshmem/mca/memheap/ptmalloc" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_memheap" ; then if test "$DIRECT_memheap" = "ptmalloc" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_memheap" = "1"; then : want_component=0 fi if test "$DISABLE_memheap_ptmalloc" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_memheap" SHARED_COMPONENT="$DSO_memheap_ptmalloc" STATIC_FRAMEWORK="$STATIC_memheap" STATIC_COMPONENT="$STATIC_memheap_ptmalloc" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component memheap:ptmalloc compile mode" >&5 $as_echo_n "checking for MCA component memheap:ptmalloc compile mode... " >&6; } if test "$DIRECT_memheap" = "ptmalloc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/memheap/ptmalloc/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ptmalloc" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ptmalloc" else if test "memheap" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/memheap/ptmalloc/lib${OSHMEM_LIB_PREFIX}mca_memheap_ptmalloc.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/memheap/ptmalloc/libmca_memheap_ptmalloc.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_memheap_ptmalloc_component;" >> $outfile.extern echo " &mca_memheap_ptmalloc_component, " >> $outfile.struct static_components="$static_components ptmalloc" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memheap:ptmalloc can compile" >&5 $as_echo_n "checking if MCA component memheap:ptmalloc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_memheap" = "ptmalloc" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_memheap_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** memheap component ptmalloc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_memheap" = "ptmalloc" ; then as_fn_error $? "*** memheap component ptmalloc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$memheap_ptmalloc_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $memheap_ptmalloc_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $memheap_ptmalloc_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$memheap_ptmalloc_WRAPPER_EXTRA_LIBS" = ""; 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_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 $memheap_ptmalloc_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $memheap_ptmalloc_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$memheap_ptmalloc_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $memheap_ptmalloc_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring memheap_ptmalloc_WRAPPER_EXTRA_CPPFLAGS ($memheap_ptmalloc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring memheap_ptmalloc_WRAPPER_EXTRA_CPPFLAGS ($memheap_ptmalloc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memheap:ptmalloc can compile" >&5 $as_echo_n "checking if MCA component memheap:ptmalloc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_memheap" = "ptmalloc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ptmalloc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ptmalloc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_memheap" ; then if test "$DIRECT_memheap" = "ptmalloc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ptmalloc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ptmalloc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ptmalloc" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_oshmem_memheap_ptmalloc_DSO=1 else BUILD_oshmem_memheap_ptmalloc_DSO=0 fi if test "$BUILD_oshmem_memheap_ptmalloc_DSO" = "1"; then MCA_BUILD_oshmem_memheap_ptmalloc_DSO_TRUE= MCA_BUILD_oshmem_memheap_ptmalloc_DSO_FALSE='#' else MCA_BUILD_oshmem_memheap_ptmalloc_DSO_TRUE='#' MCA_BUILD_oshmem_memheap_ptmalloc_DSO_FALSE= fi ac_config_files="$ac_config_files oshmem/mca/memheap/ptmalloc/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/oshmem/mca/memheap/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component memheap:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/oshmem/mca/memheap/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_memheap" ; then if test "$DIRECT_memheap" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_memheap" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_memheap_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_memheap" str="SHARED_COMPONENT=\$DSO_memheap_$component" eval $str STATIC_FRAMEWORK="$STATIC_memheap" str="STATIC_COMPONENT=\$STATIC_memheap_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component memheap:$component compile mode" >&5 $as_echo_n "checking for MCA component memheap:$component compile mode... " >&6; } if test "$DIRECT_memheap" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # oshmem/mca/memheap/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="oshmem/mca/memheap/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/oshmem/mca/memheap/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then memheap_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then memheap_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/memheap/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "memheap" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/memheap/$component/lib${OSHMEM_LIB_PREFIX}mca_memheap_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/memheap/$component/libmca_memheap_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_memheap_$component_component;" >> $outfile.extern echo " &mca_memheap_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memheap:$component can compile" >&5 $as_echo_n "checking if MCA component memheap:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_memheap" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_memheap_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** memheap component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_memheap" = "$component" ; then as_fn_error $? "*** memheap component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$memheap_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$memheap_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component memheap:$component can compile" >&5 $as_echo_n "checking if MCA component memheap:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_memheap" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_memheap" ; then if test "$DIRECT_memheap" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_oshmem_memheap_ALL_COMPONENTS="$all_components" MCA_oshmem_memheap_STATIC_COMPONENTS="$static_components" MCA_oshmem_memheap_DSO_COMPONENTS="$dso_components" MCA_oshmem_memheap_STATIC_LTLIBS="$static_ltlibs" MCA_oshmem_memheap_ALL_SUBDIRS= for item in $all_components ; do MCA_oshmem_memheap_ALL_SUBDIRS="$MCA_oshmem_memheap_ALL_SUBDIRS mca/memheap/$item" done MCA_oshmem_memheap_STATIC_SUBDIRS= for item in $static_components ; do MCA_oshmem_memheap_STATIC_SUBDIRS="$MCA_oshmem_memheap_STATIC_SUBDIRS mca/memheap/$item" done MCA_oshmem_memheap_DSO_SUBDIRS= for item in $dso_components ; do MCA_oshmem_memheap_DSO_SUBDIRS="$MCA_oshmem_memheap_DSO_SUBDIRS mca/memheap/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "memheap" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # this is a direct callable component, so set that up. if test ! -z "$DIRECT_memheap" ; then MCA_oshmem_memheap_DIRECT_CALL_COMPONENT=$DIRECT_memheap MCA_oshmem_memheap_DIRECT_CALL=1 else MCA_oshmem_memheap_DIRECT_CALL_COMPONENT= MCA_oshmem_memheap_DIRECT_CALL=0 fi cat >>confdefs.h <<_ACEOF #define MCA_oshmem_memheap_DIRECT_CALL $MCA_oshmem_memheap_DIRECT_CALL _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_oshmem_memheap_DIRECT_CALL_COMPONENT $MCA_oshmem_memheap_DIRECT_CALL_COMPONENT _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_oshmem_memheap_DIRECT_CALL_HEADER "$MCA_oshmem_memheap_DIRECT_CALL_HEADER" _ACEOF MCA_oshmem_FRAMEWORKS="$MCA_oshmem_FRAMEWORKS scoll" MCA_oshmem_FRAMEWORKS_SUBDIRS="$MCA_oshmem_FRAMEWORKS_SUBDIRS mca/scoll" MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oshmem_scoll_ALL_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oshmem_scoll_DSO_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oshmem_scoll_STATIC_SUBDIRS)" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS mca/scoll/libmca_scoll.la" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS \$(MCA_oshmem_scoll_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework scoll" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=oshmem/mca/scoll/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files oshmem/mca/scoll/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework scoll" >&5 $as_echo_n "checking for no configure components in framework scoll... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: basic, mpi" >&5 $as_echo "basic, mpi" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework scoll" >&5 $as_echo_n "checking for m4 configure components in framework scoll... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: fca, ucc" >&5 $as_echo "fca, ucc" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components opal_show_subsubsubtitle "MCA component scoll:basic (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/oshmem/mca/scoll/basic" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "basic" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_scoll" = "1"; then : want_component=0 fi if test "$DISABLE_scoll_basic" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_scoll" SHARED_COMPONENT="$DSO_scoll_basic" STATIC_FRAMEWORK="$STATIC_scoll" STATIC_COMPONENT="$STATIC_scoll_basic" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component scoll:basic compile mode" >&5 $as_echo_n "checking for MCA component scoll:basic compile mode... " >&6; } if test "$DIRECT_scoll" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/scoll/basic/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components basic" if test "$compile_mode" = "dso" ; then dso_components="$dso_components basic" else if test "scoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/scoll/basic/lib${OSHMEM_LIB_PREFIX}mca_scoll_basic.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/scoll/basic/libmca_scoll_basic.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_scoll_basic_component;" >> $outfile.extern echo " &mca_scoll_basic_component, " >> $outfile.struct static_components="$static_components basic" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:basic can compile" >&5 $as_echo_n "checking if MCA component scoll:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_scoll" = "basic" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_scoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** scoll component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_scoll" = "basic" ; then as_fn_error $? "*** scoll component basic was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$scoll_basic_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $scoll_basic_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $scoll_basic_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$scoll_basic_WRAPPER_EXTRA_LIBS" = ""; 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_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 $scoll_basic_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $scoll_basic_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$scoll_basic_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $scoll_basic_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring scoll_basic_WRAPPER_EXTRA_CPPFLAGS ($scoll_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring scoll_basic_WRAPPER_EXTRA_CPPFLAGS ($scoll_basic_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:basic can compile" >&5 $as_echo_n "checking if MCA component scoll:basic can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_scoll" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "basic" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"basic\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components basic" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_oshmem_scoll_basic_DSO=1 else BUILD_oshmem_scoll_basic_DSO=0 fi if test "$BUILD_oshmem_scoll_basic_DSO" = "1"; then MCA_BUILD_oshmem_scoll_basic_DSO_TRUE= MCA_BUILD_oshmem_scoll_basic_DSO_FALSE='#' else MCA_BUILD_oshmem_scoll_basic_DSO_TRUE='#' MCA_BUILD_oshmem_scoll_basic_DSO_FALSE= fi ac_config_files="$ac_config_files oshmem/mca/scoll/basic/Makefile" unset compile_mode opal_show_subsubsubtitle "MCA component scoll:mpi (no configuration)" opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: before, should_build=1" component_path="$srcdir/oshmem/mca/scoll/mpi" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "mpi" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_scoll" = "1"; then : want_component=0 fi if test "$DISABLE_scoll_mpi" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_scoll" SHARED_COMPONENT="$DSO_scoll_mpi" STATIC_FRAMEWORK="$STATIC_scoll" STATIC_COMPONENT="$STATIC_scoll_mpi" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component scoll:mpi compile mode" >&5 $as_echo_n "checking for MCA component scoll:mpi compile mode... " >&6; } if test "$DIRECT_scoll" = "mpi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1" ; then # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/scoll/mpi/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components mpi" if test "$compile_mode" = "dso" ; then dso_components="$dso_components mpi" else if test "scoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/scoll/mpi/lib${OSHMEM_LIB_PREFIX}mca_scoll_mpi.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/scoll/mpi/libmca_scoll_mpi.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_scoll_mpi_component;" >> $outfile.extern echo " &mca_scoll_mpi_component, " >> $outfile.struct static_components="$static_components mpi" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:mpi can compile" >&5 $as_echo_n "checking if MCA component scoll:mpi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_scoll" = "mpi" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_scoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** scoll component mpi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_scoll" = "mpi" ; then as_fn_error $? "*** scoll component mpi was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$scoll_mpi_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $scoll_mpi_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $scoll_mpi_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$scoll_mpi_WRAPPER_EXTRA_LIBS" = ""; 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_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 $scoll_mpi_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $scoll_mpi_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$scoll_mpi_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $scoll_mpi_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring scoll_mpi_WRAPPER_EXTRA_CPPFLAGS ($scoll_mpi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring scoll_mpi_WRAPPER_EXTRA_CPPFLAGS ($scoll_mpi_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:mpi can compile" >&5 $as_echo_n "checking if MCA component scoll:mpi can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_scoll" = "mpi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mpi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mpi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "mpi" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mpi\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mpi\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components mpi" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso" ; then BUILD_oshmem_scoll_mpi_DSO=1 else BUILD_oshmem_scoll_mpi_DSO=0 fi if test "$BUILD_oshmem_scoll_mpi_DSO" = "1"; then MCA_BUILD_oshmem_scoll_mpi_DSO_TRUE= MCA_BUILD_oshmem_scoll_mpi_DSO_FALSE='#' else MCA_BUILD_oshmem_scoll_mpi_DSO_TRUE='#' MCA_BUILD_oshmem_scoll_mpi_DSO_FALSE= fi ac_config_files="$ac_config_files oshmem/mca/scoll/mpi/Makefile" unset compile_mode # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component scoll:fca (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/scoll/fca" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "fca" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_scoll" = "1"; then : want_component=0 fi if test "$DISABLE_scoll_fca" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_scoll" SHARED_COMPONENT="$DSO_scoll_fca" STATIC_FRAMEWORK="$STATIC_scoll" STATIC_COMPONENT="$STATIC_scoll_fca" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component scoll:fca compile mode" >&5 $as_echo_n "checking for MCA component scoll:fca compile mode... " >&6; } if test "$DIRECT_scoll" = "fca" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/scoll/fca/Makefile" # 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_check_fca_libs ompi_check_fca_happy CPPFLAGS_save LDFLAGS_save LIBS_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_check_fca_libs ompi_check_fca_happy CPPFLAGS_save LDFLAGS_save LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-fca was given. if test "${with_fca+set}" = set; then : withval=$with_fca; fi if test "$with_fca" != "no"; then : ompi_check_fca_libs=fca if test ! -z "$with_fca" && test "$with_fca" != "yes"; then : ompi_check_fca_dir=$with_fca coll_fca_HOME="$ompi_check_fca_dir" else coll_fca_HOME="/" fi CPPFLAGS_save=$CPPFLAGS LDFLAGS_save=$LDFLAGS LIBS_save=$LIBS # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:382896: scoll_fca_CPPFLAGS : $scoll_fca_CPPFLAGS" >&5 else echo scoll_fca_CPPFLAGS : $scoll_fca_CPPFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:382904: scoll_fca_LDFLAGS : $scoll_fca_LDFLAGS" >&5 else echo scoll_fca_LDFLAGS : $scoll_fca_LDFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:382912: scoll_fca_LIBS : $scoll_fca_LIBS" >&5 else echo scoll_fca_LIBS : $scoll_fca_LIBS >&5 fi opal_check_package_scoll_fca_save_CPPFLAGS="$CPPFLAGS" opal_check_package_scoll_fca_save_LDFLAGS="$LDFLAGS" opal_check_package_scoll_fca_save_LIBS="$LIBS" opal_check_package_scoll_fca_orig_CPPFLAGS="$scoll_fca_CPPFLAGS" opal_check_package_scoll_fca_orig_LDFLAGS="$scoll_fca_LDFLAGS" opal_check_package_scoll_fca_orig_LIBS="$scoll_fca_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_fca_fca_api_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_fca_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 fca/fca_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "fca/fca_api.h" "ac_cv_header_fca_fca_api_h" "$ac_includes_default" if test "x$ac_cv_header_fca_fca_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FCA_FCA_API_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_fca_fca_api_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : scoll_fca_CPPFLAGS="$scoll_fca_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in fca/fca_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "fca/fca_api.h" "ac_cv_header_fca_fca_api_h" "$ac_includes_default" if test "x$ac_cv_header_fca_fca_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FCA_FCA_API_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_fca_get_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there scoll_fca_LDFLAGS="$scoll_fca_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_scoll_fca_save_LDFLAGS" scoll_fca_LDFLAGS="$opal_check_package_scoll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_scoll_fca_save_LDFLAGS" scoll_fca_LDFLAGS="$opal_check_package_scoll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : scoll_fca_LDFLAGS="$scoll_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_scoll_fca_save_LDFLAGS" scoll_fca_LDFLAGS="$opal_check_package_scoll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : scoll_fca_LDFLAGS="$scoll_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_scoll_fca_save_LDFLAGS" scoll_fca_LDFLAGS="$opal_check_package_scoll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version 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 lib$ompi_check_fca_libs requires libnl v1 or v3" >&5 $as_echo_n "checking if lib$ompi_check_fca_libs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fca_get_version (void); int main(int argc, char *argv[]) { fca_get_version (); 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:383424: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_fca_libs $LIBS $scoll_fca_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_fca_libs $LIBS $scoll_fca_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:383431: \$? = $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 $ompi_check_fca_libs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib $ompi_check_fca_libs" >&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, lib$ompi_check_fca_libs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, lib$ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&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 $ompi_check_fca_libs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas $ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs $ompi_check_fca_libs" # 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 lib$ompi_check_fca_libs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas lib$ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs $ompi_check_fca_libs" # 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_fca_get_version" != "no" && test "$ac_cv_search_fca_get_version" != "none required"; then : scoll_fca_LIBS="$ac_cv_search_fca_get_version " else scoll_fca_LIBS="" 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_fca_get_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there scoll_fca_LDFLAGS="$scoll_fca_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_scoll_fca_save_LDFLAGS" scoll_fca_LDFLAGS="$opal_check_package_scoll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_scoll_fca_save_LDFLAGS" scoll_fca_LDFLAGS="$opal_check_package_scoll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : scoll_fca_LDFLAGS="$scoll_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_scoll_fca_save_LDFLAGS" scoll_fca_LDFLAGS="$opal_check_package_scoll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : scoll_fca_LDFLAGS="$scoll_fca_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 fca_get_version" >&5 $as_echo_n "checking for library containing fca_get_version... " >&6; } if ${ac_cv_search_fca_get_version+:} 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 fca_get_version (); int main () { return fca_get_version (); ; return 0; } _ACEOF for ac_lib in '' $ompi_check_fca_libs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fca_get_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_fca_get_version+:} false; then : break fi done if ${ac_cv_search_fca_get_version+:} false; then : else ac_cv_search_fca_get_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fca_get_version" >&5 $as_echo "$ac_cv_search_fca_get_version" >&6; } ac_res=$ac_cv_search_fca_get_version 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_scoll_fca_save_LDFLAGS" scoll_fca_LDFLAGS="$opal_check_package_scoll_fca_orig_LDFLAGS" unset ac_cv_search_fca_get_version 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 lib$ompi_check_fca_libs requires libnl v1 or v3" >&5 $as_echo_n "checking if lib$ompi_check_fca_libs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void fca_get_version (void); int main(int argc, char *argv[]) { fca_get_version (); 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:384149: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_fca_libs $LIBS $scoll_fca_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -l$ompi_check_fca_libs $LIBS $scoll_fca_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:384156: \$? = $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 $ompi_check_fca_libs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib $ompi_check_fca_libs" >&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, lib$ompi_check_fca_libs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, lib$ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&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 $ompi_check_fca_libs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas $ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs $ompi_check_fca_libs" # 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 lib$ompi_check_fca_libs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas lib$ompi_check_fca_libs 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 lib$ompi_check_fca_libs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in lib$ompi_check_fca_libs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using lib$ompi_check_fca_libs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs $ompi_check_fca_libs" # 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_fca_get_version" != "no" && test "$ac_cv_search_fca_get_version" != "none required"; then : scoll_fca_LIBS="$ac_cv_search_fca_get_version " else scoll_fca_LIBS="" 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 : ompi_check_fca_happy="yes" else scoll_fca_CPPFLAGS="$opal_check_package_scoll_fca_orig_CPPFLAGS" scoll_fca_LDFLAGS="$opal_check_package_scoll_fca_orig_LDFLAGS" scoll_fca_LIBS="$opal_check_package_scoll_fca_orig_LIBS" ompi_check_fca_happy="no" fi CPPFLAGS="$opal_check_package_scoll_fca_save_CPPFLAGS" LDFLAGS="$opal_check_package_scoll_fca_save_LDFLAGS" LIBS="$opal_check_package_scoll_fca_save_LIBS" CPPFLAGS=$CPPFLAGS_save LDFLAGS=$LDFLAGS_save LIBS=$LIBS_save else ompi_check_fca_happy="no" fi if test "$ompi_check_fca_happy" = "yes" && test "$enable_progress_threads" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fca driver does not currently support progress threads. Disabling FCA." >&5 $as_echo "$as_me: WARNING: fca driver does not currently support progress threads. Disabling FCA." >&2;} ompi_check_fca_happy="no" fi if test "$ompi_check_fca_happy" = "yes"; then : scoll_fca_happy="yes" else if test ! -z "$with_fca" && test "$with_fca" != "no"; then : as_fn_error $? "FCA support requested but not found. Aborting" "$LINENO" 5 fi scoll_fca_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 if test "$scoll_fca_happy" = "yes"; then : scoll_fca_WRAPPER_EXTRA_LDFLAGS="$scoll_fca_LDFLAGS" scoll_fca_CPPFLAGS="$scoll_fca_CPPFLAGS" scoll_fca_WRAPPER_EXTRA_LIBS="$scoll_fca_LIBS" should_build=$should_build else should_build=0 fi # substitute in the things needed to build fca scoll_fca_HOME="$ompi_check_fca_dir" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/scoll/fca/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components fca" if test "$compile_mode" = "dso" ; then dso_components="$dso_components fca" else if test "scoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/scoll/fca/lib${OSHMEM_LIB_PREFIX}mca_scoll_fca.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/scoll/fca/libmca_scoll_fca.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_scoll_fca_component;" >> $outfile.extern echo " &mca_scoll_fca_component, " >> $outfile.struct static_components="$static_components fca" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:fca can compile" >&5 $as_echo_n "checking if MCA component scoll:fca can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_scoll" = "fca" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_scoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** scoll component fca was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_scoll" = "fca" ; then as_fn_error $? "*** scoll component fca was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$scoll_fca_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $scoll_fca_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $scoll_fca_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$scoll_fca_WRAPPER_EXTRA_LIBS" = ""; 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_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 $scoll_fca_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $scoll_fca_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$scoll_fca_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $scoll_fca_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring scoll_fca_WRAPPER_EXTRA_CPPFLAGS ($scoll_fca_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring scoll_fca_WRAPPER_EXTRA_CPPFLAGS ($scoll_fca_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:fca can compile" >&5 $as_echo_n "checking if MCA component scoll:fca can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_scoll" = "fca" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fca\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"fca\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "fca" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"fca\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"fca\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components fca" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_scoll_fca_DSO=1 else BUILD_oshmem_scoll_fca_DSO=0 fi if test "$BUILD_oshmem_scoll_fca_DSO" = "1"; then MCA_BUILD_oshmem_scoll_fca_DSO_TRUE= MCA_BUILD_oshmem_scoll_fca_DSO_FALSE='#' else MCA_BUILD_oshmem_scoll_fca_DSO_TRUE='#' MCA_BUILD_oshmem_scoll_fca_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component scoll:ucc (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/scoll/ucc" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "ucc" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_scoll" = "1"; then : want_component=0 fi if test "$DISABLE_scoll_ucc" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_scoll" SHARED_COMPONENT="$DSO_scoll_ucc" STATIC_FRAMEWORK="$STATIC_scoll" STATIC_COMPONENT="$STATIC_scoll_ucc" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component scoll:ucc compile mode" >&5 $as_echo_n "checking for MCA component scoll:ucc compile mode... " >&6; } if test "$DIRECT_scoll" = "ucc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/scoll/ucc/Makefile" # 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_check_ucc_dir ompi_check_ucc_happy CPPFLAGS_save LDFLAGS_save LIBS_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_check_ucc_dir ompi_check_ucc_happy CPPFLAGS_save LDFLAGS_save LIBS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Check whether --with-ucc was given. if test "${with_ucc+set}" = set; then : withval=$with_ucc; fi if test "$with_ucc" != "no"; then : if test -n "$with_ucc" && test "$with_ucc" != "yes"; then : ompi_check_ucc_dir=$with_ucc fi CPPFLAGS_save=$CPPFLAGS LDFLAGS_save=$LDFLAGS LIBS_save=$LIBS # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:385280: scoll_ucc_CPPFLAGS : $scoll_ucc_CPPFLAGS" >&5 else echo scoll_ucc_CPPFLAGS : $scoll_ucc_CPPFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:385288: scoll_ucc_LDFLAGS : $scoll_ucc_LDFLAGS" >&5 else echo scoll_ucc_LDFLAGS : $scoll_ucc_LDFLAGS >&5 fi # 1 is the message # 2 is whether to put a prefix or not if test -n "1"; then echo "configure:385296: scoll_ucc_LIBS : $scoll_ucc_LIBS" >&5 else echo scoll_ucc_LIBS : $scoll_ucc_LIBS >&5 fi opal_check_package_scoll_ucc_save_CPPFLAGS="$CPPFLAGS" opal_check_package_scoll_ucc_save_LDFLAGS="$LDFLAGS" opal_check_package_scoll_ucc_save_LIBS="$LIBS" opal_check_package_scoll_ucc_orig_CPPFLAGS="$scoll_ucc_CPPFLAGS" opal_check_package_scoll_ucc_orig_LDFLAGS="$scoll_ucc_LDFLAGS" opal_check_package_scoll_ucc_orig_LIBS="$scoll_ucc_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_ucc_api_ucc_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ucc_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 ucc/api/ucc.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucc/api/ucc.h" "ac_cv_header_ucc_api_ucc_h" "$ac_includes_default" if test "x$ac_cv_header_ucc_api_ucc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCC_API_UCC_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_ucc_api_ucc_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : scoll_ucc_CPPFLAGS="$scoll_ucc_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucc/api/ucc.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucc/api/ucc.h" "ac_cv_header_ucc_api_ucc_h" "$ac_includes_default" if test "x$ac_cv_header_ucc_api_ucc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCC_API_UCC_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_ucc_init_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there scoll_ucc_LDFLAGS="$scoll_ucc_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_scoll_ucc_save_LDFLAGS" scoll_ucc_LDFLAGS="$opal_check_package_scoll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_scoll_ucc_save_LDFLAGS" scoll_ucc_LDFLAGS="$opal_check_package_scoll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : scoll_ucc_LDFLAGS="$scoll_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_scoll_ucc_save_LDFLAGS" scoll_ucc_LDFLAGS="$opal_check_package_scoll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : scoll_ucc_LDFLAGS="$scoll_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_scoll_ucc_save_LDFLAGS" scoll_ucc_LDFLAGS="$opal_check_package_scoll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version 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 libucc requires libnl v1 or v3" >&5 $as_echo_n "checking if libucc requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucc_init_version (void); int main(int argc, char *argv[]) { ucc_init_version (); 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:385808: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucc $LIBS $scoll_ucc_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucc $LIBS $scoll_ucc_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:385815: \$? = $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 ucc" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucc" >&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, libucc links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&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 ucc requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucc" # 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 libucc requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucc" # 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_ucc_init_version" != "no" && test "$ac_cv_search_ucc_init_version" != "none required"; then : scoll_ucc_LIBS="$ac_cv_search_ucc_init_version " else scoll_ucc_LIBS="" 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_ucc_init_version opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there scoll_ucc_LDFLAGS="$scoll_ucc_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_scoll_ucc_save_LDFLAGS" scoll_ucc_LDFLAGS="$opal_check_package_scoll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_scoll_ucc_save_LDFLAGS" scoll_ucc_LDFLAGS="$opal_check_package_scoll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : scoll_ucc_LDFLAGS="$scoll_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_scoll_ucc_save_LDFLAGS" scoll_ucc_LDFLAGS="$opal_check_package_scoll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : scoll_ucc_LDFLAGS="$scoll_ucc_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 ucc_init_version" >&5 $as_echo_n "checking for library containing ucc_init_version... " >&6; } if ${ac_cv_search_ucc_init_version+:} 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 ucc_init_version (); int main () { return ucc_init_version (); ; return 0; } _ACEOF for ac_lib in '' ucc; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucc_init_version=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucc_init_version+:} false; then : break fi done if ${ac_cv_search_ucc_init_version+:} false; then : else ac_cv_search_ucc_init_version=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucc_init_version" >&5 $as_echo "$ac_cv_search_ucc_init_version" >&6; } ac_res=$ac_cv_search_ucc_init_version 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_scoll_ucc_save_LDFLAGS" scoll_ucc_LDFLAGS="$opal_check_package_scoll_ucc_orig_LDFLAGS" unset ac_cv_search_ucc_init_version 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 libucc requires libnl v1 or v3" >&5 $as_echo_n "checking if libucc requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucc_init_version (void); int main(int argc, char *argv[]) { ucc_init_version (); 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:386533: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucc $LIBS $scoll_ucc_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucc $LIBS $scoll_ucc_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:386540: \$? = $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 ucc" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucc" >&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, libucc links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&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 ucc requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucc" # 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 libucc requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucc 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 libucc (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucc (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucc." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucc." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucc" # 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_ucc_init_version" != "no" && test "$ac_cv_search_ucc_init_version" != "none required"; then : scoll_ucc_LIBS="$ac_cv_search_ucc_init_version " else scoll_ucc_LIBS="" 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 : ompi_check_ucc_happy="yes" else scoll_ucc_CPPFLAGS="$opal_check_package_scoll_ucc_orig_CPPFLAGS" scoll_ucc_LDFLAGS="$opal_check_package_scoll_ucc_orig_LDFLAGS" scoll_ucc_LIBS="$opal_check_package_scoll_ucc_orig_LIBS" ompi_check_ucc_happy="no" fi CPPFLAGS="$opal_check_package_scoll_ucc_save_CPPFLAGS" LDFLAGS="$opal_check_package_scoll_ucc_save_LDFLAGS" LIBS="$opal_check_package_scoll_ucc_save_LIBS" if test "$ompi_check_ucc_happy" = "yes"; then : CPPFLAGS=$coll_ucc_CPPFLAGS LDFLAGS=$coll_ucc_LDFLAGS LIBS=$coll_ucc_LIBS for ac_func in ucc_comm_free do : ac_fn_c_check_func "$LINENO" "ucc_comm_free" "ac_cv_func_ucc_comm_free" if test "x$ac_cv_func_ucc_comm_free" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCC_COMM_FREE 1 _ACEOF fi done fi CPPFLAGS=$CPPFLAGS_save LDFLAGS=$LDFLAGS_save LIBS=$LIBS_save else ompi_check_ucc_happy=no fi if test "$ompi_check_ucc_happy" = "yes" && test "$enable_progress_threads" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ucc driver does not currently support progress threads. Disabling UCC." >&5 $as_echo "$as_me: WARNING: ucc driver does not currently support progress threads. Disabling UCC." >&2;} ompi_check_ucc_happy="no" fi if test "$ompi_check_ucc_happy" = "yes"; then : scoll_ucc_happy="yes" else if test -n "$with_ucc" && test "$with_ucc" != "no"; then : as_fn_error $? "UCC support requested but not found. Aborting" "$LINENO" 5 fi scoll_ucc_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 if test "$scoll_ucc_happy" = "yes"; then : scoll_ucc_WRAPPER_EXTRA_LDFLAGS="$scoll_ucc_LDFLAGS" scoll_ucc_CPPFLAGS="$scoll_ucc_CPPFLAGS" scoll_ucc_WRAPPER_EXTRA_LIBS="$scoll_ucc_LIBS" should_build=$should_build else should_build=0 fi # substitute in the things needed to build ucc opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/scoll/ucc/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ucc" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ucc" else if test "scoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/scoll/ucc/lib${OSHMEM_LIB_PREFIX}mca_scoll_ucc.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/scoll/ucc/libmca_scoll_ucc.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_scoll_ucc_component;" >> $outfile.extern echo " &mca_scoll_ucc_component, " >> $outfile.struct static_components="$static_components ucc" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:ucc can compile" >&5 $as_echo_n "checking if MCA component scoll:ucc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_scoll" = "ucc" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_scoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** scoll component ucc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_scoll" = "ucc" ; then as_fn_error $? "*** scoll component ucc was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$scoll_ucc_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $scoll_ucc_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $scoll_ucc_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$scoll_ucc_WRAPPER_EXTRA_LIBS" = ""; 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_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 $scoll_ucc_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $scoll_ucc_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$scoll_ucc_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $scoll_ucc_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring scoll_ucc_WRAPPER_EXTRA_CPPFLAGS ($scoll_ucc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring scoll_ucc_WRAPPER_EXTRA_CPPFLAGS ($scoll_ucc_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:ucc can compile" >&5 $as_echo_n "checking if MCA component scoll:ucc can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_scoll" = "ucc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "ucc" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucc\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucc\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ucc" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_scoll_ucc_DSO=1 else BUILD_oshmem_scoll_ucc_DSO=0 fi if test "$BUILD_oshmem_scoll_ucc_DSO" = "1"; then MCA_BUILD_oshmem_scoll_ucc_DSO_TRUE= MCA_BUILD_oshmem_scoll_ucc_DSO_FALSE='#' else MCA_BUILD_oshmem_scoll_ucc_DSO_TRUE='#' MCA_BUILD_oshmem_scoll_ucc_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/oshmem/mca/scoll/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component scoll:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/oshmem/mca/scoll/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_scoll" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_scoll_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_scoll" str="SHARED_COMPONENT=\$DSO_scoll_$component" eval $str STATIC_FRAMEWORK="$STATIC_scoll" str="STATIC_COMPONENT=\$STATIC_scoll_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component scoll:$component compile mode" >&5 $as_echo_n "checking for MCA component scoll:$component compile mode... " >&6; } if test "$DIRECT_scoll" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # oshmem/mca/scoll/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="oshmem/mca/scoll/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/oshmem/mca/scoll/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then scoll_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then scoll_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/scoll/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "scoll" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/scoll/$component/lib${OSHMEM_LIB_PREFIX}mca_scoll_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/scoll/$component/libmca_scoll_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_scoll_$component_component;" >> $outfile.extern echo " &mca_scoll_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:$component can compile" >&5 $as_echo_n "checking if MCA component scoll:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_scoll" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_scoll_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** scoll component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_scoll" = "$component" ; then as_fn_error $? "*** scoll component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$scoll_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$scoll_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component scoll:$component can compile" >&5 $as_echo_n "checking if MCA component scoll:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_scoll" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_scoll" ; then if test "$DIRECT_scoll" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_oshmem_scoll_ALL_COMPONENTS="$all_components" MCA_oshmem_scoll_STATIC_COMPONENTS="$static_components" MCA_oshmem_scoll_DSO_COMPONENTS="$dso_components" MCA_oshmem_scoll_STATIC_LTLIBS="$static_ltlibs" MCA_oshmem_scoll_ALL_SUBDIRS= for item in $all_components ; do MCA_oshmem_scoll_ALL_SUBDIRS="$MCA_oshmem_scoll_ALL_SUBDIRS mca/scoll/$item" done MCA_oshmem_scoll_STATIC_SUBDIRS= for item in $static_components ; do MCA_oshmem_scoll_STATIC_SUBDIRS="$MCA_oshmem_scoll_STATIC_SUBDIRS mca/scoll/$item" done MCA_oshmem_scoll_DSO_SUBDIRS= for item in $dso_components ; do MCA_oshmem_scoll_DSO_SUBDIRS="$MCA_oshmem_scoll_DSO_SUBDIRS mca/scoll/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "scoll" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real MCA_oshmem_FRAMEWORKS="$MCA_oshmem_FRAMEWORKS spml" MCA_oshmem_FRAMEWORKS_SUBDIRS="$MCA_oshmem_FRAMEWORKS_SUBDIRS mca/spml" MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oshmem_spml_ALL_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oshmem_spml_DSO_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oshmem_spml_STATIC_SUBDIRS)" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS mca/spml/libmca_spml.la" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS \$(MCA_oshmem_spml_STATIC_LTLIBS)" # configure all the components opal_show_subsubtitle "Configuring MCA framework spml" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=oshmem/mca/spml/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files oshmem/mca/spml/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework spml" >&5 $as_echo_n "checking for no configure components in framework spml... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework spml" >&5 $as_echo_n "checking for m4 configure components in framework spml... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: ikrit, ucx" >&5 $as_echo "ikrit, ucx" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component spml:ikrit (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/spml/ikrit" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_spml" ; then if test "$DIRECT_spml" = "ikrit" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_spml" = "1"; then : want_component=0 fi if test "$DISABLE_spml_ikrit" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_spml" SHARED_COMPONENT="$DSO_spml_ikrit" STATIC_FRAMEWORK="$STATIC_spml" STATIC_COMPONENT="$STATIC_spml_ikrit" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component spml:ikrit compile mode" >&5 $as_echo_n "checking for MCA component spml:ikrit compile mode... " >&6; } if test "$DIRECT_spml" = "ikrit" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/spml/ikrit/Makefile" if test -z "$ompi_check_mxm_happy" ; then # Check whether --with-mxm was given. if test "${with_mxm+set}" = set; then : withval=$with_mxm; fi # Check whether --with-mxm-libdir was given. if test "${with_mxm_libdir+set}" = set; then : withval=$with_mxm_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mxm-libdir value" >&5 $as_echo_n "checking --with-mxm-libdir value... " >&6; } if test "$with_mxm_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-mxm-libdir)" >&5 $as_echo "simple no (specified --without-mxm-libdir)" >&6; } else if test "$with_mxm_libdir" = "yes" || test "x$with_mxm_libdir" = "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_mxm_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_mxm_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_mxm_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_mxm_libdir/libmxm.* 2> /dev/null`" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_mxm_libdir/libmxm.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_mxm_libdir/libmxm.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_mxm_libdir)" >&5 $as_echo "sanity check ok ($with_mxm_libdir)" >&6; } fi fi fi fi ompi_check_mxm_spml_ikrit_save_CPPFLAGS="$CPPFLAGS" ompi_check_mxm_spml_ikrit_save_LDFLAGS="$LDFLAGS" ompi_check_mxm_spml_ikrit_save_LIBS="$LIBS" if test "$with_mxm" != "no"; then : if test ! -z "$with_mxm" && test "$with_mxm" != "yes"; then : ompi_check_mxm_dir="$with_mxm" fi if test ! -z "$with_mxm_libdir" && test "$with_mxm_libdir" != "yes"; then : ompi_check_mxm_libdir="$with_mxm_libdir" fi opal_check_package_ompi_check_mxm_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_mxm_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_mxm_save_LIBS="$LIBS" opal_check_package_ompi_check_mxm_orig_CPPFLAGS="$ompi_check_mxm_CPPFLAGS" opal_check_package_ompi_check_mxm_orig_LDFLAGS="$ompi_check_mxm_LDFLAGS" opal_check_package_ompi_check_mxm_orig_LIBS="$ompi_check_mxm_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_mxm_api_mxm_api_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_mxm_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 mxm/api/mxm_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default" if test "x$ac_cv_header_mxm_api_mxm_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MXM_API_MXM_API_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_mxm_api_mxm_api_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_mxm_CPPFLAGS="$ompi_check_mxm_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in mxm/api/mxm_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default" if test "x$ac_cv_header_mxm_api_mxm_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MXM_API_MXM_API_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_mxm_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_mxm_libdir" != ""; then : # libdir was specified - search only there ompi_check_mxm_LDFLAGS="$ompi_check_mxm_LDFLAGS -L$ompi_check_mxm_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_mxm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup 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 libmxm requires libnl v1 or v3" >&5 $as_echo_n "checking if libmxm requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void mxm_cleanup (void); int main(int argc, char *argv[]) { mxm_cleanup (); 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:388931: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_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:388938: \$? = $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 mxm" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib mxm" >&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, libmxm links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&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 mxm requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas mxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs mxm" # 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 libmxm requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs mxm" # 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_mxm_cleanup" != "no" && test "$ac_cv_search_mxm_cleanup" != "none required"; then : ompi_check_mxm_LIBS="$ac_cv_search_mxm_cleanup " else ompi_check_mxm_LIBS="" 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_mxm_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_mxm_libdir" != ""; then : # libdir was specified - search only there ompi_check_mxm_LDFLAGS="$ompi_check_mxm_LDFLAGS -L$ompi_check_mxm_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_mxm_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_mxm_LDFLAGS="$ompi_check_mxm_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 mxm_cleanup" >&5 $as_echo_n "checking for library containing mxm_cleanup... " >&6; } if ${ac_cv_search_mxm_cleanup+:} 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 mxm_cleanup (); int main () { return mxm_cleanup (); ; return 0; } _ACEOF for ac_lib in '' mxm; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mxm_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mxm_cleanup+:} false; then : break fi done if ${ac_cv_search_mxm_cleanup+:} false; then : else ac_cv_search_mxm_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mxm_cleanup" >&5 $as_echo "$ac_cv_search_mxm_cleanup" >&6; } ac_res=$ac_cv_search_mxm_cleanup 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_ompi_check_mxm_save_LDFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" unset ac_cv_search_mxm_cleanup 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 libmxm requires libnl v1 or v3" >&5 $as_echo_n "checking if libmxm requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void mxm_cleanup (void); int main(int argc, char *argv[]) { mxm_cleanup (); 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:389656: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lmxm $LIBS $ompi_check_mxm_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:389663: \$? = $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 mxm" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib mxm" >&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, libmxm links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&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 mxm requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas mxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs mxm" # 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 libmxm requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libmxm 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 libmxm (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libmxm (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libmxm." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libmxm." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs mxm" # 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_mxm_cleanup" != "no" && test "$ac_cv_search_mxm_cleanup" != "none required"; then : ompi_check_mxm_LIBS="$ac_cv_search_mxm_cleanup " else ompi_check_mxm_LIBS="" 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 : ompi_check_mxm_happy="yes" else ompi_check_mxm_CPPFLAGS="$opal_check_package_ompi_check_mxm_orig_CPPFLAGS" ompi_check_mxm_LDFLAGS="$opal_check_package_ompi_check_mxm_orig_LDFLAGS" ompi_check_mxm_LIBS="$opal_check_package_ompi_check_mxm_orig_LIBS" ompi_check_mxm_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_mxm_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_mxm_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_mxm_save_LIBS" else ompi_check_mxm_happy="no" fi CPPFLAGS="$ompi_check_mxm_spml_ikrit_save_CPPFLAGS" LDFLAGS="$ompi_check_mxm_spml_ikrit_save_LDFLAGS" LIBS="$ompi_check_mxm_spml_ikrit_save_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MXM version compatibility" >&5 $as_echo_n "checking for MXM version compatibility... " >&6; } old_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -I$ompi_check_mxm_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef MXM_VERSION #error "MXM Version is less than 2.1, please upgrade" #endif # #if MXM_API < MXM_VERSION(2,1) #error "MXM Version is less than 2.1, please upgrade" #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_mxm_version_ok="yes" else ompi_mxm_version_ok="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_mxm_version_ok" >&5 $as_echo "$ompi_mxm_version_ok" >&6; } CFLAGS=$old_CFLAGS if test "$ompi_mxm_version_ok" = "no"; then : ompi_check_mxm_happy="no" 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 Transports | tr ' ' '_') ompi_summary_line="Mellanox MXM: $ompi_check_mxm_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 fi if test "$ompi_check_mxm_happy" = "yes"; then : spml_ikrit_LDFLAGS="$spml_ikrit_LDFLAGS $ompi_check_mxm_LDFLAGS" spml_ikrit_LIBS="$spml_ikrit_LIBS $ompi_check_mxm_LIBS" spml_ikrit_CPPFLAGS="$spml_ikrit_CPPFLAGS $ompi_check_mxm_CPPFLAGS" spml_ikrit_happy="yes" else if test ! -z "$with_mxm" && test "$with_mxm" != "no"; then : as_fn_error $? "MXM support requested but not found. Aborting" "$LINENO" 5 fi spml_ikrit_happy="no" fi if test "$spml_ikrit_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build mxm opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/spml/ikrit/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ikrit" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ikrit" else if test "spml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/spml/ikrit/lib${OSHMEM_LIB_PREFIX}mca_spml_ikrit.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/spml/ikrit/libmca_spml_ikrit.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_spml_ikrit_component;" >> $outfile.extern echo " &mca_spml_ikrit_component, " >> $outfile.struct static_components="$static_components ikrit" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component spml:ikrit can compile" >&5 $as_echo_n "checking if MCA component spml:ikrit can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_spml" = "ikrit" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_spml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** spml component ikrit was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_spml" = "ikrit" ; then as_fn_error $? "*** spml component ikrit was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$spml_ikrit_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $spml_ikrit_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $spml_ikrit_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$spml_ikrit_WRAPPER_EXTRA_LIBS" = ""; 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_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 $spml_ikrit_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $spml_ikrit_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$spml_ikrit_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $spml_ikrit_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring spml_ikrit_WRAPPER_EXTRA_CPPFLAGS ($spml_ikrit_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring spml_ikrit_WRAPPER_EXTRA_CPPFLAGS ($spml_ikrit_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component spml:ikrit can compile" >&5 $as_echo_n "checking if MCA component spml:ikrit can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_spml" = "ikrit" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ikrit\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ikrit\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_spml" ; then if test "$DIRECT_spml" = "ikrit" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ikrit\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ikrit\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ikrit" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_spml_ikrit_DSO=1 else BUILD_oshmem_spml_ikrit_DSO=0 fi if test "$BUILD_oshmem_spml_ikrit_DSO" = "1"; then MCA_BUILD_oshmem_spml_ikrit_DSO_TRUE= MCA_BUILD_oshmem_spml_ikrit_DSO_FALSE='#' else MCA_BUILD_oshmem_spml_ikrit_DSO_TRUE='#' MCA_BUILD_oshmem_spml_ikrit_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component spml:ucx (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/spml/ucx" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_spml" ; then if test "$DIRECT_spml" = "ucx" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_spml" = "1"; then : want_component=0 fi if test "$DISABLE_spml_ucx" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_spml" SHARED_COMPONENT="$DSO_spml_ucx" STATIC_FRAMEWORK="$STATIC_spml" STATIC_COMPONENT="$STATIC_spml_ucx" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component spml:ucx compile mode" >&5 $as_echo_n "checking for MCA component spml:ucx compile mode... " >&6; } if test "$DIRECT_spml" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/spml/ucx/Makefile" # 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_check_ucx_dir; 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_check_ucx_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test -z "$ompi_check_ucx_happy"; then : # Check whether --with-ucx was given. if test "${with_ucx+set}" = set; then : withval=$with_ucx; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx value" >&5 $as_echo_n "checking --with-ucx value... " >&6; } if test "$with_ucx" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx)" >&5 $as_echo "simple no (specified --without-ucx)" >&6; } else if test "$with_ucx" = "yes" || test "x$with_ucx" = "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_ucx"; 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_ucx not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx/include/ucp/api/ucp.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_ucx/include/ucp/api/ucp.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx/include/ucp/api/ucp.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx)" >&5 $as_echo "sanity check ok ($with_ucx)" >&6; } fi fi fi fi # Check whether --with-ucx-libdir was given. if test "${with_ucx_libdir+set}" = set; then : withval=$with_ucx_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx-libdir value" >&5 $as_echo_n "checking --with-ucx-libdir value... " >&6; } if test "$with_ucx_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx-libdir)" >&5 $as_echo "simple no (specified --without-ucx-libdir)" >&6; } else if test "$with_ucx_libdir" = "yes" || test "x$with_ucx_libdir" = "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_ucx_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ucx_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx_libdir/libucp.* 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_ucx_libdir/libucp.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx_libdir/libucp.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx_libdir)" >&5 $as_echo "sanity check ok ($with_ucx_libdir)" >&6; } fi fi fi fi if test "$with_ucx" != "no"; then : if test -n "$with_ucx" && test "$with_ucx" != "yes"; then : ompi_check_ucx_dir="$with_ucx" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucx" >&5 $as_echo_n "checking for ucx... " >&6; } if test -n "$ucx_CFLAGS"; then pkg_cv_ucx_CFLAGS="$ucx_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_CFLAGS=`$PKG_CONFIG --cflags "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_LIBS"; then pkg_cv_ucx_LIBS="$ucx_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_LIBS=`$PKG_CONFIG --libs "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_STATIC_LIBS"; then pkg_cv_ucx_STATIC_LIBS="$ucx_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_STATIC_LIBS=`$PKG_CONFIG --libs --static "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ucx_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ucx" 2>&1` else ucx_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ucx" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ucx_PKG_ERRORS" >&5 true elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } true else ucx_CFLAGS=$pkg_cv_ucx_CFLAGS ucx_LIBS=$pkg_cv_ucx_LIBS ucx_STATIC_LIBS=$pkg_cv_ucx_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_check_ucx_dir=`$PKG_CONFIG --variable=prefix ucx` if test "$ompi_check_ucx_dir" = "/usr"; then : ompi_check_ucx_dir= fi fi fi ompi_check_ucx_happy="no" if test -z "$ompi_check_ucx_dir"; then : opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo | 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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:391553: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:391560: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:392278: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:392285: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } fi if test "$ompi_check_ucx_happy" = "no"; then : ompi_check_ucx_dir=/opt/ucx fi fi if test "$ompi_check_ucx_happy" != yes; then : if test -n "$with_ucx_libdir"; then : ompi_check_ucx_libdir="$with_ucx_libdir" else files=`ls $ompi_check_ucx_dir/lib64/libucp.* 2> /dev/null | wc -l` if test "$files" -gt 0; then : ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib64 else ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib fi fi ompi_check_ucx_spml_ucx_save_CPPFLAGS="$CPPFLAGS" ompi_check_ucx_spml_ucx_save_LDFLAGS="$LDFLAGS" ompi_check_ucx_spml_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ucx_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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:393184: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:393191: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:393909: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:393916: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" CPPFLAGS="$ompi_check_ucx_spml_ucx_save_CPPFLAGS" LDFLAGS="$ompi_check_ucx_spml_ucx_save_LDFLAGS" LIBS="$ompi_check_ucx_spml_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } CPPFLAGS=$old_CPPFLAGS fi fi old_CPPFLAGS="$CPPFLAGS" if test -n "$ompi_check_ucx_dir"; then : CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" fi # Turn off UCX version v1.8 due to issue #8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCX version" >&5 $as_echo_n "checking UCX version... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if (UCP_API_MAJOR == 1) && (UCP_API_MINOR == 8) #error "Invalid version" #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (not 1.8.x)" >&5 $as_echo "ok (not 1.8.x)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad (1.8.x)" >&5 $as_echo "bad (1.8.x)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&5 $as_echo "$as_me: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please upgrade to UCX version 1.9 or higher." >&5 $as_echo "$as_me: WARNING: Please upgrade to UCX version 1.9 or higher." >&2;} ompi_check_ucx_happy=no fi rm -f conftest.err conftest.i conftest.$ac_ext if test "$ompi_check_ucx_happy" = yes; then : ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbr" "ac_cv_have_decl_ucp_tag_send_nbr" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbr" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBR $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_TAG_SEND_NBR 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nb" "ac_cv_have_decl_ucp_ep_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_worker_flush_nb" "ac_cv_have_decl_ucp_worker_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_worker_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_request_check_status" "ac_cv_have_decl_ucp_request_check_status" "#include " if test "x$ac_cv_have_decl_ucp_request_check_status" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_REQUEST_CHECK_STATUS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nb" "ac_cv_have_decl_ucp_put_nb" "#include " if test "x$ac_cv_have_decl_ucp_put_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nb" "ac_cv_have_decl_ucp_get_nb" "#include " if test "x$ac_cv_have_decl_ucp_get_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nbx" "ac_cv_have_decl_ucp_put_nbx" "#include " if test "x$ac_cv_have_decl_ucp_put_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nbx" "ac_cv_have_decl_ucp_get_nbx" "#include " if test "x$ac_cv_have_decl_ucp_get_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_atomic_op_nbx" "ac_cv_have_decl_ucp_atomic_op_nbx" "#include " if test "x$ac_cv_have_decl_ucp_atomic_op_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_OP_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nbx" "ac_cv_have_decl_ucp_ep_flush_nbx" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_events" "ac_cv_have_decl_ucm_test_events" "#include " if test "x$ac_cv_have_decl_ucm_test_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_external_events" "ac_cv_have_decl_ucm_test_external_events" "#include " if test "x$ac_cv_have_decl_ucm_test_external_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EXTERNAL_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_AND" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_AND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_OR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_OR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_XOR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_XOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FAND" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FAND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FXOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FXOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "#include " if test "x$ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_OP_ATTR_FLAG_MULTI_SEND" "ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" "#include " if test "x$ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_OP_ATTR_FLAG_MULTI_SEND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_WORKER_ADDRESS_FLAGS 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "UCP_ATTR_FIELD_MEMORY_TYPES" "ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" "#include " if test "x$ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATTR_FIELD_MEMORY_TYPES $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_ATTR_MEMORY_TYPES 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbx" "ac_cv_have_decl_ucp_tag_send_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_send_sync_nbx" "ac_cv_have_decl_ucp_tag_send_sync_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_sync_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_SYNC_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_recv_nbx" "ac_cv_have_decl_ucp_tag_recv_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_recv_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_RECV_NBX $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "ucp_request_param_t" "ac_cv_type_ucp_request_param_t" "#include " if test "x$ac_cv_type_ucp_request_param_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_REQUEST_PARAM_T 1 _ACEOF fi fi CPPFLAGS=$old_CPPFLAGS # 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 Transports | tr ' ' '_') ompi_summary_line="Open UCX: $ompi_check_ucx_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 fi fi if test "$ompi_check_ucx_happy" = "yes"; then : spml_ucx_CPPFLAGS="$spml_ucx_CPPFLAGS $ompi_check_ucx_CPPFLAGS" spml_ucx_LDFLAGS="$spml_ucx_LDFLAGS $ompi_check_ucx_LDFLAGS" spml_ucx_LIBS="$spml_ucx_LIBS $ompi_check_ucx_LIBS" $as_echo "#define HAVE_UCX 1" >>confdefs.h spml_ucx_happy="yes" else if test ! -z "$with_ucx" && test "$with_ucx" != "no"; then : as_fn_error $? "UCX support requested but not found. Aborting" "$LINENO" 5 fi $as_echo "#define HAVE_UCX 0" >>confdefs.h spml_ucx_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 if test "$spml_ucx_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # substitute in the things needed to build ucx opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/spml/ucx/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ucx" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ucx" else if test "spml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/spml/ucx/lib${OSHMEM_LIB_PREFIX}mca_spml_ucx.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/spml/ucx/libmca_spml_ucx.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_spml_ucx_component;" >> $outfile.extern echo " &mca_spml_ucx_component, " >> $outfile.struct static_components="$static_components ucx" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component spml:ucx can compile" >&5 $as_echo_n "checking if MCA component spml:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_spml" = "ucx" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_spml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** spml component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_spml" = "ucx" ; then as_fn_error $? "*** spml component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$spml_ucx_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $spml_ucx_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $spml_ucx_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$spml_ucx_WRAPPER_EXTRA_LIBS" = ""; 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_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 $spml_ucx_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $spml_ucx_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$spml_ucx_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $spml_ucx_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring spml_ucx_WRAPPER_EXTRA_CPPFLAGS ($spml_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring spml_ucx_WRAPPER_EXTRA_CPPFLAGS ($spml_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component spml:ucx can compile" >&5 $as_echo_n "checking if MCA component spml:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_spml" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_spml" ; then if test "$DIRECT_spml" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ucx" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_spml_ucx_DSO=1 else BUILD_oshmem_spml_ucx_DSO=0 fi if test "$BUILD_oshmem_spml_ucx_DSO" = "1"; then MCA_BUILD_oshmem_spml_ucx_DSO_TRUE= MCA_BUILD_oshmem_spml_ucx_DSO_FALSE='#' else MCA_BUILD_oshmem_spml_ucx_DSO_TRUE='#' MCA_BUILD_oshmem_spml_ucx_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/oshmem/mca/spml/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component spml:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/oshmem/mca/spml/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_spml" ; then if test "$DIRECT_spml" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_spml" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_spml_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_spml" str="SHARED_COMPONENT=\$DSO_spml_$component" eval $str STATIC_FRAMEWORK="$STATIC_spml" str="STATIC_COMPONENT=\$STATIC_spml_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component spml:$component compile mode" >&5 $as_echo_n "checking for MCA component spml:$component compile mode... " >&6; } if test "$DIRECT_spml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # oshmem/mca/spml/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="oshmem/mca/spml/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/oshmem/mca/spml/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then spml_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then spml_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/spml/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "spml" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/spml/$component/lib${OSHMEM_LIB_PREFIX}mca_spml_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/spml/$component/libmca_spml_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_spml_$component_component;" >> $outfile.extern echo " &mca_spml_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component spml:$component can compile" >&5 $as_echo_n "checking if MCA component spml:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_spml" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_spml_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** spml component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_spml" = "$component" ; then as_fn_error $? "*** spml component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$spml_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$spml_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component spml:$component can compile" >&5 $as_echo_n "checking if MCA component spml:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_spml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_spml" ; then if test "$DIRECT_spml" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_oshmem_spml_ALL_COMPONENTS="$all_components" MCA_oshmem_spml_STATIC_COMPONENTS="$static_components" MCA_oshmem_spml_DSO_COMPONENTS="$dso_components" MCA_oshmem_spml_STATIC_LTLIBS="$static_ltlibs" MCA_oshmem_spml_ALL_SUBDIRS= for item in $all_components ; do MCA_oshmem_spml_ALL_SUBDIRS="$MCA_oshmem_spml_ALL_SUBDIRS mca/spml/$item" done MCA_oshmem_spml_STATIC_SUBDIRS= for item in $static_components ; do MCA_oshmem_spml_STATIC_SUBDIRS="$MCA_oshmem_spml_STATIC_SUBDIRS mca/spml/$item" done MCA_oshmem_spml_DSO_SUBDIRS= for item in $dso_components ; do MCA_oshmem_spml_DSO_SUBDIRS="$MCA_oshmem_spml_DSO_SUBDIRS mca/spml/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "spml" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # this is a direct callable component, so set that up. if test ! -z "$DIRECT_spml" ; then MCA_oshmem_spml_DIRECT_CALL_COMPONENT=$DIRECT_spml MCA_oshmem_spml_DIRECT_CALL=1 else MCA_oshmem_spml_DIRECT_CALL_COMPONENT= MCA_oshmem_spml_DIRECT_CALL=0 fi cat >>confdefs.h <<_ACEOF #define MCA_oshmem_spml_DIRECT_CALL $MCA_oshmem_spml_DIRECT_CALL _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_oshmem_spml_DIRECT_CALL_COMPONENT $MCA_oshmem_spml_DIRECT_CALL_COMPONENT _ACEOF cat >>confdefs.h <<_ACEOF #define MCA_oshmem_spml_DIRECT_CALL_HEADER "$MCA_oshmem_spml_DIRECT_CALL_HEADER" _ACEOF if test -z "$MCA_oshmem_spml_DSO_COMPONENTS" && test -z "$MCA_oshmem_spml_STATIC_COMPONENTS"; then OSHMEM_FOUND_WORKING_SPML=0 else OSHMEM_FOUND_WORKING_SPML=1 fi MCA_oshmem_FRAMEWORKS="$MCA_oshmem_FRAMEWORKS sshmem" MCA_oshmem_FRAMEWORKS_SUBDIRS="$MCA_oshmem_FRAMEWORKS_SUBDIRS mca/sshmem" MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oshmem_sshmem_ALL_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oshmem_sshmem_DSO_SUBDIRS)" MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oshmem_sshmem_STATIC_SUBDIRS)" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS mca/sshmem/libmca_sshmem.la" MCA_oshmem_FRAMEWORK_LIBS="$MCA_oshmem_FRAMEWORK_LIBS \$(MCA_oshmem_sshmem_STATIC_LTLIBS)" opal_show_subsubtitle "Configuring MCA framework sshmem" # setup for framework all_components= static_components= dso_components= static_ltlibs= # Ensure that the directory where the #include file is to live # exists. Need to do this for VPATH builds, because the directory # may not exist yet. For the "common" type, it's not really a # component, so it doesn't have a base. outdir=oshmem/mca/sshmem/base as_dir=$outdir; as_fn_mkdir_p # emit Makefile rule ac_config_files="$ac_config_files oshmem/mca/sshmem/Makefile" # remove any previously generated #include files outfile_real=$outdir/static-components.h outfile=$outfile_real.new rm -f $outfile $outfile.struct $outfile.extern touch $outfile.struct $outfile.extern # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework sshmem" >&5 $as_echo_n "checking for no configure components in framework sshmem... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework sshmem" >&5 $as_echo_n "checking for m4 configure components in framework sshmem... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: mmap, sysv, ucx, verbs" >&5 $as_echo "mmap, sysv, ucx, verbs" >&6; } # If there are components in the no configure list, but we're # doing one of the "special" selection logics, abort with a # reasonable message. # run the configure logic for the no-config components # configure components that use built-in configuration scripts best_mca_component_priority=0 components_looking_for_succeed=1 components_last_result=0 opal_show_subsubsubtitle "MCA component sshmem:mmap (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/sshmem/mmap" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "mmap" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sshmem" = "1"; then : want_component=0 fi if test "$DISABLE_sshmem_mmap" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_sshmem" SHARED_COMPONENT="$DSO_sshmem_mmap" STATIC_FRAMEWORK="$STATIC_sshmem" STATIC_COMPONENT="$STATIC_sshmem_mmap" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sshmem:mmap compile mode" >&5 $as_echo_n "checking for MCA component sshmem:mmap compile mode... " >&6; } if test "$DIRECT_sshmem" = "mmap" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/sshmem/mmap/Makefile" # do we have the mmap shm stuff? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want mmap shared memory support" >&5 $as_echo_n "checking if want mmap shared memory support... " >&6; } # Check whether --enable-mmap-sshmem was given. if test "${enable_mmap_sshmem+set}" = set; then : enableval=$enable_mmap_sshmem; fi if test "$enable_mmap_sshmem" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } oshmem_mmap_sm_build_mmap=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 library containing mmap" >&5 $as_echo_n "checking for library containing mmap... " >&6; } if ${ac_cv_search_mmap+:} 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 mmap (); int main () { return mmap (); ; return 0; } _ACEOF for ac_lib in '' c; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_mmap=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_mmap+:} false; then : break fi done if ${ac_cv_search_mmap+:} false; then : else ac_cv_search_mmap=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmap" >&5 $as_echo "$ac_cv_search_mmap" >&6; } ac_res=$ac_cv_search_mmap if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" oshmem_mmap_sm_build_mmap=1 else oshmem_mmap_sm_build_mmap=0 fi fi if test "$enable_mmap_sshmem" = "yes" && test "$oshmem_mmap_sm_build_mmap" = "0"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MMAP shared memory support requested but not found" >&5 $as_echo "$as_me: WARNING: MMAP shared memory support requested but not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$oshmem_mmap_sm_build_mmap" = "1"; then : should_build=$should_build else should_build=0 fi cat >>confdefs.h <<_ACEOF #define OSHMEM_SSHMEM_MMAP $oshmem_mmap_sm_build_mmap _ACEOF opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/sshmem/mmap/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components mmap" if test "$compile_mode" = "dso" ; then dso_components="$dso_components mmap" else if test "sshmem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sshmem/mmap/lib${OSHMEM_LIB_PREFIX}mca_sshmem_mmap.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sshmem/mmap/libmca_sshmem_mmap.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sshmem_mmap_component;" >> $outfile.extern echo " &mca_sshmem_mmap_component, " >> $outfile.struct static_components="$static_components mmap" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:mmap can compile" >&5 $as_echo_n "checking if MCA component sshmem:mmap can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sshmem" = "mmap" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_sshmem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sshmem component mmap was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sshmem" = "mmap" ; then as_fn_error $? "*** sshmem component mmap was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$sshmem_mmap_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $sshmem_mmap_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $sshmem_mmap_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$sshmem_mmap_WRAPPER_EXTRA_LIBS" = ""; 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_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 $sshmem_mmap_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $sshmem_mmap_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$sshmem_mmap_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $sshmem_mmap_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring sshmem_mmap_WRAPPER_EXTRA_CPPFLAGS ($sshmem_mmap_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring sshmem_mmap_WRAPPER_EXTRA_CPPFLAGS ($sshmem_mmap_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:mmap can compile" >&5 $as_echo_n "checking if MCA component sshmem:mmap can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sshmem" = "mmap" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mmap\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mmap\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "mmap" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mmap\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"mmap\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components mmap" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_sshmem_mmap_DSO=1 else BUILD_oshmem_sshmem_mmap_DSO=0 fi if test "$BUILD_oshmem_sshmem_mmap_DSO" = "1"; then MCA_BUILD_oshmem_sshmem_mmap_DSO_TRUE= MCA_BUILD_oshmem_sshmem_mmap_DSO_FALSE='#' else MCA_BUILD_oshmem_sshmem_mmap_DSO_TRUE='#' MCA_BUILD_oshmem_sshmem_mmap_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component sshmem:sysv (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/sshmem/sysv" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "sysv" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sshmem" = "1"; then : want_component=0 fi if test "$DISABLE_sshmem_sysv" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_sshmem" SHARED_COMPONENT="$DSO_sshmem_sysv" STATIC_FRAMEWORK="$STATIC_sshmem" STATIC_COMPONENT="$STATIC_sshmem_sysv" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sshmem:sysv compile mode" >&5 $as_echo_n "checking for MCA component sshmem:sysv compile mode... " >&6; } if test "$DIRECT_sshmem" = "sysv" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/sshmem/sysv/Makefile" # do we have the sysv shm stuff? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want SYSV shared memory support" >&5 $as_echo_n "checking if want SYSV shared memory support... " >&6; } # Check whether --enable-sysv-sshmem was given. if test "${enable_sysv_sshmem+set}" = set; then : enableval=$enable_sysv_sshmem; fi if test "$enable_sysv_sshmem" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } oshmem_sysv_sm_build_sysv=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget" if test "x$ac_cv_func_shmget" = xyes; then : oshmem_sysv_sm_build_sysv=1 else oshmem_sysv_sm_build_sysv=0 fi fi if test "$enable_sysv_sshmem" = "yes" && test "$oshmem_sysv_sm_build_sysv" = "0"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SYSV shared memory support requested but not found" >&5 $as_echo "$as_me: WARNING: SYSV shared memory support requested but not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$oshmem_sysv_sm_build_sysv" = "1"; then : should_build=$should_build else should_build=0 fi cat >>confdefs.h <<_ACEOF #define OSHMEM_SSHMEM_SYSV $oshmem_sysv_sm_build_sysv _ACEOF opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/sshmem/sysv/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components sysv" if test "$compile_mode" = "dso" ; then dso_components="$dso_components sysv" else if test "sshmem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sshmem/sysv/lib${OSHMEM_LIB_PREFIX}mca_sshmem_sysv.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sshmem/sysv/libmca_sshmem_sysv.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sshmem_sysv_component;" >> $outfile.extern echo " &mca_sshmem_sysv_component, " >> $outfile.struct static_components="$static_components sysv" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:sysv can compile" >&5 $as_echo_n "checking if MCA component sshmem:sysv can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sshmem" = "sysv" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_sshmem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sshmem component sysv was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sshmem" = "sysv" ; then as_fn_error $? "*** sshmem component sysv was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$sshmem_sysv_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $sshmem_sysv_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $sshmem_sysv_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$sshmem_sysv_WRAPPER_EXTRA_LIBS" = ""; 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_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 $sshmem_sysv_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $sshmem_sysv_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$sshmem_sysv_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $sshmem_sysv_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring sshmem_sysv_WRAPPER_EXTRA_CPPFLAGS ($sshmem_sysv_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring sshmem_sysv_WRAPPER_EXTRA_CPPFLAGS ($sshmem_sysv_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:sysv can compile" >&5 $as_echo_n "checking if MCA component sshmem:sysv can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sshmem" = "sysv" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sysv\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sysv\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "sysv" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"sysv\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"sysv\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components sysv" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_sshmem_sysv_DSO=1 else BUILD_oshmem_sshmem_sysv_DSO=0 fi if test "$BUILD_oshmem_sshmem_sysv_DSO" = "1"; then MCA_BUILD_oshmem_sshmem_sysv_DSO_TRUE= MCA_BUILD_oshmem_sshmem_sysv_DSO_FALSE='#' else MCA_BUILD_oshmem_sshmem_sysv_DSO_TRUE='#' MCA_BUILD_oshmem_sshmem_sysv_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component sshmem:ucx (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/sshmem/ucx" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "ucx" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sshmem" = "1"; then : want_component=0 fi if test "$DISABLE_sshmem_ucx" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_sshmem" SHARED_COMPONENT="$DSO_sshmem_ucx" STATIC_FRAMEWORK="$STATIC_sshmem" STATIC_COMPONENT="$STATIC_sshmem_ucx" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sshmem:ucx compile mode" >&5 $as_echo_n "checking for MCA component sshmem:ucx compile mode... " >&6; } if test "$DIRECT_sshmem" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/sshmem/ucx/Makefile" # 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_check_ucx_dir; 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_check_ucx_dir\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test -z "$ompi_check_ucx_happy"; then : # Check whether --with-ucx was given. if test "${with_ucx+set}" = set; then : withval=$with_ucx; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx value" >&5 $as_echo_n "checking --with-ucx value... " >&6; } if test "$with_ucx" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx)" >&5 $as_echo "simple no (specified --without-ucx)" >&6; } else if test "$with_ucx" = "yes" || test "x$with_ucx" = "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_ucx"; 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_ucx not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx/include/ucp/api/ucp.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_ucx/include/ucp/api/ucp.h not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx/include/ucp/api/ucp.h not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx)" >&5 $as_echo "sanity check ok ($with_ucx)" >&6; } fi fi fi fi # Check whether --with-ucx-libdir was given. if test "${with_ucx_libdir+set}" = set; then : withval=$with_ucx_libdir; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ucx-libdir value" >&5 $as_echo_n "checking --with-ucx-libdir value... " >&6; } if test "$with_ucx_libdir" = "no" ; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple no (specified --without-ucx-libdir)" >&5 $as_echo "simple no (specified --without-ucx-libdir)" >&6; } else if test "$with_ucx_libdir" = "yes" || test "x$with_ucx_libdir" = "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_ucx_libdir"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_ucx_libdir not found" >&5 $as_echo "$as_me: WARNING: Directory $with_ucx_libdir not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else if test "x`ls $with_ucx_libdir/libucp.* 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_ucx_libdir/libucp.* not found" >&5 $as_echo "$as_me: WARNING: Expected file $with_ucx_libdir/libucp.* not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_ucx_libdir)" >&5 $as_echo "sanity check ok ($with_ucx_libdir)" >&6; } fi fi fi fi if test "$with_ucx" != "no"; then : if test -n "$with_ucx" && test "$with_ucx" != "yes"; then : ompi_check_ucx_dir="$with_ucx" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucx" >&5 $as_echo_n "checking for ucx... " >&6; } if test -n "$ucx_CFLAGS"; then pkg_cv_ucx_CFLAGS="$ucx_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_CFLAGS=`$PKG_CONFIG --cflags "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_LIBS"; then pkg_cv_ucx_LIBS="$ucx_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_LIBS=`$PKG_CONFIG --libs "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ucx_STATIC_LIBS"; then pkg_cv_ucx_STATIC_LIBS="$ucx_STATIC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ucx\""; } >&5 ($PKG_CONFIG --exists --print-errors "ucx") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ucx_STATIC_LIBS=`$PKG_CONFIG --libs --static "ucx" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ucx_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ucx" 2>&1` else ucx_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ucx" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ucx_PKG_ERRORS" >&5 true elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } true else ucx_CFLAGS=$pkg_cv_ucx_CFLAGS ucx_LIBS=$pkg_cv_ucx_LIBS ucx_STATIC_LIBS=$pkg_cv_ucx_STATIC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_check_ucx_dir=`$PKG_CONFIG --variable=prefix ucx` if test "$ompi_check_ucx_dir" = "/usr"; then : ompi_check_ucx_dir= fi fi fi ompi_check_ucx_happy="no" if test -z "$ompi_check_ucx_dir"; then : opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo | 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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:398392: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:398399: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L" LDFLAGS="$LDFLAGS -L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="" 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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:399117: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:399124: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } fi if test "$ompi_check_ucx_happy" = "no"; then : ompi_check_ucx_dir=/opt/ucx fi fi if test "$ompi_check_ucx_happy" != yes; then : if test -n "$with_ucx_libdir"; then : ompi_check_ucx_libdir="$with_ucx_libdir" else files=`ls $ompi_check_ucx_dir/lib64/libucp.* 2> /dev/null | wc -l` if test "$files" -gt 0; then : ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib64 else ompi_check_ucx_libdir=$ompi_check_ucx_dir/lib fi fi ompi_check_ucx_sshmem_ucx_save_CPPFLAGS="$CPPFLAGS" ompi_check_ucx_sshmem_ucx_save_LDFLAGS="$LDFLAGS" ompi_check_ucx_sshmem_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_save_CPPFLAGS="$CPPFLAGS" opal_check_package_ompi_check_ucx_save_LDFLAGS="$LDFLAGS" opal_check_package_ompi_check_ucx_save_LIBS="$LIBS" opal_check_package_ompi_check_ucx_orig_CPPFLAGS="$ompi_check_ucx_CPPFLAGS" opal_check_package_ompi_check_ucx_orig_LDFLAGS="$ompi_check_ucx_LDFLAGS" opal_check_package_ompi_check_ucx_orig_LIBS="$ompi_check_ucx_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_ucp_api_ucp_h # get rid of the trailing slash(es) dir_prefix=$(echo $ompi_check_ucx_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 ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_api_ucp_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : ompi_check_ucx_CPPFLAGS="$ompi_check_ucx_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in ucp/api/ucp.h do : ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_API_UCP_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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:400023: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:400030: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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_ucp_cleanup opal_check_package_lib_happy="no" if test "$ompi_check_ucx_libdir" != ""; then : # libdir was specified - search only there ompi_check_ucx_LDFLAGS="$ompi_check_ucx_LDFLAGS -L$ompi_check_ucx_libdir" LDFLAGS="$LDFLAGS -L$ompi_check_ucx_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi else # libdir was not specified - go through search path opal_check_package_libdir="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : ompi_check_ucx_LDFLAGS="$ompi_check_ucx_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 ucp_cleanup" >&5 $as_echo_n "checking for library containing ucp_cleanup... " >&6; } if ${ac_cv_search_ucp_cleanup+:} 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 ucp_cleanup (); int main () { return ucp_cleanup (); ; return 0; } _ACEOF for ac_lib in '' ucp; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib -luct -lucm -lucs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ucp_cleanup=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ucp_cleanup+:} false; then : break fi done if ${ac_cv_search_ucp_cleanup+:} false; then : else ac_cv_search_ucp_cleanup=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ucp_cleanup" >&5 $as_echo "$ac_cv_search_ucp_cleanup" >&6; } ac_res=$ac_cv_search_ucp_cleanup 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_ompi_check_ucx_save_LDFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" unset ac_cv_search_ucp_cleanup 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 libucp requires libnl v1 or v3" >&5 $as_echo_n "checking if libucp requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ucp_cleanup (void); int main(int argc, char *argv[]) { ucp_cleanup (); 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:400748: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -lucp $LIBS $ompi_check_ucx_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:400755: \$? = $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 ucp" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ucp" >&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, libucp links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&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 ucp requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ucp" # 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 libucp requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libucp 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 libucp (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libucp (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libucp." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libucp." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ucp" # 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_ucp_cleanup" != "no" && test "$ac_cv_search_ucp_cleanup" != "none required"; then : ompi_check_ucx_LIBS="$ac_cv_search_ucp_cleanup -luct -lucm -lucs" else ompi_check_ucx_LIBS="-luct -lucm -lucs" 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 : ompi_check_ucx_happy="yes" else ompi_check_ucx_CPPFLAGS="$opal_check_package_ompi_check_ucx_orig_CPPFLAGS" ompi_check_ucx_LDFLAGS="$opal_check_package_ompi_check_ucx_orig_LDFLAGS" ompi_check_ucx_LIBS="$opal_check_package_ompi_check_ucx_orig_LIBS" ompi_check_ucx_happy="no" fi CPPFLAGS="$opal_check_package_ompi_check_ucx_save_CPPFLAGS" LDFLAGS="$opal_check_package_ompi_check_ucx_save_LDFLAGS" LIBS="$opal_check_package_ompi_check_ucx_save_LIBS" CPPFLAGS="$ompi_check_ucx_sshmem_ucx_save_CPPFLAGS" LDFLAGS="$ompi_check_ucx_sshmem_ucx_save_LDFLAGS" LIBS="$ompi_check_ucx_sshmem_ucx_save_LIBS" if test "$ompi_check_ucx_happy" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCX version compatibility" >&5 $as_echo_n "checking for UCX version compatibility... " >&6; } old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ompi_check_ucx_happy="yes" else ompi_check_ucx_happy="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_check_ucx_happy" >&5 $as_echo "$ompi_check_ucx_happy" >&6; } CPPFLAGS=$old_CPPFLAGS fi fi old_CPPFLAGS="$CPPFLAGS" if test -n "$ompi_check_ucx_dir"; then : CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include" fi # Turn off UCX version v1.8 due to issue #8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCX version" >&5 $as_echo_n "checking UCX version... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if (UCP_API_MAJOR == 1) && (UCP_API_MINOR == 8) #error "Invalid version" #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (not 1.8.x)" >&5 $as_echo "ok (not 1.8.x)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad (1.8.x)" >&5 $as_echo "bad (1.8.x)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&5 $as_echo "$as_me: WARNING: UCX support skipped because version 1.8.x was found, which has a known catastrophic issue." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please upgrade to UCX version 1.9 or higher." >&5 $as_echo "$as_me: WARNING: Please upgrade to UCX version 1.9 or higher." >&2;} ompi_check_ucx_happy=no fi rm -f conftest.err conftest.i conftest.$ac_ext if test "$ompi_check_ucx_happy" = yes; then : ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbr" "ac_cv_have_decl_ucp_tag_send_nbr" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbr" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBR $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_TAG_SEND_NBR 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nb" "ac_cv_have_decl_ucp_ep_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_worker_flush_nb" "ac_cv_have_decl_ucp_worker_flush_nb" "#include " if test "x$ac_cv_have_decl_ucp_worker_flush_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLUSH_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_request_check_status" "ac_cv_have_decl_ucp_request_check_status" "#include " if test "x$ac_cv_have_decl_ucp_request_check_status" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_REQUEST_CHECK_STATUS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nb" "ac_cv_have_decl_ucp_put_nb" "#include " if test "x$ac_cv_have_decl_ucp_put_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nb" "ac_cv_have_decl_ucp_get_nb" "#include " if test "x$ac_cv_have_decl_ucp_get_nb" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NB $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_put_nbx" "ac_cv_have_decl_ucp_put_nbx" "#include " if test "x$ac_cv_have_decl_ucp_put_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PUT_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_get_nbx" "ac_cv_have_decl_ucp_get_nbx" "#include " if test "x$ac_cv_have_decl_ucp_get_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_GET_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_atomic_op_nbx" "ac_cv_have_decl_ucp_atomic_op_nbx" "#include " if test "x$ac_cv_have_decl_ucp_atomic_op_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_OP_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_ep_flush_nbx" "ac_cv_have_decl_ucp_ep_flush_nbx" "#include " if test "x$ac_cv_have_decl_ucp_ep_flush_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_EP_FLUSH_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_events" "ac_cv_have_decl_ucm_test_events" "#include " if test "x$ac_cv_have_decl_ucm_test_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucm_test_external_events" "ac_cv_have_decl_ucm_test_external_events" "#include " if test "x$ac_cv_have_decl_ucm_test_external_events" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCM_TEST_EXTERNAL_EVENTS $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_AND" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_AND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_AND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_OR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_OR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_OR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_POST_OP_XOR" "ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_POST_OP_XOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_POST_OP_XOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FAND" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FAND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FAND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_ATOMIC_FETCH_OP_FXOR" "ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" "#include " if test "x$ac_cv_have_decl_UCP_ATOMIC_FETCH_OP_FXOR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATOMIC_FETCH_OP_FXOR $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" "#include " if test "x$ac_cv_have_decl_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_PARAM_FIELD_ESTIMATED_NUM_PPN $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_FLAG_IGNORE_REQUEST_LEAK $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_OP_ATTR_FLAG_MULTI_SEND" "ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" "#include " if test "x$ac_cv_have_decl_UCP_OP_ATTR_FLAG_MULTI_SEND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_OP_ATTR_FLAG_MULTI_SEND $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" "#include " if test "x$ac_cv_have_decl_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_WORKER_ADDRESS_FLAGS 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "UCP_ATTR_FIELD_MEMORY_TYPES" "ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" "#include " if test "x$ac_cv_have_decl_UCP_ATTR_FIELD_MEMORY_TYPES" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_ATTR_FIELD_MEMORY_TYPES $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : $as_echo "#define HAVE_UCP_ATTR_MEMORY_TYPES 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "ucp_tag_send_nbx" "ac_cv_have_decl_ucp_tag_send_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_send_sync_nbx" "ac_cv_have_decl_ucp_tag_send_sync_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_send_sync_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_SEND_SYNC_NBX $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "ucp_tag_recv_nbx" "ac_cv_have_decl_ucp_tag_recv_nbx" "#include " if test "x$ac_cv_have_decl_ucp_tag_recv_nbx" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_UCP_TAG_RECV_NBX $ac_have_decl _ACEOF ac_fn_c_check_type "$LINENO" "ucp_request_param_t" "ac_cv_type_ucp_request_param_t" "#include " if test "x$ac_cv_type_ucp_request_param_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UCP_REQUEST_PARAM_T 1 _ACEOF fi fi CPPFLAGS=$old_CPPFLAGS # 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 Transports | tr ' ' '_') ompi_summary_line="Open UCX: $ompi_check_ucx_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 fi fi if test "$ompi_check_ucx_happy" = "yes"; then : sshmem_ucx_CPPFLAGS="$sshmem_ucx_CPPFLAGS $ompi_check_ucx_CPPFLAGS" sshmem_ucx_LDFLAGS="$sshmem_ucx_LDFLAGS $ompi_check_ucx_LDFLAGS" sshmem_ucx_LIBS="$sshmem_ucx_LIBS $ompi_check_ucx_LIBS" $as_echo "#define HAVE_UCX 1" >>confdefs.h sshmem_ucx_happy="yes" else if test ! -z "$with_ucx" && test "$with_ucx" != "no"; then : as_fn_error $? "UCX support requested but not found. Aborting" "$LINENO" 5 fi $as_echo "#define HAVE_UCX 0" >>confdefs.h sshmem_ucx_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 if test "$sshmem_ucx_happy" = "yes"; then : should_build=$should_build else should_build=0 fi # Check for UCX device memory allocation support save_LDFLAGS="$LDFLAGS" save_LIBS="$LIBS" save_CPPFLAGS="$CPPFLAGS" alloc_dm_LDFLAGS=" -L$ompi_check_ucx_libdir/ucx" alloc_dm_LIBS=" -luct_ib" CPPFLAGS+=" $sshmem_ucx_CPPFLAGS" LDFLAGS+=" $sshmem_ucx_LDFLAGS $alloc_dm_LDFLAGS" LIBS+=" $sshmem_ucx_LIBS $alloc_dm_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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { uct_md_h md = ucp_context_find_tl_md((ucp_context_h)NULL, ""); (void)uct_ib_md_alloc_device_mem(md, NULL, NULL, 0, "", NULL); uct_ib_md_release_device_mem(NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: UCX device memory allocation is supported" >&5 $as_echo "$as_me: UCX device memory allocation is supported" >&6;} $as_echo "#define HAVE_UCX_DEVICE_MEM 1" >>confdefs.h sshmem_ucx_LIBS+=" $alloc_dm_LIBS" sshmem_ucx_LDFLAGS+=" $alloc_dm_LDFLAGS" else { $as_echo "$as_me:${as_lineno-$LINENO}: UCX device memory allocation is not supported" >&5 $as_echo "$as_me: UCX device memory allocation is not supported" >&6;} fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" # substitute in the things needed to build ucx opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/sshmem/ucx/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components ucx" if test "$compile_mode" = "dso" ; then dso_components="$dso_components ucx" else if test "sshmem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sshmem/ucx/lib${OSHMEM_LIB_PREFIX}mca_sshmem_ucx.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sshmem/ucx/libmca_sshmem_ucx.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sshmem_ucx_component;" >> $outfile.extern echo " &mca_sshmem_ucx_component, " >> $outfile.struct static_components="$static_components ucx" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:ucx can compile" >&5 $as_echo_n "checking if MCA component sshmem:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sshmem" = "ucx" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_sshmem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sshmem component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sshmem" = "ucx" ; then as_fn_error $? "*** sshmem component ucx was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$sshmem_ucx_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $sshmem_ucx_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $sshmem_ucx_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$sshmem_ucx_WRAPPER_EXTRA_LIBS" = ""; 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_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 $sshmem_ucx_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $sshmem_ucx_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$sshmem_ucx_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $sshmem_ucx_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring sshmem_ucx_WRAPPER_EXTRA_CPPFLAGS ($sshmem_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring sshmem_ucx_WRAPPER_EXTRA_CPPFLAGS ($sshmem_ucx_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:ucx can compile" >&5 $as_echo_n "checking if MCA component sshmem:ucx can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sshmem" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "ucx" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ucx\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"ucx\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components ucx" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_sshmem_ucx_DSO=1 else BUILD_oshmem_sshmem_ucx_DSO=0 fi if test "$BUILD_oshmem_sshmem_ucx_DSO" = "1"; then MCA_BUILD_oshmem_sshmem_ucx_DSO_TRUE= MCA_BUILD_oshmem_sshmem_ucx_DSO_FALSE='#' else MCA_BUILD_oshmem_sshmem_ucx_DSO_TRUE='#' MCA_BUILD_oshmem_sshmem_ucx_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode opal_show_subsubsubtitle "MCA component sshmem:verbs (m4 configuration macro)" opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed" component_path="$srcdir/oshmem/mca/sshmem/verbs" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "verbs" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sshmem" = "1"; then : want_component=0 fi if test "$DISABLE_sshmem_verbs" = "1"; then : want_component=0 fi if test "$want_component" = "1"; then : should_build=$components_looking_for_succeed else should_build=0 fi # Allow the component to override the build mode if it really wants to. # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE SHARED_FRAMEWORK="$DSO_sshmem" SHARED_COMPONENT="$DSO_sshmem_verbs" STATIC_FRAMEWORK="$STATIC_sshmem" STATIC_COMPONENT="$STATIC_sshmem_verbs" shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sshmem:verbs compile mode" >&5 $as_echo_n "checking for MCA component sshmem:verbs compile mode... " >&6; } if test "$DIRECT_sshmem" = "verbs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi # try to configure the component ac_config_files="$ac_config_files oshmem/mca/sshmem/verbs/Makefile" # do we have the verbs shm stuff? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want verbs shared memory support" >&5 $as_echo_n "checking if want verbs shared memory support... " >&6; } # Check whether --enable-verbs-sshmem was given. if test "${enable_verbs_sshmem+set}" = set; then : enableval=$enable_verbs_sshmem; fi if test "$enable_verbs_sshmem" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } oshmem_verbs_sm_build_verbs=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&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 oshmem_verbs_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=\"oshmem_verbs_msg\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Setup the --with switches to allow users to specify where # verbs stuff lives. if test -z "$opal_check_openib_happy" ; then # # Add padding to OpenIB header # # Check whether --enable-openib-control-hdr-padding was given. if test "${enable_openib_control_hdr_padding+set}" = set; then : enableval=$enable_openib_control_hdr_padding; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to add padding to the openib BTL control header" >&5 $as_echo_n "checking if want to add padding to the openib BTL control header... " >&6; } if test "$enable_openib_control_hdr_padding" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ompi_openib_pad_hdr=1 elif test "$enable_openib_control_hdr_padding" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ompi_openib_pad_hdr=0 else # # Enable padding for SPARC platforms by default because the # btl will segv otherwise. Keep padding disabled for other # platforms since there are some performance implications with # padding on for those platforms. # case "${host}" in sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (enabled by default on SPARC)" >&5 $as_echo "yes (enabled by default on SPARC)" >&6; } ompi_openib_pad_hdr=1 ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ompi_openib_pad_hdr=0 ;; esac fi cat >>confdefs.h <<_ACEOF #define OPAL_OPENIB_PAD_HDR $ompi_openib_pad_hdr _ACEOF if test "$opal_want_verbs" = "no"; then : opal_check_openib_happy="no" else opal_check_openib_happy="yes" fi ompi_check_openib_oshmem_verbs_save_CPPFLAGS="$CPPFLAGS" ompi_check_openib_oshmem_verbs_save_LDFLAGS="$LDFLAGS" ompi_check_openib_oshmem_verbs_save_LIBS="$LIBS" if test "$opal_check_openib_happy" = "yes"; then : for ac_header in fcntl.h sys/poll.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&5 $as_echo "$as_me: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&2;} opal_check_openib_happy="no" fi done fi if test "$opal_check_openib_happy" = "yes"; then : opal_check_package_opal_check_openib_save_CPPFLAGS="$CPPFLAGS" opal_check_package_opal_check_openib_save_LDFLAGS="$LDFLAGS" opal_check_package_opal_check_openib_save_LIBS="$LIBS" opal_check_package_opal_check_openib_orig_CPPFLAGS="$opal_check_openib_CPPFLAGS" opal_check_package_opal_check_openib_orig_LDFLAGS="$opal_check_openib_LDFLAGS" opal_check_package_opal_check_openib_orig_LIBS="$opal_check_openib_LIBS" # This is stolen from autoconf to peek under the covers to get the # cache variable for the library check. one should not copy this # code into other places unless you want much pain and suffering # 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_infiniband_verbs_h # get rid of the trailing slash(es) dir_prefix=$(echo $opal_verbs_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 infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_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_infiniband_verbs_h fi fi if test "$opal_check_package_header_happy" = "no"; then : if test "$dir_prefix" != ""; then : opal_check_openib_CPPFLAGS="$opal_check_openib_CPPFLAGS -I$dir_prefix/include" CPPFLAGS="$CPPFLAGS -I$dir_prefix/include" fi for ac_header in infiniband/verbs.h do : ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_VERBS_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_ibv_open_device opal_check_package_lib_happy="no" if test "$opal_verbs_libdir" != ""; then : # libdir was specified - search only there opal_check_openib_LDFLAGS="$opal_check_openib_LDFLAGS -L$opal_verbs_libdir" LDFLAGS="$LDFLAGS -L$opal_verbs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_verbs_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device 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 libibverbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libibverbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ibv_open_device (void); int main(int argc, char *argv[]) { ibv_open_device (); 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:402986: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_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:402993: \$? = $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 ibverbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ibverbs" >&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, libibverbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&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 ibverbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ibverbs" # 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 libibverbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ibverbs" # 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_ibv_open_device" != "no" && test "$ac_cv_search_ibv_open_device" != "none required"; then : opal_check_openib_LIBS="$ac_cv_search_ibv_open_device " else opal_check_openib_LIBS="" 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_ibv_open_device opal_check_package_lib_happy="no" if test "$opal_verbs_libdir" != ""; then : # libdir was specified - search only there opal_check_openib_LDFLAGS="$opal_check_openib_LDFLAGS -L$opal_verbs_libdir" LDFLAGS="$LDFLAGS -L$opal_verbs_libdir" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi else # libdir was not specified - go through search path opal_check_package_libdir="$opal_verbs_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device fi fi fi if test "$opal_check_package_lib_happy" = "no"; then : if test "$opal_check_package_libdir" != ""; then : opal_check_openib_LDFLAGS="$opal_check_openib_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 ibv_open_device" >&5 $as_echo_n "checking for library containing ibv_open_device... " >&6; } if ${ac_cv_search_ibv_open_device+:} 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 ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF for ac_lib in '' ibverbs; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ibv_open_device=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_ibv_open_device+:} false; then : break fi done if ${ac_cv_search_ibv_open_device+:} false; then : else ac_cv_search_ibv_open_device=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5 $as_echo "$ac_cv_search_ibv_open_device" >&6; } ac_res=$ac_cv_search_ibv_open_device 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_check_openib_save_LDFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" unset ac_cv_search_ibv_open_device 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 libibverbs requires libnl v1 or v3" >&5 $as_echo_n "checking if libibverbs requires libnl v1 or v3... " >&6; } cat > conftest_c.$ac_ext << EOF extern void ibv_open_device (void); int main(int argc, char *argv[]) { ibv_open_device (); 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:403711: $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_LIBS" >&5 $CC -o conftest $CFLAGS $CPPFLAGS conftest_c.$ac_ext $LDFLAGS -libverbs $LIBS $opal_check_openib_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:403718: \$? = $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 ibverbs" >&5 $as_echo "$as_me: WARNING: Could not link a simple program with lib ibverbs" >&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, libibverbs links to both libnl and libnl-3." >&5 $as_echo "$as_me: WARNING: Unfortunately, libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&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 ibverbs requires libnl" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv3_libs requires libnl-3 whereas ibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv1_libs="$opal_libnlv1_libs ibverbs" # 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 libibverbs requires libnl-3" >&5 $as_echo "$as_me: WARNING: libnl version conflict: $opal_libnlv1_libs requires libnl whereas libibverbs 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 libibverbs (not Open MPI)." >&5 $as_echo "$as_me: WARNING: This is an error in libibverbs (not Open MPI)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI will therefore skip using libibverbs." >&5 $as_echo "$as_me: WARNING: Open MPI will therefore skip using libibverbs." >&2;} libnl_sane=0 else opal_libnlv3_libs="$opal_libnlv3_libs ibverbs" # 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_ibv_open_device" != "no" && test "$ac_cv_search_ibv_open_device" != "none required"; then : opal_check_openib_LIBS="$ac_cv_search_ibv_open_device " else opal_check_openib_LIBS="" 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_check_openib_happy="yes" else opal_check_openib_CPPFLAGS="$opal_check_package_opal_check_openib_orig_CPPFLAGS" opal_check_openib_LDFLAGS="$opal_check_package_opal_check_openib_orig_LDFLAGS" opal_check_openib_LIBS="$opal_check_package_opal_check_openib_orig_LIBS" opal_check_openib_happy="no" fi CPPFLAGS="$opal_check_package_opal_check_openib_save_CPPFLAGS" LDFLAGS="$opal_check_package_opal_check_openib_save_LDFLAGS" LIBS="$opal_check_package_opal_check_openib_save_LIBS" fi CPPFLAGS="$CPPFLAGS $opal_check_openib_CPPFLAGS" LDFLAGS="$LDFLAGS $opal_check_openib_LDFLAGS" LIBS="$LIBS $opal_check_openib_LIBS" if test "$opal_check_openib_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to ibv_create_cq" >&5 $as_echo_n "checking number of arguments to ibv_create_cq... " >&6; } if ${ompi_cv_func_ibv_create_cq_args+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ibv_create_cq(NULL, 0, NULL, NULL, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ompi_cv_func_ibv_create_cq_args=5 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ibv_create_cq(NULL, 0, NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ompi_cv_func_ibv_create_cq_args=3 else ompi_cv_func_ibv_create_cq_args="unknown" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_cv_func_ibv_create_cq_args" >&5 $as_echo "$ompi_cv_func_ibv_create_cq_args" >&6; } if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not determine number of args to ibv_create_cq." >&5 $as_echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building component." >&5 $as_echo "$as_me: WARNING: Not building component." >&2;} opal_check_openib_happy="no" else cat >>confdefs.h <<_ACEOF #define OPAL_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args _ACEOF fi fi # # OpenIB dynamic SL # # Check whether --enable-openib-dynamic-sl was given. if test "${enable_openib_dynamic_sl+set}" = set; then : enableval=$enable_openib_dynamic_sl; fi # Set these up so that we can do an AC_DEFINE below # (unconditionally) opal_check_openib_have_xrc=0 opal_check_openib_have_xrc_domains=0 opal_check_openib_have_opensm_devel=0 # If we have the openib stuff available, find out what we've got if test "$opal_check_openib_happy" = "yes"; then : ac_fn_c_check_decl "$LINENO" "IBV_EVENT_CLIENT_REREGISTER" "ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" "#include " if test "x$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_ACCESS_SO" "ac_cv_have_decl_IBV_ACCESS_SO" "#include " if test "x$ac_cv_have_decl_IBV_ACCESS_SO" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ACCESS_SO $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "IBV_ATOMIC_HCA" "ac_cv_have_decl_IBV_ATOMIC_HCA" "#include " if test "x$ac_cv_have_decl_IBV_ATOMIC_HCA" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ATOMIC_HCA $ac_have_decl _ACEOF for ac_func in ibv_get_device_list ibv_resize_cq do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # struct ibv_device.transport_type was added in OFED v1.2 ac_fn_c_check_member "$LINENO" "struct ibv_device" "transport_type" "ac_cv_member_struct_ibv_device_transport_type" "#include " if test "x$ac_cv_member_struct_ibv_device_transport_type" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1 _ACEOF fi # We have to check functions both exits *and* are declared # since some distro ship broken ibverbs devel headers # IBV_DEVICE_XRC is common to all OFED versions # ibv_create_xrc_rcv_qp was added in OFED 1.3 # ibv_cmd_open_xrcd (aka XRC Domains) was added in OFED 3.12 if test "$enable_connectx_xrc" = "yes"; then ac_fn_c_check_decl "$LINENO" "IBV_DEVICE_XRC" "ac_cv_have_decl_IBV_DEVICE_XRC" "#include " if test "x$ac_cv_have_decl_IBV_DEVICE_XRC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_DEVICE_XRC $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : opal_check_openib_have_xrc=1 opal_check_openib_have_xrc_domains=1 fi fi if test "$enable_connectx_xrc" = "yes" \ && test $opal_check_openib_have_xrc -eq 1; then ac_fn_c_check_decl "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_have_decl_ibv_create_xrc_rcv_qp" "#include " if test "x$ac_cv_have_decl_ibv_create_xrc_rcv_qp" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_CREATE_XRC_RCV_QP $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : for ac_func in ibv_create_xrc_rcv_qp do : ac_fn_c_check_func "$LINENO" "ibv_create_xrc_rcv_qp" "ac_cv_func_ibv_create_xrc_rcv_qp" if test "x$ac_cv_func_ibv_create_xrc_rcv_qp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IBV_CREATE_XRC_RCV_QP 1 _ACEOF else opal_check_openib_have_xrc=0 fi done else opal_check_openib_have_xrc=0 fi fi if test "$enable_connectx_xrc" = "yes" \ && test $opal_check_openib_have_xrc_domains -eq 1; then ac_fn_c_check_decl "$LINENO" "ibv_cmd_open_xrcd" "ac_cv_have_decl_ibv_cmd_open_xrcd" "#include " if test "x$ac_cv_have_decl_ibv_cmd_open_xrcd" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_CMD_OPEN_XRCD $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : ac_fn_c_check_decl "$LINENO" "IBV_SRQT_XRC" "ac_cv_have_decl_IBV_SRQT_XRC" "#include " if test "x$ac_cv_have_decl_IBV_SRQT_XRC" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_SRQT_XRC $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : for ac_func in ibv_cmd_open_xrcd do : ac_fn_c_check_func "$LINENO" "ibv_cmd_open_xrcd" "ac_cv_func_ibv_cmd_open_xrcd" if test "x$ac_cv_func_ibv_cmd_open_xrcd" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_IBV_CMD_OPEN_XRCD 1 _ACEOF else opal_check_openib_have_xrc_domains=0 fi done else opal_check_openib_have_xrc_domains=0 fi else opal_check_openib_have_xrc_domains=0 fi # XRC and XRC Domains should be considered as exclusive if test "$opal_check_openib_have_xrc" -eq 1 && \ test "$opal_check_openib_have_xrc_domains" -eq 1; then opal_check_openib_have_xrc=0 fi fi if test "no" != "$enable_openib_dynamic_sl"; then # We need ib_types.h file, which is installed with opensm-devel # package. However, ib_types.h has a bad include directive, # which will cause AC_CHECK_HEADER to fail. # So instead, we will look for another file that is also # installed as part of opensm-devel package and included in # ib_types.h, but it doesn't include any other IB-related files. ac_fn_c_check_header_mongrel "$LINENO" "infiniband/complib/cl_types_osd.h" "ac_cv_header_infiniband_complib_cl_types_osd_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_complib_cl_types_osd_h" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cl_map_init in -losmcomp" >&5 $as_echo_n "checking for cl_map_init in -losmcomp... " >&6; } if ${ac_cv_lib_osmcomp_cl_map_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-losmcomp $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 cl_map_init (); int main () { return cl_map_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_osmcomp_cl_map_init=yes else ac_cv_lib_osmcomp_cl_map_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_osmcomp_cl_map_init" >&5 $as_echo "$ac_cv_lib_osmcomp_cl_map_init" >&6; } if test "x$ac_cv_lib_osmcomp_cl_map_init" = xyes; then : opal_check_openib_have_opensm_devel=1 fi fi # Abort if dynamic SL support was explicitly requested but opensm-devel # package wasn't found. Otherwise, OMPI will be built w/o dynamic SL. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if can use dynamic SL support" >&5 $as_echo_n "checking if can use dynamic SL support... " >&6; } if test "$opal_check_openib_have_opensm_devel" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$enable_openib_dynamic_sl" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-openib-dynamic-sl was specified but the" >&5 $as_echo "$as_me: WARNING: --enable-openib-dynamic-sl was specified but the" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: appropriate header/library files could not be found" >&5 $as_echo "$as_me: WARNING: appropriate header/library files could not be found" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please install opensm-devel if you need dynamic SL support" >&5 $as_echo "$as_me: WARNING: Please install opensm-devel if you need dynamic SL support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi # Check support for RDMAoE devices oshmem_verbs_have_rdmaoe=0 ac_fn_c_check_decl "$LINENO" "IBV_LINK_LAYER_ETHERNET" "ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" "#include " if test "x$ac_cv_have_decl_IBV_LINK_LAYER_ETHERNET" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_LINK_LAYER_ETHERNET $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : oshmem_verbs_have_rdmaoe=1 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RDMAoE support is enabled" >&5 $as_echo_n "checking if RDMAoE support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_RDMAOE $oshmem_verbs_have_rdmaoe _ACEOF if test "1" = "$oshmem_verbs_have_rdmaoe"; 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 # Check to see if works. It is known to # create problems on some platforms with some compilers (e.g., # RHEL4U3 with the PGI 32 bit compiler). Use undocumented (in AC # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test # will fail if the header is present but not compilable, *but it # will not print the big scary warning*. See # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html. if test "$opal_check_openib_happy" = "yes"; then : for ac_header in infiniband/driver.h do : ac_fn_c_check_header_compile "$LINENO" "infiniband/driver.h" "ac_cv_header_infiniband_driver_h" "$ac_includes_default " if test "x$ac_cv_header_infiniband_driver_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INFINIBAND_DRIVER_H 1 _ACEOF fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectX XRC support is enabled" >&5 $as_echo_n "checking if ConnectX XRC support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CONNECTX_XRC $opal_check_openib_have_xrc _ACEOF if test "1" = "$opal_check_openib_have_xrc"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ConnectIB XRC support is enabled" >&5 $as_echo_n "checking if ConnectIB XRC support is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_HAVE_CONNECTX_XRC_DOMAINS $opal_check_openib_have_xrc_domains _ACEOF if test "1" = "$opal_check_openib_have_xrc_domains"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic SL is enabled" >&5 $as_echo_n "checking if dynamic SL is enabled... " >&6; } cat >>confdefs.h <<_ACEOF #define OPAL_ENABLE_DYNAMIC_SL $opal_check_openib_have_opensm_devel _ACEOF if test "1" = "$opal_check_openib_have_opensm_devel"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } oshmem_verbs_LIBS="-losmcomp $oshmem_verbs_LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$opal_verbs_dir"; then : openib_include_dir="/usr/include" else openib_include_dir="$opal_verbs_dir/include" fi opal_check_openib_CPPFLAGS="$opal_check_openib_CPPFLAGS -I$openib_include_dir/infiniband" CPPFLAGS="$ompi_check_openib_oshmem_verbs_save_CPPFLAGS" LDFLAGS="$ompi_check_openib_oshmem_verbs_save_LDFLAGS" LIBS="$ompi_check_openib_oshmem_verbs_save_LIBS" # 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 Transports | tr ' ' '_') ompi_summary_line="OpenFabrics Verbs: $opal_check_openib_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 # 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 oshmem_verbs_have_xrc=$opal_check_openib_have_xrc oshmem_verbs_have_xrc_domains=$opal_check_openib_have_xrc_domains oshmem_verbs_have_opensm_devel=$opal_check_openib_have_opensm_devel if test "$opal_check_openib_happy" = "yes"; then : oshmem_verbs_CPPFLAGS="$oshmem_verbs_CPPFLAGS $opal_check_openib_CPPFLAGS" oshmem_verbs_LDFLAGS="$oshmem_verbs_LDFLAGS $opal_check_openib_LDFLAGS" oshmem_verbs_LIBS="$oshmem_verbs_LIBS $opal_check_openib_LIBS" oshmem_verbs_sm_build_verbs=1 else if test "$opal_want_verbs" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Verbs support requested (via --with-verbs) but not found." >&5 $as_echo "$as_me: WARNING: Verbs support requested (via --with-verbs) but not found." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&5 $as_echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&2;} as_fn_error $? "Aborting." "$LINENO" 5 fi oshmem_verbs_sm_build_verbs=0 fi fi # substitute in the things needed to build # ibv_reg_shared_mr was added in MOFED 1.8 oshmem_have_mpage=0 # If we have the oshmem_verbs stuff available, find out what we've got if test "$oshmem_verbs_sm_build_verbs" = "1"; then : OSHMEM_LIBSHMEM_EXTRA_LDFLAGS="$OSHMEM_LIBSHMEM_EXTRA_LDFLAGS $oshmem_verbs_LDFLAGS" OSHMEM_LIBSHMEM_EXTRA_LIBS="$OSHMEM_LIBSHMEM_EXTRA_LIBS $oshmem_verbs_LIBS" oshmem_verbs_save_CPPFLAGS="$CPPFLAGS" oshmem_verbs_save_LDFLAGS="$LDFLAGS" oshmem_verbs_save_LIBS="$LIBS" CPPFLAGS="$CPPFLAGS $oshmem_verbs_CPPFLAGS" LDFLAGS="$LDFLAGS $oshmem_verbs_LDFLAGS" LIBS="$LIBS $oshmem_verbs_LIBS" ac_fn_c_check_decl "$LINENO" "IBV_ACCESS_ALLOCATE_MR" "ac_cv_have_decl_IBV_ACCESS_ALLOCATE_MR" "#include " if test "x$ac_cv_have_decl_IBV_ACCESS_ALLOCATE_MR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ACCESS_ALLOCATE_MR $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : oshmem_have_mpage=2 fi ac_fn_c_check_decl "$LINENO" "IBV_ACCESS_SHARED_MR_USER_READ" "ac_cv_have_decl_IBV_ACCESS_SHARED_MR_USER_READ" "#include " if test "x$ac_cv_have_decl_IBV_ACCESS_SHARED_MR_USER_READ" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_ACCESS_SHARED_MR_USER_READ $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : oshmem_have_mpage=2 fi ac_fn_c_check_decl "$LINENO" "IBV_EXP_ACCESS_ALLOCATE_MR" "ac_cv_have_decl_IBV_EXP_ACCESS_ALLOCATE_MR" "#include " if test "x$ac_cv_have_decl_IBV_EXP_ACCESS_ALLOCATE_MR" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EXP_ACCESS_ALLOCATE_MR $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : oshmem_have_mpage=3 fi ac_fn_c_check_decl "$LINENO" "IBV_EXP_ACCESS_SHARED_MR_USER_READ" "ac_cv_have_decl_IBV_EXP_ACCESS_SHARED_MR_USER_READ" "#include " if test "x$ac_cv_have_decl_IBV_EXP_ACCESS_SHARED_MR_USER_READ" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_IBV_EXP_ACCESS_SHARED_MR_USER_READ $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : oshmem_have_mpage=3 fi CPPFLAGS="$oshmem_verbs_save_CPPFLAGS" LDFLAGS="$oshmem_verbs_save_LDFLAGS" LIBS="$oshmem_verbs_save_LIBS" if test "x$oshmem_have_mpage" = "x0"; then oshmem_verbs_sm_build_verbs=0 fi fi cat >>confdefs.h <<_ACEOF #define MPAGE_ENABLE $oshmem_have_mpage _ACEOF exp_access_happy=0 exp_reg_mr_happy=0 if test "$oshmem_have_mpage" = "3"; then : oshmem_verbs_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wno-strict-prototypes -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct ibv_exp_reg_shared_mr_in in_smr; uint64_t access_flags = IBV_EXP_ACCESS_SHARED_MR_USER_READ | IBV_EXP_ACCESS_SHARED_MR_USER_WRITE | IBV_EXP_ACCESS_SHARED_MR_GROUP_READ | IBV_EXP_ACCESS_SHARED_MR_GROUP_WRITE | IBV_EXP_ACCESS_SHARED_MR_OTHER_READ | IBV_EXP_ACCESS_SHARED_MR_OTHER_WRITE; in_smr.exp_access = access_flags; ibv_exp_reg_shared_mr(&in_smr); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else oshmem_verbs_sm_build_verbs=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$oshmem_verbs_save_CFLAGS" ac_fn_c_check_member "$LINENO" "struct ibv_exp_reg_shared_mr_in" "exp_access" "ac_cv_member_struct_ibv_exp_reg_shared_mr_in_exp_access" "#include " if test "x$ac_cv_member_struct_ibv_exp_reg_shared_mr_in_exp_access" = xyes; then : exp_access_happy=1 fi ac_fn_c_check_member "$LINENO" "struct ibv_exp_reg_mr_in" "create_flags" "ac_cv_member_struct_ibv_exp_reg_mr_in_create_flags" "#include " if test "x$ac_cv_member_struct_ibv_exp_reg_mr_in_create_flags" = xyes; then : exp_reg_mr_happy=1 fi fi cat >>confdefs.h <<_ACEOF #define MPAGE_HAVE_SMR_EXP_ACCESS $exp_access_happy _ACEOF cat >>confdefs.h <<_ACEOF #define MPAGE_HAVE_IBV_EXP_REG_MR_CREATE_FLAGS $exp_reg_mr_happy _ACEOF if test "$enable_verbs_sshmem" = "yes" && test "$oshmem_verbs_sm_build_verbs" = "0"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: VERBS shared memory support requested but not found" >&5 $as_echo "$as_me: WARNING: VERBS shared memory support requested but not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "$oshmem_verbs_sm_build_verbs" = "1"; then : should_build=$should_build else should_build=0 fi cat >>confdefs.h <<_ACEOF #define OSHMEM_SSHMEM_VERBS $oshmem_verbs_sm_build_verbs _ACEOF opal_show_verbose "OPAL_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build" if test "$should_build" = "1"; then : # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/sshmem/verbs/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components verbs" if test "$compile_mode" = "dso" ; then dso_components="$dso_components verbs" else if test "sshmem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sshmem/verbs/lib${OSHMEM_LIB_PREFIX}mca_sshmem_verbs.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sshmem/verbs/libmca_sshmem_verbs.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sshmem_verbs_component;" >> $outfile.extern echo " &mca_sshmem_verbs_component, " >> $outfile.struct static_components="$static_components verbs" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:verbs can compile" >&5 $as_echo_n "checking if MCA component sshmem:verbs can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sshmem" = "verbs" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_sshmem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sshmem component verbs was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sshmem" = "verbs" ; then as_fn_error $? "*** sshmem component verbs was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then if test "$sshmem_verbs_WRAPPER_EXTRA_LDFLAGS" = ""; 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_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 $sshmem_verbs_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 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 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 $sshmem_verbs_WRAPPER_EXTRA_LDFLAGS; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 fi if test "$sshmem_verbs_WRAPPER_EXTRA_LIBS" = ""; 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_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 $sshmem_verbs_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # 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 $sshmem_verbs_WRAPPER_EXTRA_LIBS; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... if test "$sshmem_verbs_WRAPPER_EXTRA_CPPFLAGS" != ""; then : stop_at_first=0 if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then : if test "$with_devel_headers" = "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 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 $sshmem_verbs_WRAPPER_EXTRA_CPPFLAGS; 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 ${mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_cppflags"; then : mca_wrapper_extra_cppflags=$arg else mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring sshmem_verbs_WRAPPER_EXTRA_CPPFLAGS ($sshmem_verbs_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5 $as_echo "$as_me: WARNING: ignoring sshmem_verbs_WRAPPER_EXTRA_CPPFLAGS ($sshmem_verbs_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;} fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:verbs can compile" >&5 $as_echo_n "checking if MCA component sshmem:verbs can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sshmem" = "verbs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"verbs\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"verbs\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "verbs" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"verbs\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"verbs\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # add component to all component list all_components="$all_components verbs" fi # set the AM_CONDITIONAL on how we should build if test "$compile_mode" = "dso"; then : BUILD_oshmem_sshmem_verbs_DSO=1 else BUILD_oshmem_sshmem_verbs_DSO=0 fi if test "$BUILD_oshmem_sshmem_verbs_DSO" = "1"; then MCA_BUILD_oshmem_sshmem_verbs_DSO_TRUE= MCA_BUILD_oshmem_sshmem_verbs_DSO_FALSE='#' else MCA_BUILD_oshmem_sshmem_verbs_DSO_TRUE='#' MCA_BUILD_oshmem_sshmem_verbs_DSO_FALSE= fi if test "$should_build" = "1"; then : components_last_result=1 else components_last_result=0 fi unset compile_mode # configure components that provide their own configure script. # It would be really hard to run these for "find first that # works", so we don't :) if test "1" != "0"; then : for component_path in $srcdir/oshmem/mca/sshmem/* ; do component="`basename $component_path`" if test -d $component_path && test -x $component_path/configure ; then opal_show_subsubsubtitle "MCA component sshmem:$component (need to configure)" opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=" component_path="$srcdir/oshmem/mca/sshmem/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no opal_ignore file # - there is an opal_ignore, but there is an empty opal_unignore # - there is an opal_ignore, but username is in opal_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.opal_ignore ; then # If there is an opal_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.opal_unignore ; then # if there is an empty opal_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.opal_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.opal_unignore`" ; then want_component=1 fi fi # if this component type is direct and we are not it, we don't want # to be built. Otherwise, we do want to be built. if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "$component" ; then want_component=1 else want_component=0 fi fi fi # if we were explicitly disabled, don't build :) if test "$DISABLE_sshmem" = "1"; then : want_component=0 fi str="DISABLED_COMPONENT_CHECK=\$DISABLE_sshmem_$component" eval $str if test "$DISABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi SHARED_FRAMEWORK="$DSO_sshmem" str="SHARED_COMPONENT=\$DSO_sshmem_$component" eval $str STATIC_FRAMEWORK="$STATIC_sshmem" str="STATIC_COMPONENT=\$STATIC_sshmem_$component" eval $str shared_mode_override=static # Setup for either shared or static if test "$STATIC_FRAMEWORK" = "1" || \ test "$STATIC_COMPONENT" = "1" || \ test "$STATIC_all" = "1" ; then compile_mode="static" elif test "$shared_mode_override" = "dso" || \ test "$SHARED_FRAMEWORK" = "1" || \ test "$SHARED_COMPONENT" = "1" || \ test "$DSO_all" = "1"; then compile_mode="dso" else compile_mode="static" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component sshmem:$component compile mode" >&5 $as_echo_n "checking for MCA component sshmem:$component compile mode... " >&6; } if test "$DIRECT_sshmem" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5 $as_echo "$compile_mode - direct" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5 $as_echo "$compile_mode" >&6; } fi opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build" if test "$should_build" = "1" ; 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 subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; 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=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # # Invoke configure in a specific subdirectory. # # oshmem/mca/sshmem/$component is the directory to invoke in # $opal_subdir_args is the list of arguments to pass # should_build=1 is actions to execute upon success # should_build=0 is actions to execute upon failure # subdir_dir="oshmem/mca/sshmem/$component" subdir_args="$opal_subdir_args" subdir_success="should_build=1" subdir_failure="should_build=0" # # Sanity checks # if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then { $as_echo "$as_me:${as_lineno-$LINENO}: OPAL configuring in $subdir_dir" >&5 $as_echo "$as_me: OPAL configuring in $subdir_dir" >&6;} # # Gotta check where srcdir is for VPATH builds. If srcdir is not # ., then we need to mkdir the subdir. Otherwise, we can just cd # into it. # case $srcdir in .) ;; *) { case $subdir_dir in [\\/]* | ?:[\\/]* ) total_dir=;; *) total_dir=.;; esac temp=$subdir_dir for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do case $dir_part in # Skip DOS drivespec ?:) total_dir=$dir_part ;; *) total_dir=$total_dir/$dir_part test -d "$total_dir" || mkdir "$total_dir" || as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5 ;; esac done; } if test -d ./$subdir_dir; then :; else as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5 fi ;; esac # # Move into the target directory # subdir_parent=`pwd` cd $subdir_dir # # Make a "../" for each directory in $subdir_dir. # subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` # # Construct the --srcdir argument # case $srcdir in .) # In place subdir_srcdir="$srcdir" ;; [\\/]* | ?:[\\/]* ) # Absolute path subdir_srcdir="$srcdir/$subdir_dir" ;; *) # Relative path subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ;; esac # # Construct the --cache-file argument # # BWB - subdir caching is a pain since we change CFLAGS and all that. # Just disable it for now subdir_cache_file="/dev/null" # # Invoke the configure script in the subdirectory # sub_configure="$SHELL '$subdir_srcdir/configure'" { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5 $as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;} eval "$sub_configure $subdir_args \ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking" if test "$?" = "0"; then eval $subdir_success { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} else eval $subdir_failure { $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5 $as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} fi # # Go back to the topdir # cd $subdir_parent fi # # Clean up # # 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 opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build" fi if test "$should_build" = "1" ; then # do some extra work to pass flags back from the # top-level configure, the way a configure.m4 # component would. infile="$srcdir/oshmem/mca/sshmem/all_components/post_configure.sh" if test -f $infile; then # First check for the ABORT tag line="`$GREP ABORT= $infile | cut -d= -f2-`" if test -n "$line" && test "$line" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5 $as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} as_fn_error $? "cannot continue" "$LINENO" 5 fi line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then sshmem_all_components_WRAPPER_EXTRA_LDFLAGS="$line" fi line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" eval "line=$line" if test -n "$line"; then sshmem_all_components_WRAPPER_EXTRA_LIBS="$line" fi fi # See if it dropped an output file for us to pick up some # shell variables in. infile="$srcdir/oshmem/mca/sshmem/$component/post_configure.sh" # Add this subdir to the mast list of all MCA component subdirs all_components="$all_components $component" if test "$compile_mode" = "dso" ; then dso_components="$dso_components $component" else if test "sshmem" = "common"; then # Static libraries in "common" frameworks are installed, and # therefore must obey the $FRAMEWORK_LIB_PREFIX that was # set. static_ltlibs="mca/sshmem/$component/lib${OSHMEM_LIB_PREFIX}mca_sshmem_$component.la $static_ltlibs" else # Other frameworks do not have to obey the # $FRAMEWORK_LIB_PREFIX prefix. static_ltlibs="mca/sshmem/$component/libmca_sshmem_$component.la $static_ltlibs" fi echo "extern const mca_base_component_t mca_sshmem_$component_component;" >> $outfile.extern echo " &mca_sshmem_$component_component, " >> $outfile.struct static_components="$static_components $component" fi # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:$component can compile" >&5 $as_echo_n "checking if MCA component sshmem:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test -f $infile; then # check for direct call header to include. This will be # AC_SUBSTed later. if test "$DIRECT_sshmem" = "$component" ; then if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" str="MCA_oshmem_sshmem_DIRECT_CALL_HEADER=$line" eval $str else as_fn_error $? "*** sshmem component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi else # were we supposed to have found something in the # post_configure.sh, but the file didn't exist? if test "$DIRECT_sshmem" = "$component" ; then as_fn_error $? "*** sshmem component $component was supposed to be direct-called, but *** does not appear to support direct calling. *** Aborting" "$LINENO" 5 fi fi # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if # component didn't have it's own configure script (in which case, # we know it didn't set LDFLAGS and LIBS because it can't) Don't # have to do this if the component is building dynamically, # because it will link against these (without a dependency from # libmpi.so to these flags) if test "$compile_mode" = "static"; then str="line=\$sshmem_$component_WRAPPER_EXTRA_LDFLAGS" eval "$str" # 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 $line; 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 ${mca_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 "$mca_wrapper_extra_ldflags"; then : mca_wrapper_extra_ldflags=$arg else mca_wrapper_extra_ldflags="$mca_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 str="line=\$sshmem_$component_WRAPPER_EXTRA_LIBS" eval "$str" # 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 $line; 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 ${mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$mca_wrapper_extra_libs"; then : mca_wrapper_extra_libs=$arg else mca_wrapper_extra_libs="$mca_wrapper_extra_libs $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 # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script # component can never be used in a STOP_AT_FIRST framework, we # don't have to implement the else clause in the literal check... else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component sshmem:$component can compile" >&5 $as_echo_n "checking if MCA component sshmem:$component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # If this component was requested as the default for this # type, then abort. if test "$with_sshmem" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5 $as_echo "$as_me: WARNING: This component was selected as the default" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test ! -z "$DIRECT_sshmem" ; then if test "$DIRECT_sshmem" = "$component" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5 $as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi fi done fi MCA_oshmem_sshmem_ALL_COMPONENTS="$all_components" MCA_oshmem_sshmem_STATIC_COMPONENTS="$static_components" MCA_oshmem_sshmem_DSO_COMPONENTS="$dso_components" MCA_oshmem_sshmem_STATIC_LTLIBS="$static_ltlibs" MCA_oshmem_sshmem_ALL_SUBDIRS= for item in $all_components ; do MCA_oshmem_sshmem_ALL_SUBDIRS="$MCA_oshmem_sshmem_ALL_SUBDIRS mca/sshmem/$item" done MCA_oshmem_sshmem_STATIC_SUBDIRS= for item in $static_components ; do MCA_oshmem_sshmem_STATIC_SUBDIRS="$MCA_oshmem_sshmem_STATIC_SUBDIRS mca/sshmem/$item" done MCA_oshmem_sshmem_DSO_SUBDIRS= for item in $dso_components ; do MCA_oshmem_sshmem_DSO_SUBDIRS="$MCA_oshmem_sshmem_DSO_SUBDIRS mca/sshmem/$item" done # Create the final .h file that will be included in the type's # top-level glue. This lists all the static components. We don't # need to do this for "common". if test "sshmem" != "common"; then cat > $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern unset all_components static_components dso_components outfile outfile_real # note that mca_wrapper_extra_* is a running list, and we take checkpoints at the end of our project oshmem_mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags" oshmem_mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags" oshmem_mca_wrapper_extra_libs="$mca_wrapper_extra_libs" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of endpoint array" >&5 $as_echo_n "checking for size of endpoint array... " >&6; } if test -z "$ompi_endpoint_tag_counter" || test "$ompi_endpoint_tag_counter" = "0"; then : as_fn_error $? "Endpoint index count is 0. This means no MPI communication would be possible. Aborting." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ompi_endpoint_tag_counter" >&5 $as_echo "$ompi_endpoint_tag_counter" >&6; } cat >>confdefs.h <<_ACEOF #define OMPI_PROC_ENDPOINT_TAG_MAX $ompi_endpoint_tag_counter _ACEOF # Last minute disable of OpenSHMEM if we didn't find any oshmem SPMLs if test "$project_oshmem_amc" = "true" && test $OSHMEM_FOUND_WORKING_SPML -eq 0 ; then # We don't have an spml that will work, so oshmem wouldn't be able # to run an application. Therefore, don't build the oshmem layer. if test "$enable_oshmem" != "no" && test -n "$enable_oshmem"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No spml found, so OpenSHMEM layer will be non functional." >&5 $as_echo "$as_me: WARNING: No spml found, so OpenSHMEM layer will be non functional." >&2;} as_fn_error $? "Aborting because OpenSHMEM requested, but can not build." "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No spml found. Will not build OpenSHMEM layer." >&5 $as_echo "$as_me: WARNING: No spml found. Will not build OpenSHMEM layer." >&2;} project_oshmem_amc="false (no spml)" # now for the hard part, remove project from list that will # run. This is a hack, but it works as long as the project # remains named "oshmem". MCA_PROJECT_SUBDIRS=`echo "$MCA_PROJECT_SUBDIRS" | sed -e 's/oshmem//'` fi fi # checkpoint results cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache ################################## # CUDA: part two ################################## # This is somewhat gross to have a configure check for a common MCA # component outside of the normal MCA checks, but this check must come # after the opal DL MCA checks have done. Someday this could perhaps # be done better by having some kind of "run this check at the end of # all other MCA checks" hook...? # We cannot have CUDA support without OPAL DL support. Error out # if the user wants CUDA but we do not have OPAL DL support. if test $OPAL_HAVE_DL_SUPPORT -eq 0 && \ test "$opal_check_cuda_happy" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-cuda was specified, but dlopen support is disabled." >&5 $as_echo "$as_me: WARNING: --with-cuda was specified, but dlopen support is disabled." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must reconfigure Open MPI with dlopen (\"dl\") support." >&5 $as_echo "$as_me: WARNING: You must reconfigure Open MPI with dlopen (\"dl\") support." >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi ################################## # MPI Extended Interfaces ################################## opal_show_title "Extended MPI interfaces setup" # Note that we do not build DSO's here -- we *only* build convenience # libraries that get slurped into higher-level libraries # # [default -- no option given] = No extensions built # --enable-mpi-ext=[,]*EXTENSION[,]* # # Check whether --enable-mpi-ext was given. if test "${enable_mpi_ext+set}" = set; then : enableval=$enable_mpi_ext; fi # print some nice messages about what we're about to do... { $as_echo "$as_me:${as_lineno-$LINENO}: checking for available MPI Extensions" >&5 $as_echo_n "checking for available MPI Extensions... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: affinity, cr, cuda, pcollreq" >&5 $as_echo "affinity, cr, cuda, pcollreq" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MPI extension should be enabled" >&5 $as_echo_n "checking which MPI extension should be enabled... " >&6; } if test "$enable_mpi_ext" = "" || \ test "$enable_mpi_ext" = "yes" || \ test "$enable_mpi_ext" = "all"; then enable_mpi_ext=all msg="All Available Extensions" str="`echo ENABLE_EXT_ALL=1`" eval $str else ifs_save="$IFS" IFS="${IFS}$PATH_SEPARATOR," msg= for item in $enable_mpi_ext; do type="`echo $item | cut -s -f1 -d-`" if test -z $type ; then type=$item fi str="`echo ENABLE_${type}=1 | sed s/-/_/g`" eval $str msg="$item $msg" done IFS="$ifs_save" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&6; } unset msg outdir=ompi/include # first create the output include directory mkdir -p $outdir ############### # C Bindings ############### # remove any previously generated #include files mpi_ext_h=$outdir/mpi-ext.h rm -f $mpi_ext_h # Create the final mpi-ext.h file. cat > $mpi_ext_h < $mpif_ext_h < $mpiusempi_ext_h < $mpiusempif08_ext_h <&5 $as_echo_n "checking if MPI Extension $component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } tmp=AFFINITY component_define="OMPI_HAVE_MPI_EXT_${tmp}" ############### # C Bindings ############### test_header="${srcdir}/ompi/mpiext/${component}/c/mpiext_${component}_c.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension $component has C bindings" >&5 $as_echo_n "checking if MPI Extension $component has C bindings... " >&6; } if test ! -e "$test_header" && test ! -e "$test_header.in"; then : # There *must* be C bindings { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C bindings for MPI extensions are required" >&5 $as_echo "$as_me: WARNING: C bindings for MPI extensions are required" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (required)" >&5 $as_echo "yes (required)" >&6; } # Save the list of headers and convenience libraries that this # component will output OMPI_MPIEXT_ALL="$OMPI_MPIEXT_ALL $component" OMPI_MPIEXT_C="$OMPI_MPIEXT_C $component" # JMS Where is this needed? EXT_C_HEADERS="$EXT_C_HEADERS mpiext/c/mpiext_${component}_c.h" component_header="mpiext_${component}_c.h" cat >> $mpi_ext_h <&5 $as_echo_n "checking if MPI Extension $component has mpif.h bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } enabled_mpifh=1 EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/mpiext_${component}_mpifh.h" OMPI_MPIEXT_MPIFH="$OMPI_MPIEXT_MPIFH $component" # Per https://github.com/open-mpi/ompi/pull/6030, we will end # up putting a user-visible Fortran "include" statement in the # installed mpif-ext.h file, and we therefore have to ensure # that the total length of the line is <=72 characters. Doing # a little math here: # # leading indent spaces: 6 chars # "include '": 9 chars # "openmpi/mpiext/mpiext_NAME_mpifh.h": without NAME, 30 chars # trailing "'": 1 char # # 6+9+30+1 = 46 chars overhead. # 72-46 = 26 characters left for NAME. # # It would be exceedingly unusual to have an MPI extension # name > 26 characters. But just in case, put a check here # to make sure: error out if the MPI extension name is > 26 # characters (because otherwise it'll just be a really weird / # hard to diagnose compile error when a user tries to compile # a Fortran MPI application that includes `mpif-ext.h`). len=`echo $component | wc -c` result=`expr $len \> 26` if test $result -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI affinity name too long: $component" >&5 $as_echo "$as_me: WARNING: MPI affinity name too long: $component" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: For esoteric reasons, MPI Extensions with mpif.h bindings must have a name that is <= 26 characters" >&5 $as_echo "$as_me: WARNING: For esoteric reasons, MPI Extensions with mpif.h bindings must have a name that is <= 26 characters" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi component_header="mpiext_${component}_mpifh.h" cat >> $mpif_ext_h <&5 $as_echo "no" >&6; } cat >> $mpif_ext_h <&5 $as_echo_n "checking if MPI Extension $component has \"use mpi\" bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } EXT_USEMPI_HEADERS="$EXT_USEMPI_HEADERS mpiext/$component/use-mpi/mpiext_${component}_usempi.h" OMPI_MPIEXT_USEMPI="$OMPI_MPIEXT_USEMPI $component" component_header="mpiext_${component}_usempi.h" cat >> $mpiusempi_ext_h <> $mpiusempi_ext_h <> $mpiusempi_ext_h <&5 $as_echo "no" >&6; } cat >> $mpiusempi_ext_h <&5 $as_echo_n "checking if MPI Extension $component has \"use mpi_f08\" bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } EXT_USEMPIF08_HEADERS="$EXT_USEMPIF08_HEADERS mpiext/$component/use-mpi-f08/mpiext_${component}_usempif08.h" OMPI_MPIEXT_USEMPIF08="$OMPI_MPIEXT_USEMPIF08 $component" component_header="mpiext_${component}_usempif08.h" cat >> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <&5 $as_echo "no" >&6; } cat >> $mpiusempif08_ext_h <&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 $mpiext_affinity_LDFLAGS; 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 ${ompi_mca_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 "$ompi_mca_wrapper_extra_ldflags"; then : ompi_mca_wrapper_extra_ldflags=$arg else ompi_mca_wrapper_extra_ldflags="$ompi_mca_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 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 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 $mpiext_affinity_WRAPPER_EXTRA_LDFLAGS; 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 ${ompi_mca_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 "$ompi_mca_wrapper_extra_ldflags"; then : ompi_mca_wrapper_extra_ldflags=$arg else ompi_mca_wrapper_extra_ldflags="$ompi_mca_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 fi if test "$mpiext_affinity_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mpiext_affinity_LIBS; 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 ${ompi_mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_libs"; then : ompi_mca_wrapper_extra_libs=$arg else ompi_mca_wrapper_extra_libs="$ompi_mca_wrapper_extra_libs $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 # 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 $mpiext_affinity_WRAPPER_EXTRA_LIBS; 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 ${ompi_mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_libs"; then : ompi_mca_wrapper_extra_libs=$arg else ompi_mca_wrapper_extra_libs="$ompi_mca_wrapper_extra_libs $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 if test "$mpiext_affinity_WRAPPER_EXTRA_CPPFLAGS" != ""; 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_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 $mpiext_affinity_WRAPPER_EXTRA_CPPFLAGS; 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 ${ompi_mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_cppflags"; then : ompi_mca_wrapper_extra_cppflags=$arg else ompi_mca_wrapper_extra_cppflags="$ompi_mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension affinity can compile" >&5 $as_echo_n "checking if MPI Extension affinity can compile... " >&6; } # Need to add this component to the "all" list so that it is # included in DIST SUBDIRS OMPI_MPIEXT_ALL="$OMPI_MPIEXT_ALL affinity" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi opal_show_subsubsubtitle "MPI Extension cr" component=cr component_path="$srcdir/ompi/mpiext/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no ompi_ignore file # - there is an ompi_ignore, but there is an empty ompi_unignore # - there is an ompi_ignore, but username is in ompi_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.ompi_ignore ; then # If there is an ompi_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.ompi_unignore ; then # if there is an empty ompi_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.ompi_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.ompi_unignore`" ; then want_component=1 fi fi fi # if we asked for everything, then allow it to build if able str="ENABLED_COMPONENT_CHECK=\$ENABLE_EXT_ALL" eval $str if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then # if we were explicitly disabled, don't build :) str="ENABLED_COMPONENT_CHECK=\$ENABLE_${component}" eval $str if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi # try to configure the component ac_config_files="$ac_config_files ompi/mpiext/cr/Makefile" ac_config_files="$ac_config_files ompi/mpiext/cr/c/Makefile" # 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_mpi_ext_cr_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_mpi_ext_cr_happy\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # If we don't want FT, don't compile this extention if test "$ENABLE_cr" = "1" || \ test "$ENABLE_EXT_ALL" = "1"; then : ompi_mpi_ext_cr_happy=1 else ompi_mpi_ext_cr_happy=0 fi if test "$ompi_mpi_ext_cr_happy" = "1" && \ test "$opal_want_ft_cr" = "1"; then : should_build=${should_build} else # Error if the user specifically asked for this extension, # but we can't build it. if test "$ENABLE_cr" = "1"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Requested \"cr\" MPI cr, but cannot build it" >&5 $as_echo "$as_me: WARNING: Requested \"cr\" MPI cr, but cannot build it" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: because fault tolerance is not enabled." >&5 $as_echo "$as_me: WARNING: because fault tolerance is not enabled." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Try again with --enable-ft" >&5 $as_echo "$as_me: WARNING: Try again with --enable-ft" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi should_build=0 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 $should_build -eq 1; then : component=cr # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension $component can compile" >&5 $as_echo_n "checking if MPI Extension $component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } tmp=CR component_define="OMPI_HAVE_MPI_EXT_${tmp}" ############### # C Bindings ############### test_header="${srcdir}/ompi/mpiext/${component}/c/mpiext_${component}_c.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension $component has C bindings" >&5 $as_echo_n "checking if MPI Extension $component has C bindings... " >&6; } if test ! -e "$test_header" && test ! -e "$test_header.in"; then : # There *must* be C bindings { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C bindings for MPI extensions are required" >&5 $as_echo "$as_me: WARNING: C bindings for MPI extensions are required" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (required)" >&5 $as_echo "yes (required)" >&6; } # Save the list of headers and convenience libraries that this # component will output OMPI_MPIEXT_ALL="$OMPI_MPIEXT_ALL $component" OMPI_MPIEXT_C="$OMPI_MPIEXT_C $component" # JMS Where is this needed? EXT_C_HEADERS="$EXT_C_HEADERS mpiext/c/mpiext_${component}_c.h" component_header="mpiext_${component}_c.h" cat >> $mpi_ext_h <&5 $as_echo_n "checking if MPI Extension $component has mpif.h bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } enabled_mpifh=1 EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/mpiext_${component}_mpifh.h" OMPI_MPIEXT_MPIFH="$OMPI_MPIEXT_MPIFH $component" # Per https://github.com/open-mpi/ompi/pull/6030, we will end # up putting a user-visible Fortran "include" statement in the # installed mpif-ext.h file, and we therefore have to ensure # that the total length of the line is <=72 characters. Doing # a little math here: # # leading indent spaces: 6 chars # "include '": 9 chars # "openmpi/mpiext/mpiext_NAME_mpifh.h": without NAME, 30 chars # trailing "'": 1 char # # 6+9+30+1 = 46 chars overhead. # 72-46 = 26 characters left for NAME. # # It would be exceedingly unusual to have an MPI extension # name > 26 characters. But just in case, put a check here # to make sure: error out if the MPI extension name is > 26 # characters (because otherwise it'll just be a really weird / # hard to diagnose compile error when a user tries to compile # a Fortran MPI application that includes `mpif-ext.h`). len=`echo $component | wc -c` result=`expr $len \> 26` if test $result -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI cr name too long: $component" >&5 $as_echo "$as_me: WARNING: MPI cr name too long: $component" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: For esoteric reasons, MPI Extensions with mpif.h bindings must have a name that is <= 26 characters" >&5 $as_echo "$as_me: WARNING: For esoteric reasons, MPI Extensions with mpif.h bindings must have a name that is <= 26 characters" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi component_header="mpiext_${component}_mpifh.h" cat >> $mpif_ext_h <&5 $as_echo "no" >&6; } cat >> $mpif_ext_h <&5 $as_echo_n "checking if MPI Extension $component has \"use mpi\" bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } EXT_USEMPI_HEADERS="$EXT_USEMPI_HEADERS mpiext/$component/use-mpi/mpiext_${component}_usempi.h" OMPI_MPIEXT_USEMPI="$OMPI_MPIEXT_USEMPI $component" component_header="mpiext_${component}_usempi.h" cat >> $mpiusempi_ext_h <> $mpiusempi_ext_h <> $mpiusempi_ext_h <&5 $as_echo "no" >&6; } cat >> $mpiusempi_ext_h <&5 $as_echo_n "checking if MPI Extension $component has \"use mpi_f08\" bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } EXT_USEMPIF08_HEADERS="$EXT_USEMPIF08_HEADERS mpiext/$component/use-mpi-f08/mpiext_${component}_usempif08.h" OMPI_MPIEXT_USEMPIF08="$OMPI_MPIEXT_USEMPIF08 $component" component_header="mpiext_${component}_usempif08.h" cat >> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <&5 $as_echo "no" >&6; } cat >> $mpiusempif08_ext_h <&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 $mpiext_cr_LDFLAGS; 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 ${ompi_mca_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 "$ompi_mca_wrapper_extra_ldflags"; then : ompi_mca_wrapper_extra_ldflags=$arg else ompi_mca_wrapper_extra_ldflags="$ompi_mca_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 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 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 $mpiext_cr_WRAPPER_EXTRA_LDFLAGS; 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 ${ompi_mca_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 "$ompi_mca_wrapper_extra_ldflags"; then : ompi_mca_wrapper_extra_ldflags=$arg else ompi_mca_wrapper_extra_ldflags="$ompi_mca_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 fi if test "$mpiext_cr_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mpiext_cr_LIBS; 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 ${ompi_mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_libs"; then : ompi_mca_wrapper_extra_libs=$arg else ompi_mca_wrapper_extra_libs="$ompi_mca_wrapper_extra_libs $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 # 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 $mpiext_cr_WRAPPER_EXTRA_LIBS; 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 ${ompi_mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_libs"; then : ompi_mca_wrapper_extra_libs=$arg else ompi_mca_wrapper_extra_libs="$ompi_mca_wrapper_extra_libs $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 if test "$mpiext_cr_WRAPPER_EXTRA_CPPFLAGS" != ""; 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_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 $mpiext_cr_WRAPPER_EXTRA_CPPFLAGS; 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 ${ompi_mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_cppflags"; then : ompi_mca_wrapper_extra_cppflags=$arg else ompi_mca_wrapper_extra_cppflags="$ompi_mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension cr can compile" >&5 $as_echo_n "checking if MPI Extension cr can compile... " >&6; } # Need to add this component to the "all" list so that it is # included in DIST SUBDIRS OMPI_MPIEXT_ALL="$OMPI_MPIEXT_ALL cr" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi opal_show_subsubsubtitle "MPI Extension cuda" component=cuda component_path="$srcdir/ompi/mpiext/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no ompi_ignore file # - there is an ompi_ignore, but there is an empty ompi_unignore # - there is an ompi_ignore, but username is in ompi_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.ompi_ignore ; then # If there is an ompi_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.ompi_unignore ; then # if there is an empty ompi_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.ompi_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.ompi_unignore`" ; then want_component=1 fi fi fi # if we asked for everything, then allow it to build if able str="ENABLED_COMPONENT_CHECK=\$ENABLE_EXT_ALL" eval $str if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then # if we were explicitly disabled, don't build :) str="ENABLED_COMPONENT_CHECK=\$ENABLE_${component}" eval $str if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi # try to configure the component ac_config_files="$ac_config_files ompi/mpiext/cuda/Makefile" ac_config_files="$ac_config_files ompi/mpiext/cuda/c/Makefile" ac_config_headers="$ac_config_headers ompi/mpiext/cuda/c/mpiext_cuda_c.h" cat >>confdefs.h <<_ACEOF #define MPIX_CUDA_AWARE_SUPPORT $CUDA_SUPPORT _ACEOF # We compile this whether CUDA support was requested or not. It allows # us to to detect if we have CUDA support. if test "$ENABLE_cuda" = "1" || \ test "$ENABLE_EXT_ALL" = "1"; then : should_build=${should_build} else should_build=0 fi if test $should_build -eq 1; then : component=cuda # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension $component can compile" >&5 $as_echo_n "checking if MPI Extension $component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } tmp=CUDA component_define="OMPI_HAVE_MPI_EXT_${tmp}" ############### # C Bindings ############### test_header="${srcdir}/ompi/mpiext/${component}/c/mpiext_${component}_c.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension $component has C bindings" >&5 $as_echo_n "checking if MPI Extension $component has C bindings... " >&6; } if test ! -e "$test_header" && test ! -e "$test_header.in"; then : # There *must* be C bindings { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C bindings for MPI extensions are required" >&5 $as_echo "$as_me: WARNING: C bindings for MPI extensions are required" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (required)" >&5 $as_echo "yes (required)" >&6; } # Save the list of headers and convenience libraries that this # component will output OMPI_MPIEXT_ALL="$OMPI_MPIEXT_ALL $component" OMPI_MPIEXT_C="$OMPI_MPIEXT_C $component" # JMS Where is this needed? EXT_C_HEADERS="$EXT_C_HEADERS mpiext/c/mpiext_${component}_c.h" component_header="mpiext_${component}_c.h" cat >> $mpi_ext_h <&5 $as_echo_n "checking if MPI Extension $component has mpif.h bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } enabled_mpifh=1 EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/mpiext_${component}_mpifh.h" OMPI_MPIEXT_MPIFH="$OMPI_MPIEXT_MPIFH $component" # Per https://github.com/open-mpi/ompi/pull/6030, we will end # up putting a user-visible Fortran "include" statement in the # installed mpif-ext.h file, and we therefore have to ensure # that the total length of the line is <=72 characters. Doing # a little math here: # # leading indent spaces: 6 chars # "include '": 9 chars # "openmpi/mpiext/mpiext_NAME_mpifh.h": without NAME, 30 chars # trailing "'": 1 char # # 6+9+30+1 = 46 chars overhead. # 72-46 = 26 characters left for NAME. # # It would be exceedingly unusual to have an MPI extension # name > 26 characters. But just in case, put a check here # to make sure: error out if the MPI extension name is > 26 # characters (because otherwise it'll just be a really weird / # hard to diagnose compile error when a user tries to compile # a Fortran MPI application that includes `mpif-ext.h`). len=`echo $component | wc -c` result=`expr $len \> 26` if test $result -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI cuda name too long: $component" >&5 $as_echo "$as_me: WARNING: MPI cuda name too long: $component" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: For esoteric reasons, MPI Extensions with mpif.h bindings must have a name that is <= 26 characters" >&5 $as_echo "$as_me: WARNING: For esoteric reasons, MPI Extensions with mpif.h bindings must have a name that is <= 26 characters" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi component_header="mpiext_${component}_mpifh.h" cat >> $mpif_ext_h <&5 $as_echo "no" >&6; } cat >> $mpif_ext_h <&5 $as_echo_n "checking if MPI Extension $component has \"use mpi\" bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } EXT_USEMPI_HEADERS="$EXT_USEMPI_HEADERS mpiext/$component/use-mpi/mpiext_${component}_usempi.h" OMPI_MPIEXT_USEMPI="$OMPI_MPIEXT_USEMPI $component" component_header="mpiext_${component}_usempi.h" cat >> $mpiusempi_ext_h <> $mpiusempi_ext_h <> $mpiusempi_ext_h <&5 $as_echo "no" >&6; } cat >> $mpiusempi_ext_h <&5 $as_echo_n "checking if MPI Extension $component has \"use mpi_f08\" bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } EXT_USEMPIF08_HEADERS="$EXT_USEMPIF08_HEADERS mpiext/$component/use-mpi-f08/mpiext_${component}_usempif08.h" OMPI_MPIEXT_USEMPIF08="$OMPI_MPIEXT_USEMPIF08 $component" component_header="mpiext_${component}_usempif08.h" cat >> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <&5 $as_echo "no" >&6; } cat >> $mpiusempif08_ext_h <&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 $mpiext_cuda_LDFLAGS; 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 ${ompi_mca_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 "$ompi_mca_wrapper_extra_ldflags"; then : ompi_mca_wrapper_extra_ldflags=$arg else ompi_mca_wrapper_extra_ldflags="$ompi_mca_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 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 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 $mpiext_cuda_WRAPPER_EXTRA_LDFLAGS; 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 ${ompi_mca_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 "$ompi_mca_wrapper_extra_ldflags"; then : ompi_mca_wrapper_extra_ldflags=$arg else ompi_mca_wrapper_extra_ldflags="$ompi_mca_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 fi if test "$mpiext_cuda_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mpiext_cuda_LIBS; 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 ${ompi_mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_libs"; then : ompi_mca_wrapper_extra_libs=$arg else ompi_mca_wrapper_extra_libs="$ompi_mca_wrapper_extra_libs $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 # 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 $mpiext_cuda_WRAPPER_EXTRA_LIBS; 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 ${ompi_mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_libs"; then : ompi_mca_wrapper_extra_libs=$arg else ompi_mca_wrapper_extra_libs="$ompi_mca_wrapper_extra_libs $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 if test "$mpiext_cuda_WRAPPER_EXTRA_CPPFLAGS" != ""; 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_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 $mpiext_cuda_WRAPPER_EXTRA_CPPFLAGS; 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 ${ompi_mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_cppflags"; then : ompi_mca_wrapper_extra_cppflags=$arg else ompi_mca_wrapper_extra_cppflags="$ompi_mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension cuda can compile" >&5 $as_echo_n "checking if MPI Extension cuda can compile... " >&6; } # Need to add this component to the "all" list so that it is # included in DIST SUBDIRS OMPI_MPIEXT_ALL="$OMPI_MPIEXT_ALL cuda" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi opal_show_subsubsubtitle "MPI Extension pcollreq" component=pcollreq component_path="$srcdir/ompi/mpiext/$component" want_component=0 # build if: # - the component type is direct and we are that component # - there is no ompi_ignore file # - there is an ompi_ignore, but there is an empty ompi_unignore # - there is an ompi_ignore, but username is in ompi_unignore if test -d $component_path ; then # decide if we want the component to be built or not. This # is spread out because some of the logic is a little complex # and test's syntax isn't exactly the greatest. We want to # build the component by default. want_component=1 if test -f $component_path/.ompi_ignore ; then # If there is an ompi_ignore file, don't build # the component. Note that this decision can be # overridden by the unignore logic below. want_component=0 fi if test -f $component_path/.ompi_unignore ; then # if there is an empty ompi_unignore, that is # equivalent to having your userid in the unignore file. # If userid is in the file, unignore the ignore file. if test ! -s $component_path/.ompi_unignore ; then want_component=1 elif test ! -z "`$GREP $OPAL_CONFIGURE_USER $component_path/.ompi_unignore`" ; then want_component=1 fi fi fi # if we asked for everything, then allow it to build if able str="ENABLED_COMPONENT_CHECK=\$ENABLE_EXT_ALL" eval $str if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then # if we were explicitly disabled, don't build :) str="ENABLED_COMPONENT_CHECK=\$ENABLE_${component}" eval $str if test ! "$ENABLED_COMPONENT_CHECK" = "1" ; then want_component=0 fi fi if test "$want_component" = "1"; then : should_build=1 else should_build=0 fi # try to configure the component ac_config_files="$ac_config_files ompi/mpiext/pcollreq/Makefile ompi/mpiext/pcollreq/c/Makefile ompi/mpiext/pcollreq/c/profile/Makefile ompi/mpiext/pcollreq/mpif-h/Makefile ompi/mpiext/pcollreq/mpif-h/profile/Makefile ompi/mpiext/pcollreq/use-mpi/Makefile ompi/mpiext/pcollreq/use-mpi-f08/Makefile" if test "$ENABLE_pcollreq" = "1" || \ test "$ENABLE_EXT_ALL" = "1"; then : should_build=${should_build} else should_build=0 fi if test $should_build -eq 1; then : component=pcollreq # Output pretty results { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension $component can compile" >&5 $as_echo_n "checking if MPI Extension $component can compile... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } tmp=PCOLLREQ component_define="OMPI_HAVE_MPI_EXT_${tmp}" ############### # C Bindings ############### test_header="${srcdir}/ompi/mpiext/${component}/c/mpiext_${component}_c.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension $component has C bindings" >&5 $as_echo_n "checking if MPI Extension $component has C bindings... " >&6; } if test ! -e "$test_header" && test ! -e "$test_header.in"; then : # There *must* be C bindings { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C bindings for MPI extensions are required" >&5 $as_echo "$as_me: WARNING: C bindings for MPI extensions are required" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (required)" >&5 $as_echo "yes (required)" >&6; } # Save the list of headers and convenience libraries that this # component will output OMPI_MPIEXT_ALL="$OMPI_MPIEXT_ALL $component" OMPI_MPIEXT_C="$OMPI_MPIEXT_C $component" # JMS Where is this needed? EXT_C_HEADERS="$EXT_C_HEADERS mpiext/c/mpiext_${component}_c.h" component_header="mpiext_${component}_c.h" cat >> $mpi_ext_h <&5 $as_echo_n "checking if MPI Extension $component has mpif.h bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } enabled_mpifh=1 EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/mpiext_${component}_mpifh.h" OMPI_MPIEXT_MPIFH="$OMPI_MPIEXT_MPIFH $component" # Per https://github.com/open-mpi/ompi/pull/6030, we will end # up putting a user-visible Fortran "include" statement in the # installed mpif-ext.h file, and we therefore have to ensure # that the total length of the line is <=72 characters. Doing # a little math here: # # leading indent spaces: 6 chars # "include '": 9 chars # "openmpi/mpiext/mpiext_NAME_mpifh.h": without NAME, 30 chars # trailing "'": 1 char # # 6+9+30+1 = 46 chars overhead. # 72-46 = 26 characters left for NAME. # # It would be exceedingly unusual to have an MPI extension # name > 26 characters. But just in case, put a check here # to make sure: error out if the MPI extension name is > 26 # characters (because otherwise it'll just be a really weird / # hard to diagnose compile error when a user tries to compile # a Fortran MPI application that includes `mpif-ext.h`). len=`echo $component | wc -c` result=`expr $len \> 26` if test $result -eq 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI pcollreq name too long: $component" >&5 $as_echo "$as_me: WARNING: MPI pcollreq name too long: $component" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: For esoteric reasons, MPI Extensions with mpif.h bindings must have a name that is <= 26 characters" >&5 $as_echo "$as_me: WARNING: For esoteric reasons, MPI Extensions with mpif.h bindings must have a name that is <= 26 characters" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi component_header="mpiext_${component}_mpifh.h" cat >> $mpif_ext_h <&5 $as_echo "no" >&6; } cat >> $mpif_ext_h <&5 $as_echo_n "checking if MPI Extension $component has \"use mpi\" bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } EXT_USEMPI_HEADERS="$EXT_USEMPI_HEADERS mpiext/$component/use-mpi/mpiext_${component}_usempi.h" OMPI_MPIEXT_USEMPI="$OMPI_MPIEXT_USEMPI $component" component_header="mpiext_${component}_usempi.h" cat >> $mpiusempi_ext_h <> $mpiusempi_ext_h <> $mpiusempi_ext_h <&5 $as_echo "no" >&6; } cat >> $mpiusempi_ext_h <&5 $as_echo_n "checking if MPI Extension $component has \"use mpi_f08\" bindings... " >&6; } if test -e "$test_header" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } EXT_USEMPIF08_HEADERS="$EXT_USEMPIF08_HEADERS mpiext/$component/use-mpi-f08/mpiext_${component}_usempif08.h" OMPI_MPIEXT_USEMPIF08="$OMPI_MPIEXT_USEMPIF08 $component" component_header="mpiext_${component}_usempif08.h" cat >> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <> $mpiusempif08_ext_h <&5 $as_echo "no" >&6; } cat >> $mpiusempif08_ext_h <&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 $mpiext_pcollreq_LDFLAGS; 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 ${ompi_mca_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 "$ompi_mca_wrapper_extra_ldflags"; then : ompi_mca_wrapper_extra_ldflags=$arg else ompi_mca_wrapper_extra_ldflags="$ompi_mca_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 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 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 $mpiext_pcollreq_WRAPPER_EXTRA_LDFLAGS; 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 ${ompi_mca_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 "$ompi_mca_wrapper_extra_ldflags"; then : ompi_mca_wrapper_extra_ldflags=$arg else ompi_mca_wrapper_extra_ldflags="$ompi_mca_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 fi if test "$mpiext_pcollreq_WRAPPER_EXTRA_LIBS" = ""; 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_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 $mpiext_pcollreq_LIBS; 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 ${ompi_mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_libs"; then : ompi_mca_wrapper_extra_libs=$arg else ompi_mca_wrapper_extra_libs="$ompi_mca_wrapper_extra_libs $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 # 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 $mpiext_pcollreq_WRAPPER_EXTRA_LIBS; 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 ${ompi_mca_wrapper_extra_libs}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_libs"; then : ompi_mca_wrapper_extra_libs=$arg else ompi_mca_wrapper_extra_libs="$ompi_mca_wrapper_extra_libs $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 if test "$mpiext_pcollreq_WRAPPER_EXTRA_CPPFLAGS" != ""; 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_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 $mpiext_pcollreq_WRAPPER_EXTRA_CPPFLAGS; 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 ${ompi_mca_wrapper_extra_cppflags}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ompi_mca_wrapper_extra_cppflags"; then : ompi_mca_wrapper_extra_cppflags=$arg else ompi_mca_wrapper_extra_cppflags="$ompi_mca_wrapper_extra_cppflags $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 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MPI Extension pcollreq can compile" >&5 $as_echo_n "checking if MPI Extension pcollreq can compile... " >&6; } # Need to add this component to the "all" list so that it is # included in DIST SUBDIRS OMPI_MPIEXT_ALL="$OMPI_MPIEXT_ALL pcollreq" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ############### # C Bindings ############### # Create the final mpi-ext.h file. cat >> $mpi_ext_h <> $mpif_ext_h <> $mpiusempi_ext_h <> $mpiusempif08_ext_h < $outfile < /dev/null 2>&1 if test "$?" != "0"; then mv $outfile $outfile_real else rm -f $outfile fi fi rm -f $outfile.struct $outfile.extern # We have all the results we need. Now put them in various # variables/defines so that others can see the results. OMPI_MPIEXT_ALL_SUBDIRS= for item in $OMPI_MPIEXT_ALL ; do OMPI_MPIEXT_ALL_SUBDIRS="$OMPI_MPIEXT_ALL_SUBDIRS mpiext/$item" done # Make the directory list tmp= for item in $OMPI_MPIEXT_C ; do tmp="$tmp mpiext/$item/c" done OMPI_MPIEXT_C_DIRS=$tmp # Make the list of libraries tmp= for item in $OMPI_MPIEXT_C ; do tmp="$tmp "'$(top_builddir)'"/ompi/mpiext/$item/c/libmpiext_${item}_c.la" done OMPI_MPIEXT_C_LIBS=$tmp # Make the directory list tmp= for item in $OMPI_MPIEXT_MPIFH ; do tmp="$tmp mpiext/$item/mpif-h" done OMPI_MPIEXT_MPIFH_DIRS=$tmp # Make the list of libraries tmp= for item in $OMPI_MPIEXT_MPIFH ; do tmp="$tmp "'$(top_builddir)'"/ompi/mpiext/$item/mpif-h/libmpiext_${item}_mpifh.la" done OMPI_MPIEXT_MPIFH_LIBS=$tmp # Make the directory list tmp= for item in $OMPI_MPIEXT_USEMPI ; do tmp="$tmp mpiext/$item/use-mpi" done OMPI_MPIEXT_USEMPI_DIRS=$tmp # Make the list of libraries tmp= for item in $OMPI_MPIEXT_USEMPI ; do tmp="$tmp "'$(top_builddir)'"/ompi/mpiext/$item/use-mpi/libmpiext_${item}_usempi.la" done OMPI_MPIEXT_USEMPI_LIBS=$tmp # Make the directory list tmp= for item in $OMPI_MPIEXT_USEMPIF08 ; do tmp="$tmp mpiext/$item/use-mpi-f08" done OMPI_MPIEXT_USEMPIF08_DIRS=$tmp # Make the list of libraries tmp= for item in $OMPI_MPIEXT_USEMPIF08 ; do tmp="$tmp "'$(top_builddir)'"/ompi/mpiext/$item/use-mpi-f08/libmpiext_${item}_usempif08.la" done OMPI_MPIEXT_USEMPIF08_LIBS=$tmp comps=`echo $OMPI_MPIEXT_C | sed -e 's/^ \t*//;s/ \t*$//;s/ /, /g'` cat >>confdefs.h <<_ACEOF #define OMPI_MPIEXT_COMPONENTS "$comps" _ACEOF # checkpoint results cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache ################################## # Contributed software ################################## opal_show_title "Contributed software setup" # Option to not build some of the contributed software packages # Check whether --enable-contrib-no-build was given. if test "${enable_contrib_no_build+set}" = set; then : enableval=$enable_contrib_no_build; fi # Parse the list to see what we should not build opal_show_subtitle "Configuring contributed software packages" { $as_echo "$as_me:${as_lineno-$LINENO}: checking which contributed software packages should be disabled" >&5 $as_echo_n "checking which contributed software packages should be disabled... " >&6; } if test "$enable_contrib_no_build" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } as_fn_error $? "*** The enable-contrib-no-build flag requires an explicit list *** of packages to not build. For example, --enable-contrib-no-build=libompitrace" "$LINENO" 5 else ifs_save="$IFS" IFS="${IFS}$PATH_SEPARATOR," msg= for item in $enable_contrib_no_build; do str="`echo DISABLE_contrib_${item}=1 | sed s/-/_/g`" eval $str msg="$item $msg" done IFS="$ifs_save" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 $as_echo "$msg" >&6; } unset msg # List of contrib subdirs to traverse into OMPI_CONTRIB_SUBDIRS= OMPI_CONTRIB_DIST_SUBDIRS= OMPI_MPI_CONTRIBS= # Cycle through each of the software packages and # configure them if not disabled. opal_show_subsubsubtitle "libompitrace (m4 configuration macro)" # Put in a convenient enable/disable switch (it's a little more # user friendly than # --enable-contrib-no-build=, although each # works just as well as the other). # Check whether --enable-libompitrace was given. if test "${enable_libompitrace+set}" = set; then : enableval=$enable_libompitrace; fi if test "x$enable_libompitrace" = xno; then : DISABLE_contrib_libompitrace=yes fi OMPI_CONTRIB_HAPPY=0 if test "$DISABLE_contrib_libompitrace" = "" && test "$DISABLE_contrib_all" = ""; then ac_config_files="$ac_config_files ompi/contrib/libompitrace/Makefile" OMPI_CONTRIB_HAPPY=1 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if contributed component libompitrace can compile" >&5 $as_echo_n "checking if contributed component libompitrace can compile... " >&6; } if test "$OMPI_CONTRIB_HAPPY" = "1"; then OMPI_CONTRIB_SUBDIRS="$OMPI_CONTRIB_SUBDIRS contrib/libompitrace" OMPI_CONTRIB_DIST_SUBDIRS="$OMPI_CONTRIB_DIST_SUBDIRS contrib/libompitrace" if test "$OMPI_MPI_CONTRIBS" = ""; then OMPI_MPI_CONTRIBS=libompitrace else OMPI_MPI_CONTRIBS="libompitrace, $OMPI_MPI_CONTRIBS" fi { $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 this component was requested via command line switch, then abort. if test "x$enable_libompitrace" = xyes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Contributed component \"libompitrace\" failed to configure properly" >&5 $as_echo "$as_me: WARNING: Contributed component \"libompitrace\" failed to configure properly" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was requested via command line switch" >&5 $as_echo "$as_me: WARNING: This component was requested via command line switch" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: disabled via command line switch" >&5 $as_echo "$as_me: disabled via command line switch" >&6;} fi cat >>confdefs.h <<_ACEOF #define OMPI_ENABLE_CONTRIB_libompitrace $OMPI_CONTRIB_HAPPY _ACEOF unset OMPI_CONTRIB_HAPPY # Setup the top-level glue cat >>confdefs.h <<_ACEOF #define OMPI_MPI_CONTRIBS "$OMPI_MPI_CONTRIBS" _ACEOF # checkpoint results cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache ################################## # Visibility ################################## # Check the visibility declspec at the end to avoid problem with # the previous tests that are not necessarily prepared for # the visibility feature. opal_show_title "Symbol visibility feature" # Check if the compiler has support for visibility, like some # versions of gcc, icc Sun Studio cc. # Check whether --enable-visibility was given. if test "${enable_visibility+set}" = set; then : enableval=$enable_visibility; fi opal_visibility_define=0 opal_msg="whether to enable symbol visibility" if test "$enable_visibility" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking $opal_msg" >&5 $as_echo_n "checking $opal_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5 $as_echo "no (disabled)" >&6; } else CFLAGS_orig=$CFLAGS opal_add= case "$opal_c_vendor" in sun) # Check using Sun Studio -xldscope=hidden flag opal_add=-xldscope=hidden CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $opal_add -errwarn=%all" ;; *) # Check using -fvisibility=hidden opal_add=-fvisibility=hidden CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $opal_add -Werror" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $opal_add" >&5 $as_echo_n "checking if $CC supports $opal_add... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include __attribute__((visibility("default"))) int foo; int main () { fprintf(stderr, "Hello, world\n"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if test -s conftest.err; then : $GREP -iq visibility conftest.err # If we find "visibility" in the stderr, then # assume it doesn't work if test "$?" = "0"; then : opal_add= fi fi else opal_add= fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$opal_add" = ""; 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 CFLAGS=$CFLAGS_orig OPAL_VISIBILITY_CFLAGS=$opal_add if test "$opal_add" != "" ; then opal_visibility_define=1 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $opal_msg" >&5 $as_echo_n "checking $opal_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $opal_add)" >&5 $as_echo "yes (via $opal_add)" >&6; } elif test "$enable_visibility" = "yes"; then as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it. Aborting" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking $opal_msg" >&5 $as_echo_n "checking $opal_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5 $as_echo "no (unsupported)" >&6; } fi unset opal_add fi cat >>confdefs.h <<_ACEOF #define OPAL_C_HAVE_VISIBILITY $opal_visibility_define _ACEOF ############################################################################ # Final top-level OMPI configuration ############################################################################ opal_show_title "Final top-level OMPI configuration" ############################################################################ # Libtool: part two # (after C compiler setup = no compiler/linker tests after this) ############################################################################ opal_show_subtitle "Libtool configuration" # Use the undocumented solaris_use_stlport4 libtool variable to turn off any # Cstd/stlport4 linkage. This allows Open MPI to be C++ STL agnostic. if test "x$opal_cv_c_compiler_vendor" = "xsun"; then solaris_use_stlport4="yes" fi # Due to this thread: # http://www.open-mpi.org/community/lists/users/2013/02/21356.php and # a helpful tip from Dave Goodell, set the precious variables for # compilers to "no" that we don't want. Libtool's m4 configry will # interpret this as "I won't be using this language; don't bother # setting it up." Note that we do this only for Fortran; we *don't* # do this for C++, because even if we're not building the MPI C++ # bindings, we *do* still want to setup the mpicxx wrapper if we have # a C++ compiler. if test "$OMPI_TRY_FORTRAN_BINDINGS" = "$OMPI_FORTRAN_NO_BINDINGS"; then : F77=no FC=no fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.6' macro_revision='2.4.6' ltmain=$ac_aux_dir/ltmain.sh # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case $ECHO in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n "$lt_cv_sys_max_cmd_len"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar 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_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$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 AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar 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_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$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_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi 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 test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 $as_echo "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 $as_echo_n "checking for a working dd... " >&6; } if ${ac_cv_path_lt_DD+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in dd; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 $as_echo "$ac_cv_path_lt_DD" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 $as_echo_n "checking how to truncate binary pipes... " >&6; } if ${lt_cv_truncate_bin+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 $as_echo "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt" $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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; 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_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_MANIFEST_TOOL="mt" $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_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" 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 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # Open MPI patched for Darwin / MacOS Big Sur. See # http://lists.gnu.org/archive/html/bug-libtool/2015-07/msg00001.html case ${MACOSX_DEPLOYMENT_TARGET},$host in 10.[012],*|,*powerpc*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; *) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done func_stripname_cnf () { case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; esac } # func_stripname_cnf # Set options enable_dlopen=yes enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AS"; then ac_cv_prog_AS="$AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AS="${ac_tool_prefix}as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AS=$ac_cv_prog_AS if test -n "$AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 $as_echo "$AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AS"; then ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AS="as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 $as_echo "$ac_ct_AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AS" = x; then AS="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AS=$ac_ct_AS fi else AS="$ac_cv_prog_AS" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi ;; esac test -z "$AS" && AS=as test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$OBJDUMP" && OBJDUMP=objdump # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac else pic_mode=default fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac else enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test "${with_aix_soname+set}" = set; then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else if ${lt_cv_with_aix_soname+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 $as_echo "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/${ac_tool_prefix}file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC=$CC ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # Flang compiler *flang) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC -DPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran* | *Studio*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F* | *Studio*Fortran*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} 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_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} 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_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' $wl-bernotok' allow_undefined_flag=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen=shl_load else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen=dlopen else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi fi fi fi fi fi ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report what library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${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 else _lt_caught_CXX_error=yes 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 archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds reload_flag_CXX=$reload_flag reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC compiler_CXX=$CC func_cc_basename $compiler cc_basename=$func_cc_basename_result if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec_CXX='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. always_export_symbols_CXX=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. no_undefined_flag_CXX='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} 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_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} 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_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' $wl-bernotok' allow_undefined_flag_CXX=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' fi archive_cmds_need_lc_CXX=yes archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_CXX=' ' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=yes file_list_spec_CXX='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' enable_shared_with_static_runtimes_CXX=yes # Don't use ranlib old_postinstall_cmds_CXX='chmod 644 $oldlib' postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' export_dynamic_flag_spec_CXX='$wl--export-all-symbols' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec_CXX='' fi link_all_deplibs_CXX=yes allow_undefined_flag_CXX=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" if test yes != "$lt_cv_apple_cc_single_mod"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi else ld_shlibs_CXX=no fi ;; os2*) hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_minus_L_CXX=yes allow_undefined_flag_CXX=unsupported shrext_cmds=.dll archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_CXX=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; haiku*) archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs_CXX=yes ;; hpux9*) hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='$wl-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5].* | *pgcpp\ [1-5].*) prelink_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' old_archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object_CXX=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='$wl-E' whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else ld_shlibs_CXX=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' case $host in osf3*) archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then no_undefined_flag_CXX=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='$wl-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='$wl-z,text' allow_undefined_flag_CXX='$wl-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ '"$old_archive_cmds_CXX" reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ '"$reload_cmds_CXX" ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no GCC_CXX=$GXX LD_CXX=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,-l,R}" and the path. # Remove the spaces. if test x-L = "x$p" || test x-l = "x$p" || test x-R = "x$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX=$prev$p else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX=$prev$p else postdeps_CXX="${postdeps_CXX} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$predep_objects_CXX"; then predep_objects_CXX=$p else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX=$p else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi lt_prog_compiler_pic_CXX='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_CXX='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) # IBM XL 8.0, 9.0 on PPC and BlueGene lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then : else lt_prog_compiler_static_CXX= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' ;; esac ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no else lt_cv_archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec_CXX='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test yes = "$hardcode_automatic_CXX"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct_CXX" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && test no != "$hardcode_minus_L_CXX"; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test relink = "$hardcode_action_CXX" || test yes = "$inherit_rpath_CXX"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi archive_cmds_need_lc_FC=no allow_undefined_flag_FC= always_export_symbols_FC=no archive_expsym_cmds_FC= export_dynamic_flag_spec_FC= hardcode_direct_FC=no hardcode_direct_absolute_FC=no hardcode_libdir_flag_spec_FC= hardcode_libdir_separator_FC= hardcode_minus_L_FC=no hardcode_automatic_FC=no inherit_rpath_FC=no module_cmds_FC= module_expsym_cmds_FC= link_all_deplibs_FC=unknown old_archive_cmds_FC=$old_archive_cmds reload_flag_FC=$reload_flag reload_cmds_FC=$reload_cmds no_undefined_flag_FC= whole_archive_flag_spec_FC= enable_shared_with_static_runtimes_FC=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o objext_FC=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu compiler_FC=$CC func_cc_basename $compiler cc_basename=$func_cc_basename_result if test -n "$compiler"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } GCC_FC=$ac_cv_fc_compiler_gnu LD_FC=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_FC= postdep_objects_FC= predeps_FC= postdeps_FC= compiler_lib_search_path_FC= cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,-l,R}" and the path. # Remove the spaces. if test x-L = "x$p" || test x-l = "x$p" || test x-R = "x$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_FC"; then compiler_lib_search_path_FC=$prev$p else compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_FC"; then postdeps_FC=$prev$p else postdeps_FC="${postdeps_FC} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$predep_objects_FC"; then predep_objects_FC=$p else predep_objects_FC="$predep_objects_FC $p" fi else if test -z "$postdep_objects_FC"; then postdep_objects_FC=$p else postdep_objects_FC="$postdep_objects_FC $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling FC test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case " $postdeps_FC " in *" -lc "*) archive_cmds_need_lc_FC=no ;; esac compiler_lib_search_dirs_FC= if test -n "${compiler_lib_search_path_FC}"; then compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_FC= lt_prog_compiler_pic_FC= lt_prog_compiler_static_FC= if test yes = "$GCC"; then lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_static_FC='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_FC='-Bstatic' fi lt_prog_compiler_pic_FC='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_FC='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_FC='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_FC='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_FC='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_FC= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic_FC='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_FC=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_FC='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_FC=-Kconform_pic fi ;; *) lt_prog_compiler_pic_FC='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl_FC='-Xlinker ' if test -n "$lt_prog_compiler_pic_FC"; then lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_FC='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_FC='-Bstatic' else lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_FC='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl_FC='-Wl,-Wl,,' lt_prog_compiler_pic_FC='-PIC' lt_prog_compiler_static_FC='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_FC='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_FC='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_FC='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_FC='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_FC='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_FC='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_FC='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-static' ;; # Flang compiler *flang) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fPIC -DPIC' lt_prog_compiler_static_FC='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fPIC' lt_prog_compiler_static_FC='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='--shared' lt_prog_compiler_static_FC='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl_FC='-Wl,-Wl,,' lt_prog_compiler_pic_FC='-PIC' lt_prog_compiler_static_FC='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fPIC' lt_prog_compiler_static_FC='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fpic' lt_prog_compiler_static_FC='-Bstatic' ;; ccc*) lt_prog_compiler_wl_FC='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_FC='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-qpic' lt_prog_compiler_static_FC='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' lt_prog_compiler_wl_FC='' ;; *Sun\ F* | *Sun*Fortran* | *Studio*Fortran*) lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' lt_prog_compiler_wl_FC='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' lt_prog_compiler_wl_FC='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fPIC' lt_prog_compiler_static_FC='-static' ;; *Portland\ Group*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fpic' lt_prog_compiler_static_FC='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_FC='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_FC='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_FC='-non_shared' ;; rdos*) lt_prog_compiler_static_FC='-non_shared' ;; solaris*) lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl_FC='-Qoption ld ';; *) lt_prog_compiler_wl_FC='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_FC='-Qoption ld ' lt_prog_compiler_pic_FC='-PIC' lt_prog_compiler_static_FC='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_FC='-Kconform_pic' lt_prog_compiler_static_FC='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' ;; unicos*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_can_build_shared_FC=no ;; uts4*) lt_prog_compiler_pic_FC='-pic' lt_prog_compiler_static_FC='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_FC=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_FC= ;; *) lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 $as_echo "$lt_cv_prog_compiler_pic_FC" >&6; } lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_FC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_FC=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_FC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_FC=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then case $lt_prog_compiler_pic_FC in "" | " "*) ;; *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; esac else lt_prog_compiler_pic_FC= lt_prog_compiler_can_build_shared_FC=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_FC=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_FC=yes fi else lt_cv_prog_compiler_static_works_FC=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_FC"; then : else lt_prog_compiler_static_FC= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_FC=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_FC=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_FC=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_FC=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag_FC= always_export_symbols_FC=no archive_cmds_FC= archive_expsym_cmds_FC= compiler_needs_object_FC=no enable_shared_with_static_runtimes_FC=no export_dynamic_flag_spec_FC= export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic_FC=no hardcode_direct_FC=no hardcode_direct_absolute_FC=no hardcode_libdir_flag_spec_FC= hardcode_libdir_separator_FC= hardcode_minus_L_FC=no hardcode_shlibpath_var_FC=unsupported inherit_rpath_FC=no link_all_deplibs_FC=unknown module_cmds_FC= module_expsym_cmds_FC= old_archive_from_new_cmds_FC= old_archive_from_expsyms_cmds_FC= thread_safe_flag_spec_FC= whole_archive_flag_spec_FC= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_FC= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac ld_shlibs_FC=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' export_dynamic_flag_spec_FC='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec_FC= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs_FC=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='' ;; m68k) archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_minus_L_FC=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_FC=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs_FC=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_FC='-L$libdir' export_dynamic_flag_spec_FC='$wl--export-all-symbols' allow_undefined_flag_FC=unsupported always_export_symbols_FC=no enable_shared_with_static_runtimes_FC=yes export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_FC=no fi ;; haiku*) archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs_FC=yes ;; os2*) hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_minus_L_FC=yes allow_undefined_flag_FC=unsupported shrext_cmds=.dll archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_FC=yes ;; interix[3-9]*) hardcode_direct_FC=no hardcode_shlibpath_var_FC=no hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' export_dynamic_flag_spec_FC='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_FC='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_FC='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_FC='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec_FC= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec_FC='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object_FC=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_FC='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object_FC=yes tmp_sharedflag='-G' ;; *Sun\ F* | *Studio*Fortran*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec_FC='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs_FC=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs_FC=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_FC=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_FC=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_FC=no fi ;; esac ;; sunos4*) archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_FC=no fi ;; esac if test no = "$ld_shlibs_FC"; then runpath_var= hardcode_libdir_flag_spec_FC= export_dynamic_flag_spec_FC= whole_archive_flag_spec_FC= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_FC=unsupported always_export_symbols_FC=yes archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_FC=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_FC=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_FC='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_FC='' hardcode_direct_FC=yes hardcode_direct_absolute_FC=yes hardcode_libdir_separator_FC=':' link_all_deplibs_FC=yes file_list_spec_FC='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct_FC=no hardcode_direct_absolute_FC=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_FC=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_FC=yes hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_libdir_separator_FC= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec_FC='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_FC=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_FC='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__FC+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__FC fi hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag_FC="-z nodefs" archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__FC+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__FC fi hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_FC=' $wl-bernotok' allow_undefined_flag_FC=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_FC='$convenience' fi archive_cmds_need_lc_FC=yes archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='' ;; m68k) archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_minus_L_FC=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec_FC=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec_FC=' ' allow_undefined_flag_FC=unsupported always_export_symbols_FC=yes file_list_spec_FC='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true' enable_shared_with_static_runtimes_FC=yes exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds_FC='chmod 644 $oldlib' postlink_cmds_FC='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec_FC=' ' allow_undefined_flag_FC=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds_FC='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes_FC=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_FC=no hardcode_direct_FC=no hardcode_automatic_FC=yes hardcode_shlibpath_var_FC=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' compiler_needs_object_FC=yes else whole_archive_flag_spec_FC='' fi link_all_deplibs_FC=yes allow_undefined_flag_FC=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds_FC="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds_FC="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs_FC=no fi ;; dgux*) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_shlibpath_var_FC=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=yes hardcode_minus_L_FC=yes hardcode_shlibpath_var_FC=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' hardcode_libdir_separator_FC=: hardcode_direct_FC=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_FC=yes export_dynamic_flag_spec_FC='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' hardcode_libdir_separator_FC=: hardcode_direct_FC=yes hardcode_direct_absolute_FC=yes export_dynamic_flag_spec_FC='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_FC=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' hardcode_libdir_separator_FC=: case $host_cpu in hppa*64*|ia64*) hardcode_direct_FC=no hardcode_shlibpath_var_FC=no ;; *) hardcode_direct_FC=yes hardcode_direct_absolute_FC=yes export_dynamic_flag_spec_FC='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_FC=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat > conftest.$ac_ext <<_ACEOF subroutine foo end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc_FC='no' hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' hardcode_libdir_separator_FC=: inherit_rpath_FC=yes link_all_deplibs_FC=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs_FC=yes archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; newsos6) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=yes hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' hardcode_libdir_separator_FC=: hardcode_shlibpath_var_FC=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no hardcode_direct_absolute_FC=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' export_dynamic_flag_spec_FC='$wl-E' else archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' fi else ld_shlibs_FC=no fi ;; os2*) hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_minus_L_FC=yes allow_undefined_flag_FC=unsupported shrext_cmds=.dll archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_FC=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' archive_cmds_FC='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag_FC=' -expect_unresolved \*' archive_cmds_FC='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc_FC='no' hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' hardcode_libdir_separator_FC=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' archive_cmds_FC='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' else allow_undefined_flag_FC=' -expect_unresolved \*' archive_cmds_FC='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_FC='-rpath $libdir' fi archive_cmds_need_lc_FC='no' hardcode_libdir_separator_FC=: ;; solaris*) no_undefined_flag_FC=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_shlibpath_var_FC=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_FC=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_direct_FC=yes hardcode_minus_L_FC=yes hardcode_shlibpath_var_FC=no ;; sysv4) case $host_vendor in sni) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_FC='$CC -r -o $output$reload_objs' hardcode_direct_FC=no ;; motorola) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_FC=no ;; sysv4.3*) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_FC=no export_dynamic_flag_spec_FC='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_FC=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_FC=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_FC='$wl-z,text' archive_cmds_need_lc_FC=no hardcode_shlibpath_var_FC=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_FC='$wl-z,text' allow_undefined_flag_FC='$wl-z,nodefs' archive_cmds_need_lc_FC=no hardcode_shlibpath_var_FC=no hardcode_libdir_flag_spec_FC='$wl-R,$libdir' hardcode_libdir_separator_FC=':' link_all_deplibs_FC=yes export_dynamic_flag_spec_FC='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_shlibpath_var_FC=no ;; *) ld_shlibs_FC=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec_FC='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 $as_echo "$ld_shlibs_FC" >&6; } test no = "$ld_shlibs_FC" && can_build_shared=no with_gnu_ld_FC=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_FC" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_FC=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds_FC in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_FC pic_flag=$lt_prog_compiler_pic_FC compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_FC allow_undefined_flag_FC= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_FC=no else lt_cv_archive_cmds_need_lc_FC=yes fi allow_undefined_flag_FC=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec_FC='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_FC= if test -n "$hardcode_libdir_flag_spec_FC" || test -n "$runpath_var_FC" || test yes = "$hardcode_automatic_FC"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct_FC" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" && test no != "$hardcode_minus_L_FC"; then # Linking always hardcodes the temporary library directory. hardcode_action_FC=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_FC=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_FC=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 $as_echo "$hardcode_action_FC" >&6; } if test relink = "$hardcode_action_FC" || test yes = "$inherit_rpath_FC"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_commands="$ac_config_commands libtool" # Only expand once: # What's the suffix of shared libraries? Inspired by generated # Libtool code (even though we don't support several of these # platforms, there didn't seem to be any harm in leaving in some of # them, alhtough I did remove some that we have never/will never # support, like OS/2). OPAL_DYN_LIB_PREFIX=lib case $host_os in cygwin*) OPAL_DYN_LIB_PREFIX=cyg OPAL_DYN_LIB_SUFFIX=dll ;; mingw* | pw32* | cegcc*) OPAL_DYN_LIB_SUFFIX=dll ;; darwin* | rhapsody*) OPAL_DYN_LIB_SUFFIX=dylib ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) OPAL_DYN_LIB_SUFFIX=so ;; *) OPAL_DYN_LIB_SUFFIX=sl ;; esac ;; *) OPAL_DYN_LIB_SUFFIX=so ;; esac # Need the libtool binary before the rpathify stuff : ${CONFIG_LT=./config.lt} { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 $as_echo "$as_me: creating $CONFIG_LT" >&6;} as_write_fail=0 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate a libtool stub with the current configuration. SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 # 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 # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -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 # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # 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_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'" exec 6>&1 ## --------------------------------- ## ## Main body of "$CONFIG_LT" script. ## ## --------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x "$CONFIG_LT" cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $0 [OPTIONS] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ Open MPI config.lt 4.1.4 configured by $0, generated by GNU Autoconf 2.69. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $# do case $1 in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) as_fn_error $? "unrecognized option: $1 Try '$0 --help' for more information." "$LINENO" 5 ;; *) as_fn_error $? "unrecognized argument: $1 Try '$0 --help' for more information." "$LINENO" 5 ;; esac shift done if $lt_cl_silent; then exec 6>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in NM \ AS \ DLLTOOL \ OBJDUMP \ SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ LD_FC \ reload_flag_CXX \ reload_flag_FC \ compiler_CXX \ compiler_FC \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_no_builtin_flag_FC \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_pic_FC \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_wl_FC \ lt_prog_compiler_static_CXX \ lt_prog_compiler_static_FC \ lt_cv_prog_compiler_c_o_CXX \ lt_cv_prog_compiler_c_o_FC \ export_dynamic_flag_spec_CXX \ export_dynamic_flag_spec_FC \ whole_archive_flag_spec_CXX \ whole_archive_flag_spec_FC \ compiler_needs_object_CXX \ compiler_needs_object_FC \ with_gnu_ld_CXX \ with_gnu_ld_FC \ allow_undefined_flag_CXX \ allow_undefined_flag_FC \ no_undefined_flag_CXX \ no_undefined_flag_FC \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_FC \ hardcode_libdir_separator_CXX \ hardcode_libdir_separator_FC \ exclude_expsyms_CXX \ exclude_expsyms_FC \ include_expsyms_CXX \ include_expsyms_FC \ file_list_spec_CXX \ file_list_spec_FC \ compiler_lib_search_dirs_CXX \ compiler_lib_search_dirs_FC \ predep_objects_CXX \ predep_objects_FC \ postdep_objects_CXX \ postdep_objects_FC \ predeps_CXX \ predeps_FC \ postdeps_CXX \ postdeps_FC \ compiler_lib_search_path_CXX \ compiler_lib_search_path_FC; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path \ reload_cmds_CXX \ reload_cmds_FC \ old_archive_cmds_CXX \ old_archive_cmds_FC \ old_archive_from_new_cmds_CXX \ old_archive_from_new_cmds_FC \ old_archive_from_expsyms_cmds_CXX \ old_archive_from_expsyms_cmds_FC \ archive_cmds_CXX \ archive_cmds_FC \ archive_expsym_cmds_CXX \ archive_expsym_cmds_FC \ module_cmds_CXX \ module_cmds_FC \ module_expsym_cmds_CXX \ module_expsym_cmds_FC \ export_symbols_cmds_CXX \ export_symbols_cmds_FC \ prelink_cmds_CXX \ prelink_cmds_FC \ postlink_cmds_CXX \ postlink_cmds_FC; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 $as_echo "$as_me: creating $ofile" >&6;} # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='CXX FC ' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # A BSD- or MS-compatible name lister. NM=$lt_NM # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Assembler program. AS=$lt_AS # DLL creation program. DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: FC # The linker used to build libraries. LD=$lt_LD_FC # How to create reloadable object files. reload_flag=$lt_reload_flag_FC reload_cmds=$lt_reload_cmds_FC # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_FC # A language specific compiler. CC=$lt_compiler_FC # Is the compiler the GNU compiler? with_gcc=$GCC_FC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_FC # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_FC # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_FC # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_FC # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_FC # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_FC archive_expsym_cmds=$lt_archive_expsym_cmds_FC # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_FC module_expsym_cmds=$lt_module_expsym_cmds_FC # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_FC # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_FC # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_FC # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_FC # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_FC # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_FC # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_FC # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_FC # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_FC # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_FC # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_FC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_FC # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_FC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_FC # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_FC # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_FC # Specify filename containing input files. file_list_spec=$lt_file_list_spec_FC # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_FC # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_FC postdep_objects=$lt_postdep_objects_FC predeps=$lt_predeps_FC postdeps=$lt_postdeps_FC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_FC # ### END LIBTOOL TAG CONFIG: FC _LT_EOF as_fn_exit 0 _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec 5>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec 5>>config.log $lt_cl_success || as_fn_exit 1 ############################################################################ # final compiler config ############################################################################ opal_show_subtitle "Compiler flags" # # This is needed for VPATH builds, so that it will -I the appropriate # include directory. We delayed doing it until now just so that # '-I$(top_srcdir)' doesn't show up in any of the configure output -- # purely aesthetic. # # Because opal_config.h and mpi.h are created by AC_CONFIG_HEADERS, we # don't need to -I the builddir for /include. However, we do # need to add it for orte as it doesn't have an AC_CONFIG_HEADERS that # will install it for us. If we VPATH building, we do need to include the # source directories, however. # if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then # Note the embedded m4 directives here -- we must embed them # rather than have successive assignments to these shell # variables, lest the $(foo) names try to get evaluated here. # Yuck! CPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_builddir)/orte/include -I$(top_srcdir)/ompi/include -I$(top_srcdir)/oshmem/include'" $CPPFLAGS" # C++ is only relevant if we're building OMPI CXXCPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CXXCPPFLAGS" else CPPFLAGS='-I$(top_srcdir) -I$(top_srcdir)/orte/include'" $CPPFLAGS" # C++ is only relevant if we're building OMPI CXXCPPFLAGS='-I$(top_srcdir)'" $CXXCPPFLAGS" fi # OMPI/ORTE wants some additional processing of the flags (e.g., get # versions without optimization for debugger modules). # # Do a final process of the CFLAGS to make a WITHOUT_OPTFLAGS # version. We need this so that we can guarantee to build the # debugger-sensitive files with -g and nothing else. # # Process a set of flags and remove all debugging and optimization # flags s_arg="$CFLAGS" s_result= for s_word in $s_arg; do # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs # for an explanation of [ and ] -- they m4 expand to [ and ] case $s_word in -g) ;; -g[1-3]) ;; +K[0-5]) ;; -O) ;; -O[0-9]) ;; -xO) ;; -xO[0-9]) ;; -fast) ;; -finline-functions) ;; # The below Sun Studio flags require or # trigger -xO optimization -xvector*) ;; -xdepend=yes) ;; *) s_result="$s_result $s_word" esac done # Clean up unset s_word s_arg CFLAGS_WITHOUT_OPTFLAGS="$s_result" # Tweak the compiler flags passed to orterun for Sun Studio SPARC # https://svn.open-mpi.org/trac/ompi/ticket/1448 if test "x$opal_cv_c_compiler_vendor" = "xsun" && test -n "`echo $host | $GREP sparc`"; then DEBUGGER_CFLAGS="-g -xO0" else # Tweak the compiler flags passed for intel # to stop its aggressive inlining of functions if test "x$opal_cv_c_compiler_vendor" = "xintel"; then DEBUGGER_CFLAGS="-g -O0" else DEBUGGER_CFLAGS="-g" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of CFLAGS are ok for debugger modules" >&5 $as_echo_n "checking which of CFLAGS are ok for debugger modules... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS_WITHOUT_OPTFLAGS" >&5 $as_echo "$CFLAGS_WITHOUT_OPTFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugger extra CFLAGS" >&5 $as_echo_n "checking for debugger extra CFLAGS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUGGER_CFLAGS" >&5 $as_echo "$DEBUGGER_CFLAGS" >&6; } # Check for compiler specific flag to add in unwind information. # This is needed when attaching using MPIR to unwind back to the # user's main function. Certain optimisations can prevent GDB from # producing a stack when explicit unwind information is unavailable. # This is implied by -g, but we want to save space and don't need # full debug symbols. # 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 ORTE_SETUP_DEBUGGER_FLAGS_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=\"ORTE_SETUP_DEBUGGER_FLAGS_CFLAGS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ORTE_SETUP_DEBUGGER_FLAGS_CFLAGS_save=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fasynchronous-unwind-tables compiler flag works" >&5 $as_echo_n "checking if -fasynchronous-unwind-tables compiler flag works... " >&6; } CFLAGS="$CFLAGS -fasynchronous-unwind-tables" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i = 3; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ORTE_SETUP_DEBUGGER_FLAGS_HAPPY=yes else ORTE_SETUP_DEBUGGER_FLAGS_HAPPY=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_SETUP_DEBUGGER_FLAGS_HAPPY" >&5 $as_echo "$ORTE_SETUP_DEBUGGER_FLAGS_HAPPY" >&6; } CFLAGS=$ORTE_SETUP_DEBUGGER_FLAGS_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 $ORTE_SETUP_DEBUGGER_FLAGS_HAPPY = yes; then : MPIR_UNWIND_CFLAGS="-fasynchronous-unwind-tables" 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 ORTE_SETUP_DEBUGGER_FLAGS_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=\"ORTE_SETUP_DEBUGGER_FLAGS_CFLAGS_save\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` ORTE_SETUP_DEBUGGER_FLAGS_CFLAGS_save=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Meh_frame -Mframe compiler flag works" >&5 $as_echo_n "checking if -Meh_frame -Mframe compiler flag works... " >&6; } CFLAGS="$CFLAGS -Meh_frame -Mframe" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i = 3; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ORTE_SETUP_DEBUGGER_FLAGS_HAPPY=yes else ORTE_SETUP_DEBUGGER_FLAGS_HAPPY=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_SETUP_DEBUGGER_FLAGS_HAPPY" >&5 $as_echo "$ORTE_SETUP_DEBUGGER_FLAGS_HAPPY" >&6; } CFLAGS=$ORTE_SETUP_DEBUGGER_FLAGS_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 $ORTE_SETUP_DEBUGGER_FLAGS_HAPPY = yes; then : MPIR_UNWIND_CFLAGS="-Meh_frame -Mframe" else MPIR_UNWIND_CFLAGS=-g fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final compiler unwind flags" >&5 $as_echo_n "checking for final compiler unwind flags... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIR_UNWIND_CFLAGS" >&5 $as_echo "$MPIR_UNWIND_CFLAGS" >&6; } # # Delayed the substitution of CFLAGS and CXXFLAGS until now because # they may have been modified throughout the course of this script. # # # Aggregate MCA parameters directory # AMCA_PARAM_SETS_DIR='$(opaldatadir)/amca-param-sets' ############################################################################ # final wrapper compiler config ############################################################################ opal_show_subtitle "Wrapper compiler final setup" # The ORTE and OMPI wrapper scripts (i.e., not the C-compiled # executables) need perl. # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $PERL in [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" ;; esac fi PERL=$ac_cv_path_PERL if test -n "$PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 $as_echo "$PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Setup RPATH support, if desired WRAPPER_RPATH_SUPPORT=disabled if test "$enable_wrapper_rpath" = "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 rpath_libdir_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=\"rpath_libdir_save\"" 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 linker supports RPATH" >&5 $as_echo_n "checking if linker supports RPATH... " >&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 rpath_script rpath_outfile; 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=\"rpath_script rpath_outfile\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Output goes into globally-visible variable. Run this in a # sub-process so that we don't pollute the current process # environment. rpath_script=conftest.$$.sh rpath_outfile=conftest.$$.out rm -f $rpath_script $rpath_outfile cat > $rpath_script < $rpath_outfile chmod +x $rpath_outfile . ./$rpath_outfile rm -f $rpath_outfile # Evaluate \$hardcode_libdir_flag_spec, and substitute in LIBDIR for \$libdir libdir=LIBDIR flags="\`eval echo \$hardcode_libdir_flag_spec\`" echo \$flags # Done exit 0 EOF chmod +x $rpath_script rpath_args=`./$rpath_script` rm -f $rpath_script # 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 "$rpath_args"; then : WRAPPER_RPATH_SUPPORT=rpath # 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 rpath_script rpath_outfile; 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=\"rpath_script rpath_outfile\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Output goes into globally-visible variable. Run this in a # sub-process so that we don't pollute the current process # environment. rpath_script=conftest.$$.sh rpath_outfile=conftest.$$.out rm -f $rpath_script $rpath_outfile cat > $rpath_script < $rpath_outfile chmod +x $rpath_outfile . ./$rpath_outfile rm -f $rpath_outfile # Evaluate \$hardcode_libdir_flag_spec, and substitute in LIBDIR for \$libdir libdir=LIBDIR flags="\`eval echo \$hardcode_libdir_flag_spec\`" echo \$flags # Done exit 0 EOF chmod +x $rpath_script rpath_fc_args=`./$rpath_script` rm -f $rpath_script # 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}: result: yes ($rpath_args + $rpath_fc_args)" >&5 $as_echo "yes ($rpath_args + $rpath_fc_args)" >&6; } else WRAPPER_RPATH_SUPPORT=unnecessary { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (no extra flags needed)" >&5 $as_echo "yes (no extra flags needed)" >&6; } 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 we found RPATH support, check for RUNPATH support, too if test "$WRAPPER_RPATH_SUPPORT" = "rpath"; 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 LDFLAGS_save wl_fc; 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=\"LDFLAGS_save wl_fc\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Set the output in $runpath_args runpath_args= runpath_fc_args= LDFLAGS_save=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags" if test x"$enable_wrapper_runpath" = x"yes"; then : ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports RUNPATH" >&5 $as_echo_n "checking if linker supports RUNPATH... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return 7; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : WRAPPER_RPATH_SUPPORT=runpath runpath_args="-Wl,--enable-new-dtags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (-Wl,--enable-new-dtags)" >&5 $as_echo "yes (-Wl,--enable-new-dtags)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext 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 # 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 rpath_script rpath_outfile; 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=\"rpath_script rpath_outfile\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` # Output goes into globally-visible variable. Run this in a # sub-process so that we don't pollute the current process # environment. rpath_script=conftest.$$.sh rpath_outfile=conftest.$$.out rm -f $rpath_script $rpath_outfile cat > $rpath_script < $rpath_outfile chmod +x $rpath_outfile . ./$rpath_outfile rm -f $rpath_outfile # Evaluate \$wl, and substitute in LIBDIR for \$libdir flags="\`eval echo \$wl\`" echo \$flags # Done exit 0 EOF chmod +x $rpath_script wl_fc=`./$rpath_script` rm -f $rpath_script # 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 LDFLAGS="$LDFLAGS_save ${wl_fc}--enable-new-dtags" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program test end program _ACEOF if ac_fn_fc_try_link "$LINENO"; then : runpath_fc_args="${wl_fc}--enable-new-dtags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (-Wl,--enable-new-dtags)" >&5 $as_echo "yes (-Wl,--enable-new-dtags)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext 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 LDFLAGS=$LDFLAGS_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 fi if test "$enable_wrapper_rpath" = "yes" && test "$WRAPPER_RPATH_SUPPORT" = "disabled"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: RPATH support requested but not available" >&5 $as_echo "$as_me: WARNING: RPATH support requested but not available" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # Note that we have to setup _PKG_CONFIG_LDFLAGS for the # pkg-config files to parallel the # _WRAPPER_EXTRA_LDFLAGS. This is because pkg-config # will not understand the @{libdir} notation in # *_WRAPPER_EXTRA_LDFLAGS; we have to translate it to ${libdir}. # We now have all relevant flags. Substitute them in everywhere. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL CPPFLAGS" >&5 $as_echo_n "checking for OPAL CPPFLAGS... " >&6; } if test "$WANT_INSTALL_HEADERS" = "1" ; then OPAL_WRAPPER_EXTRA_CPPFLAGS='-I${includedir}/openmpi' fi OPAL_WRAPPER_EXTRA_CPPFLAGS="$OPAL_WRAPPER_EXTRA_CPPFLAGS $opal_mca_wrapper_extra_cppflags $wrapper_extra_cppflags $with_wrapper_cppflags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_CPPFLAGS" >&5 $as_echo "$OPAL_WRAPPER_EXTRA_CPPFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL CFLAGS" >&5 $as_echo_n "checking for OPAL CFLAGS... " >&6; } OPAL_WRAPPER_EXTRA_CFLAGS="$wrapper_extra_cflags $with_wrapper_cflags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_CFLAGS" >&5 $as_echo "$OPAL_WRAPPER_EXTRA_CFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL CFLAGS_PREFIX" >&5 $as_echo_n "checking for OPAL CFLAGS_PREFIX... " >&6; } OPAL_WRAPPER_EXTRA_CFLAGS_PREFIX="$with_wrapper_cflags_prefix" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_CFLAGS_PREFIX" >&5 $as_echo "$OPAL_WRAPPER_EXTRA_CFLAGS_PREFIX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL CXXFLAGS" >&5 $as_echo_n "checking for OPAL CXXFLAGS... " >&6; } OPAL_WRAPPER_EXTRA_CXXFLAGS="$wrapper_extra_cxxflags $with_wrapper_cxxflags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_CXXFLAGS" >&5 $as_echo "$OPAL_WRAPPER_EXTRA_CXXFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL CXXFLAGS_PREFIX" >&5 $as_echo_n "checking for OPAL CXXFLAGS_PREFIX... " >&6; } OPAL_WRAPPER_EXTRA_CXXFLAGS_PREFIX="$with_wrapper_cxxflags_prefix" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_CXXFLAGS_PREFIX" >&5 $as_echo "$OPAL_WRAPPER_EXTRA_CXXFLAGS_PREFIX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL LDFLAGS" >&5 $as_echo_n "checking for OPAL LDFLAGS... " >&6; } OPAL_WRAPPER_EXTRA_LDFLAGS="$opal_mca_wrapper_extra_ldflags $wrapper_extra_ldflags $with_wrapper_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 rpath_out rpath_dir rpath_tmp; 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=\"rpath_out rpath_dir rpath_tmp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test "$enable_wrapper_rpath" = "yes" && test "$WRAPPER_RPATH_SUPPORT" != "disabled" && test "$WRAPPER_RPATH_SUPPORT" != "unnecessary"; then : rpath_out="" for val in ${OPAL_WRAPPER_EXTRA_LDFLAGS}; do case $val in -L*) rpath_dir=`echo $val | cut -c3-` rpath_tmp=`echo ${rpath_args} | sed -e s@LIBDIR@$rpath_dir@` rpath_out="$rpath_out $rpath_tmp" ;; esac done # add in the RPATH args for @{libdir}, and the RUNPATH # args. The install libdir goes first, so that we prefer # our libmpi over any imposter libmpi we might find. rpath_tmp=`echo ${rpath_args} | sed -e s/LIBDIR/@{libdir}/` OPAL_WRAPPER_EXTRA_LDFLAGS="${OPAL_WRAPPER_EXTRA_LDFLAGS} $rpath_tmp $rpath_out ${runpath_args}" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_LDFLAGS" >&5 $as_echo "$OPAL_WRAPPER_EXTRA_LDFLAGS" >&6; } # Convert @{libdir} to ${libdir} for pkg-config { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL pkg-config LDFLAGS" >&5 $as_echo_n "checking for OPAL pkg-config LDFLAGS... " >&6; } OPAL_PKG_CONFIG_LDFLAGS=`echo "$OPAL_WRAPPER_EXTRA_LDFLAGS" | sed -e 's/@{libdir}/\${libdir}/g'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_PKG_CONFIG_LDFLAGS" >&5 $as_echo "$OPAL_PKG_CONFIG_LDFLAGS" >&6; } # wrapper_extra_libs doesn't really get populated until after the mca system runs # since most of the libs come from libtool. So this is the first time we can # uniq them. ROMIO in particular adds lots of things already in wrapper_extra_libs, # and this cleans the duplication up a bunch. Always add everything the user # asked for, as they know better than us. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPAL LIBS" >&5 $as_echo_n "checking for OPAL LIBS... " >&6; } OPAL_WRAPPER_EXTRA_LIBS="$opal_mca_wrapper_extra_libs" # 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 $wrapper_extra_libs; 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 ${OPAL_WRAPPER_EXTRA_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$OPAL_WRAPPER_EXTRA_LIBS"; then : OPAL_WRAPPER_EXTRA_LIBS=$arg else OPAL_WRAPPER_EXTRA_LIBS="$OPAL_WRAPPER_EXTRA_LIBS $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 OPAL_WRAPPER_EXTRA_LIBS="$OPAL_WRAPPER_EXTRA_LIBS $with_wrapper_libs" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPAL_WRAPPER_EXTRA_LIBS" >&5 $as_echo "$OPAL_WRAPPER_EXTRA_LIBS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE CPPFLAGS" >&5 $as_echo_n "checking for ORTE CPPFLAGS... " >&6; } if test "$WANT_INSTALL_HEADERS" = "1" ; then ORTE_WRAPPER_EXTRA_CPPFLAGS='-I${includedir}/openmpi' fi ORTE_WRAPPER_EXTRA_CPPFLAGS="$ORTE_WRAPPER_EXTRA_CPPFLAGS $orte_mca_wrapper_extra_cppflags $wrapper_extra_cppflags $with_wrapper_cppflags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_CPPFLAGS" >&5 $as_echo "$ORTE_WRAPPER_EXTRA_CPPFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE CFLAGS" >&5 $as_echo_n "checking for ORTE CFLAGS... " >&6; } ORTE_WRAPPER_EXTRA_CFLAGS="$wrapper_extra_cflags $with_wrapper_cflags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_CFLAGS" >&5 $as_echo "$ORTE_WRAPPER_EXTRA_CFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE CFLAGS_PREFIX" >&5 $as_echo_n "checking for ORTE CFLAGS_PREFIX... " >&6; } ORTE_WRAPPER_EXTRA_CFLAGS_PREFIX="$with_wrapper_cflags_prefix" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_CFLAGS_PREFIX" >&5 $as_echo "$ORTE_WRAPPER_EXTRA_CFLAGS_PREFIX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE LDFLAGS" >&5 $as_echo_n "checking for ORTE LDFLAGS... " >&6; } ORTE_WRAPPER_EXTRA_LDFLAGS="$orte_mca_wrapper_extra_ldflags $wrapper_extra_ldflags $with_wrapper_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 rpath_out rpath_dir rpath_tmp; 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=\"rpath_out rpath_dir rpath_tmp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test "$enable_wrapper_rpath" = "yes" && test "$WRAPPER_RPATH_SUPPORT" != "disabled" && test "$WRAPPER_RPATH_SUPPORT" != "unnecessary"; then : rpath_out="" for val in ${ORTE_WRAPPER_EXTRA_LDFLAGS}; do case $val in -L*) rpath_dir=`echo $val | cut -c3-` rpath_tmp=`echo ${rpath_args} | sed -e s@LIBDIR@$rpath_dir@` rpath_out="$rpath_out $rpath_tmp" ;; esac done # add in the RPATH args for @{libdir}, and the RUNPATH # args. The install libdir goes first, so that we prefer # our libmpi over any imposter libmpi we might find. rpath_tmp=`echo ${rpath_args} | sed -e s/LIBDIR/@{libdir}/` ORTE_WRAPPER_EXTRA_LDFLAGS="${ORTE_WRAPPER_EXTRA_LDFLAGS} $rpath_tmp $rpath_out ${runpath_args}" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_LDFLAGS" >&5 $as_echo "$ORTE_WRAPPER_EXTRA_LDFLAGS" >&6; } # Convert @{libdir} to ${libdir} for pkg-config { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE pkg-config LDFLAGS" >&5 $as_echo_n "checking for ORTE pkg-config LDFLAGS... " >&6; } ORTE_PKG_CONFIG_LDFLAGS=`echo "$ORTE_WRAPPER_EXTRA_LDFLAGS" | sed -e 's/@{libdir}/\${libdir}/g'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_PKG_CONFIG_LDFLAGS" >&5 $as_echo "$ORTE_PKG_CONFIG_LDFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORTE LIBS" >&5 $as_echo_n "checking for ORTE LIBS... " >&6; } ORTE_WRAPPER_EXTRA_LIBS="$orte_mca_wrapper_extra_libs" # 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 $wrapper_extra_libs; 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 ${ORTE_WRAPPER_EXTRA_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$ORTE_WRAPPER_EXTRA_LIBS"; then : ORTE_WRAPPER_EXTRA_LIBS=$arg else ORTE_WRAPPER_EXTRA_LIBS="$ORTE_WRAPPER_EXTRA_LIBS $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 ORTE_WRAPPER_EXTRA_LIBS="$ORTE_WRAPPER_EXTRA_LIBS $with_wrapper_libs" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORTE_WRAPPER_EXTRA_LIBS" >&5 $as_echo "$ORTE_WRAPPER_EXTRA_LIBS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI CPPFLAGS" >&5 $as_echo_n "checking for OMPI CPPFLAGS... " >&6; } if test "$WANT_INSTALL_HEADERS" = "1" ; then OMPI_WRAPPER_EXTRA_CPPFLAGS='-I${includedir}/openmpi' fi OMPI_WRAPPER_EXTRA_CPPFLAGS="$OMPI_WRAPPER_EXTRA_CPPFLAGS $ompi_mca_wrapper_extra_cppflags $wrapper_extra_cppflags $with_wrapper_cppflags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_CPPFLAGS" >&5 $as_echo "$OMPI_WRAPPER_EXTRA_CPPFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI CFLAGS" >&5 $as_echo_n "checking for OMPI CFLAGS... " >&6; } OMPI_WRAPPER_EXTRA_CFLAGS="$wrapper_extra_cflags $with_wrapper_cflags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_CFLAGS" >&5 $as_echo "$OMPI_WRAPPER_EXTRA_CFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI CFLAGS_PREFIX" >&5 $as_echo_n "checking for OMPI CFLAGS_PREFIX... " >&6; } OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX="$with_wrapper_cflags_prefix" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX" >&5 $as_echo "$OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI CXXFLAGS" >&5 $as_echo_n "checking for OMPI CXXFLAGS... " >&6; } OMPI_WRAPPER_EXTRA_CXXFLAGS="$wrapper_extra_cxxflags $with_wrapper_cxxflags" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_CXXFLAGS" >&5 $as_echo "$OMPI_WRAPPER_EXTRA_CXXFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI CXXFLAGS_PREFIX" >&5 $as_echo_n "checking for OMPI CXXFLAGS_PREFIX... " >&6; } OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX="$with_wrapper_cxxflags_prefix" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX" >&5 $as_echo "$OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI FCFLAGS" >&5 $as_echo_n "checking for OMPI FCFLAGS... " >&6; } OMPI_WRAPPER_EXTRA_FCFLAGS="$wrapper_extra_fcflags $with_wrapper_fcflags" if test "$OMPI_FC_MODULE_FLAG" != "" ; then OMPI_WRAPPER_EXTRA_FCFLAGS="$OMPI_WRAPPER_EXTRA_FCFLAGS $OMPI_FC_MODULE_FLAG"'${libdir}' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_FCFLAGS" >&5 $as_echo "$OMPI_WRAPPER_EXTRA_FCFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI FCFLAGS_PREFIX" >&5 $as_echo_n "checking for OMPI FCFLAGS_PREFIX... " >&6; } OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX="$with_wrapper_fcflags_prefix" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX" >&5 $as_echo "$OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI LDFLAGS" >&5 $as_echo_n "checking for OMPI LDFLAGS... " >&6; } OMPI_WRAPPER_EXTRA_LDFLAGS="$ompi_mca_wrapper_extra_ldflags $wrapper_extra_ldflags $with_wrapper_ldflags" OMPI_WRAPPER_EXTRA_FC_LDFLAGS=$OMPI_WRAPPER_EXTRA_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 rpath_out rpath_dir rpath_tmp; 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=\"rpath_out rpath_dir rpath_tmp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test "$enable_wrapper_rpath" = "yes" && test "$WRAPPER_RPATH_SUPPORT" != "disabled" && test "$WRAPPER_RPATH_SUPPORT" != "unnecessary"; then : rpath_out="" for val in ${OMPI_WRAPPER_EXTRA_LDFLAGS}; do case $val in -L*) rpath_dir=`echo $val | cut -c3-` rpath_tmp=`echo ${rpath_args} | sed -e s@LIBDIR@$rpath_dir@` rpath_out="$rpath_out $rpath_tmp" ;; esac done # add in the RPATH args for @{libdir}, and the RUNPATH # args. The install libdir goes first, so that we prefer # our libmpi over any imposter libmpi we might find. rpath_tmp=`echo ${rpath_args} | sed -e s/LIBDIR/@{libdir}/` OMPI_WRAPPER_EXTRA_LDFLAGS="${OMPI_WRAPPER_EXTRA_LDFLAGS} $rpath_tmp $rpath_out ${runpath_args}" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_LDFLAGS" >&5 $as_echo "$OMPI_WRAPPER_EXTRA_LDFLAGS" >&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 rpath_out rpath_dir rpath_tmp; 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=\"rpath_out rpath_dir rpath_tmp\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` if test "$enable_wrapper_rpath" = "yes" && test "$WRAPPER_RPATH_SUPPORT" != "disabled" && test "$WRAPPER_RPATH_SUPPORT" != "unnecessary"; then : rpath_out="" for val in ${OMPI_WRAPPER_EXTRA_FC_LDFLAGS}; do case $val in -L*) rpath_dir=`echo $val | cut -c3-` rpath_tmp=`echo ${rpath_fc_args} | sed -e s@LIBDIR@$rpath_dir@` rpath_out="$rpath_out $rpath_tmp" ;; esac done # add in the RPATH args for @{libdir}, and the RUNPATH # args. The install libdir goes first, so that we prefer # our libmpi over any imposter libmpi we might find. rpath_tmp=`echo ${rpath_fc_args} | sed -e s/LIBDIR/@{libdir}/` OMPI_WRAPPER_EXTRA_FC_LDFLAGS="${OMPI_WRAPPER_EXTRA_FC_LDFLAGS} $rpath_tmp $rpath_out ${runpath_fc_args}" 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 # Convert @{libdir} to ${libdir} for pkg-config { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI pkg-config LDFLAGS" >&5 $as_echo_n "checking for OMPI pkg-config LDFLAGS... " >&6; } OMPI_PKG_CONFIG_LDFLAGS=`echo "$OMPI_WRAPPER_EXTRA_LDFLAGS" | sed -e 's/@{libdir}/\${libdir}/g'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_PKG_CONFIG_LDFLAGS" >&5 $as_echo "$OMPI_PKG_CONFIG_LDFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMPI LIBS" >&5 $as_echo_n "checking for OMPI LIBS... " >&6; } OMPI_WRAPPER_EXTRA_LIBS="$ompi_mca_wrapper_extra_libs" # 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 $wrapper_extra_libs; 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 ${OMPI_WRAPPER_EXTRA_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$OMPI_WRAPPER_EXTRA_LIBS"; then : OMPI_WRAPPER_EXTRA_LIBS=$arg else OMPI_WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS $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 OMPI_WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS $with_wrapper_libs" # 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 $LIBS; 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 ${OMPI_WRAPPER_EXTRA_LIBS}; do if test "x$val" = "x$arg"; then : opal_append=0 fi done fi if test "$opal_append" = "1"; then : if test -z "$OMPI_WRAPPER_EXTRA_LIBS"; then : OMPI_WRAPPER_EXTRA_LIBS=$arg else OMPI_WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS $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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPI_WRAPPER_EXTRA_LIBS" >&5 $as_echo "$OMPI_WRAPPER_EXTRA_LIBS" >&6; } # language binding support. C++ is a bit different, as the # compiler should work even if there is no MPI C++ bindings # support. However, we do want it to fail if there is no C++ # compiler. if test "$WANT_MPI_CXX_SUPPORT" = "1" ; then OMPI_WRAPPER_CXX_LIB="-l${with_libmpi_name}_cxx" OMPI_WRAPPER_CXX_REQUIRED_FILE="" elif test "$CXX" = "none"; then OMPI_WRAPPER_CXX_LIB="" OMPI_WRAPPER_CXX_REQUIRED_FILE="not supported" else OMPI_WRAPPER_CXX_LIB="" OMPI_WRAPPER_CXX_REQUIRED_FILE="" fi if test "$OMPI_TRY_FORTRAN_BINDINGS" -gt "$OMPI_FORTRAN_NO_BINDINGS" ; then OMPI_WRAPPER_FORTRAN_REQUIRED_FILE="" else OMPI_WRAPPER_FORTRAN_REQUIRED_FILE="not supported" fi # For script-based wrappers that don't do relocatable binaries. # Don't use if you don't have to. exec_prefix_save="${exec_prefix}" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval "OMPI_WRAPPER_INCLUDEDIR=\"${includedir}\"" eval "OMPI_WRAPPER_LIBDIR=\"${libdir}\"" exec_prefix="${exec_prefix_save}" # if wrapper compilers were requested, set the ompi one up if test "$WANT_SCRIPT_WRAPPER_COMPILERS" = "1" ; then ac_config_files="$ac_config_files ompi/tools/wrappers/ompi_wrapper_script" fi cat >>confdefs.h <<_ACEOF #define WRAPPER_EXTRA_CFLAGS "$OMPI_WRAPPER_EXTRA_CFLAGS" _ACEOF cat >>confdefs.h <<_ACEOF #define WRAPPER_EXTRA_CFLAGS_PREFIX "$OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX" _ACEOF cat >>confdefs.h <<_ACEOF #define WRAPPER_EXTRA_CXXFLAGS "$OMPI_WRAPPER_EXTRA_CXXFLAGS" _ACEOF cat >>confdefs.h <<_ACEOF #define WRAPPER_EXTRA_CXXFLAGS_PREFIX "$OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX" _ACEOF cat >>confdefs.h <<_ACEOF #define WRAPPER_EXTRA_FCFLAGS "$OMPI_WRAPPER_EXTRA_FCFLAGS" _ACEOF cat >>confdefs.h <<_ACEOF #define WRAPPER_EXTRA_FCFLAGS_PREFIX "$OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX" _ACEOF cat >>confdefs.h <<_ACEOF #define WRAPPER_EXTRA_LDFLAGS "$OMPI_WRAPPER_EXTRA_LDFLAGS" _ACEOF cat >>confdefs.h <<_ACEOF #define WRAPPER_EXTRA_LIBS "$OMPI_WRAPPER_EXTRA_LIBS" _ACEOF cat >>confdefs.h <<_ACEOF #define WRAPPER_RPATH_SUPPORT "$WRAPPER_RPATH_SUPPORT" _ACEOF # Recreate some defines prefixed with OMPI_ so that there are no bare # autoconf macro defines in mpi.h. Since AC sometimes changes whether # things are defined as null tokens or an integer result, two projects # with different versions of AC can cause problems. # According to the autoconf 2.67 documentation the AC_HEADER_STDC macro, # and therefore the ac_cv_header_stdc cache variable, is obsolescent, as # current systems have conforming header files. Instead of removing the # protection completely, let's just make sure it is always on. $as_echo "#define OPAL_STDC_HEADERS 1" >>confdefs.h if test $ac_cv_header_sys_time_h = yes ; then $as_echo "#define OPAL_HAVE_SYS_TIME_H 1" >>confdefs.h fi if test $ac_cv_type_long_long = yes ; then $as_echo "#define OPAL_HAVE_LONG_LONG 1" >>confdefs.h fi if test $ac_cv_header_sys_synch_h = yes ; then $as_echo "#define OPAL_HAVE_SYS_SYNCH_H 1" >>confdefs.h fi # If there is a local hook for each project, call it. This allows 3rd # parties to add configuration steps to OPAL, ORTE, and/or OMPI simply # by placing a file in [opal|orte|ompi]/config/whatever.m4 that # AC_DEFUN's the appropriate macro name -- no patching is necessary. # If that macro is defined, we'll run it here. # # Unfortunately, aclocal is not smart enough to parse something like # the following in opal_mca.m4 (when we're already m4 looping over the # project list): # # m4_foreach(mca_project, [mca_project_list], # [m4_ifdef(mca_project[_CONFIG_LOCAL], mca_project[_CONFIG_LOCAL])]) # # Meaning that aclocal doesn't see that, for example, # "ompi_CONFIG_LOCAL" is actually invoked at the bottom and therefore # go look for an .m4 file that contains it. Instead, we have to # manually list the macros here. *Then* aclocal is smart enough to go # look for an .m4 file containing each macro, and if found, # automatically m4_include the corresponding in aclocal.m4. Bummer. # :-\ ############################################################################ # Party on ############################################################################ # set projects good/no good AM_CONDITIONALS. This is at the end so # that the OSHMEM/OMPI projects can be disabled, if needed, based on # MCA tests. If a project is to be disabled, also remove it from # MCA_PROJECT_SUBDIRS to actually disable building. if test "$project_ompi_amc" = "true"; then PROJECT_OMPI_TRUE= PROJECT_OMPI_FALSE='#' else PROJECT_OMPI_TRUE='#' PROJECT_OMPI_FALSE= fi if test "$project_orte_amc" = "true"; then PROJECT_ORTE_TRUE= PROJECT_ORTE_FALSE='#' else PROJECT_ORTE_TRUE='#' PROJECT_ORTE_FALSE= fi if test "$project_oshmem_amc" = "true"; then PROJECT_OSHMEM_TRUE= PROJECT_OSHMEM_FALSE='#' else PROJECT_OSHMEM_TRUE='#' PROJECT_OSHMEM_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool needs -no-undefined flag to build shared libraries" >&5 $as_echo_n "checking if libtool needs -no-undefined flag to build shared libraries... " >&6; } case "`uname`" in CYGWIN*|MINGW*|AIX*) ## Add in the -no-undefined flag to LDFLAGS for libtool. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } LDFLAGS="$LDFLAGS -no-undefined" ;; *) ## Don't add in anything. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac # opaldatadir, opallibdir, and opalinclude are essentially the same as # pkg*dir, but will always be */openmpi. This is to make it a bit # easier to deal with the problem of opal, orte, and ompi built from # their own tarballs, with their own PACKAGE variables. opaldatadir='${datadir}/openmpi' opallibdir='${libdir}/openmpi' opalincludedir='${includedir}/openmpi' if test "$opal_mca_prefix_set" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL mca prefix was already set!" >&5 $as_echo "$as_me: WARNING: OPAL mca 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 MCA_PREFIX=OMPI_MCA_ opal_mca_prefix_set=yes cat >>confdefs.h <<_ACEOF #define OPAL_MCA_PREFIX "$MCA_PREFIX" _ACEOF if test "$opal_mca_cmd_id_set" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPAL mca cmd line id was already set!" >&5 $as_echo "$as_me: WARNING: OPAL mca cmd line id 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 MCA_CMD_LINE_ID=mca opal_mca_cmd_id_set=yes cat >>confdefs.h <<_ACEOF #define OPAL_MCA_CMD_LINE_ID "$MCA_CMD_LINE_ID" _ACEOF ortedatadir="$opaldatadir" ortelibdir="$opallibdir" orteincludedir="$opalincludedir" ompidatadir="$opaldatadir" ompilibdir="$opallibdir" ompiincludedir="$opalincludedir" oshmemdatadir="$opaldatadir" oshmemlibdir="$opallibdir" oshmemincludedir="$opalincludedir" opal_show_subtitle "Final output" ac_config_files="$ac_config_files Makefile config/Makefile contrib/Makefile contrib/dist/mofed/debian/changelog contrib/dist/mofed/debian/control contrib/dist/mofed/debian/copyright:LICENSE test/Makefile test/event/Makefile test/asm/Makefile test/datatype/Makefile test/dss/Makefile test/class/Makefile test/mpool/Makefile test/support/Makefile test/threads/Makefile test/util/Makefile" ac_config_files="$ac_config_files test/monitoring/Makefile test/spc/Makefile" ac_config_files="$ac_config_files contrib/dist/mofed/debian/rules" ac_config_files="$ac_config_files contrib/dist/mofed/compile_debian_mlnx_example" ac_config_files="$ac_config_files opal/Makefile opal/etc/Makefile opal/include/Makefile opal/datatype/Makefile opal/util/Makefile opal/util/keyval/Makefile opal/mca/base/Makefile opal/tools/wrappers/Makefile opal/tools/wrappers/opalcc-wrapper-data.txt opal/tools/wrappers/opalc++-wrapper-data.txt opal/tools/wrappers/opal.pc opal/tools/opal-checkpoint/Makefile opal/tools/opal-restart/Makefile" ac_config_files="$ac_config_files orte/Makefile orte/include/Makefile orte/etc/Makefile orte/orted/orted-mpir/Makefile orte/tools/orted/Makefile orte/tools/orterun/Makefile orte/tools/wrappers/Makefile orte/tools/wrappers/ortecc-wrapper-data.txt orte/tools/wrappers/orte.pc orte/tools/orte-clean/Makefile orte/tools/orte-info/Makefile orte/tools/orte-server/Makefile" ac_config_files="$ac_config_files ompi/Makefile ompi/etc/Makefile ompi/include/Makefile ompi/include/mpif.h ompi/include/mpif-config.h ompi/datatype/Makefile ompi/debuggers/Makefile ompi/mpi/c/Makefile ompi/mpi/c/profile/Makefile ompi/mpi/cxx/Makefile ompi/mpi/fortran/base/Makefile ompi/mpi/fortran/mpif-h/Makefile ompi/mpi/fortran/mpif-h/profile/Makefile ompi/mpi/fortran/use-mpi-tkr/Makefile ompi/mpi/fortran/use-mpi-tkr/fortran_sizes.h ompi/mpi/fortran/use-mpi-tkr/fortran_kinds.sh ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-interfaces.h ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-file-interfaces.h ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-removed-interfaces.h ompi/mpi/fortran/use-mpi-f08/Makefile ompi/mpi/fortran/use-mpi-f08/base/Makefile ompi/mpi/fortran/use-mpi-f08/bindings/Makefile ompi/mpi/fortran/use-mpi-f08/mod/Makefile ompi/mpi/fortran/mpiext-use-mpi/Makefile ompi/mpi/fortran/mpiext-use-mpi-f08/Makefile ompi/mpi/tool/Makefile ompi/mpi/tool/profile/Makefile ompi/tools/ompi_info/Makefile ompi/tools/wrappers/Makefile ompi/tools/wrappers/mpicc-wrapper-data.txt ompi/tools/wrappers/mpic++-wrapper-data.txt ompi/tools/wrappers/mpifort-wrapper-data.txt ompi/tools/wrappers/ompi.pc ompi/tools/wrappers/ompi-c.pc ompi/tools/wrappers/ompi-cxx.pc ompi/tools/wrappers/ompi-fort.pc ompi/tools/wrappers/mpijavac.pl ompi/tools/mpisync/Makefile" ac_config_files="$ac_config_files oshmem/Makefile oshmem/include/Makefile oshmem/shmem/c/Makefile oshmem/shmem/c/profile/Makefile oshmem/shmem/fortran/Makefile oshmem/shmem/fortran/profile/Makefile oshmem/tools/oshmem_info/Makefile oshmem/tools/wrappers/Makefile oshmem/tools/wrappers/shmemcc-wrapper-data.txt oshmem/tools/wrappers/shmemc++-wrapper-data.txt oshmem/tools/wrappers/shmemfort-wrapper-data.txt" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries that use libnl v1" >&5 $as_echo_n "checking for libraries that use libnl v1... " >&6; } if test -n "$opal_libnlv1_libs"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_libnlv1_libs" >&5 $as_echo "$opal_libnlv1_libs" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 $as_echo "(none)" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries that use libnl v3" >&5 $as_echo_n "checking for libraries that use libnl v3... " >&6; } if test -n "$opal_libnlv3_libs"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opal_libnlv3_libs" >&5 $as_echo "$opal_libnlv3_libs" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 $as_echo "(none)" >&6; } fi if test -n "$opal_libnlv1_libs" && test -n "$opal_libnlv3_libs"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnl v1 and libnl v3 have been found as dependent libraries" >&5 $as_echo "$as_me: WARNING: libnl v1 and libnl v3 have been found as dependent libraries" >&2;} as_fn_error $? "This is a configuration that is known to cause run-time crashes" "$LINENO" 5 fi cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${OPAL_COMPILE_TIMING_TRUE}" && test -z "${OPAL_COMPILE_TIMING_FALSE}"; then as_fn_error $? "conditional \"OPAL_COMPILE_TIMING\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_INSTALL_TIMING_BINARIES_TRUE}" && test -z "${OPAL_INSTALL_TIMING_BINARIES_FALSE}"; then as_fn_error $? "conditional \"OPAL_INSTALL_TIMING_BINARIES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then as_fn_error $? "conditional \"WANT_INSTALL_HEADERS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_INSTALL_BINARIES_TRUE}" && test -z "${OPAL_INSTALL_BINARIES_FALSE}"; then as_fn_error $? "conditional \"OPAL_INSTALL_BINARIES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE}" && test -z "${OPAL_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE}"; then as_fn_error $? "conditional \"OPAL_WANT_SCRIPT_WRAPPER_COMPILERS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_cuda_support_TRUE}" && test -z "${OPAL_cuda_support_FALSE}"; then as_fn_error $? "conditional \"OPAL_cuda_support\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_cuda_sync_memops_TRUE}" && test -z "${OPAL_cuda_sync_memops_FALSE}"; then as_fn_error $? "conditional \"OPAL_cuda_sync_memops\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_cuda_get_attributes_TRUE}" && test -z "${OPAL_cuda_get_attributes_FALSE}"; then as_fn_error $? "conditional \"OPAL_cuda_get_attributes\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_cuda_gdr_support_TRUE}" && test -z "${OPAL_cuda_gdr_support_FALSE}"; then as_fn_error $? "conditional \"OPAL_cuda_gdr_support\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WANT_PERUSE_TRUE}" && test -z "${WANT_PERUSE_FALSE}"; then as_fn_error $? "conditional \"WANT_PERUSE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_ENABLE_MPI1_COMPAT_TRUE}" && test -z "${OMPI_ENABLE_MPI1_COMPAT_FALSE}"; then as_fn_error $? "conditional \"OMPI_ENABLE_MPI1_COMPAT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_ENABLE_GREQUEST_EXTENSIONS_TRUE}" && test -z "${OMPI_ENABLE_GREQUEST_EXTENSIONS_FALSE}"; then as_fn_error $? "conditional \"OMPI_ENABLE_GREQUEST_EXTENSIONS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SPC_ENABLE_TRUE}" && test -z "${SPC_ENABLE_FALSE}"; then as_fn_error $? "conditional \"SPC_ENABLE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE}" && test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE}"; then as_fn_error $? "conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_BUILD_MPI_CXX_BINDINGS_TRUE}" && test -z "${OMPI_BUILD_MPI_CXX_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"OMPI_BUILD_MPI_CXX_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MAN_PAGE_BUILD_MPI_CXX_BINDINGS_TRUE}" && test -z "${MAN_PAGE_BUILD_MPI_CXX_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"MAN_PAGE_BUILD_MPI_CXX_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_HAVE_JAVAH_SUPPORT_TRUE}" && test -z "${OMPI_HAVE_JAVAH_SUPPORT_FALSE}"; then as_fn_error $? "conditional \"OMPI_HAVE_JAVAH_SUPPORT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_WANT_JAVA_BINDINGS_TRUE}" && test -z "${OMPI_WANT_JAVA_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"OMPI_WANT_JAVA_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MPI_BINDINGS_LAYER_TRUE}" && test -z "${BUILD_MPI_BINDINGS_LAYER_FALSE}"; then as_fn_error $? "conditional \"BUILD_MPI_BINDINGS_LAYER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${COMPILE_PROFILING_SEPARATELY_TRUE}" && test -z "${COMPILE_PROFILING_SEPARATELY_FALSE}"; then as_fn_error $? "conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OSHMEM_PROFILING_TRUE}" && test -z "${OSHMEM_PROFILING_FALSE}"; then as_fn_error $? "conditional \"OSHMEM_PROFILING\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_FORTRAN_SIZEOF_TRUE}" && test -z "${BUILD_FORTRAN_SIZEOF_FALSE}"; then as_fn_error $? "conditional \"BUILD_FORTRAN_SIZEOF\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER_TRUE}" && test -z "${BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER_FALSE}"; then as_fn_error $? "conditional \"BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER_TRUE}" && test -z "${BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER_FALSE}"; then as_fn_error $? "conditional \"BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_BUILD_FORTRAN_MPIFH_BINDINGS_TRUE}" && test -z "${OMPI_BUILD_FORTRAN_MPIFH_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"OMPI_BUILD_FORTRAN_MPIFH_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_BUILD_FORTRAN_USEMPI_BINDINGS_TRUE}" && test -z "${OMPI_BUILD_FORTRAN_USEMPI_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"OMPI_BUILD_FORTRAN_USEMPI_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_BUILD_FORTRAN_USEMPI_TKR_BINDINGS_TRUE}" && test -z "${OMPI_BUILD_FORTRAN_USEMPI_TKR_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"OMPI_BUILD_FORTRAN_USEMPI_TKR_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_BUILD_FORTRAN_USEMPI_IGNORE_TKR_BINDINGS_TRUE}" && test -z "${OMPI_BUILD_FORTRAN_USEMPI_IGNORE_TKR_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"OMPI_BUILD_FORTRAN_USEMPI_IGNORE_TKR_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS_TRUE}" && test -z "${OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MAN_PAGE_BUILD_MPIFH_BINDINGS_TRUE}" && test -z "${MAN_PAGE_BUILD_MPIFH_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"MAN_PAGE_BUILD_MPIFH_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MAN_PAGE_BUILD_USEMPIF08_BINDINGS_TRUE}" && test -z "${MAN_PAGE_BUILD_USEMPIF08_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"MAN_PAGE_BUILD_USEMPIF08_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OSHMEM_BUILD_FORTRAN_BINDINGS_TRUE}" && test -z "${OSHMEM_BUILD_FORTRAN_BINDINGS_FALSE}"; then as_fn_error $? "conditional \"OSHMEM_BUILD_FORTRAN_BINDINGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${CASE_SENSITIVE_FS_TRUE}" && test -z "${CASE_SENSITIVE_FS_FALSE}"; then as_fn_error $? "conditional \"CASE_SENSITIVE_FS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WANT_FT_TRUE}" && test -z "${WANT_FT_FALSE}"; then as_fn_error $? "conditional \"WANT_FT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WANT_FT_CR_TRUE}" && test -z "${WANT_FT_CR_FALSE}"; then as_fn_error $? "conditional \"WANT_FT_CR\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WANT_FT_THREAD_TRUE}" && test -z "${WANT_FT_THREAD_FALSE}"; then as_fn_error $? "conditional \"WANT_FT_THREAD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_common_cuda_DSO_TRUE}" && test -z "${MCA_BUILD_opal_common_cuda_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_common_cuda_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_common_ofi_DSO_TRUE}" && test -z "${MCA_BUILD_opal_common_ofi_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_common_ofi_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_common_sm_DSO_TRUE}" && test -z "${MCA_BUILD_opal_common_sm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_common_sm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_common_ucx_DSO_TRUE}" && test -z "${MCA_BUILD_opal_common_ucx_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_common_ucx_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_common_verbs_DSO_TRUE}" && test -z "${MCA_BUILD_opal_common_verbs_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_common_verbs_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_common_verbs_usnic_DSO_TRUE}" && test -z "${MCA_BUILD_opal_common_verbs_usnic_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_common_verbs_usnic_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_allocator_basic_DSO_TRUE}" && test -z "${MCA_BUILD_opal_allocator_basic_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_allocator_basic_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_allocator_bucket_DSO_TRUE}" && test -z "${MCA_BUILD_opal_allocator_bucket_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_allocator_bucket_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_backtrace_execinfo_DSO_TRUE}" && test -z "${MCA_BUILD_opal_backtrace_execinfo_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_backtrace_execinfo_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_backtrace_printstack_DSO_TRUE}" && test -z "${MCA_BUILD_opal_backtrace_printstack_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_backtrace_printstack_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_backtrace_none_DSO_TRUE}" && test -z "${MCA_BUILD_opal_backtrace_none_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_backtrace_none_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_self_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_self_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_self_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_ofi_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_ofi_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_ofi_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_btl_openib_have_xrc_TRUE}" && test -z "${MCA_btl_openib_have_xrc_FALSE}"; then as_fn_error $? "conditional \"MCA_btl_openib_have_xrc\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_btl_openib_have_rdmacm_TRUE}" && test -z "${MCA_btl_openib_have_rdmacm_FALSE}"; then as_fn_error $? "conditional \"MCA_btl_openib_have_rdmacm\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_btl_openib_have_dynamic_sl_TRUE}" && test -z "${MCA_btl_openib_have_dynamic_sl_FALSE}"; then as_fn_error $? "conditional \"MCA_btl_openib_have_dynamic_sl\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_btl_openib_have_udcm_TRUE}" && test -z "${MCA_btl_openib_have_udcm_FALSE}"; then as_fn_error $? "conditional \"MCA_btl_openib_have_udcm\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_openib_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_openib_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_openib_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_BTL_PORTALS4_FLOW_CONTROL_TRUE}" && test -z "${OPAL_BTL_PORTALS4_FLOW_CONTROL_FALSE}"; then as_fn_error $? "conditional \"OPAL_BTL_PORTALS4_FLOW_CONTROL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_portals4_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_portals4_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_portals4_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_sm_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_sm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_sm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_smcuda_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_smcuda_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_smcuda_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_tcp_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_tcp_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_tcp_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_uct_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_uct_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_uct_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_ugni_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_ugni_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_ugni_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_BTL_USNIC_BUILD_UNIT_TESTS_TRUE}" && test -z "${OPAL_BTL_USNIC_BUILD_UNIT_TESTS_FALSE}"; then as_fn_error $? "conditional \"OPAL_BTL_USNIC_BUILD_UNIT_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_usnic_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_usnic_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_usnic_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_btl_vader_DSO_TRUE}" && test -z "${MCA_BUILD_opal_btl_vader_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_btl_vader_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_compress_bzip_DSO_TRUE}" && test -z "${MCA_BUILD_opal_compress_bzip_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_compress_bzip_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_compress_gzip_DSO_TRUE}" && test -z "${MCA_BUILD_opal_compress_gzip_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_compress_gzip_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_crs_none_DSO_TRUE}" && test -z "${MCA_BUILD_opal_crs_none_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_crs_none_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_crs_self_DSO_TRUE}" && test -z "${MCA_BUILD_opal_crs_self_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_crs_self_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_dl_dlopen_DSO_TRUE}" && test -z "${MCA_BUILD_opal_dl_dlopen_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_dl_dlopen_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_dl_libltdl_DSO_TRUE}" && test -z "${MCA_BUILD_opal_dl_libltdl_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_dl_libltdl_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_event_external_DSO_TRUE}" && test -z "${MCA_BUILD_opal_event_external_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_event_external_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_EVENT_HAVE_THREAD_SUPPORT_TRUE}" && test -z "${OPAL_EVENT_HAVE_THREAD_SUPPORT_FALSE}"; then as_fn_error $? "conditional \"OPAL_EVENT_HAVE_THREAD_SUPPORT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_event_libevent2022_DSO_TRUE}" && test -z "${MCA_BUILD_opal_event_libevent2022_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_event_libevent2022_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_hwloc_external_DSO_TRUE}" && test -z "${MCA_BUILD_opal_hwloc_external_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_hwloc_external_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_BUILD_STANDALONE_TRUE}" && test -z "${HWLOC_BUILD_STANDALONE_FALSE}"; then as_fn_error $? "conditional \"HWLOC_BUILD_STANDALONE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_GCC_TRUE}" && test -z "${HWLOC_HAVE_GCC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_GCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_MS_LIB_TRUE}" && test -z "${HWLOC_HAVE_MS_LIB_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_MS_LIB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_OPENAT_TRUE}" && test -z "${HWLOC_HAVE_OPENAT_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_OPENAT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_TRUE}" && test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_SCHED_SETAFFINITY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_PTHREAD_TRUE}" && test -z "${HWLOC_HAVE_PTHREAD_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_PTHREAD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_LINUX_LIBNUMA_TRUE}" && test -z "${HWLOC_HAVE_LINUX_LIBNUMA_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_LINUX_LIBNUMA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_LIBIBVERBS_TRUE}" && test -z "${HWLOC_HAVE_LIBIBVERBS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_LIBIBVERBS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_CUDA_TRUE}" && test -z "${HWLOC_HAVE_CUDA_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_CUDA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_GL_TRUE}" && test -z "${HWLOC_HAVE_GL_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_GL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_CUDART_TRUE}" && test -z "${HWLOC_HAVE_CUDART_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_CUDART\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_LIBXML2_TRUE}" && test -z "${HWLOC_HAVE_LIBXML2_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_LIBXML2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_CAIRO_TRUE}" && test -z "${HWLOC_HAVE_CAIRO_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_CAIRO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_PCIACCESS_TRUE}" && test -z "${HWLOC_HAVE_PCIACCESS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_PCIACCESS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_OPENCL_TRUE}" && test -z "${HWLOC_HAVE_OPENCL_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_OPENCL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_NVML_TRUE}" && test -z "${HWLOC_HAVE_NVML_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_NVML\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_BUNZIPP_TRUE}" && test -z "${HWLOC_HAVE_BUNZIPP_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_BUNZIPP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_USER32_TRUE}" && test -z "${HWLOC_HAVE_USER32_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_USER32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_BUILD_DOXYGEN_TRUE}" && test -z "${HWLOC_BUILD_DOXYGEN_FALSE}"; then as_fn_error $? "conditional \"HWLOC_BUILD_DOXYGEN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_BUILD_README_TRUE}" && test -z "${HWLOC_BUILD_README_FALSE}"; then as_fn_error $? "conditional \"HWLOC_BUILD_README\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_INSTALL_DOXYGEN_TRUE}" && test -z "${HWLOC_INSTALL_DOXYGEN_FALSE}"; then as_fn_error $? "conditional \"HWLOC_INSTALL_DOXYGEN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_LINUX_TRUE}" && test -z "${HWLOC_HAVE_LINUX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_LINUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_BGQ_TRUE}" && test -z "${HWLOC_HAVE_BGQ_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_BGQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_IRIX_TRUE}" && test -z "${HWLOC_HAVE_IRIX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_IRIX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_DARWIN_TRUE}" && test -z "${HWLOC_HAVE_DARWIN_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_DARWIN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_FREEBSD_TRUE}" && test -z "${HWLOC_HAVE_FREEBSD_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_FREEBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_NETBSD_TRUE}" && test -z "${HWLOC_HAVE_NETBSD_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_NETBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_SOLARIS_TRUE}" && test -z "${HWLOC_HAVE_SOLARIS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_SOLARIS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_AIX_TRUE}" && test -z "${HWLOC_HAVE_AIX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_AIX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_HPUX_TRUE}" && test -z "${HWLOC_HAVE_HPUX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_HPUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_WINDOWS_TRUE}" && test -z "${HWLOC_HAVE_WINDOWS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_WINDOWS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_MINGW32_TRUE}" && test -z "${HWLOC_HAVE_MINGW32_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_MINGW32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_X86_TRUE}" && test -z "${HWLOC_HAVE_X86_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_X86\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_X86_32_TRUE}" && test -z "${HWLOC_HAVE_X86_32_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_X86_32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_X86_64_TRUE}" && test -z "${HWLOC_HAVE_X86_64_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_X86_64\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_X86_CPUID_TRUE}" && test -z "${HWLOC_HAVE_X86_CPUID_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_X86_CPUID\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_PLUGINS_TRUE}" && test -z "${HWLOC_HAVE_PLUGINS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_PLUGINS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_PCI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_PCI_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_PCI_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_OPENCL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_OPENCL_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_OPENCL_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_CUDA_BUILD_STATIC_TRUE}" && test -z "${HWLOC_CUDA_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_CUDA_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_NVML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_NVML_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_NVML_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_GL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_GL_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_GL_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_XML_LIBXML_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_CXX_TRUE}" && test -z "${HWLOC_HAVE_CXX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_CXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NETLOC_TRUE}" && test -z "${BUILD_NETLOC_FALSE}"; then as_fn_error $? "conditional \"BUILD_NETLOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NETLOCSCOTCH_TRUE}" && test -z "${BUILD_NETLOCSCOTCH_FALSE}"; then as_fn_error $? "conditional \"BUILD_NETLOCSCOTCH\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MPITOOLS_TRUE}" && test -z "${BUILD_MPITOOLS_FALSE}"; then as_fn_error $? "conditional \"BUILD_MPITOOLS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${FOUND_XZ_TRUE}" && test -z "${FOUND_XZ_FALSE}"; then as_fn_error $? "conditional \"FOUND_XZ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_hwloc_hwloc201_DSO_TRUE}" && test -z "${MCA_BUILD_opal_hwloc_hwloc201_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_hwloc_hwloc201_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_if_bsdx_ipv4_DSO_TRUE}" && test -z "${MCA_BUILD_opal_if_bsdx_ipv4_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_if_bsdx_ipv4_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_if_bsdx_ipv6_DSO_TRUE}" && test -z "${MCA_BUILD_opal_if_bsdx_ipv6_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_if_bsdx_ipv6_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_if_linux_ipv6_DSO_TRUE}" && test -z "${MCA_BUILD_opal_if_linux_ipv6_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_if_linux_ipv6_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_if_posix_ipv4_DSO_TRUE}" && test -z "${MCA_BUILD_opal_if_posix_ipv4_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_if_posix_ipv4_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_if_solaris_ipv6_DSO_TRUE}" && test -z "${MCA_BUILD_opal_if_solaris_ipv6_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_if_solaris_ipv6_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_installdirs_env_DSO_TRUE}" && test -z "${MCA_BUILD_opal_installdirs_env_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_installdirs_env_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_installdirs_config_DSO_TRUE}" && test -z "${MCA_BUILD_opal_installdirs_config_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_installdirs_config_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OPAL_WANT_MEMCHECKER_TRUE}" && test -z "${OPAL_WANT_MEMCHECKER_FALSE}"; then as_fn_error $? "conditional \"OPAL_WANT_MEMCHECKER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_memchecker_valgrind_DSO_TRUE}" && test -z "${MCA_BUILD_opal_memchecker_valgrind_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_memchecker_valgrind_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_memory_patcher_DSO_TRUE}" && test -z "${MCA_BUILD_opal_memory_patcher_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_memory_patcher_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_memory_malloc_solaris_DSO_TRUE}" && test -z "${MCA_BUILD_opal_memory_malloc_solaris_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_memory_malloc_solaris_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_mpool_hugepage_DSO_TRUE}" && test -z "${MCA_BUILD_opal_mpool_hugepage_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_mpool_hugepage_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_mpool_memkind_DSO_TRUE}" && test -z "${MCA_BUILD_opal_mpool_memkind_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_mpool_memkind_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_patcher_linux_DSO_TRUE}" && test -z "${MCA_BUILD_opal_patcher_linux_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_patcher_linux_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_patcher_overwrite_DSO_TRUE}" && test -z "${MCA_BUILD_opal_patcher_overwrite_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_patcher_overwrite_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pmix_isolated_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pmix_isolated_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pmix_isolated_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pmix_cray_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pmix_cray_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pmix_cray_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pmix_ext1x_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pmix_ext1x_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pmix_ext1x_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pmix_ext2x_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pmix_ext2x_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pmix_ext2x_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pmix_ext3x_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pmix_ext3x_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pmix_ext3x_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pmix_flux_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pmix_flux_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pmix_flux_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pmix_pmix3x_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pmix_pmix3x_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pmix_pmix3x_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pmix_s1_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pmix_s1_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pmix_s1_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pmix_s2_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pmix_s2_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pmix_s2_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pstat_linux_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pstat_linux_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pstat_linux_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_pstat_test_DSO_TRUE}" && test -z "${MCA_BUILD_opal_pstat_test_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_pstat_test_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_rcache_grdma_DSO_TRUE}" && test -z "${MCA_BUILD_opal_rcache_grdma_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_rcache_grdma_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_rcache_gpusm_DSO_TRUE}" && test -z "${MCA_BUILD_opal_rcache_gpusm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_rcache_gpusm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_rcache_rgpusm_DSO_TRUE}" && test -z "${MCA_BUILD_opal_rcache_rgpusm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_rcache_rgpusm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_rcache_udreg_DSO_TRUE}" && test -z "${MCA_BUILD_opal_rcache_udreg_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_rcache_udreg_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_reachable_weighted_DSO_TRUE}" && test -z "${MCA_BUILD_opal_reachable_weighted_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_reachable_weighted_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_reachable_netlink_DSO_TRUE}" && test -z "${MCA_BUILD_opal_reachable_netlink_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_reachable_netlink_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_shmem_mmap_DSO_TRUE}" && test -z "${MCA_BUILD_opal_shmem_mmap_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_shmem_mmap_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_shmem_posix_DSO_TRUE}" && test -z "${MCA_BUILD_opal_shmem_posix_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_shmem_posix_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_shmem_sysv_DSO_TRUE}" && test -z "${MCA_BUILD_opal_shmem_sysv_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_shmem_sysv_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_timer_altix_DSO_TRUE}" && test -z "${MCA_BUILD_opal_timer_altix_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_timer_altix_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_timer_darwin_DSO_TRUE}" && test -z "${MCA_BUILD_opal_timer_darwin_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_timer_darwin_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_timer_linux_DSO_TRUE}" && test -z "${MCA_BUILD_opal_timer_linux_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_timer_linux_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_opal_timer_solaris_DSO_TRUE}" && test -z "${MCA_BUILD_opal_timer_solaris_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_opal_timer_solaris_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_common_alps_DSO_TRUE}" && test -z "${MCA_BUILD_orte_common_alps_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_common_alps_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_errmgr_default_app_DSO_TRUE}" && test -z "${MCA_BUILD_orte_errmgr_default_app_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_errmgr_default_app_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_errmgr_default_hnp_DSO_TRUE}" && test -z "${MCA_BUILD_orte_errmgr_default_hnp_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_errmgr_default_hnp_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_errmgr_default_orted_DSO_TRUE}" && test -z "${MCA_BUILD_orte_errmgr_default_orted_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_errmgr_default_orted_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_errmgr_default_tool_DSO_TRUE}" && test -z "${MCA_BUILD_orte_errmgr_default_tool_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_errmgr_default_tool_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ess_env_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ess_env_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ess_env_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ess_hnp_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ess_hnp_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ess_hnp_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ess_pmi_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ess_pmi_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ess_pmi_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ess_singleton_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ess_singleton_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ess_singleton_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ess_tool_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ess_tool_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ess_tool_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ess_alps_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ess_alps_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ess_alps_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ess_lsf_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ess_lsf_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ess_lsf_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ess_slurm_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ess_slurm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ess_slurm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ess_tm_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ess_tm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ess_tm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_filem_raw_DSO_TRUE}" && test -z "${MCA_BUILD_orte_filem_raw_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_filem_raw_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_grpcomm_direct_DSO_TRUE}" && test -z "${MCA_BUILD_orte_grpcomm_direct_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_grpcomm_direct_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_iof_hnp_DSO_TRUE}" && test -z "${MCA_BUILD_orte_iof_hnp_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_iof_hnp_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_iof_orted_DSO_TRUE}" && test -z "${MCA_BUILD_orte_iof_orted_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_iof_orted_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_iof_tool_DSO_TRUE}" && test -z "${MCA_BUILD_orte_iof_tool_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_iof_tool_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_odls_alps_DSO_TRUE}" && test -z "${MCA_BUILD_orte_odls_alps_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_odls_alps_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_odls_default_DSO_TRUE}" && test -z "${MCA_BUILD_orte_odls_default_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_odls_default_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_odls_pspawn_DSO_TRUE}" && test -z "${MCA_BUILD_orte_odls_pspawn_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_odls_pspawn_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_oob_alps_DSO_TRUE}" && test -z "${MCA_BUILD_orte_oob_alps_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_oob_alps_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_oob_tcp_DSO_TRUE}" && test -z "${MCA_BUILD_orte_oob_tcp_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_oob_tcp_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_plm_alps_DSO_TRUE}" && test -z "${MCA_BUILD_orte_plm_alps_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_plm_alps_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_plm_isolated_DSO_TRUE}" && test -z "${MCA_BUILD_orte_plm_isolated_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_plm_isolated_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_plm_lsf_DSO_TRUE}" && test -z "${MCA_BUILD_orte_plm_lsf_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_plm_lsf_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_plm_rsh_DSO_TRUE}" && test -z "${MCA_BUILD_orte_plm_rsh_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_plm_rsh_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_plm_slurm_DSO_TRUE}" && test -z "${MCA_BUILD_orte_plm_slurm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_plm_slurm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_plm_tm_DSO_TRUE}" && test -z "${MCA_BUILD_orte_plm_tm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_plm_tm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ras_simulator_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ras_simulator_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ras_simulator_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ras_alps_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ras_alps_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ras_alps_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ras_gridengine_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ras_gridengine_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ras_gridengine_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ras_lsf_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ras_lsf_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ras_lsf_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ras_slurm_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ras_slurm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ras_slurm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_ras_tm_DSO_TRUE}" && test -z "${MCA_BUILD_orte_ras_tm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_ras_tm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_regx_fwd_DSO_TRUE}" && test -z "${MCA_BUILD_orte_regx_fwd_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_regx_fwd_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_regx_naive_DSO_TRUE}" && test -z "${MCA_BUILD_orte_regx_naive_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_regx_naive_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_regx_reverse_DSO_TRUE}" && test -z "${MCA_BUILD_orte_regx_reverse_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_regx_reverse_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_rmaps_mindist_DSO_TRUE}" && test -z "${MCA_BUILD_orte_rmaps_mindist_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_rmaps_mindist_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_rmaps_ppr_DSO_TRUE}" && test -z "${MCA_BUILD_orte_rmaps_ppr_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_rmaps_ppr_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_rmaps_rank_file_DSO_TRUE}" && test -z "${MCA_BUILD_orte_rmaps_rank_file_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_rmaps_rank_file_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_rmaps_resilient_DSO_TRUE}" && test -z "${MCA_BUILD_orte_rmaps_resilient_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_rmaps_resilient_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_rmaps_round_robin_DSO_TRUE}" && test -z "${MCA_BUILD_orte_rmaps_round_robin_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_rmaps_round_robin_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_rmaps_seq_DSO_TRUE}" && test -z "${MCA_BUILD_orte_rmaps_seq_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_rmaps_seq_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_rml_oob_DSO_TRUE}" && test -z "${MCA_BUILD_orte_rml_oob_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_rml_oob_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_routed_binomial_DSO_TRUE}" && test -z "${MCA_BUILD_orte_routed_binomial_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_routed_binomial_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_routed_direct_DSO_TRUE}" && test -z "${MCA_BUILD_orte_routed_direct_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_routed_direct_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_routed_radix_DSO_TRUE}" && test -z "${MCA_BUILD_orte_routed_radix_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_routed_radix_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_rtc_hwloc_DSO_TRUE}" && test -z "${MCA_BUILD_orte_rtc_hwloc_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_rtc_hwloc_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_schizo_flux_DSO_TRUE}" && test -z "${MCA_BUILD_orte_schizo_flux_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_schizo_flux_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_schizo_ompi_DSO_TRUE}" && test -z "${MCA_BUILD_orte_schizo_ompi_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_schizo_ompi_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_schizo_orte_DSO_TRUE}" && test -z "${MCA_BUILD_orte_schizo_orte_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_schizo_orte_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_schizo_alps_DSO_TRUE}" && test -z "${MCA_BUILD_orte_schizo_alps_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_schizo_alps_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_schizo_jsm_DSO_TRUE}" && test -z "${MCA_BUILD_orte_schizo_jsm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_schizo_jsm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_schizo_moab_DSO_TRUE}" && test -z "${MCA_BUILD_orte_schizo_moab_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_schizo_moab_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_schizo_singularity_DSO_TRUE}" && test -z "${MCA_BUILD_orte_schizo_singularity_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_schizo_singularity_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_schizo_slurm_DSO_TRUE}" && test -z "${MCA_BUILD_orte_schizo_slurm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_schizo_slurm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_snapc_full_DSO_TRUE}" && test -z "${MCA_BUILD_orte_snapc_full_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_snapc_full_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_sstore_central_DSO_TRUE}" && test -z "${MCA_BUILD_orte_sstore_central_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_sstore_central_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_sstore_stage_DSO_TRUE}" && test -z "${MCA_BUILD_orte_sstore_stage_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_sstore_stage_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_state_app_DSO_TRUE}" && test -z "${MCA_BUILD_orte_state_app_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_state_app_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_state_hnp_DSO_TRUE}" && test -z "${MCA_BUILD_orte_state_hnp_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_state_hnp_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_state_novm_DSO_TRUE}" && test -z "${MCA_BUILD_orte_state_novm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_state_novm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_state_orted_DSO_TRUE}" && test -z "${MCA_BUILD_orte_state_orted_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_state_orted_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_orte_state_tool_DSO_TRUE}" && test -z "${MCA_BUILD_orte_state_tool_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_orte_state_tool_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_common_monitoring_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_common_monitoring_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_common_monitoring_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_common_ompio_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_common_ompio_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_common_ompio_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_bml_r2_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_bml_r2_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_bml_r2_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_adapt_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_adapt_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_adapt_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_basic_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_basic_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_basic_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_han_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_han_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_han_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_inter_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_inter_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_inter_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_libnbc_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_libnbc_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_libnbc_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_self_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_self_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_self_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_sm_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_sm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_sm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_sync_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_sync_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_sync_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_tuned_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_tuned_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_tuned_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_cuda_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_cuda_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_cuda_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_fca_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_fca_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_fca_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_hcoll_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_hcoll_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_hcoll_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_monitoring_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_monitoring_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_monitoring_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_portals4_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_portals4_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_portals4_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_coll_ucc_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_coll_ucc_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_coll_ucc_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_crcp_bkmrk_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_crcp_bkmrk_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_crcp_bkmrk_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fbtl_ime_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fbtl_ime_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fbtl_ime_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fbtl_posix_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fbtl_posix_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fbtl_posix_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fbtl_pvfs2_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fbtl_pvfs2_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fbtl_pvfs2_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fcoll_dynamic_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fcoll_dynamic_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fcoll_dynamic_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fcoll_dynamic_gen2_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fcoll_dynamic_gen2_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fcoll_dynamic_gen2_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fcoll_individual_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fcoll_individual_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fcoll_individual_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fcoll_two_phase_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fcoll_two_phase_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fcoll_two_phase_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fcoll_vulcan_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fcoll_vulcan_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fcoll_vulcan_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fs_gpfs_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fs_gpfs_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fs_gpfs_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fs_ime_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fs_ime_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fs_ime_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fs_lustre_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fs_lustre_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fs_lustre_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fs_pvfs2_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fs_pvfs2_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fs_pvfs2_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_fs_ufs_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_fs_ufs_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_fs_ufs_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_io_ompio_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_io_ompio_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_io_ompio_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_io_romio321_SHOULD_BUILD_TRUE}" && test -z "${MCA_io_romio321_SHOULD_BUILD_FALSE}"; then as_fn_error $? "conditional \"MCA_io_romio321_SHOULD_BUILD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_io_romio321_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_io_romio321_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_io_romio321_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_mtl_ofi_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_mtl_ofi_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_mtl_ofi_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_MTL_PORTALS4_FLOW_CONTROL_TRUE}" && test -z "${OMPI_MTL_PORTALS4_FLOW_CONTROL_FALSE}"; then as_fn_error $? "conditional \"OMPI_MTL_PORTALS4_FLOW_CONTROL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_mtl_portals4_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_mtl_portals4_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_mtl_portals4_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_mtl_psm_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_mtl_psm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_mtl_psm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_mtl_psm2_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_mtl_psm2_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_mtl_psm2_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_op_has_avx512_support_TRUE}" && test -z "${MCA_BUILD_ompi_op_has_avx512_support_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_op_has_avx512_support\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_op_has_avx2_support_TRUE}" && test -z "${MCA_BUILD_ompi_op_has_avx2_support_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_op_has_avx2_support\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_op_has_avx_support_TRUE}" && test -z "${MCA_BUILD_ompi_op_has_avx_support_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_op_has_avx_support\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_op_has_sse41_support_TRUE}" && test -z "${MCA_BUILD_ompi_op_has_sse41_support_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_op_has_sse41_support\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_op_has_sse3_support_TRUE}" && test -z "${MCA_BUILD_ompi_op_has_sse3_support_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_op_has_sse3_support\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_op_avx_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_op_avx_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_op_avx_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_osc_sm_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_osc_sm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_osc_sm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_osc_monitoring_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_osc_monitoring_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_osc_monitoring_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_osc_portals4_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_osc_portals4_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_osc_portals4_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_osc_pt2pt_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_osc_pt2pt_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_osc_pt2pt_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_osc_rdma_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_osc_rdma_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_osc_rdma_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_osc_ucx_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_osc_ucx_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_osc_ucx_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_pml_cm_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_pml_cm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_pml_cm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_pml_crcpw_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_pml_crcpw_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_pml_crcpw_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_pml_monitoring_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_pml_monitoring_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_pml_monitoring_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_pml_ob1_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_pml_ob1_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_pml_ob1_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_pml_ucx_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_pml_ucx_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_pml_ucx_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_pml_v_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_pml_v_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_pml_v_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_pml_yalla_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_pml_yalla_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_pml_yalla_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_RTE_PMIX_TRUE}" && test -z "${OMPI_RTE_PMIX_FALSE}"; then as_fn_error $? "conditional \"OMPI_RTE_PMIX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_rte_pmix_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_rte_pmix_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_rte_pmix_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_RTE_ORTE_TRUE}" && test -z "${OMPI_RTE_ORTE_FALSE}"; then as_fn_error $? "conditional \"OMPI_RTE_ORTE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_rte_orte_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_rte_orte_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_rte_orte_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_sharedfp_individual_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_sharedfp_individual_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_sharedfp_individual_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_sharedfp_lockedfile_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_sharedfp_lockedfile_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_sharedfp_lockedfile_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_sharedfp_sm_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_sharedfp_sm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_sharedfp_sm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_topo_basic_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_topo_basic_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_topo_basic_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${topo_treematch_local_TRUE}" && test -z "${topo_treematch_local_FALSE}"; then as_fn_error $? "conditional \"topo_treematch_local\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_topo_treematch_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_topo_treematch_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_topo_treematch_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_ompi_vprotocol_pessimist_DSO_TRUE}" && test -z "${MCA_BUILD_ompi_vprotocol_pessimist_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_ompi_vprotocol_pessimist_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_atomic_basic_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_atomic_basic_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_atomic_basic_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_atomic_mxm_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_atomic_mxm_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_atomic_mxm_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_atomic_ucx_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_atomic_ucx_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_atomic_ucx_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_memheap_buddy_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_memheap_buddy_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_memheap_buddy_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_memheap_ptmalloc_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_memheap_ptmalloc_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_memheap_ptmalloc_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_scoll_basic_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_scoll_basic_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_scoll_basic_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_scoll_mpi_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_scoll_mpi_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_scoll_mpi_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_scoll_fca_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_scoll_fca_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_scoll_fca_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_scoll_ucc_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_scoll_ucc_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_scoll_ucc_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_spml_ikrit_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_spml_ikrit_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_spml_ikrit_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_spml_ucx_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_spml_ucx_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_spml_ucx_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_sshmem_mmap_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_sshmem_mmap_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_sshmem_mmap_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_sshmem_sysv_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_sshmem_sysv_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_sshmem_sysv_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_sshmem_ucx_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_sshmem_ucx_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_sshmem_ucx_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MCA_BUILD_oshmem_sshmem_verbs_DSO_TRUE}" && test -z "${MCA_BUILD_oshmem_sshmem_verbs_DSO_FALSE}"; then as_fn_error $? "conditional \"MCA_BUILD_oshmem_sshmem_verbs_DSO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_BUILD_FORTRAN_USEMPI_EXT_TRUE}" && test -z "${OMPI_BUILD_FORTRAN_USEMPI_EXT_FALSE}"; then as_fn_error $? "conditional \"OMPI_BUILD_FORTRAN_USEMPI_EXT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_BUILD_FORTRAN_USEMPIF08_EXT_TRUE}" && test -z "${OMPI_BUILD_FORTRAN_USEMPIF08_EXT_FALSE}"; then as_fn_error $? "conditional \"OMPI_BUILD_FORTRAN_USEMPIF08_EXT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${OMPI_BUILD_FORTRAN_USEMPI_OR_USEMPIF08_EXT_TRUE}" && test -z "${OMPI_BUILD_FORTRAN_USEMPI_OR_USEMPIF08_EXT_FALSE}"; then as_fn_error $? "conditional \"OMPI_BUILD_FORTRAN_USEMPI_OR_USEMPIF08_EXT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${PROJECT_OMPI_TRUE}" && test -z "${PROJECT_OMPI_FALSE}"; then as_fn_error $? "conditional \"PROJECT_OMPI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${PROJECT_ORTE_TRUE}" && test -z "${PROJECT_ORTE_FALSE}"; then as_fn_error $? "conditional \"PROJECT_ORTE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${PROJECT_OSHMEM_TRUE}" && test -z "${PROJECT_OSHMEM_FALSE}"; then as_fn_error $? "conditional \"PROJECT_OSHMEM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 # 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 # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -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 # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # 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_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'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by Open MPI $as_me 4.1.4, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ Open MPI config.status 4.1.4 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in NM \ AS \ DLLTOOL \ OBJDUMP \ SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ LD_FC \ reload_flag_CXX \ reload_flag_FC \ compiler_CXX \ compiler_FC \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_no_builtin_flag_FC \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_pic_FC \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_wl_FC \ lt_prog_compiler_static_CXX \ lt_prog_compiler_static_FC \ lt_cv_prog_compiler_c_o_CXX \ lt_cv_prog_compiler_c_o_FC \ export_dynamic_flag_spec_CXX \ export_dynamic_flag_spec_FC \ whole_archive_flag_spec_CXX \ whole_archive_flag_spec_FC \ compiler_needs_object_CXX \ compiler_needs_object_FC \ with_gnu_ld_CXX \ with_gnu_ld_FC \ allow_undefined_flag_CXX \ allow_undefined_flag_FC \ no_undefined_flag_CXX \ no_undefined_flag_FC \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_FC \ hardcode_libdir_separator_CXX \ hardcode_libdir_separator_FC \ exclude_expsyms_CXX \ exclude_expsyms_FC \ include_expsyms_CXX \ include_expsyms_FC \ file_list_spec_CXX \ file_list_spec_FC \ compiler_lib_search_dirs_CXX \ compiler_lib_search_dirs_FC \ predep_objects_CXX \ predep_objects_FC \ postdep_objects_CXX \ postdep_objects_FC \ predeps_CXX \ predeps_FC \ postdeps_CXX \ postdeps_FC \ compiler_lib_search_path_CXX \ compiler_lib_search_path_FC; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path \ reload_cmds_CXX \ reload_cmds_FC \ old_archive_cmds_CXX \ old_archive_cmds_FC \ old_archive_from_new_cmds_CXX \ old_archive_from_new_cmds_FC \ old_archive_from_expsyms_cmds_CXX \ old_archive_from_expsyms_cmds_FC \ archive_cmds_CXX \ archive_cmds_FC \ archive_expsym_cmds_CXX \ archive_expsym_cmds_FC \ module_cmds_CXX \ module_cmds_FC \ module_expsym_cmds_CXX \ module_expsym_cmds_FC \ export_symbols_cmds_CXX \ export_symbols_cmds_FC \ prelink_cmds_CXX \ prelink_cmds_FC \ postlink_cmds_CXX \ postlink_cmds_FC; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' ac_aux_dir='$ac_aux_dir' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "ompi/include/ompi/version.h") CONFIG_FILES="$CONFIG_FILES ompi/include/ompi/version.h" ;; "orte/include/orte/version.h") CONFIG_FILES="$CONFIG_FILES orte/include/orte/version.h" ;; "oshmem/include/oshmem/version.h") CONFIG_FILES="$CONFIG_FILES oshmem/include/oshmem/version.h" ;; "opal/include/opal/version.h") CONFIG_FILES="$CONFIG_FILES opal/include/opal/version.h" ;; "opal/include/opal_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/include/opal_config.h" ;; "ompi/include/mpi.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/mpi.h" ;; "oshmem/include/shmem.h") CONFIG_HEADERS="$CONFIG_HEADERS oshmem/include/shmem.h" ;; "ompi/mpi/java/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/java/Makefile" ;; "ompi/mpi/java/java/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/java/java/Makefile" ;; "ompi/mpi/java/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/java/c/Makefile" ;; "ompi/mpi/fortran/configure-fortran-output.h") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/configure-fortran-output.h" ;; "opal/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/common/Makefile" ;; "opal/mca/common/cuda/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/common/cuda/Makefile" ;; "opal/mca/common/ofi/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/common/ofi/Makefile" ;; "opal/mca/common/sm/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/common/sm/Makefile" ;; "opal/mca/common/ucx/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/common/ucx/Makefile" ;; "opal/mca/common/verbs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/common/verbs/Makefile" ;; "opal/mca/common/verbs_usnic/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/common/verbs_usnic/Makefile" ;; "opal/mca/allocator/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/allocator/Makefile" ;; "opal/mca/allocator/basic/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/allocator/basic/Makefile" ;; "opal/mca/allocator/bucket/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/allocator/bucket/Makefile" ;; "opal/mca/backtrace/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/Makefile" ;; "opal/mca/backtrace/execinfo/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/execinfo/Makefile" ;; "opal/mca/backtrace/printstack/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/printstack/Makefile" ;; "opal/mca/backtrace/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/none/Makefile" ;; "opal/mca/btl/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/Makefile" ;; "opal/mca/btl/self/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/self/Makefile" ;; "opal/mca/btl/ofi/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/ofi/Makefile" ;; "opal/mca/btl/openib/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/openib/Makefile" ;; "opal/mca/btl/portals4/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/portals4/Makefile" ;; "opal/mca/btl/sm/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/sm/Makefile" ;; "opal/mca/btl/smcuda/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/smcuda/Makefile" ;; "opal/mca/btl/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/tcp/Makefile" ;; "opal/mca/btl/uct/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/uct/Makefile" ;; "opal/mca/btl/ugni/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/ugni/Makefile" ;; "opal/mca/btl/usnic/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/usnic/Makefile" ;; "opal/mca/btl/vader/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/btl/vader/Makefile" ;; "opal/mca/compress/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/compress/Makefile" ;; "opal/mca/compress/bzip/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/compress/bzip/Makefile" ;; "opal/mca/compress/gzip/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/compress/gzip/Makefile" ;; "opal/mca/crs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/Makefile" ;; "opal/mca/crs/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/none/Makefile" ;; "opal/mca/crs/self/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/self/Makefile" ;; "opal/mca/dl/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/dl/Makefile" ;; "opal/mca/dl/dlopen/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/dl/dlopen/Makefile" ;; "opal/mca/dl/libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/dl/libltdl/Makefile" ;; "opal/mca/event/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/event/Makefile" ;; "opal/mca/event/external/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/event/external/Makefile" ;; "opal/mca/event/libevent2022/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/event/libevent2022/Makefile" ;; "opal/mca/event/libevent2022/libevent/include/event2/event-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS opal/mca/event/libevent2022/libevent/include/event2/event-config.h" ;; "opal/mca/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/hwloc/Makefile" ;; "opal/mca/hwloc/external/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/hwloc/external/Makefile" ;; "opal/mca/hwloc/hwloc201/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/hwloc/hwloc201/Makefile" ;; "opal/mca/hwloc/hwloc201/hwloc/include/private/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/hwloc/hwloc201/hwloc/include/private/autogen/config.h" ;; "opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen/config.h" ;; "opal/mca/hwloc/hwloc201/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/hwloc/hwloc201/hwloc/Makefile" ;; "opal/mca/hwloc/hwloc201/hwloc/include/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/hwloc/hwloc201/hwloc/include/Makefile" ;; "opal/mca/hwloc/hwloc201/hwloc/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/hwloc/hwloc201/hwloc/hwloc/Makefile" ;; "opal/mca/if/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/if/Makefile" ;; "opal/mca/if/bsdx_ipv4/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/if/bsdx_ipv4/Makefile" ;; "opal/mca/if/bsdx_ipv6/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/if/bsdx_ipv6/Makefile" ;; "opal/mca/if/linux_ipv6/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/if/linux_ipv6/Makefile" ;; "opal/mca/if/posix_ipv4/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/if/posix_ipv4/Makefile" ;; "opal/mca/if/solaris_ipv6/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/if/solaris_ipv6/Makefile" ;; "opal/mca/installdirs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/Makefile" ;; "opal/mca/installdirs/env/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/env/Makefile" ;; "opal/mca/installdirs/config/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/Makefile" ;; "opal/mca/installdirs/config/install_dirs.h") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/install_dirs.h" ;; "opal/mca/memchecker/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/Makefile" ;; "opal/mca/memchecker/valgrind/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/valgrind/Makefile" ;; "opal/mca/memcpy/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memcpy/Makefile" ;; "opal/mca/memory/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/Makefile" ;; "opal/mca/memory/patcher/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/patcher/Makefile" ;; "opal/mca/memory/malloc_solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/malloc_solaris/Makefile" ;; "opal/mca/mpool/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/mpool/Makefile" ;; "opal/mca/mpool/hugepage/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/mpool/hugepage/Makefile" ;; "opal/mca/mpool/memkind/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/mpool/memkind/Makefile" ;; "opal/mca/patcher/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/patcher/Makefile" ;; "opal/mca/patcher/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/patcher/linux/Makefile" ;; "opal/mca/patcher/overwrite/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/patcher/overwrite/Makefile" ;; "opal/mca/pmix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/Makefile" ;; "opal/mca/pmix/isolated/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/isolated/Makefile" ;; "opal/mca/pmix/cray/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/cray/Makefile" ;; "opal/mca/pmix/ext1x/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/ext1x/Makefile" ;; "opal/mca/pmix/ext2x/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/ext2x/Makefile" ;; "opal/mca/pmix/ext3x/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/ext3x/Makefile" ;; "opal/mca/pmix/flux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/flux/Makefile" ;; "opal/mca/pmix/pmix3x/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/pmix3x/Makefile" ;; "opal/mca/pmix/s1/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/s1/Makefile" ;; "opal/mca/pmix/s2/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pmix/s2/Makefile" ;; "opal/mca/pstat/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pstat/Makefile" ;; "opal/mca/pstat/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pstat/linux/Makefile" ;; "opal/mca/pstat/test/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/pstat/test/Makefile" ;; "opal/mca/rcache/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/rcache/Makefile" ;; "opal/mca/rcache/grdma/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/rcache/grdma/Makefile" ;; "opal/mca/rcache/gpusm/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/rcache/gpusm/Makefile" ;; "opal/mca/rcache/rgpusm/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/rcache/rgpusm/Makefile" ;; "opal/mca/rcache/udreg/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/rcache/udreg/Makefile" ;; "opal/mca/reachable/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/reachable/Makefile" ;; "opal/mca/reachable/weighted/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/reachable/weighted/Makefile" ;; "opal/mca/reachable/netlink/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/reachable/netlink/Makefile" ;; "opal/mca/shmem/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/shmem/Makefile" ;; "opal/mca/shmem/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/shmem/mmap/Makefile" ;; "opal/mca/shmem/posix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/shmem/posix/Makefile" ;; "opal/mca/shmem/sysv/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/shmem/sysv/Makefile" ;; "opal/mca/timer/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/Makefile" ;; "opal/mca/timer/altix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/altix/Makefile" ;; "opal/mca/timer/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/darwin/Makefile" ;; "opal/mca/timer/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/linux/Makefile" ;; "opal/mca/timer/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/solaris/Makefile" ;; "orte/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/common/Makefile" ;; "orte/mca/common/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/common/alps/Makefile" ;; "orte/mca/errmgr/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/Makefile" ;; "orte/mca/errmgr/default_app/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/default_app/Makefile" ;; "orte/mca/errmgr/default_hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/default_hnp/Makefile" ;; "orte/mca/errmgr/default_orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/default_orted/Makefile" ;; "orte/mca/errmgr/default_tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/default_tool/Makefile" ;; "orte/mca/ess/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/Makefile" ;; "orte/mca/ess/env/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/env/Makefile" ;; "orte/mca/ess/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/hnp/Makefile" ;; "orte/mca/ess/pmi/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/pmi/Makefile" ;; "orte/mca/ess/singleton/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/singleton/Makefile" ;; "orte/mca/ess/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/tool/Makefile" ;; "orte/mca/ess/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/alps/Makefile" ;; "orte/mca/ess/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/lsf/Makefile" ;; "orte/mca/ess/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/slurm/Makefile" ;; "orte/mca/ess/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/tm/Makefile" ;; "orte/mca/filem/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/Makefile" ;; "orte/mca/filem/raw/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/raw/Makefile" ;; "orte/mca/grpcomm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/Makefile" ;; "orte/mca/grpcomm/direct/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/direct/Makefile" ;; "orte/mca/iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/Makefile" ;; "orte/mca/iof/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/hnp/Makefile" ;; "orte/mca/iof/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/orted/Makefile" ;; "orte/mca/iof/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/tool/Makefile" ;; "orte/mca/odls/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/Makefile" ;; "orte/mca/odls/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/alps/Makefile" ;; "orte/mca/odls/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/default/Makefile" ;; "orte/mca/odls/pspawn/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/pspawn/Makefile" ;; "orte/mca/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/Makefile" ;; "orte/mca/oob/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/alps/Makefile" ;; "orte/mca/oob/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/tcp/Makefile" ;; "orte/mca/plm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/Makefile" ;; "orte/mca/plm/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/alps/Makefile" ;; "orte/mca/plm/isolated/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/isolated/Makefile" ;; "orte/mca/plm/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/lsf/Makefile" ;; "orte/mca/plm/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/rsh/Makefile" ;; "orte/mca/plm/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/slurm/Makefile" ;; "orte/mca/plm/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/tm/Makefile" ;; "orte/mca/ras/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/Makefile" ;; "orte/mca/ras/simulator/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/simulator/Makefile" ;; "orte/mca/ras/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/alps/Makefile" ;; "orte/mca/ras/gridengine/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/gridengine/Makefile" ;; "orte/mca/ras/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/lsf/Makefile" ;; "orte/mca/ras/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/slurm/Makefile" ;; "orte/mca/ras/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/tm/Makefile" ;; "orte/mca/regx/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/regx/Makefile" ;; "orte/mca/regx/fwd/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/regx/fwd/Makefile" ;; "orte/mca/regx/naive/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/regx/naive/Makefile" ;; "orte/mca/regx/reverse/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/regx/reverse/Makefile" ;; "orte/mca/rmaps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/Makefile" ;; "orte/mca/rmaps/mindist/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/mindist/Makefile" ;; "orte/mca/rmaps/ppr/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/ppr/Makefile" ;; "orte/mca/rmaps/rank_file/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/rank_file/Makefile" ;; "orte/mca/rmaps/resilient/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/resilient/Makefile" ;; "orte/mca/rmaps/round_robin/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/round_robin/Makefile" ;; "orte/mca/rmaps/seq/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/seq/Makefile" ;; "orte/mca/rml/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/Makefile" ;; "orte/mca/rml/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/oob/Makefile" ;; "orte/mca/routed/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/Makefile" ;; "orte/mca/routed/binomial/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/binomial/Makefile" ;; "orte/mca/routed/direct/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/direct/Makefile" ;; "orte/mca/routed/radix/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/radix/Makefile" ;; "orte/mca/rtc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rtc/Makefile" ;; "orte/mca/rtc/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rtc/hwloc/Makefile" ;; "orte/mca/schizo/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schizo/Makefile" ;; "orte/mca/schizo/flux/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schizo/flux/Makefile" ;; "orte/mca/schizo/ompi/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schizo/ompi/Makefile" ;; "orte/mca/schizo/orte/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schizo/orte/Makefile" ;; "orte/mca/schizo/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schizo/alps/Makefile" ;; "orte/mca/schizo/jsm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schizo/jsm/Makefile" ;; "orte/mca/schizo/moab/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schizo/moab/Makefile" ;; "orte/mca/schizo/singularity/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schizo/singularity/Makefile" ;; "orte/mca/schizo/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schizo/slurm/Makefile" ;; "orte/mca/snapc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/Makefile" ;; "orte/mca/snapc/full/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/full/Makefile" ;; "orte/mca/sstore/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sstore/Makefile" ;; "orte/mca/sstore/central/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sstore/central/Makefile" ;; "orte/mca/sstore/stage/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sstore/stage/Makefile" ;; "orte/mca/state/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/state/Makefile" ;; "orte/mca/state/app/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/state/app/Makefile" ;; "orte/mca/state/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/state/hnp/Makefile" ;; "orte/mca/state/novm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/state/novm/Makefile" ;; "orte/mca/state/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/state/orted/Makefile" ;; "orte/mca/state/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/state/tool/Makefile" ;; "ompi/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/Makefile" ;; "ompi/mca/common/monitoring/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/monitoring/Makefile" ;; "ompi/mca/common/ompio/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/ompio/Makefile" ;; "ompi/mca/bml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/Makefile" ;; "ompi/mca/bml/r2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/r2/Makefile" ;; "ompi/mca/coll/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/Makefile" ;; "ompi/mca/coll/adapt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/adapt/Makefile" ;; "ompi/mca/coll/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/basic/Makefile" ;; "ompi/mca/coll/han/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/han/Makefile" ;; "ompi/mca/coll/inter/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/inter/Makefile" ;; "ompi/mca/coll/libnbc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/libnbc/Makefile" ;; "ompi/mca/coll/self/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/self/Makefile" ;; "ompi/mca/coll/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/sm/Makefile" ;; "ompi/mca/coll/sync/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/sync/Makefile" ;; "ompi/mca/coll/tuned/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/tuned/Makefile" ;; "ompi/mca/coll/cuda/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/cuda/Makefile" ;; "ompi/mca/coll/fca/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/fca/Makefile" ;; "ompi/mca/coll/hcoll/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/hcoll/Makefile" ;; "ompi/mca/coll/monitoring/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/monitoring/Makefile" ;; "ompi/mca/coll/portals4/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/portals4/Makefile" ;; "ompi/mca/coll/ucc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/ucc/Makefile" ;; "ompi/mca/crcp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/Makefile" ;; "ompi/mca/crcp/bkmrk/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/bkmrk/Makefile" ;; "ompi/mca/fbtl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fbtl/Makefile" ;; "ompi/mca/fbtl/ime/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fbtl/ime/Makefile" ;; "ompi/mca/fbtl/posix/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fbtl/posix/Makefile" ;; "ompi/mca/fbtl/pvfs2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fbtl/pvfs2/Makefile" ;; "ompi/mca/fcoll/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fcoll/Makefile" ;; "ompi/mca/fcoll/dynamic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fcoll/dynamic/Makefile" ;; "ompi/mca/fcoll/dynamic_gen2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fcoll/dynamic_gen2/Makefile" ;; "ompi/mca/fcoll/individual/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fcoll/individual/Makefile" ;; "ompi/mca/fcoll/two_phase/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fcoll/two_phase/Makefile" ;; "ompi/mca/fcoll/vulcan/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fcoll/vulcan/Makefile" ;; "ompi/mca/fs/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fs/Makefile" ;; "ompi/mca/fs/gpfs/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fs/gpfs/Makefile" ;; "ompi/mca/fs/ime/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fs/ime/Makefile" ;; "ompi/mca/fs/lustre/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fs/lustre/Makefile" ;; "ompi/mca/fs/pvfs2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fs/pvfs2/Makefile" ;; "ompi/mca/fs/ufs/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/fs/ufs/Makefile" ;; "ompi/mca/hook/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/hook/Makefile" ;; "ompi/mca/io/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/Makefile" ;; "ompi/mca/io/ompio/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/ompio/Makefile" ;; "ompi/mca/io/romio321/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/romio321/Makefile" ;; "ompi/mca/mtl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/Makefile" ;; "ompi/mca/mtl/ofi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/ofi/Makefile" ;; "ompi/mca/mtl/portals4/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/portals4/Makefile" ;; "ompi/mca/mtl/psm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/psm/Makefile" ;; "ompi/mca/mtl/psm2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/psm2/Makefile" ;; "ompi/mca/op/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/op/Makefile" ;; "ompi/mca/op/avx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/op/avx/Makefile" ;; "ompi/mca/osc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/Makefile" ;; "ompi/mca/osc/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/sm/Makefile" ;; "ompi/mca/osc/monitoring/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/monitoring/Makefile" ;; "ompi/mca/osc/monitoring/osc_monitoring_template_gen.h") CONFIG_COMMANDS="$CONFIG_COMMANDS ompi/mca/osc/monitoring/osc_monitoring_template_gen.h" ;; "ompi/mca/osc/portals4/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/portals4/Makefile" ;; "ompi/mca/osc/pt2pt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/pt2pt/Makefile" ;; "ompi/mca/osc/rdma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/rdma/Makefile" ;; "ompi/mca/osc/ucx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/ucx/Makefile" ;; "ompi/mca/pml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/Makefile" ;; "ompi/mca/pml/cm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/cm/Makefile" ;; "ompi/mca/pml/crcpw/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/crcpw/Makefile" ;; "ompi/mca/pml/monitoring/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/monitoring/Makefile" ;; "ompi/mca/pml/ob1/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/ob1/Makefile" ;; "ompi/mca/pml/ucx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/ucx/Makefile" ;; "ompi/mca/pml/v/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/Makefile" ;; "ompi/mca/pml/yalla/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/yalla/Makefile" ;; "ompi/mca/rte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rte/Makefile" ;; "ompi/mca/rte/pmix/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rte/pmix/Makefile" ;; "ompi/mca/rte/orte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rte/orte/Makefile" ;; "ompi/mca/sharedfp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/sharedfp/Makefile" ;; "ompi/mca/sharedfp/individual/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/sharedfp/individual/Makefile" ;; "ompi/mca/sharedfp/lockedfile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/sharedfp/lockedfile/Makefile" ;; "ompi/mca/sharedfp/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/sharedfp/sm/Makefile" ;; "ompi/mca/topo/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/Makefile" ;; "ompi/mca/topo/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/basic/Makefile" ;; "ompi/mca/topo/treematch/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/treematch/Makefile" ;; "ompi/mca/vprotocol/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/vprotocol/Makefile" ;; "ompi/mca/vprotocol/pessimist/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/vprotocol/pessimist/Makefile" ;; "oshmem/mca/atomic/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/atomic/Makefile" ;; "oshmem/mca/atomic/basic/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/atomic/basic/Makefile" ;; "oshmem/mca/atomic/mxm/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/atomic/mxm/Makefile" ;; "oshmem/mca/atomic/ucx/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/atomic/ucx/Makefile" ;; "oshmem/mca/memheap/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/memheap/Makefile" ;; "oshmem/mca/memheap/buddy/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/memheap/buddy/Makefile" ;; "oshmem/mca/memheap/ptmalloc/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/memheap/ptmalloc/Makefile" ;; "oshmem/mca/scoll/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/scoll/Makefile" ;; "oshmem/mca/scoll/basic/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/scoll/basic/Makefile" ;; "oshmem/mca/scoll/mpi/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/scoll/mpi/Makefile" ;; "oshmem/mca/scoll/fca/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/scoll/fca/Makefile" ;; "oshmem/mca/scoll/ucc/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/scoll/ucc/Makefile" ;; "oshmem/mca/spml/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/spml/Makefile" ;; "oshmem/mca/spml/ikrit/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/spml/ikrit/Makefile" ;; "oshmem/mca/spml/ucx/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/spml/ucx/Makefile" ;; "oshmem/mca/sshmem/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/sshmem/Makefile" ;; "oshmem/mca/sshmem/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/sshmem/mmap/Makefile" ;; "oshmem/mca/sshmem/sysv/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/sshmem/sysv/Makefile" ;; "oshmem/mca/sshmem/ucx/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/sshmem/ucx/Makefile" ;; "oshmem/mca/sshmem/verbs/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/mca/sshmem/verbs/Makefile" ;; "ompi/mpiext/affinity/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/affinity/Makefile" ;; "ompi/mpiext/affinity/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/affinity/c/Makefile" ;; "ompi/mpiext/cr/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/cr/Makefile" ;; "ompi/mpiext/cr/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/cr/c/Makefile" ;; "ompi/mpiext/cuda/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/cuda/Makefile" ;; "ompi/mpiext/cuda/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/cuda/c/Makefile" ;; "ompi/mpiext/cuda/c/mpiext_cuda_c.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/mpiext/cuda/c/mpiext_cuda_c.h" ;; "ompi/mpiext/pcollreq/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/pcollreq/Makefile" ;; "ompi/mpiext/pcollreq/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/pcollreq/c/Makefile" ;; "ompi/mpiext/pcollreq/c/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/pcollreq/c/profile/Makefile" ;; "ompi/mpiext/pcollreq/mpif-h/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/pcollreq/mpif-h/Makefile" ;; "ompi/mpiext/pcollreq/mpif-h/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/pcollreq/mpif-h/profile/Makefile" ;; "ompi/mpiext/pcollreq/use-mpi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/pcollreq/use-mpi/Makefile" ;; "ompi/mpiext/pcollreq/use-mpi-f08/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpiext/pcollreq/use-mpi-f08/Makefile" ;; "ompi/contrib/libompitrace/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/libompitrace/Makefile" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "ompi/tools/wrappers/ompi_wrapper_script") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi_wrapper_script" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; "contrib/dist/mofed/debian/changelog") CONFIG_FILES="$CONFIG_FILES contrib/dist/mofed/debian/changelog" ;; "contrib/dist/mofed/debian/control") CONFIG_FILES="$CONFIG_FILES contrib/dist/mofed/debian/control" ;; "contrib/dist/mofed/debian/copyright") CONFIG_FILES="$CONFIG_FILES contrib/dist/mofed/debian/copyright:LICENSE" ;; "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; "test/event/Makefile") CONFIG_FILES="$CONFIG_FILES test/event/Makefile" ;; "test/asm/Makefile") CONFIG_FILES="$CONFIG_FILES test/asm/Makefile" ;; "test/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES test/datatype/Makefile" ;; "test/dss/Makefile") CONFIG_FILES="$CONFIG_FILES test/dss/Makefile" ;; "test/class/Makefile") CONFIG_FILES="$CONFIG_FILES test/class/Makefile" ;; "test/mpool/Makefile") CONFIG_FILES="$CONFIG_FILES test/mpool/Makefile" ;; "test/support/Makefile") CONFIG_FILES="$CONFIG_FILES test/support/Makefile" ;; "test/threads/Makefile") CONFIG_FILES="$CONFIG_FILES test/threads/Makefile" ;; "test/util/Makefile") CONFIG_FILES="$CONFIG_FILES test/util/Makefile" ;; "test/monitoring/Makefile") CONFIG_FILES="$CONFIG_FILES test/monitoring/Makefile" ;; "test/spc/Makefile") CONFIG_FILES="$CONFIG_FILES test/spc/Makefile" ;; "contrib/dist/mofed/debian/rules") CONFIG_FILES="$CONFIG_FILES contrib/dist/mofed/debian/rules" ;; "contrib/dist/mofed/compile_debian_mlnx_example") CONFIG_FILES="$CONFIG_FILES contrib/dist/mofed/compile_debian_mlnx_example" ;; "opal/Makefile") CONFIG_FILES="$CONFIG_FILES opal/Makefile" ;; "opal/etc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/etc/Makefile" ;; "opal/include/Makefile") CONFIG_FILES="$CONFIG_FILES opal/include/Makefile" ;; "opal/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES opal/datatype/Makefile" ;; "opal/util/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/Makefile" ;; "opal/util/keyval/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/keyval/Makefile" ;; "opal/mca/base/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/base/Makefile" ;; "opal/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/Makefile" ;; "opal/tools/wrappers/opalcc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalcc-wrapper-data.txt" ;; "opal/tools/wrappers/opalc++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalc++-wrapper-data.txt" ;; "opal/tools/wrappers/opal.pc") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opal.pc" ;; "opal/tools/opal-checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-checkpoint/Makefile" ;; "opal/tools/opal-restart/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-restart/Makefile" ;; "orte/Makefile") CONFIG_FILES="$CONFIG_FILES orte/Makefile" ;; "orte/include/Makefile") CONFIG_FILES="$CONFIG_FILES orte/include/Makefile" ;; "orte/etc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/etc/Makefile" ;; "orte/orted/orted-mpir/Makefile") CONFIG_FILES="$CONFIG_FILES orte/orted/orted-mpir/Makefile" ;; "orte/tools/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orted/Makefile" ;; "orte/tools/orterun/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orterun/Makefile" ;; "orte/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/Makefile" ;; "orte/tools/wrappers/ortecc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortecc-wrapper-data.txt" ;; "orte/tools/wrappers/orte.pc") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/orte.pc" ;; "orte/tools/orte-clean/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-clean/Makefile" ;; "orte/tools/orte-info/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-info/Makefile" ;; "orte/tools/orte-server/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-server/Makefile" ;; "ompi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/Makefile" ;; "ompi/etc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/etc/Makefile" ;; "ompi/include/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/include/Makefile" ;; "ompi/include/mpif.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif.h" ;; "ompi/include/mpif-config.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif-config.h" ;; "ompi/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/datatype/Makefile" ;; "ompi/debuggers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/debuggers/Makefile" ;; "ompi/mpi/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/Makefile" ;; "ompi/mpi/c/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/profile/Makefile" ;; "ompi/mpi/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/cxx/Makefile" ;; "ompi/mpi/fortran/base/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/base/Makefile" ;; "ompi/mpi/fortran/mpif-h/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/mpif-h/Makefile" ;; "ompi/mpi/fortran/mpif-h/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/mpif-h/profile/Makefile" ;; "ompi/mpi/fortran/use-mpi-tkr/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-tkr/Makefile" ;; "ompi/mpi/fortran/use-mpi-tkr/fortran_sizes.h") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-tkr/fortran_sizes.h" ;; "ompi/mpi/fortran/use-mpi-tkr/fortran_kinds.sh") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-tkr/fortran_kinds.sh" ;; "ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile" ;; "ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-interfaces.h") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-interfaces.h" ;; "ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-file-interfaces.h") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-file-interfaces.h" ;; "ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-removed-interfaces.h") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-removed-interfaces.h" ;; "ompi/mpi/fortran/use-mpi-f08/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-f08/Makefile" ;; "ompi/mpi/fortran/use-mpi-f08/base/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-f08/base/Makefile" ;; "ompi/mpi/fortran/use-mpi-f08/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-f08/bindings/Makefile" ;; "ompi/mpi/fortran/use-mpi-f08/mod/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/use-mpi-f08/mod/Makefile" ;; "ompi/mpi/fortran/mpiext-use-mpi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/mpiext-use-mpi/Makefile" ;; "ompi/mpi/fortran/mpiext-use-mpi-f08/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/fortran/mpiext-use-mpi-f08/Makefile" ;; "ompi/mpi/tool/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/tool/Makefile" ;; "ompi/mpi/tool/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/tool/profile/Makefile" ;; "ompi/tools/ompi_info/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi_info/Makefile" ;; "ompi/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/Makefile" ;; "ompi/tools/wrappers/mpicc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpicc-wrapper-data.txt" ;; "ompi/tools/wrappers/mpic++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpic++-wrapper-data.txt" ;; "ompi/tools/wrappers/mpifort-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpifort-wrapper-data.txt" ;; "ompi/tools/wrappers/ompi.pc") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi.pc" ;; "ompi/tools/wrappers/ompi-c.pc") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi-c.pc" ;; "ompi/tools/wrappers/ompi-cxx.pc") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi-cxx.pc" ;; "ompi/tools/wrappers/ompi-fort.pc") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi-fort.pc" ;; "ompi/tools/wrappers/mpijavac.pl") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpijavac.pl" ;; "ompi/tools/mpisync/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/mpisync/Makefile" ;; "oshmem/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/Makefile" ;; "oshmem/include/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/include/Makefile" ;; "oshmem/shmem/c/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/shmem/c/Makefile" ;; "oshmem/shmem/c/profile/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/shmem/c/profile/Makefile" ;; "oshmem/shmem/fortran/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/shmem/fortran/Makefile" ;; "oshmem/shmem/fortran/profile/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/shmem/fortran/profile/Makefile" ;; "oshmem/tools/oshmem_info/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/tools/oshmem_info/Makefile" ;; "oshmem/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES oshmem/tools/wrappers/Makefile" ;; "oshmem/tools/wrappers/shmemcc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES oshmem/tools/wrappers/shmemcc-wrapper-data.txt" ;; "oshmem/tools/wrappers/shmemc++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES oshmem/tools/wrappers/shmemc++-wrapper-data.txt" ;; "oshmem/tools/wrappers/shmemfort-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES oshmem/tools/wrappers/shmemfort-wrapper-data.txt" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "opal/mca/event/libevent2022/libevent/include/event2/event-config.h":C) opal_event_libevent2022_basedir="opal/mca/event/libevent2022" libevent_file="$opal_event_libevent2022_basedir/libevent/include/event2/event-config.h" rm -f "$libevent_file.new" cat > "$libevent_file.new" <> "$libevent_file.new" echo "#endif" >> "$libevent_file.new" # Only make a new .h libevent_file if the # contents haven't changed diff -q $libevent_file "$libevent_file.new" > /dev/null 2> /dev/null if test "$?" = "0"; then echo $libevent_file is unchanged else cp "$libevent_file.new" $libevent_file fi rm -f "$libevent_file.new" ;; "ompi/mca/osc/monitoring/osc_monitoring_template_gen.h":C) filename="ompi/mca/osc/monitoring/osc_monitoring_template_gen.h" components=`echo "monitoring, portals4, pt2pt, rdma, ucx, sm" | sed -e 's/,/ /g' -e 's/monitoring//'` cat <$filename /* $filename * * This file was generated from ompi/mca/osc/monitoring/configure.m4 * * DO NOT EDIT THIS FILE. * */ /* * Copyright (c) 2017-2018 Inria. All rights reserved. * \$COPYRIGHT$ * * Additional copyrights may follow * * \$HEADER$ */ #ifndef MCA_OSC_MONITORING_GEN_TEMPLATE_H #define MCA_OSC_MONITORING_GEN_TEMPLATE_H #include #include #include /************************************************************/ /* Include template generating macros and inlined functions */ EOF # Generate each case in order to register the proper template functions for comp in $components do echo "OSC_MONITORING_MODULE_TEMPLATE_GENERATE(${comp})" >>$filename done cat <>$filename /************************************************************/ typedef struct { const char * name; ompi_osc_base_module_t * (*fct) (ompi_osc_base_module_t *); } osc_monitoring_components_list_t; static const osc_monitoring_components_list_t osc_monitoring_components_list[] = { EOF for comp in $components do echo " { .name = \"${comp}\", .fct = OSC_MONITORING_SET_TEMPLATE_FCT_NAME(${comp}) }," >>$filename done cat <>$filename { .name = NULL, .fct = NULL } }; #endif /* MCA_OSC_MONITORING_GEN_TEMPLATE_H */ EOF unset filename components ;; "libtool":C) # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='CXX FC ' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # A BSD- or MS-compatible name lister. NM=$lt_NM # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Assembler program. AS=$lt_AS # DLL creation program. DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: FC # The linker used to build libraries. LD=$lt_LD_FC # How to create reloadable object files. reload_flag=$lt_reload_flag_FC reload_cmds=$lt_reload_cmds_FC # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_FC # A language specific compiler. CC=$lt_compiler_FC # Is the compiler the GNU compiler? with_gcc=$GCC_FC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_FC # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_FC # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_FC # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_FC # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_FC # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_FC archive_expsym_cmds=$lt_archive_expsym_cmds_FC # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_FC module_expsym_cmds=$lt_module_expsym_cmds_FC # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_FC # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_FC # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_FC # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_FC # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_FC # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_FC # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_FC # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_FC # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_FC # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_FC # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_FC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_FC # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_FC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_FC # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_FC # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_FC # Specify filename containing input files. file_list_spec=$lt_file_list_spec_FC # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_FC # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_FC postdep_objects=$lt_postdep_objects_FC predeps=$lt_predeps_FC postdeps=$lt_postdeps_FC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_FC # ### END LIBTOOL TAG CONFIG: FC _LT_EOF ;; "ompi/tools/wrappers/ompi_wrapper_script":F) chmod +x ompi/tools/wrappers/ompi_wrapper_script ;; "contrib/dist/mofed/debian/rules":F) chmod +x contrib/dist/mofed/debian/rules ;; "contrib/dist/mofed/compile_debian_mlnx_example":F) chmod +x contrib/dist/mofed/compile_debian_mlnx_example ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi # 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_section_name; 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_section_name\"" eval $opal_str unset opal_str env | grep opal_scope opal_scope_index=`expr $opal_scope_index + 1` cat < 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