two simple flex and bison patches



Hi,

since lots of people get errors during the build of libIDL in garnome 
because of missing flex, I've made two really small patches to 
configure.in in two modules that check and fatally fail during configure 
if these are missing.

I'm posting them here because it'd sure be nice if they got in before 
2.0.2 and the next garnome, instead of lying around for weeks.  They're 
pretty trivial, but I don't have any experience on non-i686-linux boxes so 
please take a quick look at it to make sure they also look right for 
solaris and others.

Thanks,
Thomas

-- 

The Dave/Dina Project : future TV today ! - http://davedina.apestaart.org/
<-*-                      -*->
I've been told
only fools rush in
<-*- thomas apestaart org -*->
URGent, the best radio on the Internet - 24/7 ! - http://urgent.rug.ac.be/
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/bonobo-activation/ChangeLog,v
retrieving revision 1.318
diff -u -p -r1.318 ChangeLog
--- ChangeLog	21 Aug 2002 23:08:36 -0000	1.318
+++ ChangeLog	27 Aug 2002 08:36:48 -0000
@@ -1,3 +1,7 @@
+2002-08-27  Thomas Vander Stichele <thomas apestaart org>
+
+        * configure.in: make not finding flex fatal 
+
 2002-08-22  Stanislav Brabec  <utx penguin cz>
 
 	* configure.in: Added cs to ALL_LINGUAS.
Index: configure.in
===================================================================
RCS file: /cvs/gnome/bonobo-activation/configure.in,v
retrieving revision 1.123
diff -u -p -r1.123 configure.in
--- configure.in	21 Aug 2002 23:08:37 -0000	1.123
+++ configure.in	27 Aug 2002 08:36:49 -0000
@@ -43,6 +43,11 @@ AM_SANITY_CHECK
 dnl Checks for programs.
 AC_PROG_CC
 AM_PROG_LEX
+if [[ "$LEX" != "flex" ]]; then
+        AC_MSG_ERROR([flex is required to build bonobo-activation])
+fi
+
 AC_PROG_INSTALL
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libIDL/ChangeLog,v
retrieving revision 1.142
diff -u -p -r1.142 ChangeLog
--- ChangeLog	18 Aug 2002 22:22:08 -0000	1.142
+++ ChangeLog	27 Aug 2002 08:25:45 -0000
@@ -1,3 +1,8 @@
+2002-08-27  Thomas Vander Stichele <thomas apestaart org>
+
+  	* configure.in: make failures to find a usable flex and yacc
+          critical 
+
 2002-08-18  Havoc Pennington  <hp pobox com>
 
 	* autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
Index: configure.in
===================================================================
RCS file: /cvs/gnome/libIDL/configure.in,v
retrieving revision 1.67
diff -u -p -r1.67 configure.in
--- configure.in	6 Jun 2002 16:24:22 -0000	1.67
+++ configure.in	27 Aug 2002 08:25:46 -0000
@@ -55,11 +55,18 @@ AC_DEFINE_UNQUOTED(CPP_PROGRAM, "$CPP")
 
 AM_PROG_LEX
 if [[ "$LEX" != "flex" ]]; then
-	AC_MSG_WARN(flex is required to create the libIDL scanner)
+	AC_MSG_ERROR(flex is required to create the libIDL scanner)
 fi
 LFLAGS="-8"
 AC_SUBST(LFLAGS)
+
 AC_PROG_YACC
+dnl determine if a usable yacc is available on this system
+AC_CHECK_PROG(HAVE_YACC, $YACC, yes, no)
+if [[ "$HAVE_YACC" = "no" ]]; then
+	AC_MSG_ERROR(yacc is required to create the libIDL scanner - consider bison)
+fi
+
 AM_PROG_LIBTOOL
 AM_MAINTAINER_MODE
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]