summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-05-28 20:49:54 -0300
committerJohan Dahlin <johan@gnome.org>2010-05-28 20:49:54 -0300
commitb2fd4f54883cd701a0c280655c93e20b04897ed2 (patch)
tree207cfeec2e4db60be013c0f5faa78668360f30fe /m4
parentdfd218e4d488a64947fd2ae088cbff055b289599 (diff)
downloadgobject-introspection-b2fd4f54883cd701a0c280655c93e20b04897ed2.tar.gz
[build] Remove gcov support
It's been broken for some time, remove it instead of letting it bitrot.
Diffstat (limited to 'm4')
-rw-r--r--m4/Makefile.am2
-rw-r--r--m4/gcov.m447
2 files changed, 1 insertions, 48 deletions
diff --git a/m4/Makefile.am b/m4/Makefile.am
index d53e7c88..31484fa4 100644
--- a/m4/Makefile.am
+++ b/m4/Makefile.am
@@ -1 +1 @@
-EXTRA_DIST=gcov.m4 as-compiler-flag.m4
+EXTRA_DIST=as-compiler-flag.m4
diff --git a/m4/gcov.m4 b/m4/gcov.m4
deleted file mode 100644
index c96eddac..00000000
--- a/m4/gcov.m4
+++ /dev/null
@@ -1,47 +0,0 @@
-AC_DEFUN([GI_ENABLE_GCOV],
-[
- AC_ARG_ENABLE(gcov,
- AC_HELP_STRING([--enable-gcov],
- [compile with coverage profiling instrumentation (gcc only)]),
- enable_gcov=$enableval,
- enable_gcov=no)
- if test x$enable_gcov = xyes ; then
- if test "x$GCC" != "xyes"
- then
- AC_MSG_ERROR([gcov only works if gcc is used])
- fi
-
- AS_COMPILER_FLAG(["-fprofile-arcs"],
- [GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs"],
- true)
- AS_COMPILER_FLAG(["-ftest-coverage"],
- [GCOV_CFLAGS="$GCOV_CFLAGS -ftest-coverage"],
- true)
- dnl libtool 1.5.22 and lower strip -fprofile-arcs from the flags
- dnl passed to the linker, which is a bug; -fprofile-arcs implicitly
- dnl links in -lgcov, so we do it explicitly here for the same effect
- GCOV_LIBS=-lgcov
- AC_SUBST(GCOV_CFLAGS)
- AC_SUBST(GCOV_LIBS)
- GCOV=`echo $CC | sed s/gcc/gcov/g`
- AC_SUBST(GCOV)
-
- GI_GCOV_ENABLED=yes
- AC_DEFINE_UNQUOTED(GI_GCOV_ENABLED, 1,
- [Defined if gcov is enabled to force a rebuild due to config.h changing])
- dnl if gcov is used, we do not want default -O2 CFLAGS
- if test "x$GI_GCOV_ENABLED" = "xyes"
- then
- CFLAGS="-g -O0"
- AC_SUBST(CFLAGS)
- CXXFLAGS="-g -O0"
- AC_SUBST(CXXFLAGS)
- FFLAGS="-g -O0"
- AC_SUBST(FFLAGS)
- CCASFLAGS="-g -O0"
- AC_SUBST(CCASFLAGS)
- AC_MSG_NOTICE([gcov enabled, setting CFLAGS and friends to $CFLAGS])
- fi
- fi
- AM_CONDITIONAL(GI_GCOV_ENABLED, test x$enable_gcov = xyes)
-])