From c72ac65d0fe022340af8733788235bf286785adc Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Tue, 20 Oct 2009 03:35:42 +0000 Subject: [PATCH] Fix --enable-gcov: * Rename GCOV_FLAGS -> GCOV_CFLAGS * Add GCOV_LDFLAGS (default is -lgcov) Originally committed to SVN as r3724. --- aegisub/configure.in | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/aegisub/configure.in b/aegisub/configure.in index 01f0e2e23..b54c75998 100644 --- a/aegisub/configure.in +++ b/aegisub/configure.in @@ -994,18 +994,25 @@ fi # gcov ###### -AC_ARG_VAR([GCOV_FLAGS], [gcov flag(s) to use with --enable-gcov (default: -ftest-coverage -fprofile-arcs)]) +AC_ARG_VAR([GCOV_CFLAGS], [gcov cflag(s) to use with --enable-gcov (default: -ftest-coverage -fprofile-arcs)]) +AC_ARG_VAR([GCOV_LDFLAGS], [gcov ldflag(s) to use with --enable-gcov (default: -lgcov)]) AC_MSG_CHECKING([whether to turn on gcov]) AC_ARG_ENABLE(gcov, [ --enable-gcov enable gcov (default=no)]) if test "$enable_gcov" = "yes"; then - if test -z "$GCOV_FLAGS"; then - GCOV_FLAGS="-fprofile-arcs -ftest-coverage"; + if test -z "$GCOV_CFLAGS"; then + GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"; fi + + if test -z "$GCOV_LDFLAGS"; then + GCOV_LDFLAGS="-lgcov"; + fi + AC_MSG_RESULT([yes ($GCOV_FLAGS)]) - CFLAGS="$CFLAGS $GCOV_FLAGS" - CPPFLAGS="$CPPFLAGS $GCOV_FLAGS" + CFLAGS="$CFLAGS $GCOV_CFLAGS" + LDFLAGS="$LDFLAGS $GCOV_LDFLAGS" + CPPFLAGS="$CPPFLAGS $GCOV_CFLAGS" else enable_gcov="no" AC_MSG_RESULT([no])