diff options
author | lns <matzeton@googlemail.com> | 2022-06-17 15:47:19 +0200 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-07-03 17:38:43 +0200 |
commit | f2d1edbedf4b36eafb6869ffd5684d2558c1d355 (patch) | |
tree | a1db67572df92d9cca0987778ee3a4aebf5d72aa /configure.ac | |
parent | 1a01e8dc687df706ef775122a5bc31baa07f12d4 (diff) |
gprof test/CI integration
Signed-off-by: lns <matzeton@googlemail.com>
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8272b6ba0..b9c4259b9 100644 --- a/configure.ac +++ b/configure.ac @@ -277,6 +277,7 @@ return 0; ]) AM_CONDITIONAL([HAS_FUZZLDFLAGS], [test "x$has_sanitizefuzzer" = "xyes"]) +GPROF_ENABLED=0 AS_IF([test "x$enable_gprof" = "xyes"], [ PKG_CHECK_MODULES([PROFILER], [libprofiler],,[ AC_MSG_ERROR([libprofiler not available. Required for profiling support.]) @@ -284,6 +285,7 @@ AS_IF([test "x$enable_gprof" = "xyes"], [ PKG_CHECK_MODULES([TCMALLOC], [libtcmalloc],,[ AC_MSG_ERROR([libtcmalloc not available. Required for profiling support.]) ]) + GPROF_ENABLED=1 GPROF_LIBS="${pkg_cv_PROFILER_LIBS} ${pkg_cv_TCMALLOC_LIBS}" GPROF_CFLAGS="${pkg_cv_PROFILER_CFLAGS} ${pkg_cv_TCMALLOC_CFLAGS}" ]) @@ -356,6 +358,7 @@ AC_SUBST(JSONC_CFLAGS) AC_SUBST(JSONC_LIBS) AC_SUBST(GPROF_CFLAGS) AC_SUBST(GPROF_LIBS) +AC_SUBST(GPROF_ENABLED) AC_SUBST(USE_HOST_LIBGCRYPT) AC_SUBST(PCRE_ENABLED) AC_SUBST(HANDLE_TLS_SIGS) |