1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/m4/ruby_require_funcs.m4
2022-03-30 14:38:33 +09:00

13 lines
413 B
Text

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