Last change
on this file since 1785 was
449,
checked in by fielding@…, 14 years ago
|
If lex is actually flex (as it is on Mac OS X), then the -l flag is
required in order to support yylineo. make uses LFLAGS to set flags
for the automatic rule for running lex.
|
File size:
1.1 KB
|
Line | |
---|
1 | dnl $Id: configure.ac,v 1.1 2008-05-28 12:01:58 jre Exp $ |
---|
2 | dnl |
---|
3 | dnl Boy does modern autoconf make it hard to have a small ./configure. |
---|
4 | dnl Sorry that it's so huge for almost no configuration. |
---|
5 | |
---|
6 | AC_INIT(bap, 1.2) |
---|
7 | |
---|
8 | AC_PROG_CC |
---|
9 | AC_PROG_YACC |
---|
10 | |
---|
11 | dnl byacc on FreeBSD 4.3 gives weird parsing problems. |
---|
12 | dnl byacc on FreeBSD 4.10 seems fine. |
---|
13 | if test "$ac_cv_prog_YACC" = "byacc"; then |
---|
14 | AC_WARN([using byacc has caused inexplicable runtime behavior;]) |
---|
15 | AC_WARN([if you get incomprehensible errors when parsing]) |
---|
16 | AC_WARN([grammars, install bison and try again.]) |
---|
17 | fi |
---|
18 | |
---|
19 | dnl The bap -d argument only works with bison, so enable it |
---|
20 | dnl if we're using bison. |
---|
21 | dnl |
---|
22 | dnl Unfortunately, the bison internals that my YYERROR_VERBOSE |
---|
23 | dnl code tweaks changed in bison 2.1, and I haven't taken the |
---|
24 | dnl time to track it down, so skip this test for now. |
---|
25 | dnl if test "$ac_cv_prog_YACC" = "bison -y"; then |
---|
26 | dnl AC_DEFINE(YYERROR_VERBOSE, 1, [define if we're using bison]) |
---|
27 | dnl fi |
---|
28 | |
---|
29 | AC_PROG_LEX |
---|
30 | if test "$LEX" = "flex"; then |
---|
31 | FLEXFLAGS="-l" |
---|
32 | fi |
---|
33 | AC_SUBST(FLEXFLAGS) |
---|
34 | |
---|
35 | AC_REPLACE_FUNCS(hcreate) |
---|
36 | |
---|
37 | AC_CONFIG_HEADERS(config.h) |
---|
38 | |
---|
39 | AC_OUTPUT(Makefile) |
---|
Note: See
TracBrowser
for help on using the repository browser.