[lbtt] Adjust parsers to accommodate old and new versions of Automake.
* src/Config-parse.yy, src/Ltl-parse.yy, src/NeverClaim-parse.yy: Rename these as.. * src/Config-parse.y, src/Ltl-parse.y, src/NeverClaim-parse.y: ... these. * src/Config-parse_.cc, src/Ltl-parse_.cc, src/NeverClaim-parse_.cc: New files to hack around incompatibilities between Automake 1.12 and Automake 1.11. * src/Makefile.am: Adjust. * NEWS: Mention this change.
This commit is contained in:
parent
b98c47246c
commit
e9e132dd29
9 changed files with 70 additions and 7 deletions
|
|
@ -1,3 +1,17 @@
|
||||||
|
2012-06-19 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
|
Adjust parsers to accommodate old and new versions of Automake.
|
||||||
|
|
||||||
|
* src/Config-parse.yy, src/Ltl-parse.yy, src/NeverClaim-parse.yy:
|
||||||
|
Rename these as..
|
||||||
|
* src/Config-parse.y, src/Ltl-parse.y, src/NeverClaim-parse.y:
|
||||||
|
... these.
|
||||||
|
* src/Config-parse_.cc, src/Ltl-parse_.cc,
|
||||||
|
src/NeverClaim-parse_.cc: New files to hack around
|
||||||
|
incompatibilities between Automake 1.12 and Automake 1.11.
|
||||||
|
* src/Makefile.am: Adjust.
|
||||||
|
* NEWS: Mention this change.
|
||||||
|
|
||||||
2012-05-21 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
2012-05-21 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
Make it clearer this is not LBTT 1.2.1.
|
Make it clearer this is not LBTT 1.2.1.
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ Version 1.2.1a
|
||||||
|
|
||||||
* Fix compilation with newer versions of Bison.
|
* Fix compilation with newer versions of Bison.
|
||||||
* Fix compilation on Intel's icpc, and with recent version of G++.
|
* Fix compilation on Intel's icpc, and with recent version of G++.
|
||||||
|
* Fix compilation with newer versions of Automake.
|
||||||
* Fix construction of manual ("make dvi" and "make pdf") for recent
|
* Fix construction of manual ("make dvi" and "make pdf") for recent
|
||||||
version of texinfo.
|
version of texinfo.
|
||||||
* Fix generation of random formulae on 64bit machines. (They were
|
* Fix generation of random formulae on 64bit machines. (They were
|
||||||
|
|
|
||||||
16
lbtt/src/Config-parse_.cc
Normal file
16
lbtt/src/Config-parse_.cc
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
// This is a hack to support both Automake <= 1.11.x, and Automake >=
|
||||||
|
// 1.12.x The problem with is that old versions used to create
|
||||||
|
// parse.h, and parse.cc from a parse.yxx grammar, while new versions
|
||||||
|
// create parse.hxx and parse.cc.
|
||||||
|
//
|
||||||
|
// We want to support both version of Automake, because 1.11.x is
|
||||||
|
// fairly well distributed, and 1.12 did not make it into Debian 7.0.
|
||||||
|
//
|
||||||
|
// Yet it's difficult to support both versions because of the name
|
||||||
|
// change. Our hack is to rename parse.yxx as parse.y, so that
|
||||||
|
// automake will generate rule to build parse.h and parse.c, and then
|
||||||
|
// this parse_.cc file is used to compile parse.c in C++. This way we
|
||||||
|
// always have a parse.h file regardless of the Automake version.
|
||||||
|
//
|
||||||
|
// We can fix this mess once Automake 1.12 is available everywhere.
|
||||||
|
#include "Config-parse.c"
|
||||||
16
lbtt/src/Ltl-parse_.cc
Normal file
16
lbtt/src/Ltl-parse_.cc
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
// This is a hack to support both Automake <= 1.11.x, and Automake >=
|
||||||
|
// 1.12.x The problem with is that old versions used to create
|
||||||
|
// parse.h, and parse.cc from a parse.yxx grammar, while new versions
|
||||||
|
// create parse.hxx and parse.cc.
|
||||||
|
//
|
||||||
|
// We want to support both version of Automake, because 1.11.x is
|
||||||
|
// fairly well distributed, and 1.12 did not make it into Debian 7.0.
|
||||||
|
//
|
||||||
|
// Yet it's difficult to support both versions because of the name
|
||||||
|
// change. Our hack is to rename parse.yxx as parse.y, so that
|
||||||
|
// automake will generate rule to build parse.h and parse.c, and then
|
||||||
|
// this parse_.cc file is used to compile parse.c in C++. This way we
|
||||||
|
// always have a parse.h file regardless of the Automake version.
|
||||||
|
//
|
||||||
|
// We can fix this mess once Automake 1.12 is available everywhere.
|
||||||
|
#include "Ltl-parse.c"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
BUILT_SOURCES = Config-parse.h NeverClaim-parse.h
|
BUILT_SOURCES = Config-parse.c NeverClaim-parse.c Ltl-parse.c
|
||||||
AM_YFLAGS = -d
|
AM_YFLAGS = -d
|
||||||
|
|
||||||
bin_PROGRAMS = lbtt lbtt-translate
|
bin_PROGRAMS = lbtt lbtt-translate
|
||||||
|
|
@ -10,7 +10,7 @@ lbtt_SOURCES = \
|
||||||
BuchiAutomaton.cc \
|
BuchiAutomaton.cc \
|
||||||
BuchiProduct.h \
|
BuchiProduct.h \
|
||||||
BuchiProduct.cc \
|
BuchiProduct.cc \
|
||||||
Config-parse.yy \
|
Config-parse_.cc \
|
||||||
Config-lex.ll \
|
Config-lex.ll \
|
||||||
Configuration.h \
|
Configuration.h \
|
||||||
Configuration.cc \
|
Configuration.cc \
|
||||||
|
|
@ -26,7 +26,7 @@ lbtt_SOURCES = \
|
||||||
LbttAlloc.h \
|
LbttAlloc.h \
|
||||||
LtlFormula.h \
|
LtlFormula.h \
|
||||||
LtlFormula.cc \
|
LtlFormula.cc \
|
||||||
Ltl-parse.yy \
|
Ltl-parse_.cc \
|
||||||
main.cc \
|
main.cc \
|
||||||
PathEvaluator.h \
|
PathEvaluator.h \
|
||||||
PathEvaluator.cc \
|
PathEvaluator.cc \
|
||||||
|
|
@ -56,7 +56,7 @@ lbtt_SOURCES = \
|
||||||
UserCommandReader.cc \
|
UserCommandReader.cc \
|
||||||
UserCommands.h \
|
UserCommands.h \
|
||||||
UserCommands.cc
|
UserCommands.cc
|
||||||
EXTRA_lbtt_SOURCES = gnu-getopt.h
|
EXTRA_lbtt_SOURCES = gnu-getopt.h Config-parse.y Ltl-parse.y
|
||||||
lbtt_LDADD = @LIBOBJS@ @READLINELIBS@
|
lbtt_LDADD = @LIBOBJS@ @READLINELIBS@
|
||||||
|
|
||||||
lbtt_translate_SOURCES = \
|
lbtt_translate_SOURCES = \
|
||||||
|
|
@ -72,8 +72,8 @@ lbtt_translate_SOURCES = \
|
||||||
LbtWrapper.h \
|
LbtWrapper.h \
|
||||||
LtlFormula.h \
|
LtlFormula.h \
|
||||||
LtlFormula.cc \
|
LtlFormula.cc \
|
||||||
Ltl-parse.yy \
|
Ltl-parse_.cc \
|
||||||
NeverClaim-parse.yy \
|
NeverClaim-parse_.cc \
|
||||||
NeverClaim-lex.ll \
|
NeverClaim-lex.ll \
|
||||||
NeverClaimAutomaton.h \
|
NeverClaimAutomaton.h \
|
||||||
NeverClaimAutomaton.cc \
|
NeverClaimAutomaton.cc \
|
||||||
|
|
@ -88,5 +88,5 @@ lbtt_translate_SOURCES = \
|
||||||
translate.h \
|
translate.h \
|
||||||
translate.cc \
|
translate.cc \
|
||||||
TranslatorInterface.h
|
TranslatorInterface.h
|
||||||
EXTRA_lbtt_translate_SOURCES = gnu-getopt.h
|
EXTRA_lbtt_translate_SOURCES = gnu-getopt.h Ltl-parse.y NeverClaim-parse.y
|
||||||
lbtt_translate_LDADD = @LIBOBJS@
|
lbtt_translate_LDADD = @LIBOBJS@
|
||||||
|
|
|
||||||
16
lbtt/src/NeverClaim-parse_.cc
Normal file
16
lbtt/src/NeverClaim-parse_.cc
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
// This is a hack to support both Automake <= 1.11.x, and Automake >=
|
||||||
|
// 1.12.x The problem with is that old versions used to create
|
||||||
|
// parse.h, and parse.cc from a parse.yxx grammar, while new versions
|
||||||
|
// create parse.hxx and parse.cc.
|
||||||
|
//
|
||||||
|
// We want to support both version of Automake, because 1.11.x is
|
||||||
|
// fairly well distributed, and 1.12 did not make it into Debian 7.0.
|
||||||
|
//
|
||||||
|
// Yet it's difficult to support both versions because of the name
|
||||||
|
// change. Our hack is to rename parse.yxx as parse.y, so that
|
||||||
|
// automake will generate rule to build parse.h and parse.c, and then
|
||||||
|
// this parse_.cc file is used to compile parse.c in C++. This way we
|
||||||
|
// always have a parse.h file regardless of the Automake version.
|
||||||
|
//
|
||||||
|
// We can fix this mess once Automake 1.12 is available everywhere.
|
||||||
|
#include "NeverClaim-parse.c"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue