infer_clone/m4/ac_assert_prog.m4

17 lines
451 B

dnl Copyright (c) Facebook, Inc. and its affiliates.
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.
dnl AC_ASSERT_PROG([program_name], [test_variable])
dnl
dnl fails if $test_variable is "no", which is taken to mean that
dnl $program_name is not installed
AC_DEFUN([AC_ASSERT_PROG],
[dnl
AS_IF([test "$2" = "no"],
[dnl
AC_MSG_ERROR([$1 not found.])
])
])