Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a4c93936
Commit
a4c93936
authored
Apr 24, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Add check for recent enough bison.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
370441b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
configure
configure
+20
-0
configure.ac
configure.ac
+13
-0
No files found.
configure
View file @
a4c93936
...
...
@@ -5892,6 +5892,26 @@ if test "$BISON" = "none"
then
as_fn_error
$?
"no suitable bison found. Please install the 'bison' package."
"
$LINENO
"
5
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether bison is recent enough"
>
&5
$as_echo_n
"checking whether bison is recent enough... "
>
&6
;
}
if
${
wine_cv_recent_bison
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
>
conftest.y
<<
EOF
%define parse.error verbose
%%
empty: ;
EOF
if
$BISON
conftest.y
>
/dev/null 2>&5
then
wine_cv_recent_bison
=
yes
else
wine_cv_recent_bison
=
no
fi
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$wine_cv_recent_bison
"
>
&5
$as_echo
"
$wine_cv_recent_bison
"
>
&6
;
}
test
$wine_cv_recent_bison
!=
no
||
as_fn_error
$?
"Your bison version is too old. Please install bison version 3.0 or newer."
"
$LINENO
"
5
if
test
-n
"
$ac_tool_prefix
"
;
then
for
ac_prog
in
ar gar
...
...
configure.ac
View file @
a4c93936
...
...
@@ -288,6 +288,19 @@ if test "$BISON" = "none"
then
AC_MSG_ERROR([no suitable bison found. Please install the 'bison' package.])
fi
AC_CACHE_CHECK([whether bison is recent enough],wine_cv_recent_bison,
[cat >conftest.y <<EOF
%define parse.error verbose
%%
empty: ;
EOF
if $BISON conftest.y >/dev/null 2>&AS_MESSAGE_LOG_FD
then
wine_cv_recent_bison=yes
else
wine_cv_recent_bison=no
fi])
test $wine_cv_recent_bison != no || AC_MSG_ERROR([Your bison version is too old. Please install bison version 3.0 or newer.])
AC_CHECK_TOOLS(AR,[ar gar],ar)
AC_CHECK_TOOL(STRIP,strip,strip)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment