diff -uNr iax-0.2.2.ORIG/configure.in iax-0.2.2/configure.in
--- iax-0.2.2.ORIG/configure.in	2014-05-13 13:23:35.083867921 +0100
+++ iax-0.2.2/configure.in	2014-05-13 13:24:25.879870451 +0100
@@ -25,6 +25,8 @@
 fi
 
 if test "$enable_extreme_debug" = yes ; then
+	AC_DEFINE(DEBUG_SUPPORT)
+	AC_DEFINE(DEBUG_DEFAULT)
 	AC_DEFINE(EXTREME_DEBUG)
 fi
 
diff -uNr iax-0.2.2.ORIG/src/Makefile.am iax-0.2.2/src/Makefile.am
--- iax-0.2.2.ORIG/src/Makefile.am	2014-05-13 13:23:35.082867921 +0100
+++ iax-0.2.2/src/Makefile.am	2014-05-13 13:24:32.439870777 +0100
@@ -1,5 +1,4 @@
 CFLAGS += -g -Wall -Wstrict-prototypes -I .
-CFLAGS += -DDEBUG_SUPPORT -DDEBUG_DEFAULT 
 CFLAGS += $(UCFLAGS)
 
 
