From 7c90ff5d4161b24e1db8d785fa9f492b136d3b31 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 30 Oct 2010 16:10:55 -0700 Subject: [PATCH] Add configure --enable-debug to make it build both --- config.mak.in | 1 + configure.ac | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/config.mak.in b/config.mak.in index 9ffe36b0260..cdae7e59fd7 100644 --- a/config.mak.in +++ b/config.mak.in @@ -23,6 +23,7 @@ mandir=@mandir@ srcdir = @srcdir@ VPATH = @srcdir@ +DEBUG = @DEBUG@ export exec_prefix mandir export srcdir VPATH PREFIX diff --git a/configure.ac b/configure.ac index 2995942d88b..8081a329c8a 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,10 @@ echo "# ${config_append}. Generated by configure." > "${config_append}" #dnl Search for pkg-config #AC_PATH_PROG(PKG_CONFIG, pkg-config) +AC_ARG_ENABLE(debug, + AC_HELP_STRING([--enable-debug], [enable debugging ]), + AC_SUBST(DEBUG,[1])) + # TODO support options # --efence Build with -lefence for debugging [Default: False]