diff options
author | Trever Fischer <tdfischer@fedoraproject.org> | 2012-05-01 16:41:16 -0400 |
---|---|---|
committer | Trever Fischer <tdfischer@fedoraproject.org> | 2012-05-01 16:41:31 -0400 |
commit | 1897c150b841c249100fcfd225a3626b742565f8 (patch) | |
tree | 19df1f9014e3ef117816e850598385c0a2658bac | |
parent | b54c086b192388bdec1ac0b532c6247fb861b78c (diff) |
Add --enable-explain-queries option to configure to use -D EXPLAIN_QUERIES
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | src/Makefile.am | 6 |
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 @@ -92,2 +92,8 @@ 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([ diff --git a/src/Makefile.am b/src/Makefile.am index 8495252d..eb92b4e9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -20,2 +20,8 @@ AM_VALAFLAGS = \ +if EXPLAIN_QUERIES +AM_VALAFLAGS = $(AM_VALAFLAGS) \ + -D EXPLAIN_QUERIES \ + $(NULL) +endif + # Make sure every extension has only one vala file! |