+#if ! defined(LYX_DATE)
+#include "lyx_date.h"
+#endif
+
+#if ! defined(LYX_GIT_COMMIT_HASH)
+#include "lyx_commit_hash.h"
+#endif
+
+///
+extern char const * const lyx_version = PACKAGE_VERSION;
+///
+extern const int lyx_version_major = LYX_MAJOR_VERSION;
+extern const int lyx_version_minor = LYX_MINOR_VERSION;