Wireshark-bugs: [Wireshark-bugs] [Bug 10572] Lua doesn't get detected

Date: Fri, 23 Jan 2015 01:08:15 +0000

Comment # 23 on bug 10572 from
(In reply to Edwin Groothuis from comment #22)
> [~] edwin@t61>pkg-config --cflags lua
> Package lua was not found in the pkg-config search path.
> Perhaps you should add the directory containing `lua.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'lua', required by 'world', not found
[...]
> However...
> 
> [/usr/ports/lang/lua52] edwin@t61>pkg-config --cflags lua-5.2
> -I/usr/local/include/lua52  

Yeah, after reading stuff on lua-users.org (IIRC), this is the (completely
untested) pkg-config-searching code I've got so far.  <sigh>

~~~
                # First, try the standard (pkg-config) way.
                PKG_CHECK_MODULES(LUA, lua, [have_lua=yes], [have_lua=no])

                # Unfortunately Lua's pkg-config file isn't standardly named.
                # Apparently Debian, in particular, allows installation of
multiple
                # versions of Lua at the same time (thus each version has its
own
                # package name).
                for ver in 5.2 -5.2 5.1 -5.1 5.0 -5.0         
                do
                        if test "x$have_lua" == "xyes"
                        then
                                # We're done here!
                                return
                        fi

                        PKG_CHECK_MODULES(LUA, lua$ver, [have_lua=yes],
[have_lua=no])
                done
~~~


You are receiving this mail because:
  • You are watching all bug changes.