@@ -7,6 +7,16 @@ AC_ARG_ENABLE([test-example],
[test_example=yes])
AM_CONDITIONAL([test_example], [test x$test_example = xyes ])
+PAPI_PATH=""
+code_instrumentation=no
+AC_ARG_WITH([papi-path],
+AS_HELP_STRING([--with-papi-path=DIR path to papi install directory]),
+ [PAPI_PATH="$withval"
+ code_instrumentation=yes],[])
+
+AC_SUBST([PAPI_PATH])
+AM_CONDITIONAL([CODE_INSTRUM], [test x$code_instrumentation = xyes ])
+
AC_CONFIG_FILES([example/classifier/Makefile
example/generator/Makefile
example/hello/Makefile