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_pkg.m4

30 lines
842 B

dnl Copyright (c) 2015 - present Facebook, Inc.
dnl All rights reserved.
dnl
dnl This source code is licensed under the BSD style license found in the
dnl LICENSE file in the root directory of this source tree. An additional grant
dnl of patent rights can be found in the PATENTS file in the same directory.
dnl AC_ASSERT_OCAML_PKG([pkg_name], [pkg_version])
dnl
dnl fails if $pkg_name is not installed; also fails if it is not
dnl installed at version $pkg_version if specified
AC_DEFUN([AC_ASSERT_OCAML_PKG],
[dnl
AC_CHECK_OCAML_PKG_PATH([$1], [$2], [$3])
unset has_pkg
unset pkg
has_pkg=$AS_TR_SH[OCAML_PKG_$1]
AS_IF([test "$has_pkg" = "no"], [dnl
AC_MSG_ERROR([missing dependency: $1$version.
If you are using opam, please run
opam update
opam pin add --yes --no-action .
opam install --deps-only infer])
])
])