summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-10-24 13:55:58 -0400
committerLouie S <louie@example.com>2023-10-24 13:55:58 -0400
commit0a2844c40a3907fe1207aed5ce89416dd06c5637 (patch)
tree740b1f3d868c366c63df647623cccc131197527b /configure
parent4cc4ba6bc250e8981a6fb3f6e6b96945a16628e5 (diff)
Added debug configuration option
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 24 insertions, 0 deletions
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'