Fix gperformance-tools setup and apply it to src/engine/tests.

This commit is contained in:
John Ralls
2014-12-03 16:26:38 -08:00
parent 3c46aac94a
commit 996345a00f
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -757,7 +757,7 @@ enable_google_profile=no
AC_ARG_ENABLE( google-profiler,
[AS_HELP_STRING([--enable-google-profiler], [link in Google Performance Tools profiler; allows enabling profiling by setting $CPUPROFILE=/path/to/logfile.])],
[AC_MSG_CHECKING([Google PerfTools Profiler])
AC_CHECK_LIB([profiler], [enable_google_profile=yes],
AC_CHECK_LIB([profiler], [ProfilerEnable], [enable_google_profile=yes],
[AC_MSG_WARN([Google Profiling Enabled but the library was not found.])])
])
AM_CONDITIONAL(WITH_GOOGLE_PROFILER, [test x$enable_google_profile = xyes])
+4
View File
@@ -81,6 +81,10 @@ test_link_LDADD = ../libgncmod-engine.la \
${top_builddir}/src/libqof/qof/libgnc-qof.la \
${top_builddir}/src/core-utils/libgnc-core-utils.la
if WITH_GOOGLE_PROFILER
LDADD += -lprofiler
endif
EXTRA_DIST += \
test-create-account \
test-create-account.scm \