From cb019a4ed1614349f87206a814dbea3c39b72303 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 23 Oct 2017 19:46:11 -0400 Subject: configure.ac: Add --enable-debug arg that sets MQ_TREE_DEBUG --- (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5468432..9d82351 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,18 @@ GTK_CFLAGS="$(printf ' %s' "${GTK_CFLAGS}" | \ WEBKIT2GTK_CFLAGS="$(printf ' %s' "${WEBKIT2GTK_CFLAGS}" | \ sed 's/ -I/ -isystem/g;')" +AC_ARG_ENABLE( + [debug], + [AS_HELP_STRING([--enable-debug], [enable debugging])], + , + [enable_debug=no]) + +if test "x${enable_debug}" = 'xyes'; then + AC_DEFINE([MQ_TREE_DEBUG], [1], [Define to 1 to enable tree debugging.]) +else + AC_DEFINE([MQ_TREE_DEBUG], [0], [Define to 1 to enable tree debugging.]) +fi + AC_CONFIG_FILES([Makefile]) AC_CONFIG_HEADERS([config.h]) AC_OUTPUT() -- cgit v0.9.1