From ca0105a8004e512ee6559c8f51f37bc8e5160569 Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 16 Jul 2015 18:05:43 -0700 Subject: [PATCH] Added debugging flag --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 4348691..c972c52 100644 --- a/configure.ac +++ b/configure.ac @@ -64,6 +64,15 @@ AM_COND_IF([PC_REMOVE_INVALID], [AC_MSG_NOTICE([Invalid pipe codes will be filtered.])], [AC_MSG_NOTICE([Invalid pipe codes will not be filtered.])]) +AC_ARG_ENABLE([debug], + [AC_HELP_STRING([--enable-debug], [enable debuging [default=no]])], + [], [enable_debug=no]) + AM_CONDITIONAL([PC_DEBUG], [test "x$enable_debug" = "xno"]) + +AM_COND_IF([PC_DEBUG], + [], + [AC_MSG_NOTICE([Debugging enabled.])]) + AC_CONFIG_FILES([Makefile src/Makefile man/Makefile src/libpipecolors.pc:src/libpipecolors.pc.in src/libpipecolors.h:src/libpipecolors.h.in],[],[APIVERSION=PIPECOLORS_VERSION]) AC_CONFIG_COMMANDS([timestamp], [date >timestamp]) AC_OUTPUT