Author: hikari <hikari@undernet.org>
[ircu2.10.12-pk.git] / configure.in
index 7c5e5b760578a4aa49b27b5d89c412a52ad05a80..3244abcaee63f9fec2789dbc102dcdcab2b3064a 100644 (file)
@@ -137,13 +137,34 @@ AC_PROG_AWK
 AC_PROG_MAKE_SET
 AC_PROG_INSTALL
 AC_PROG_LN_S
-AC_PROG_LEX
-AC_PROG_YACC
 AC_PATH_PROGS(RMPROG, rm, /bin/rm)
 AC_PATH_PROGS(SHPROG, sh, /bin/sh)
 
+dnl (F)LEX - needed for the new conf file parser
+AC_PROG_LEX
+if test -x "$LEX"
+then 
+  AC_MSG_ERROR([Cannot find flex.])
+fi
+
+if test -z "$LEXLIB"
+then
+  AC_MSG_FAILURE([
+  Cannot find a library with yywrap() in, but flex was found.  
+  It's possible the compiler you're using ($CC) is incompatible with the 
+  installed library.])
+fi
+
 LIBS="$LEXLIB $LIBS"
 
+dnl YACC - ditto
+AC_PROG_YACC
+if test -z "$YACC"
+then
+  AC_MSG_ERROR([Cannot find yacc.])
+fi
+
+
 unet_NONBLOCKING
 unet_SIGNALS