diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 356ff6e..694f712 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,17 @@ if test "x$ax_cv_curses" != xyes; then AC_MSG_ERROR([requires an X/Open-compatible Curses library]) fi +# enables/disables +AC_ARG_ENABLE([debug], + [AS_HELP_STRING([--enable-debug], [enable debug output (disabled by default)])], + [enable_debug=${enableval}], + [enable_debug=no]) +if test "x$enable_debug" = xyes; then + AC_DEFINE_UNQUOTED([DEBUG], [1], [Enable debug printing]) +else + AC_DEFINE_UNQUOTED([DEBUG], [0], [Enable debug printing]) +fi + # Setup Automake AM_INIT_AUTOMAKE AC_CONFIG_FILES([ |