diff --git a/config.h.in b/config.h.in index 8c2675da9e0c637ee34456dd1eee153e073e67af..c1fd500bf9d0c150dd9306938720c50d9043ba6e 100644 --- a/config.h.in +++ b/config.h.in @@ -185,6 +185,9 @@ /* Define to 1 for running on a Cray in native mode without ALPS */ #undef HAVE_NATIVE_CRAY +/* Define to 1 if alpscomm functions new to CLE 5.2UP01 are defined */ +#undef HAVE_NATIVE_CRAY_GA + /* Define to 1 if you have the <ncurses.h> header file. */ #undef HAVE_NCURSES_H diff --git a/configure b/configure index 4a69c89182c6bfed388a6f607d1cf26c70dd9231..3861dcb21c6c23312e3bab71324925553e3f79b3 100755 --- a/configure +++ b/configure @@ -21917,6 +21917,68 @@ else fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext + + # See if we have 5.2UP01 alpscomm functions + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing alpsc_get_topology" >&5 +$as_echo_n "checking for library containing alpsc_get_topology... " >&6; } +if ${ac_cv_search_alpsc_get_topology+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char alpsc_get_topology (); +int +main () +{ +return alpsc_get_topology (); + ; + return 0; +} +_ACEOF +for ac_lib in '' alpscomm_sn; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_alpsc_get_topology=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_alpsc_get_topology+:} false; then : + break +fi +done +if ${ac_cv_search_alpsc_get_topology+:} false; then : + +else + ac_cv_search_alpsc_get_topology=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_alpsc_get_topology" >&5 +$as_echo "$ac_cv_search_alpsc_get_topology" >&6; } +ac_res=$ac_cv_search_alpsc_get_topology +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +$as_echo "#define HAVE_NATIVE_CRAY_GA 1" >>confdefs.h + +fi + + + LIBS="$saved_LIBS" CPPFLAGS="$saved_CPPFLAGS"