From: Roman Bogorodskiy Date: Sat, 30 Sep 2006 16:31:06 +0000 (+0000) Subject: - Add '--enable-debug' flag for ./configure which basicly X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=53feb898b958fe27d98d6e9ddf88e6de990d9005;p=monky - Add '--enable-debug' flag for ./configure which basicly adds '-g' to CFLAGS if the compiler is gcc - Bump version to 1.4.3 while I'm here git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@704 7f574dfc-610e-0410-a909-a81674777703 --- diff --git a/configure.ac b/configure.ac index 644ae1f..fecbb44 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ -AC_INIT([Conky],[1.4.2],[brenden1@users.sourceforge.net]) +AC_INIT([Conky],[1.4.3],[brenden1@users.sourceforge.net]) -AM_INIT_AUTOMAKE(conky, 1.4.2) +AM_INIT_AUTOMAKE(conky, 1.4.3) AM_CONFIG_HEADER(src/config.h) dnl dnl C Compiler @@ -405,6 +405,18 @@ else LIBS="$LIBS $LIBICONV" fi +dnl +dnl debug +dnl + +want_debug=no +AC_ARG_ENABLE(debug, + [ --enable-debug compile with debug symbols [[default=no]]], + [want_debug="$enableval"]) + +if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then + CFLAGS="$CFLAGS -g3" +fi dnl dnl X @@ -611,6 +623,9 @@ cat << EOF $PACKAGE $VERSION configured successfully: Installing into: $prefix + C compiler flags: $CFLAGS + Linker flags: $LDFLAGS + Libraries: $LIBS * x11: x11 support: $want_x11