Question and requirement
Tom Pusateri
pusateri at bangj.com
Sun Jun 7 16:59:38 UTC 2015
> On Jun 6, 2015, at 11:26 PM, Alberto Mijares <amijaresp at gmail.com> wrote:
>
> 3) When installing lua5.2, the pkg-config files refer to it as
> "lua-5.2" instead of "lua5.2". Is there any specific reason for that?
> configure script looks for lua5.2 and it fails. I thing everything
> around is going to look for that name. Unless there's any reason to
> keep it as it is, can you help me to change the name in *.pc files?
>
> Alberto Mijares
I used the configure m4 macros for Lua linked below and it is able to find all variations of lua.
http://www.gnu.org/software/autoconf-archive/ax_lua.html
I put the ax_lua.m4 file in my m4 directory and then added the following lines to my configure.ac
AC_CONFIG_MACRO_DIR([m4])
LUA_INCLUDE=""
LUA_LIBS=""
AX_PROG_LUA([],[],
[AX_LUA_HEADERS
AX_LUA_LIBS
if test x"$LUA_LIB" = x; then
AC_MSG_ERROR([Lua library not found.])
fi],[AC_MSG_WARN([Lua interpreter not found.])])
CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
LIBS="$LIBS $LUA_LIB”
Hope this helps,
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150607/246e95ee/attachment.sig>
More information about the freebsd-ports
mailing list