]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: be more specific about .git repo before enabling warnings
authorBen Walton <bdwalton@gmail.com>
Mon, 2 Jun 2014 08:54:56 +0000 (09:54 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 2 Jun 2014 18:00:43 +0000 (19:00 +0100)
* configure.ac: When looking for a .git checkout, exclude repos that
contain a .tarball-version file as these are probably releases
that are imported into git for patch management.

configure.ac

index a7a8bfc1316026055639636f1e68b9335aad5b17..7c210d91f3ac3082d930c0e1c42f5f6a3bcf6b9a 100644 (file)
@@ -100,7 +100,9 @@ AC_ARG_ENABLE([gcc-warnings],
    # we're running from a git repo, then auto enable the warnings.
    gl_gcc_warnings=no
    gl_GCC_VERSION_IFELSE([4], [6],
-                         [test -d "$srcdir"/.git && gl_gcc_warnings=yes])]
+                         [test -d "$srcdir"/.git \
+                          && ! test -f "$srcdir"/.tarball-version \
+                          && gl_gcc_warnings=yes])]
 )
 
 if test "$gl_gcc_warnings" = yes; then