Commit ebcbe55e authored by Pekka Pessi's avatar Pekka Pessi

sac-general.m4: do not modify SOFIA_CFLAGS, use SOFIA_COVERAGE instead.

darcs-hash:20061222154219-65a35-4d2ddb6685a74fe902ebb966a38dedd9db8ce10c.gz
parent 85744941
# common Makefile targets for libsofia-sip-ua modules
# ---------------------------------------------------
AM_CFLAGS = $(CWFLAG) $(SOFIA_CFLAGS)
AM_CFLAGS = $(CWFLAG) $(SOFIA_CFLAGS) $(SOFIA_COVERAGE)
# Use with --enable-ndebug
if NDEBUG
AM_CFLAGS += -DNDEBUG
endif
built-sources: $(BUILT_SOURCES)
......
......@@ -133,7 +133,7 @@ AC_ARG_ENABLE(coverage,
if test X$enable_coverage != Xno ; then
case "${CC-cc}" in
*gcc*)
SOFIA_CFLAGS="$SOFIA_CFLAGS -fprofile-arcs -ftest-coverage"
AC_SUBST([SOFIA_COVERAGE], ["-fprofile-arcs -ftest-coverage"])
;;
*) AC_MSG_ERROR([--enable-coverage requires gcc])
esac
......@@ -344,7 +344,6 @@ AC_ARG_ENABLE(ndebug,
[ --enable-ndebug compile with NDEBUG (disabled)],
, enable_ndebug=no)
AM_CONDITIONAL(NDEBUG, test x$enable_ndebug = yes)
SOFIA_CFLAGS="$SOFIA_CFLAGS -DNDEBUG"
])
dnl ======================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment