52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
-
+
+
+
+
+
|
tcl_nano_debug='true'
fi
])
dnl If we are building a debug release, enable debugging flags
if test "$tcl_nano_debug" = 'true'; then
AC_DEFINE(TCLEXT_TCL_NANO_DEBUG, [1], [Enable debugging build])
AX_CHECK_COMPILE_FLAG([-mmpx -fcheck-pointer-bounds], [CFLAGS="$CFLAGS -mmpx -fcheck-pointer-bounds"])
AX_CHECK_COMPILE_FLAG([-mmpx -fcheck-pointer-bounds], [
AX_CHECK_LINK_FLAG([-mmpx -fcheck-pointer-bounds], [
CFLAGS="$CFLAGS -mmpx -fcheck-pointer-bounds"
])
])
AX_CHECK_COMPILE_FLAG([-g3], [CFLAGS="$CFLAGS -g3"])
AX_CHECK_COMPILE_FLAG([-ggdb3], [CFLAGS="$CFLAGS -ggdb3"])
else
dnl If we are not doing debugging disable some of the more annoying warnings
AX_CHECK_COMPILE_FLAG([-Wno-unused-value], [CFLAGS="$CFLAGS -Wno-unused-value"])
AX_CHECK_COMPILE_FLAG([-Wno-unused-parameter], [CFLAGS="$CFLAGS -Wno-unused-parameter"])
AX_CHECK_COMPILE_FLAG([-Wno-deprecated-declarations], [CFLAGS="$CFLAGS -Wno-deprecated-declarations"])
|