You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
infer_clone/m4/ac_assert_ocaml_min_version.m4

21 lines
607 B

dnl Copyright (c) 2016-present, Facebook, Inc.
dnl
dnl This source code is licensed under the MIT license found in the
dnl LICENSE file in the root directory of this source tree.
AC_DEFUN([AC_ASSERT_OCAML_MIN_VERSION],
[dnl
AC_REQUIRE([AC_PROG_OCAML])
AC_MSG_CHECKING([if OCaml version is >= $1])
AC_COMPARE_VERSION_STRINGS([$1], [$OCAMLVERSION],
[AC_MSG_RESULT([yes])],
[AC_MSG_ERROR([m4_join([],[found version $OCAMLVERSION.
m4_newline([ Please upgrade to OCaml >= $1. If you are using opam, you can run])
m4_newline([dnl
opam switch $1
eval \$(opam env)])
])])])
])