diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-02-26 09:51:57 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2016-02-27 12:21:20 +0000 |
commit | b3d8785ab5540c846c123ab16556fb93965bb9b5 (patch) | |
tree | dbf9b2db289df5cc97990320e84e0655e756ad11 /acinclude.m4 | |
parent | f61b5d3203642b59af9cd46cc7a56cc0bc871edb (diff) | |
download | wireshark-b3d8785ab5540c846c123ab16556fb93965bb9b5.tar.gz |
Lua configure.ac improvements
Use PKG_WIRESHARK_CHECK_SYSTEM_MODULES for consistency with other
system dependencies.
Give slightly more informative configure messages other than multiple
'checking for LUA'.
Check for headers using pkg-config to avoid undefined symbols in
config.h.
Change-Id: I8d3df9ccf6f718d7d055da4f713af60d46d89e33
Reviewed-on: https://code.wireshark.org/review/14173
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 95492f4b27..b432d4cea2 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -720,10 +720,21 @@ AC_DEFUN([AC_WIRESHARK_LIBLUA_CHECK],[ # work reliably (some package names are not searched for). for pkg in "lua < 5.3" lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua5.0 lua-5.0 lua50 do - PKG_CHECK_MODULES(LUA, $pkg, [have_lua=yes], [true]) + AC_MSG_CHECKING(if you have $pkg) + PKG_CHECK_EXISTS($pkg, + [ + AC_MSG_RESULT(yes) + have_lua=yes + ], + [ + AC_MSG_RESULT(no) + ]) if test "x$have_lua" = "xyes" then + PKG_WIRESHARK_CHECK_SYSTEM_MODULES(LUA, $pkg) + CPPFLAGS="$LUA_CFLAGS $CPPFLAGS" + AC_CHECK_HEADERS(lua.h lualib.h lauxlib.h) break fi done |