Mercurial > hg
changeset 741:8ed8c32d3164
Add a debug option
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 10 Mar 2006 19:19:57 +0100 |
parents | 1877838d3c27 |
children | 76e00324c404 |
files | mcabber/configure.ac |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/configure.ac Fri Mar 10 19:18:07 2006 +0100 +++ b/mcabber/configure.ac Fri Mar 10 19:19:57 2006 +0100 @@ -95,6 +95,16 @@ AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) +AC_ARG_ENABLE(debug, + [AC_HELP_STRING(--enable-debug, Add development compilation options)], + debug=$enableval, debug="") +if test "${debug}" = "yes"; then + AC_DEFINE_UNQUOTED([DEBUG_ENABLE],[1],[Devel compilation options]) + CFLAGS="$CFLAGS -Wextra -Wno-unused-parameter -pedantic -std=gnu99 -O0 -g" +else + CFLAGS="$CFLAGS -O2" +fi + AC_CONFIG_FILES([connwrap/Makefile libjabber/Makefile src/Makefile