From 97a12ba3f184a76c406eb5622ec21a4d4d6fc8bf Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 16 Jun 2010 22:49:16 +0200 Subject: configure/Makefile and debug fixes --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index cfffa99..658d5f0 100644 --- a/configure.ac +++ b/configure.ac @@ -39,6 +39,18 @@ AC_ARG_ENABLE([verbose], AM_CONDITIONAL([ENABLE_VERBOSE], [test "x$enable_verbose" = xyes]) +dnl Enable debugging +AC_ARG_ENABLE([debug], + AS_HELP_STRING([--enable-debug], + [Enable compiling with debug support.]), + [case "${enableval}" in + yes) enable_verbose=yes ;; + no) enable_verbose=no ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; + esac], [enable_debug=no]) + +AM_CONDITIONAL([ENABLE_DEBUG], [test "x$enable_debug" = xyes]) + dnl Disable extra warn flags AC_ARG_ENABLE([extra-flags], AS_HELP_STRING([--disable-extra-flags], -- cgit v1.2.3