mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
build: flex.m4: quote properly.
* m4/flex.m4: Use quotes more systematically.
This commit is contained in:
11
m4/flex.m4
11
m4/flex.m4
@@ -12,7 +12,7 @@ AN_MAKEVAR([LEX], [AC_PROG_LEX])
|
|||||||
AN_PROGRAM([lex], [AC_PROG_LEX])
|
AN_PROGRAM([lex], [AC_PROG_LEX])
|
||||||
AN_PROGRAM([flex], [AC_PROG_LEX])
|
AN_PROGRAM([flex], [AC_PROG_LEX])
|
||||||
AC_DEFUN_ONCE([AC_PROG_LEX],
|
AC_DEFUN_ONCE([AC_PROG_LEX],
|
||||||
[AC_CHECK_PROGS(LEX, flex lex, :)
|
[AC_CHECK_PROGS([LEX], [flex lex], [:])
|
||||||
if test "x$LEX" != "x:"; then
|
if test "x$LEX" != "x:"; then
|
||||||
_AC_PROG_LEX_YYTEXT_DECL
|
_AC_PROG_LEX_YYTEXT_DECL
|
||||||
fi])
|
fi])
|
||||||
@@ -43,7 +43,7 @@ main (void)
|
|||||||
return ! yylex () + ! yywrap ();
|
return ! yylex () + ! yywrap ();
|
||||||
}
|
}
|
||||||
]_ACEOF
|
]_ACEOF
|
||||||
_AC_DO_VAR(LEX conftest.l)
|
_AC_DO_VAR([LEX conftest.l])
|
||||||
AC_CACHE_CHECK([lex output file root], [ac_cv_prog_lex_root], [
|
AC_CACHE_CHECK([lex output file root], [ac_cv_prog_lex_root], [
|
||||||
if test -f lex.yy.c; then
|
if test -f lex.yy.c; then
|
||||||
ac_cv_prog_lex_root=lex.yy
|
ac_cv_prog_lex_root=lex.yy
|
||||||
@@ -68,9 +68,10 @@ if test -z "${LEXLIB+set}"; then
|
|||||||
])
|
])
|
||||||
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
|
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
|
||||||
fi
|
fi
|
||||||
AC_SUBST(LEXLIB)
|
AC_SUBST([LEXLIB])
|
||||||
|
|
||||||
AC_CACHE_CHECK(whether yytext is a pointer, ac_cv_prog_lex_yytext_pointer,
|
AC_CACHE_CHECK([whether yytext is a pointer],
|
||||||
|
[ac_cv_prog_lex_yytext_pointer],
|
||||||
[# POSIX says lex can declare yytext either as a pointer or an array; the
|
[# POSIX says lex can declare yytext either as a pointer or an array; the
|
||||||
# default is implementation-dependent. Figure out which it is, since
|
# default is implementation-dependent. Figure out which it is, since
|
||||||
# not all implementations provide the %pointer and %array declarations.
|
# not all implementations provide the %pointer and %array declarations.
|
||||||
@@ -85,7 +86,7 @@ LIBS=$ac_save_LIBS
|
|||||||
])
|
])
|
||||||
dnl
|
dnl
|
||||||
if test $ac_cv_prog_lex_yytext_pointer = yes; then
|
if test $ac_cv_prog_lex_yytext_pointer = yes; then
|
||||||
AC_DEFINE(YYTEXT_POINTER, 1,
|
AC_DEFINE([YYTEXT_POINTER], [1],
|
||||||
[Define to 1 if `lex' declares `yytext' as a `char *' by default,
|
[Define to 1 if `lex' declares `yytext' as a `char *' by default,
|
||||||
not a `char[]'.])
|
not a `char[]'.])
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user