From 97040eb91dcfbc4c9328b6fdfa59f1e33b09f983 Mon Sep 17 00:00:00 2001 From: dodo Date: Mon, 23 Apr 2012 16:46:53 +0200 Subject: [PATCH] common/version.c: show lua release & version Signed-off-by: Julien Danjou --- common/version.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/version.c b/common/version.c index dc7f9b8e..6295bf90 100644 --- a/common/version.c +++ b/common/version.c @@ -22,6 +22,9 @@ #include #include +#include +#include + #include "config.h" #include "common/version.h" #include "awesome-version-internal.h" @@ -46,6 +49,14 @@ eprint_version(void) __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); #endif printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME); + + lua_State *L = lua_open(); + luaopen_base(L); + lua_getglobal(L, "_VERSION"); + printf(" • Compiled against " LUA_RELEASE + " (running with %s)\n", lua_tostring(L, -1)); + lua_close(L); + printf(" • D-Bus support: "); #ifdef WITH_DBUS printf("✔\n");