ruby/tool/m4/ruby_require_funcs.m4

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
413 B
Plaintext
Raw Permalink Normal View History

2022-03-28 16:56:15 +09:00
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
2022-03-30 14:38:33 +09:00
m4_map_args_w([$1], [RUBY_REQUIRE_FUNC(], [, [$2])])dnl
2022-03-28 16:56:15 +09:00
])dnl