[前][次][番号順一覧][スレッド一覧]

ruby-changes:32797

From: nobu <ko1@a...>
Date: Fri, 7 Feb 2014 15:13:22 +0900 (JST)
Subject: [ruby-changes:32797] nobu:r44876 (trunk): configure.in: use C99

nobu	2014-02-07 15:13:19 +0900 (Fri, 07 Feb 2014)

  New Revision: 44876

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44876

  Log:
    configure.in: use C99
    
    * configure.in: ISO9899:1999 is necessary for strtoll() on FreeBSD
      10, (and may be possibly other platforms).

  Modified files:
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 44875)
+++ configure.in	(revision 44876)
@@ -813,10 +813,13 @@ if test "$GCC" = yes; then https://github.com/ruby/ruby/blob/trunk/configure.in#L813
     ],
     [
       # ANSI (no XCFLAGS because this is C only)
-      RUBY_TRY_CFLAGS(-ansi -std=iso9899:199409, [
-        RUBY_APPEND_OPTION(warnflags, -ansi -std=iso9899:199409)
-        RUBY_APPEND_OPTION(strict_warnflags, -ansi -std=iso9899:199409)
-      ])
+	for ansi_options in -std=iso9899:1999 "-ansi -std=iso9899:199409"; do
+	    RUBY_TRY_CFLAGS(${ansi_options}, [
+		RUBY_APPEND_OPTIONS(warnflags, ${ansi_options})
+	  	RUBY_APPEND_OPTIONS(strict_warnflags, ${ansi_options})
+	    ], [ansi_options=])
+	    test "x${ansi_options}" = x || break
+	done
     ])
 
     # suppress annoying -Wstrict-overflow warnings

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]