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