From 9400fce82dcf773c9862006a41681a73b22cbd87 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 29 Jan 2011 19:14:45 -0500 Subject: Add dmnsn_[un]likely() macros and a profiling framework. --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 75a2deb..8b6e363 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,19 @@ AC_ARG_ENABLE([gl], [enable_gl=yes]) AM_CONDITIONAL([GL], [test "$enable_gl" != "no"]) +dnl Built-in profiling support +AC_ARG_ENABLE([profile], + [AS_HELP_STRING([--enable-profile], + [Enable built-in branch profiling support [default=no]])], + [], + [enable_profile=no]) +AM_CONDITIONAL([PROFILE], [test "$enable_profile" = "yes"]) +if test "$enable_profile" = "yes"; then + AC_DEFINE([DMNSN_PROFILE], [1]) +else + AC_DEFINE([DMNSN_PROFILE], [0]) +fi + dnl Timing library for benchmarks PKG_CHECK_MODULES([libsandglass], [libsandglass >= 0.2], [], -- cgit v1.2.3