summaryrefslogtreecommitdiff
path: root/tool/m4/ruby_require_funcs.m4
blob: 78372d57d874a544507654e806698b5b1daf5d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
dnl -*- Autoconf -*-
dnl RUBY_REQUIRE_FUNC [func] [included]
AC_DEFUN([RUBY_REQUIRE_FUNC], [
# RUBY_REQUIRE_FUNC([$1], [$2])
    AC_CHECK_FUNCS([$1])
    AS_IF([test "$ac_cv_func_[]AS_TR_SH($1)" = yes], [],
          [AC_MSG_ERROR($1[() must be supported])])
])dnl
dnl
dnl RUBY_REQUIRE_FUNCS [funcs] [included]
AC_DEFUN([RUBY_REQUIRE_FUNCS], [dnl
    m4_map_args_w([$1], [RUBY_REQUIRE_FUNC(], [, [$2])])dnl
])dnl