summaryrefslogtreecommitdiffstats
path: root/m4/pdns_check_ragel.m4
blob: f06c7d7b79caed4b7f1b782b7fcb508e565d3bf9 (plain)
1
2
3
4
5
6
7
8
AC_DEFUN([PDNS_CHECK_RAGEL], [
  AC_CHECK_PROG([RAGEL], [ragel], [ragel])
  if test "x$RAGEL" = "x"; then
    if test ! -f "${srcdir}/$1"; then
      AC_MSG_ERROR([ragel is missing and you don't have ${srcdir}/$1. Install ragel or download sources from $2])
    fi
  fi
])