diff --git a/configure.ac b/configure.ac index f26ac2edf5d02175ecb985ba1b6ebcd207815e0a..736eb320961279226442fc5126513512b0ebca24 100644 --- a/configure.ac +++ b/configure.ac @@ -450,6 +450,17 @@ AS_IF([test "x$enable_ofi_pool_manager" = "xyes"], [ SAVED_LDFLAGS="$LDFLAGS" SAVED_LIBS="$LIBS" + dnl If libfabric is installed in a nonstandard place but can be found by pkg-config, add whatever that tells us before trying to find it + dnl (notable example: Cray Shasta systems) + if pkg-config libfabric; then + AC_MSG_NOTICE([found libfabric via pkg-config]) + CPPFLAGS="`pkg-config --cflags libfabric` $CFLAGS" + LDFLAGS=" `pkg-config --libs-only-L libfabric` $LDFLAGS" + LIBS=" `pkg-config --libs-only-l libfabric` $LIBS" + else + AC_MSG_NOTICE([pkg-config does not know about a libfabric installation, fine]) + fi + AX_USE_LIBRARY([fabric]) dnl Sanity check for libfabric library