From: hugo303 Date: Fri, 7 Dec 2012 17:03:36 +0000 (+0000) Subject: * Use leading x to test $GCC for gcov enabling instead of POSIX '-n'. X-Git-Tag: 0.10.0~499 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97bac56e2e34d743d8b94394ee05f56031ba4249;p=check * Use leading x to test $GCC for gcov enabling instead of POSIX '-n'. Patch #3591517 on SF. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@681 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/configure.ac b/configure.ac index fd77551..21439cf 100644 --- a/configure.ac +++ b/configure.ac @@ -48,7 +48,7 @@ AC_HELP_STRING([--enable-gcov], esac], [enable_gcov=false ]) if test x$enable_gcov = xtrue ; then - if test -n "$GCC"; then + if test x"$GCC" != xyes; then AC_MSG_ERROR([gcov only works if gcc is used]) fi