From: Roy Marples Date: Fri, 4 Sep 2009 23:15:18 +0000 (+0000) Subject: Disable debugging by default if not built from git. X-Git-Tag: v5.1.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfb514471a061f4805f50be3e440ce7e094a91bd;p=thirdparty%2Fdhcpcd.git Disable debugging by default if not built from git. --- diff --git a/configure b/configure index ec8176ee..6cf863f8 100755 --- a/configure +++ b/configure @@ -123,12 +123,12 @@ if [ -n "$CPPLAGS" ]; then echo "CPPLAGS= $CPPLAGS" >>$CONFIG_MK fi -if [ "$DEBUG" != no -a "$DEBUG" != false ]; then - echo "Enabling memory debugging" - echo "CPPFLAGS+= -DDEBUG_MEMORY" >>$CONFIG_MK -elif [ -z "$DEBUG" -a -d .git ]; then +if [ -z "$DEBUG" -a -d .git ]; then printf "Found git ... " DEBUG=yes +elif [ "$DEBUG" != no -a "$DEBUG" != false ]; then + echo "Enabling memory debugging" + echo "CPPFLAGS+= -DDEBUG_MEMORY" >>$CONFIG_MK else DEBUG=no fi