From ae172fa8e3fc003febbdb20eebc928b73258a2a5 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 21 Dec 2013 21:24:31 +0100 Subject: [PATCH] configure: Do not enable gcov unless the compiler is GCC. Others are not known (to me) to work. --- configure.ac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8620ff8..d927b60 100644 --- a/configure.ac +++ b/configure.ac @@ -193,7 +193,7 @@ AC_ARG_ENABLE([gcov], COVERAGE_CFLAGS="" COVERAGE_LDFLAGS="" -if test "x$enable_gcov" = "xyes"; then +if test "x$enable_gcov" = "xyes" && test "x$GCC" == "xyes"; then COVERAGE_CFLAGS="-O0" cov_flag_have_problem="no" @@ -221,7 +221,10 @@ if test "x$enable_gcov" = "xyes"; then if test "x$cov_flag_have_problem" != "xno"; then AC_MSG_WARN([Some coverage flags are not supported by your compiler!]) fi -fi +else if test "x$enable_gcov" = "xyes"; then + AC_MSG_WARN([Your compiler ($CC) is not known to support Gcov!]) + enable_gcov="no (requires GCC)" +fi; fi AC_SUBST([COVERAGE_CFLAGS]) AC_SUBST([COVERAGE_LDFLAGS]) @@ -242,7 +245,7 @@ AC_ARG_WITH([libdbi], if test "x$with_libdbi" = "xyes"; then AC_CHECK_HEADERS([dbi/dbi.h], [with_libdbi="yes"], - [with_libdbi="no (dbi/dbi.h) not found"]) + [with_libdbi="no (dbi/dbi.h not found)"]) fi if test "x$with_libdbi" = "xyes"; then AC_CHECK_LIB([dbi], [dbi_initialize], -- 2.30.2