]> granicus.if.org Git - check/commitdiff
* Use leading x to test $GCC for gcov enabling instead of POSIX '-n'.
authorhugo303 <hugo303@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Fri, 7 Dec 2012 17:03:36 +0000 (17:03 +0000)
committerhugo303 <hugo303@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Fri, 7 Dec 2012 17:03:36 +0000 (17:03 +0000)
  Patch #3591517 on SF.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@681 64e312b2-a51f-0410-8e61-82d0ca0eb02a

configure.ac

index fd77551ac36f41dfb9a7505b2279df72d6ba5b5f..21439cfa7eb409751df3ec7a1e7cfe89506f1f6a 100644 (file)
@@ -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