Check whether lex/flex and yacc/bison really exist. Fix for ticket #395.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6105 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2006-11-17 10:05:32 +00:00
parent de1934f46b
commit 95938b3423

View File

@ -296,6 +296,16 @@ dnl ---------------------------------------------------------------------------
AC_PROG_YACC
AM_PROG_LEX
# test whether they have been really found
# (by default if not found autoconf will use a stub)
if test x"$LEX" != "xflex" -a x"$LEX" != "xlex" ; then
AC_MSG_ERROR("Lex/Flex is not available!")
fi
if test x"$YACC" != "xbison" -a x"$YACC" != "xyacc" -a x"$YACC" != "xbison -y" ; then
AC_MSG_ERROR("Yacc/Bison is not available!")
fi
dnl ---------------------------------------------------------------------------
dnl SPIT plugin