changeset 1411:2ff7c43d420f draft

Disable debugging by default if not built from git.
author Roy Marples <roy@marples.name>
date Fri, 04 Sep 2009 23:15:18 +0000
parents 04ffa118ddef
children 039d829277e3
files configure
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Sep 03 12:18:03 2009 +0000
+++ b/configure	Fri Sep 04 23:15:18 2009 +0000
@@ -123,12 +123,12 @@
 	echo "CPPLAGS=		$CPPLAGS" >>$CONFIG_MK
 fi
 
-if [ "$DEBUG" != no -a "$DEBUG" != false ]; 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
-elif [ -z "$DEBUG" -a -d .git ]; then
-	printf "Found git ... "
-	DEBUG=yes
 else
 	DEBUG=no
 fi