On 07/13/2012 07:16 PM, Matt Turner wrote: > Hi, > > In Mesa (http://www.mesa3d.org/) we generate some C++ code using > Bison. The input is glsl_parser.yy and automake-1.11 and prior > versions generated glsl_parser.h. 1.12 generates glsl_parser.hh, and > if the input file is named .ypp it generates a .hpp file. How can we > configure our build system such that it will work with 1.11 and 1.12? > > http://cgit.freedesktop.org/mesa/mesa/tree/configure.ac > http://cgit.freedesktop.org/mesa/mesa/tree/src/glsl/Makefile.am > My suggestion would be to simply require Automake 1.12 from every developer, and avoid such compatibilities headaches (1.12 still requires just Autoconf 2.62 and perl 5.6, so that your developers won't be forced to upgrade other tools in addition to Automake itself).
If you really *must* support both Automake 1.11 and 1.12: take a look at the attached tarball; it should (hopefully) provide you with enough inspiration to do so. HTH, Stefano
am-compat.tar.gz
Description: GNU Zip compressed data