From 08855fc77fccdeccf8035d9c3d07dc2bcd53c844 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Mon, 17 Apr 2017 09:53:41 +0900 Subject: configure.in: don't check for atan2l() and atan2f() We don't use them directly. The check was initially introduced to check whether the compiler conforms to C99 or not. This is not necessary since r45930. --- configure.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index 3410632e98..4bd773552c 100644 --- a/configure.in +++ b/configure.in @@ -2312,7 +2312,6 @@ AC_CHECK_FUNCS(_longjmp) # used for AC_ARG_WITH(setjmp-type) # we don't use _setjmp if _longjmp doesn't exist. test x$ac_cv_func__longjmp = xno && ac_cv_func__setjmp=no AC_CHECK_FUNCS(arc4random_buf) -AC_CHECK_FUNCS(atan2l atan2f) AC_CHECK_FUNCS(chroot) AC_CHECK_FUNCS(chsize) AC_CHECK_FUNCS(clock_gettime) @@ -2532,8 +2531,7 @@ void qsort_r(void *base, size_t nmemb, size_t size, ]) AC_CACHE_CHECK(whether atan2 handles Inf as C99, rb_cv_atan2_inf_c99, [ - AS_IF([test $ac_cv_func_atan2f:$ac_cv_func_atan2l = yes:yes], [ - AC_TRY_RUN([ + AC_TRY_RUN([ @%:@include @%:@ifdef HAVE_UNISTD_H @%:@include @@ -2554,9 +2552,7 @@ main(int argc, char **argv) ], [rb_cv_atan2_inf_c99=yes], [rb_cv_atan2_inf_c99=no], - [AS_CASE($target_os, [mingw*|mswin*], [rb_cv_atan2_inf_c99=no], [rb_cv_atan2_inf_c99=yes])] - ) - ], [rb_cv_atan2_inf_c99=no]) + [AS_CASE($target_os, [mingw*|mswin*], [rb_cv_atan2_inf_c99=no], [rb_cv_atan2_inf_c99=yes])]) ]) AS_IF([test "x$rb_cv_atan2_inf_c99" = xyes], [AC_DEFINE(ATAN2_INF_C99)]) -- cgit v1.2.3