This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: configure check for flex
- From: Bruce Korb <bkorb at gnu dot org>
- To: Gerald Pfeifer <gerald at pfeifer dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 08 Dec 2013 13:06:13 -0800
- Subject: Re: configure check for flex
- Authentication-results: sourceware.org; auth=none
- References: <52A38C1A dot 6020806 at gnu dot org> <52A38C75 dot 8010100 at gnu dot org> <CAH6eHdRvSQ-ORDK5iJ60W=pGqptF83dFg77BszaroKxz=Of4fA at mail dot gmail dot com> <52A4C1C1 dot 8070302 at gnu dot org> <alpine dot LNX dot 2 dot 00 dot 1312082206390 dot 2197 at tuna dot site>
On 12/08/13 13:06, Gerald Pfeifer wrote:
Lovely. Thank you very much!
$ svn diff
Index: configure.ac
===================================================================
--- configure.ac (revision 205790)
+++ configure.ac (working copy)
@@ -1319,10 +1319,17 @@
# Used for setting $lt_cv_objdir
_LT_CHECK_OBJDIR
-# Check for GMP, MPFR and MPC
+# Check for flex, GMP, MPFR and MPC
+[for p in flex
+do
+ c=`command -v $p`
+ test -x "$c" || \
+ ]AC_MSG_ERROR([the $p command is required to build GCC])[
+done
+
gmplibs="-lmpc -lmpfr -lgmp"
gmpinc=
-have_gmp=no
+have_gmp=no]
# Specify a location for mpc
# check for this first so it ends up on the link line before mpfr.