]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add debug flogs
authorMichael Jerris <mike@jerris.com>
Thu, 28 Feb 2008 15:58:22 +0000 (15:58 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 28 Feb 2008 15:58:22 +0000 (15:58 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@414 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/configure.ac

index 6234a100e9bb185505476d4ff47429dace2bee48..cd73f2ddbadcfac938d2106f9de20150e00b329d 100644 (file)
@@ -44,6 +44,19 @@ sun)
     COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
     ;;
 esac
+#  Enable debugging
+AC_ARG_ENABLE(debug,
+[AC_HELP_STRING([--enable-debug],[build with debug information])],[enable_debug="$enable_debug"],[enable_debug="yes"])
+
+if test "${enable_debug}" = "yes"; then
+        AC_DEFINE([DEBUG],[],[Enable extra debugging.])
+
+       if test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
+          COMP_VENDOR_CFLAGS="$COMP_VENDOR_CFLAGS -g -ggdb"
+       fi
+fi
+
+
 
 COMP_VENDOR_CFLAGS="$COMP_VENDOR_CFLAGS"
 AC_SUBST(COMP_VENDOR_CFLAGS)