]> git.draconx.ca Git - cdecl99.git/blobdiff - configure.ac
Give better errors when flex/bison are unavailable.
[cdecl99.git] / configure.ac
index e0a67aac01adaeb46911b4d676bc73a196a455a3..b30597aaa3c93798217d48e447458c2ed909c218 100644 (file)
@@ -48,8 +48,12 @@ m4_traceoff([AM_GNU_GETTEXT])
 AM_GNU_GETTEXT([external])
 DX_LINGUAS
 
-DX_PROG_FLEX([], [], [FLEX=false])
-DX_PROG_BISON([], [], [BISON=false])
+DX_PROG_FLEX([], [have_flex=yes], [have_flex=no])
+AM_CONDITIONAL([HAVE_FLEX], [test x"$have_flex" = x"yes"])
+
+DX_PROG_BISON([], [have_bison=yes], [have_bison=no])
+AM_CONDITIONAL([HAVE_BISON], [test x"$have_bison" = x"yes"])
+
 DX_BISON_COMPAT
 BISON_I18N