diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2012-05-18 12:42:38 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2012-05-18 12:42:38 +0300 |
commit | b5287339fa2196f8741cf0a23e5c83e0772c46e9 (patch) | |
tree | a243f30ba4791cfd81f6534ead8f8310c15a5cc2 /configure.ac | |
parent | 1cfc042b5a5e6dc8ea5d81d9d719d472a1800167 (diff) | |
download | bindfs-b5287339fa2196f8741cf0a23e5c83e0772c46e9.tar.gz |
Added --enable-debug-output, now --enable-debug only adds debug symbols.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
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" |