]> git.ozlabs.org Git - petitboot/blobdiff - configure.ac
configure: Add test for msgfmt
[petitboot] / configure.ac
index 3ed41eee7bdd984b73794f92158b1acfaab008cd..1fa0ea4454153e63f67575c4447bdac7386e8a30 100644 (file)
@@ -16,7 +16,7 @@
 
 AC_INIT([petitboot],
     [m4_esyscmd_s([./version.sh])],
-    [Geoff Levand <geoff@infradead.org>])
+    [https://lists.ozlabs.org/listinfo/petitboot])
 
 AC_CONFIG_MACRO_DIR([m4])
 
@@ -26,13 +26,22 @@ AS_IF([test "x$CFLAGS" = "x"], [AC_SUBST([CFLAGS], [""])])
 
 AC_PROG_CC
 AC_PROG_LEX
+if test -z "$($LEX --version)"; then
+       AC_MSG_ERROR([[Please install flex/lex]])
+fi
 AC_PROG_YACC
+if test -z "$($YACC --version)"; then
+       AC_MSG_ERROR([[Please install bison/yacc]])
+fi
 AC_PROG_INSTALL
 
 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])
@@ -107,7 +116,7 @@ AC_ARG_WITH(
                [build x11 GUI programs using the twin window system [default=yes]]
        )],
        [],
-       [with_twin_x11=yes]
+       [with_twin_x11=no]
 )
 AM_CONDITIONAL([WITH_TWIN_X11], [test "x$with_twin_x11" = "xyes"])
 
@@ -118,7 +127,7 @@ AC_ARG_WITH(
                [build frame buffer GUI programs using the twin window system [default=no]]
        )],
        [],
-       [with_twin_fbdev=yes]
+       [with_twin_fbdev=no]
 )
 AM_CONDITIONAL([WITH_TWIN_FBDEV], [test "x$with_twin_fbdev" = "xyes"])