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.

13 lines
498 B

dnl ERROR_IF_NO_PROG
dnl A quick / dirty macro to ensure that a required program / executable
dnl is on PATH. If it is not we display an error message using AC_MSG_ERROR.
dnl $1: program name
AC_DEFUN([ERROR_IF_NO_PROG],[
AC_CHECK_PROG(AS_TR_SH([result_$1]), [$1], [yes], [no])
AS_VAR_PUSHDEF([result], [result_$1])
AS_IF([test "x$result" != "xyes"], [
AC_MSG_ERROR([Missing required program '$1': ensure it is installed and on PATH.])
])
AS_VAR_POPDEF([result])
])