Diff between ce49d2b39b51ddb8bc9cb23762fc201b557175fb and 78cbdd40b2c4a10f7b6de53dc82663f2eaed523e

Changed Files

File Additions Deletions Status
acinclude.m4 +1 -1 modified
configure.ac +2 -2 modified

Full Patch

diff --git a/acinclude.m4 b/acinclude.m4
index 4cfc80a..960d54c 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -52,7 +52,7 @@ AC_DEFUN([MISC_FLAGS], [
 			misc_ldflags="$misc_ldflags -pie"
 		fi
 	])
-	if (test "$USE_MAINTAINER_MODE" = "yes"); then
+	if (test "$enable_coverage" = "yes"); then
 		misc_cflags="$misc_cflags --coverage"
 		misc_ldflags="$misc_ldflags --coverage"
 	fi
diff --git a/configure.ac b/configure.ac
index 196e784..a70d55a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -275,8 +275,8 @@ AC_DEFINE_UNQUOTED(ANDROID_STORAGEDIR, "${storagedir}/android",
 			[Directory for the Android daemon storage files])
 
 if (test "$USE_MAINTAINER_MODE" = "yes"); then
-	AC_CHECK_PROG([LCOV], [lcov], [yes], AC_MSG_ERROR(lcov is required))
+	AC_CHECK_PROG(enable_coverage, [lcov], [yes], [no])
 fi
-AM_CONDITIONAL(COVERAGE, test "$LCOV" = "yes")
+AM_CONDITIONAL(COVERAGE, test "${enable_coverage}" = "yes")
 
 AC_OUTPUT(Makefile src/bluetoothd.8 lib/bluez.pc)