From: Ricardo Markiewicz Date: Mon, 1 Dec 2003 20:00:50 +0000 (+0000) Subject: * Se agrega opcion --enable-debug para compilar en modo DEBUG (agrega -g -DDEBUG... X-Git-Tag: svn_import~103 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/e04e8dfdb5582eef4eb0f7a356e952252dad9a0b?ds=sidebyside * Se agrega opcion --enable-debug para compilar en modo DEBUG (agrega -g -DDEBUG a la linea de comandos del GCC) Por defecto compila en modo release. --- diff --git a/configure.in b/configure.in index 44d05fc..feefa97 100644 --- a/configure.in +++ b/configure.in @@ -29,12 +29,23 @@ AC_INIT(configure.in) AM_INIT_AUTOMAKE(plaqui, 1.0) AM_MAINTAINER_MODE +dnl Prevents setting flags. +CXXFLAGS="" + AC_ISC_POSIX AC_PROG_CXX AM_PROG_CC_STDC AC_PROG_RANLIB AC_HEADER_STDC +dnl Debugging turned on +AC_MSG_CHECKING(for debugging) +AC_ARG_ENABLE(debug,[ --enable-debug compile for debugging]) +AC_MSG_RESULT([$enable_debug]) +if test "x$enable_debug" = "xyes" ; then +CXXFLAGS="${CXXFLAGS} -g -DDEBUG" +fi + ## pkg_modules="libgnomeui-2.0" PKG_CHECK_MODULES(PACKAGE, libxml-2.0 >= 0.15.0 \