I'm new to GNU autotools.In my project when i try ./configure
it generates following error :
./configure: line 9852: syntax error near unexpected token `luajit,'
./configure: line 9852: ` PKG_CHECK_MODULES(luajit, luajit,LLUAJIT="yes",LLUAJIT="no")'
In Configure.in :
PKG_CHECK_MODULES(luajit, luajit,LLUAJIT="yes",LLUAJIT="no")
if test "x$LLUAJIT" = "xyes"; then
CONFIGFLAGS="$CONFIGFLAGS -DHAVE_LIBLUAJIT"
LUA_CFLAGS="$luajit_CFLAGS"
LUA_LIBS="$luajit_LIBS"
AC_SUBST(LUA_CFLAGS)
AC_SUBST(LUA_LIBS)
if test "x$macos" != "xno"; then
LDFLAGS="${LDFLAGS} -pagezero_size 10000 -image_base 100000000"
fi
else
echo
echo " ERROR! LuaJIT library not found. For better performance, go get it from"
echo " http://www.luajit.org/."
AC_MSG_ERROR("Fatal!")
fi
It seems autoconf(maybe) is unable to find PKG_CHECK_MODULES
macro. I searched the Internet for solution and found that it is because libtool
is not installed.I re-installed libtool
but error remains same.
Hope Someone recognizes the problem and has quick solution for it.Any help would be appreciated.