From 2d92746975e9917f3f9098c415ede47878cc861f Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 21 Oct 2009 15:03:56 +0000 Subject: [PATCH] Abort configure if lex or flex cannot be found. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@513 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index b69abe1..0358165 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,11 @@ AC_CONFIG_HEADER(config.h) AC_PROG_CC(cc gcc) AC_STDC_HEADERS + AC_PROG_LEX +if test "x$LEX" != xflex; then + AC_MSG_ERROR([lex or flex not found.]) +fi LIBS="$LIBS $LEXLIB"