diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-05-31 16:05:13 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-05-31 16:05:13 +0000 |
commit | 9a372f685dbd1cf0a539635256a430cbd9324a36 (patch) | |
tree | e745a45b961a06c5feef5448e0e0abc5f686e1a5 /version_info.c | |
parent | 246d8f9c6c7760f5aab1c6a9edbcd48a7ad4eb08 (diff) |
From Kovarththanan Rajaratnam's patch in bug 3500:
Added info about python version.
svn path=/trunk/; revision=28543
Diffstat (limited to 'version_info.c')
-rw-r--r-- | version_info.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/version_info.c b/version_info.c index 440bb6cb9f..2cf7d3df09 100644 --- a/version_info.c +++ b/version_info.c @@ -33,6 +33,10 @@ #include <string.h> #include <errno.h> +#ifdef HAVE_PYTHON +#include <Python.h> /* to get the Python version number (PY_VERSION) */ +#endif + #ifdef HAVE_LIBZ #include <zlib.h> /* to get the libz version number */ #endif @@ -248,6 +252,16 @@ get_epan_compiled_version_info(GString *str) g_string_append(str, "without Lua"); #endif /* HAVE_LUA_5_1 */ + g_string_append(str, ", "); +#ifdef HAVE_PYTHON + g_string_append(str, "with Python"); +#ifdef PY_VERSION + g_string_append(str, " " PY_VERSION); +#endif /* PY_VERSION */ +#else + g_string_append(str, "without Python"); +#endif /* HAVE_PYTHON */ + /* GnuTLS */ g_string_append(str, ", "); #ifdef HAVE_LIBGNUTLS |