aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh2
-rw-r--r--configure.ac9
2 files changed, 8 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index 3c50136..1180ec5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -41,7 +41,7 @@ echo "Running $AUTOMAKE..."
$AUTOMAKE -a -c || exit 1
if [ "$1" == "-d" ]; then
- echo "Running configure --enable-debug"
+ echo "Running configure --enable-debug (but not --enable-debug-output)"
echo
sleep 1s
./configure --enable-debug
diff --git a/configure.ac b/configure.ac
index e59c8c7..25cb449 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,18 +9,23 @@ AC_PROG_LIBTOOL
# --enable and --with options
AC_ARG_ENABLE([debug],
- [AS_HELP_STRING([--enable-debug], [enable extra debug output])])
+ [AS_HELP_STRING([--enable-debug], [enable debug symbols])])
+ AC_ARG_ENABLE([debug-output],
+ [AS_HELP_STRING([--enable-debug-output], [enable debug output])])
AC_ARG_WITH([core-foundation],
AS_HELP_STRING([--with-core-foundation], [link against Core Foundation (OS X only) @<:@default=no@:>@]))
if test x"$enable_debug" == "xyes" ; then
CFLAGS="${CFLAGS} -g -O0"
- AC_DEFINE([BINDFS_DEBUG], [1], [Define to 1 to enable debugging messages])
else
CFLAGS="${CFLAGS} -O2"
fi
+if test x"$enable_debug_output" == "xyes" ; then
+ AC_DEFINE([BINDFS_DEBUG], [1], [Define to 1 to enable debugging messages])
+fi
+
if test x"$with_core_foundation" == "xyes" ; then
AC_MSG_NOTICE([Linking with Core Foundation])
LDFLAGS="${LDFLAGS} -framework CoreFoundation"