]> xenbits.xensource.com Git - libvirt.git/commitdiff
configure.in: avoid the following diagnostic when running ../configure ...
authorJim Meyering <meyering@redhat.com>
Tue, 25 Nov 2008 15:36:09 +0000 (15:36 +0000)
committerJim Meyering <meyering@redhat.com>
Tue, 25 Nov 2008 15:36:09 +0000 (15:36 +0000)
cp: cannot stat `COPYING.LIB': No such file or directory

ChangeLog
configure.in

index 35d7834c62634e906fd431646c92f77c25c6e2a3..d46d4229ee7e6499934ca4c119793c8dad283770 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-Tue Nov 25 16:34:09 +0100 2008 Jim Meyering <meyering@redhat.com>
+Tue Nov 25 16:34:10 +0100 2008 Jim Meyering <meyering@redhat.com>
+
+       * configure.in: avoid the following diagnostic when running ../configure
+       cp: cannot stat `COPYING.LIB': No such file or directory
 
        don't silently skip a test
        * tests/Makefile.am (EXTRA_DIST): Distribute domainschemadata/.
index a603c10b57f44b0ece630f8dd760566241a00048..4db7204fc5bd69bc2c162ba533f0991645c75e66 100644 (file)
@@ -1222,10 +1222,12 @@ then
 fi
 AM_CONDITIONAL([WITH_NODE_DEVICES], [test "$with_nodedev" = "yes"])
 
-
-# very annoying
-rm -f COPYING
-cp COPYING.LIB COPYING
+# Only COPYING.LIB is under version control, yet COPYING
+# is included as part of the distribution tarball.
+# Copy one to the other, but only if this is a srcdir-build.
+# You are unlikely to be doing distribution-related things in a non-srcdir build
+test "x$srcdir" = x. && ! test -f COPYING &&
+cp -f COPYING.LIB COPYING
 
 AC_OUTPUT(Makefile src/Makefile include/Makefile docs/Makefile \
           docs/examples/Makefile docs/devhelp/Makefile \