[vlc-devel] [PATCH] Make sure we use the correct luac version when using contribs
Rémi Denis-Courmont
remi at remlab.net
Fri Jan 25 13:38:51 CET 2013
Le vendredi 25 janvier 2013 14:34:58, Rémi Denis-Courmont a écrit :
> Le vendredi 25 janvier 2013 06:32:06, Rafaël Carré a écrit :
> > ---
> >
> > configure.ac | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/configure.ac b/configure.ac
> > index 02eb758..b1bd38e 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -1524,6 +1524,9 @@ then
> >
> > AS_IF([test "${LUAC}" = "false"], [
> >
> > AC_MSG_ERROR([Could not find the LUA byte compiler.])
> >
> > ])
> >
> > + AS_IF([test -f ${CONTRIB_DIR}/lib/liblua.a -a `${LUAC} -o /dev/stdout
> > /dev/stdin | od -h | head -1 |cut -d' ' -f6` != 0404], [ +
> > AC_MSG_ERROR([You need 32-bits luac when using using lua from contrib.])
> > +
> >
> > ])
> > fi
> > AM_CONDITIONAL(BUILD_LUA, [test "${have_lua}" = "yes"])
>
> I very much doubt configure can rely on od, head and/or cut being available
> and compatible with GNU ones.
In fact, POSIX od and head do not have -h and -1 switches respectively.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list