bug-cvs
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] AC_PROG_YACC


From: Derek Robert Price
Subject: Re: [Bug-gnulib] AC_PROG_YACC
Date: Mon, 03 May 2004 16:38:29 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This would work for me, though I would still like to see
AC_ARG_VAR(YFLAGS, ...) added per my earlier patch submission.

Derek

Bruno Haible wrote:

>Mark D. Baushke wrote:
>
>>I will also note that the current getdate.y assumes that a bison 1.35 or
>>more recent is available.
>
>
>OK, can we then replace gnulib's bison macro with the following:
>
>AC_DEFUN([gl_BISON],
>[
>  # getdate.y works with bison only (because it uses bison specific
features)
>  # and actually requires bison >= 1.26.
>  # bison is only needed for the maintainer (who touches getdate.y).
But in
>  # order to avoid separate Makefiles or --enable-maintainer-mode, we put
>  # the rule in general Makefile. Now, some people carelessly touch the
>  # files or have a broken "make" program, hence the getdate.c rule will
>  # sometimes fire. To avoid an error, define GL_BISON to ":" if it
is not
>  # present or too old.
>  AC_CHECK_PROGS([GL_BISON], [bison])
>  if test -z "$GL_BISON"; then
>    ac_verc_fail=yes
>  else
>    dnl Found it, now check the version.
>    AC_MSG_CHECKING([version of bison])
>changequote(<<,>>)dnl
>    ac_prog_version=`$GL_BISON --version 2>&1 | sed -n 's/^.*GNU
Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
>    case $ac_prog_version in
>      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
>      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
>changequote([,])dnl
>         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
>      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
>    esac
>    AC_MSG_RESULT([$ac_prog_version])
>  fi
>  if test $ac_verc_fail = yes; then
>    GL_BISON=:
>  fi
>  YACC="$GL_BISON -y"
>  AC_SUBST(YACC)
>])
>
>Bruno


- --
                *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAlq3ELD1OTBfyMaQRAhTuAKCbKKJtvvKGifW4Ym07CemphwMv9gCg2Tlv
b43PmOublCo2/3NFTdmeWQQ=
=xGP7
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]