Merge branch 'charm' of charmgit:charm into charm
[charm.git] / src / scripts / configure
index 17f108ed47ba54b97c926df2b230b3156139cf9d..2ad1f65d12ba7feb79ca3d41a19a802349cf3e1d 100755 (executable)
@@ -3624,8 +3624,7 @@ cat > $t <<EOT
 #include <papi.h>
 
 int main() {
-    int Events[1] = { PAPI_TOT_CYC };
-    if (PAPI_start_counters(Events, 1) != PAPI_OK) return 1;
+    if (PAPI_library_init(PAPI_VER_CURRENT) != PAPI_VER_CURRENT) return 1;
     return 0;
 }
 EOT