build-sys: verify gettext is present in autogen.sh
authorSami Kerola <kerolasa@iki.fi>
Wed, 19 Oct 2011 09:45:38 +0000 (11:45 +0200)
committerSami Kerola <kerolasa@iki.fi>
Tue, 20 Dec 2011 16:30:51 +0000 (17:30 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
autogen.sh

index 4e3d4995a5129a4cb43553c6a8899575d9939ce5..6699630cce91d6fd0e3cf05abde14b6f83becc9b 100755 (executable)
@@ -15,6 +15,12 @@ test -f top.c || {
        DIE=1
 }
 
+(autopoint --version) < /dev/null > /dev/null 2>&1 || {
+       echo "You must have autopoint installed to generate util-linux build system."
+       echo "The autopoint command is part of the GNU gettext package."
+       DIE=1
+}
+
 (autoconf --version) < /dev/null > /dev/null || {
        echo "You must have autoconf installed to generate procps-ng build system."
        DIE=1
@@ -45,6 +51,7 @@ if test ${DIE} -ne 0; then
 fi
 
 echo "Generate build-system by:"
+echo "   autopoint:  $(autopoint --version | head -1)"
 echo "   aclocal:    $(aclocal --version | head -1)"
 echo "   autoconf:   $(autoconf --version | head -1)"
 echo "   autoheader: $(autoheader --version | head -1)"