configure: Add test for msgfmt
[petitboot] / configure.ac
index 566742c63996b454c0c6da7ddbfc270ca766480b..1fa0ea4454153e63f67575c4447bdac7386e8a30 100644 (file)
@@ -39,6 +39,9 @@ AM_INIT_AUTOMAKE
 AC_GNU_SOURCE
 AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION(0.18.1)
+if test -z "$($MSGFMT --version)"; then
+       AC_MSG_ERROR([[Please install gettext]])
+fi
 LT_INIT
 
 AM_SILENT_RULES([yes])