# Common headers
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
- $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS)
+ $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS)
#
# Build the version string
#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
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