From: Marko Kreen Date: Wed, 28 Mar 2007 09:13:33 +0000 (+0000) Subject: let DBGVER depend on --enable-debug X-Git-Tag: pgbouncer_1_0_2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e94c7e9d3ef3caa34761c2509c1fef0499db411;p=pgbouncer let DBGVER depend on --enable-debug --- diff --git a/Makefile b/Makefile index 6152f45..7a1481a 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,9 @@ DIRS = etc src debian # keep autoconf stuff separate -include config.mak +ifeq ($(enable_debug),yes) CFLAGS += -DDBGVER="\"compiled by <$${USER}@`hostname`> at `date '+%Y-%m-%d %H:%M:%S'`\"" +endif # calculate full-path values OBJS = $(SRCS:.c=.o) diff --git a/config.mak.in b/config.mak.in index 7eb4677..93a587f 100644 --- a/config.mak.in +++ b/config.mak.in @@ -31,3 +31,5 @@ abs_top_builddir = @abs_top_builddir@ INSTALL = @INSTALL@ BININSTALL = @BININSTALL@ +enable_debug = @enable_debug@ + diff --git a/configure.ac b/configure.ac index f422fb7..c74ab49 100644 --- a/configure.ac +++ b/configure.ac @@ -83,6 +83,7 @@ else BININSTALL="$INSTALL -s" AC_MSG_RESULT([no]) fi +AC_SUBST(enable_debug) AC_SUBST(INSTALL) AC_SUBST(BININSTALL)