diff --git a/darshan-runtime/configure.ac b/darshan-runtime/configure.ac index 8cdeb7753..e27feaeb9 100644 --- a/darshan-runtime/configure.ac +++ b/darshan-runtime/configure.ac @@ -333,11 +333,17 @@ if test "x$enable_darshan_runtime" = xyes ; then if test "x$ENABLE_MPI" = xno ; then AC_MSG_ERROR([--enable-apxc-mod Autoperf XC module requires MPI support]) fi + with_papi=`pkg-config --libs papi` + if test "x$?" = x0 ; then + CPPFLAGS+=`pkg-config --cflags papi` + papi_version=`pkg-config --modversion papi` + else + AC_CHECK_HEADER([papi.h], + [with_papi=-lpapi], + [AC_MSG_ERROR([Cannot find papi header required for Autoperf XC module])], + []) + fi abssrcdir=$(readlink -f ${srcdir}) - AC_CHECK_HEADER([papi.h], - [with_papi=-lpapi], - [AC_MSG_ERROR([Cannot find papi header required for Autoperf XC module])], - []) AC_CHECK_FILE([${abssrcdir}/../modules/autoperf/apxc/darshan-apxc-log-format.h], [], [AC_MSG_ERROR([The Autoperf XC git submodule is not present])]) @@ -1083,6 +1089,11 @@ if test "x$enable_darshan_runtime" = xyes ; then enable_apmpi_mod="yes (collective sync mode)" fi fi + if test "x$enable_apxc_mod" = xyes ; then + if test -n "$papi_version" ; then + enable_apxc_mod="yes (using papi $papi_version)" + fi + fi echo "------------------------------------------------------------------------------ ${PACKAGE_NAME} Version ${PACKAGE_VERSION} configured with the following features:" if test "x$ENABLE_MPI" = xyes ; then @@ -1101,11 +1112,11 @@ if test "x$enable_darshan_runtime" = xyes ; then MPI-IO module support - $enable_mpiio_mod AUTOPERF MPI module support - $enable_apmpi_mod AUTOPERF XC module support - $enable_apxc_mod + PnetCDF module support - $enable_pnetcdf_mod HDF5 module support - $enable_hdf5_mod + Lustre module support - $enable_lustre_mod DAOS module support - $enable_daos_mod - PnetCDF module support - $enable_pnetcdf_mod BG/Q module support - $enable_bgq_mod - Lustre module support - $enable_lustre_mod MDHIM module support - $enable_mdhim_mod HEATMAP module support - $enable_heatmap_mod LDMS runtime module - $enable_ldms_mod