]> git.draconx.ca Git - gob-dx.git/blobdiff - configure.ac
Require flex to build the scanner.
[gob-dx.git] / configure.ac
index f3e4b913b4925b9326cc375f8ec88c1afdba4ff1..b43fc7c047c0fc3fc89353573fd070b845f93a72 100644 (file)
@@ -16,7 +16,6 @@ DX_AUTOMAKE_COMPAT
 
 AC_PROG_CC
 AC_PROG_CXX
-AC_PROG_LEX
 AC_PROG_YACC
 
 AC_ARG_VAR([PERL], [command to execute perl programs])
@@ -25,6 +24,9 @@ AM_CONDITIONAL([HAVE_PERL], [$PERL -e 'my $x = 42; exit $x'; test $? = 42])
 
 LT_INIT
 
+DX_PROG_FLEX([], [have_flex=yes], [have_flex=no])
+AM_CONDITIONAL([HAVE_FLEX], [test x"$have_flex" = x"yes"])
+
 DX_LIB_GLIB2
 
 dnl Dependencies for test suite