Mercurial > hg
comparison mcabber/configure.ac @ 741:8ed8c32d3164
Add a debug option
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 10 Mar 2006 19:19:57 +0100 |
parents | dbdf72de7500 |
children | 76e00324c404 |
comparison
equal
deleted
inserted
replaced
740:1877838d3c27 | 741:8ed8c32d3164 |
---|---|
93 fi | 93 fi |
94 fi | 94 fi |
95 | 95 |
96 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) | 96 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) |
97 | 97 |
98 AC_ARG_ENABLE(debug, | |
99 [AC_HELP_STRING(--enable-debug, Add development compilation options)], | |
100 debug=$enableval, debug="") | |
101 if test "${debug}" = "yes"; then | |
102 AC_DEFINE_UNQUOTED([DEBUG_ENABLE],[1],[Devel compilation options]) | |
103 CFLAGS="$CFLAGS -Wextra -Wno-unused-parameter -pedantic -std=gnu99 -O0 -g" | |
104 else | |
105 CFLAGS="$CFLAGS -O2" | |
106 fi | |
107 | |
98 AC_CONFIG_FILES([connwrap/Makefile | 108 AC_CONFIG_FILES([connwrap/Makefile |
99 libjabber/Makefile | 109 libjabber/Makefile |
100 src/Makefile | 110 src/Makefile |
101 doc/Makefile | 111 doc/Makefile |
102 Makefile]) | 112 Makefile]) |