summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrever Fischer <tdfischer@fedoraproject.org>2012-05-01 16:41:16 -0400
committerSiegfried-Angel Gevatter Pujals <rainct@ubuntu.com>2012-05-22 20:39:26 +0200
commitd553299ef570f0312359193b84fe6e93609b85e4 (patch)
tree8afd284c184eca545132c4302f7fdb5a9187f64f
parente242e78174ade16cb962e510763285270572c27c (diff)
downloadzeitgeist-d553299ef570f0312359193b84fe6e93609b85e4.tar.gz
Add --enable-explain-queries option to configure to use -D EXPLAIN_QUERIES
-rw-r--r--configure.ac6
-rw-r--r--src/Makefile.am6
2 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fc0b2029..edb9c3c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,6 +90,12 @@ AC_ARG_ENABLE([fts],
AM_CONDITIONAL(HAVE_FTS, test "x$enable_fts" != "xno")
+AC_ARG_ENABLE([explain-queries],
+ AS_HELP_STRING([--enable-explain-queries], [Enable SQL debugging]),
+ [explain_queries=$enableval],[enable_queries="no"])
+
+AM_CONDITIONAL(EXPLAIN_QUERIES, test "x$explain_queries" = "xyes")
+
AC_CONFIG_FILES([
Makefile
src/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 8495252d..eb92b4e9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -18,6 +18,12 @@ AM_VALAFLAGS = \
$(top_srcdir)/config.vapi \
$(NULL)
+if EXPLAIN_QUERIES
+AM_VALAFLAGS = $(AM_VALAFLAGS) \
+ -D EXPLAIN_QUERIES \
+ $(NULL)
+endif
+
# Make sure every extension has only one vala file!
extensions_VALASOURCES = \
ext-data-source-registry.vala \