]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: ensure that MKINSTALLDIRS is AC_SUBST-defined
authorJim Meyering <meyering@redhat.com>
Wed, 24 Feb 2010 09:53:44 +0000 (10:53 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 25 Feb 2010 09:42:45 +0000 (10:42 +0100)
since we're using gettext-0.14.1, which uses that now-obsolete
automake symbol.  Otherwise, make distcheck would fails like this:

    make[2]: Entering directory `/t/libvirt-0.7.6/_build/po'
    /bin/sh @MKINSTALLDIRS@ /t/libvirt-0.7.6/_inst/share
    /bin/sh: @MKINSTALLDIRS@: No such file or directory
    make[2]: *** [install-data-yes] Error 127

* configure.ac (MKINSTALLDIRS): Define.
For reference, we're currently hamstrung by our desire
to support RHEL5, which still uses gettext-0.14:
http://bugzilla.redhat.com/523713

.gnulib
configure.ac

diff --git a/.gnulib b/.gnulib
index 108cfb803174abf17eb101e9999b9d1a642ce1ba..11fbc57405a118e6ec9a3ebc19bbf5ececdae4d6 160000 (submodule)
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit 108cfb803174abf17eb101e9999b9d1a642ce1ba
+Subproject commit 11fbc57405a118e6ec9a3ebc19bbf5ececdae4d6
index 117cb201a4f4968b9ce1f145772e96c0eec10741..bcd48a3dbf054076511f188d7d03857f3a76bd9d 100644 (file)
@@ -1655,6 +1655,11 @@ AM_CONDITIONAL([WITH_LIBVIRTD],[test "x$with_libvirtd" = "xyes"])
 dnl Check for gettext
 AM_GNU_GETTEXT_VERSION([0.14.1])
 AM_GNU_GETTEXT([external])
+dnl Since we're using such an old version of gettext, we must also define
+dnl this symbol, in order to make the autopoint-supplied Makefile.in.in
+dnl work properly.
+AC_SUBST([MKINSTALLDIRS], ["\$(top_builddir)/$ac_aux_dir/mkinstalldirs"])
+
 ALL_LINGUAS=`cd "$srcdir/po" > /dev/null && ls *.po | sed 's+\.po$++'`
 
 dnl Extra link-time flags for Cygwin.