From 41cac4b5ce16644da579f1631e4a395d58a82225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hinderer?= Date: Fri, 8 Oct 2021 12:30:41 +0200 Subject: Add detailed information about the current version of OCaml to the Sys module --- build-aux/ocaml_version.m4 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build-aux') diff --git a/build-aux/ocaml_version.m4 b/build-aux/ocaml_version.m4 index fc33d15b94..7c5df90beb 100644 --- a/build-aux/ocaml_version.m4 +++ b/build-aux/ocaml_version.m4 @@ -83,3 +83,8 @@ m4_define([OCAML__VERSION_NUMBER], OCAML__VERSION_MAJOR, OCAML__VERSION_MINOR, OCAML__VERSION_PATCHLEVEL)]) + +m4_define([OCAML__RELEASE_EXTRA], + m4_if(OCAML__VERSION_EXTRA,[],[None], + ['Some (]m4_if(OCAML__VERSION_EXTRA_PREFIX,+,[Plus], + [Tilde])[, "]OCAML__VERSION_EXTRA[")']))])) -- cgit v1.2.1