From e2d6beadb342732a149da1d6b92b854ff908ad5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Sun, 20 Sep 2015 02:06:59 +0300 Subject: build: add AX_CHECK_ENABLE_DEBUG --- configure.ac | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 487ed103..4e158c9d 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,12 @@ dnl ************************************************************************** AX_IS_RELEASE([git-directory]) +dnl ************************************************************************** +dnl Enable debug +dnl ************************************************************************** + +AX_CHECK_ENABLE_DEBUG([yes]) + dnl ************************************************************************** dnl Initialize automake dnl ************************************************************************** @@ -442,13 +448,6 @@ if test x"$ZENITY" = xno; then AC_MSG_ERROR([zenity not found in your path - needed for dialogs]) fi -AC_ARG_ENABLE(debug, - [ --enable-debug enable debugging],, - enable_debug=no) -if test "x$enable_debug" = "xyes"; then - CFLAGS="$CFLAGS -g -O" -fi - # Warnings are there for a reason if test "x$GCC" = "xyes"; then CFLAGS="$CFLAGS -Wall -ansi" -- cgit v1.2.1