From 0a2844c40a3907fe1207aed5ce89416dd06c5637 Mon Sep 17 00:00:00 2001 From: Louie S Date: Tue, 24 Oct 2023 13:55:58 -0400 Subject: Added debug configuration option --- configure | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 55bbf15..9e18f98 100755 --- a/configure +++ b/configure @@ -678,6 +678,7 @@ ac_user_opts=' enable_option_checking with_ncurses with_ncursesw +enable_debug enable_dependency_tracking enable_silent_rules ' @@ -1309,6 +1310,7 @@ Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-debug enable debug output (disabled by default) --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking @@ -3918,6 +3920,28 @@ if test "x$ax_cv_curses" != xyes; then as_fn_error $? "requires an X/Open-compatible Curses library" "$LINENO" 5 fi +# enables/disables +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; enable_debug=${enableval} +else + enable_debug=no +fi + +if test "x$enable_debug" = xyes; then + +cat >>confdefs.h <<_ACEOF +#define DEBUG 1 +_ACEOF + +else + +cat >>confdefs.h <<_ACEOF +#define DEBUG 0 +_ACEOF + +fi + # Setup Automake am__api_version='1.16' -- cgit