diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-05-01 22:07:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-05-10 15:59:23 +0900 |
commit | 2d670274481647bf3bc9c82a9472bc8500a97a45 (patch) | |
tree | a902dbeba46e56f28631abb80249ecf0beba9d12 /configure.ac | |
parent | 1d0e670e91a379bb276815014e9879a9aa9b6551 (diff) | |
download | ruby-2d670274481647bf3bc9c82a9472bc8500a97a45.tar.gz |
Removed missing/dup2.c
This function should be always available, as POSIX-compliant or
Windows platform are required since 1.9. Also the code in this
file is MT-unsafe.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index e781da0a31..a1a0872f69 100644 --- a/configure.ac +++ b/configure.ac @@ -1858,10 +1858,16 @@ AS_CASE(["$target_os"],[freebsd*],[ AC_REPLACE_FUNCS(close) ]) +AC_DEFUN([RUBY_REQUIRE_FUNC], [ + AC_CHECK_FUNCS([$1]) + AS_IF([test "$ac_cv_func_[]AS_TR_SH($1)" = yes], [], + [AC_MSG_ERROR($1[() must be supported])]) +]) +m4_map_args_w([dup dup2], [RUBY_REQUIRE_FUNC(], [)]) + AC_REPLACE_FUNCS(acosh) AC_REPLACE_FUNCS(cbrt) AC_REPLACE_FUNCS(crypt) -AC_REPLACE_FUNCS(dup2) AC_REPLACE_FUNCS(erf) AC_REPLACE_FUNCS(explicit_bzero) AC_REPLACE_FUNCS(ffs) @@ -1922,7 +1928,6 @@ AC_CHECK_FUNCS(dirfd) AC_CHECK_FUNCS(dl_iterate_phdr) AC_CHECK_FUNCS(dlopen) AC_CHECK_FUNCS(dladdr) -AC_CHECK_FUNCS(dup) AC_CHECK_FUNCS(dup3) AC_CHECK_FUNCS(eaccess) AC_CHECK_FUNCS(endgrent) |