]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: do not ignore datarootdir
authorSami Kerola <kerolasa@iki.fi>
Tue, 15 Mar 2011 20:58:07 +0000 (21:58 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Mar 2011 09:17:50 +0000 (10:17 +0100)
Fix to the ./configure warning which has been printed since
autotools version 2.59c (released at April 2006).

WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir setting

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
autogen.sh

index ae9d8c139fef9a17cd3a4e1990c4b7145692716d..a308d9b0e41bb96b5ca4e376ad716cf01f0d30a2 100755 (executable)
@@ -76,6 +76,11 @@ echo "   libtoolize: $(libtoolize --version | head -1)"
 set -e
 po/update-potfiles
 autopoint --force $AP_OPTS
+if ! grep -q datarootdir po/Makefile.in.in; then
+       echo autopoint does not honor dataroot variable, patching.
+       sed -i -e 's/^datadir *=\(.*\)/datarootdir = @datarootdir@\
+datadir = @datadir@/g' po/Makefile.in.in
+fi
 libtoolize --force $LT_OPTS
 aclocal -I m4 $AL_OPTS
 autoconf $AC_OPTS