diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-07 06:13:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-07 06:13:19 +0000 |
commit | e224ab088dafcb126e6a87212e8640bf8d3dc21c (patch) | |
tree | 9ecd02e53104aad04175e3070c80b0974a959153 /configure.in | |
parent | fe1c21087dc794c34090ed94dc4ba3d391eee87f (diff) | |
download | ruby-e224ab088dafcb126e6a87212e8640bf8d3dc21c.tar.gz |
configure.in: use C99
* configure.in: ISO9899:1999 is necessary for strtoll() on FreeBSD
10, (and may be possibly other platforms).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 836ae16e74..14faafe69f 100644 --- a/configure.in +++ b/configure.in @@ -813,10 +813,13 @@ if test "$GCC" = yes; then ], [ # 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 |