From ca1dcdda6cd6114061ff99963e59c76bd92e4603 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 10 Aug 2017 22:47:17 +0100 Subject: Show libotr and libgpgme versions on --version issue #956 --- src/main.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 3910c47a..479e955d 100644 --- a/src/main.c +++ b/src/main.c @@ -41,6 +41,14 @@ #include "gitversion.h" #endif +#ifdef HAVE_LIBOTR +#include "otr/otr.h" +#endif + +#ifdef HAVE_LIBGPGME +#include "pgp/gpg.h" +#endif + #ifdef HAVE_PYTHON #include "plugins/python_plugins.h" #endif @@ -117,13 +125,15 @@ main(int argc, char **argv) } #ifdef HAVE_LIBOTR - g_print("OTR support: Enabled\n"); + char *otr_version = otr_libotr_version(); + g_print("OTR support: Enabled (libotr %s)\n", otr_version); #else g_print("OTR support: Disabled\n"); #endif #ifdef HAVE_LIBGPGME - g_print("PGP support: Enabled\n"); + const char *pgp_version = p_gpg_libver(); + g_print("PGP support: Enabled (libgpgme %s)\n", pgp_version); #else g_print("PGP support: Disabled\n"); #endif -- cgit 1.4.1-2-gfad0