From cc7dedfb4de1f47b2a1713cb7068f9d6ffc33152 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 4 Feb 2019 08:17:44 +0000 Subject: [PATCH] configure.ac: separate -std=gnu99 condition Also necessary on mingw, cygwin, darwin and netbsd. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b7a6c33504..555f023b5c 100644 --- a/configure.ac +++ b/configure.ac @@ -615,9 +615,11 @@ AS_IF([test "$GCC" = yes], [ ], [cygwin*|darwin*|netbsd*], [ # need lgamma_r(), finite() - ], + ]) + + # ANSI (no XCFLAGS because this is C only) + AS_CASE(["$target_os"], [solaris*], [ - # ANSI (no XCFLAGS because this is C only) # Because "-std=gnu99" affects existance of functions on Solaris, # "-std=gnu99" will be appended to CPPFLAGS. for ansi_options in -std=gnu99; do