diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-23 10:59:57 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-23 10:59:57 +0000 |
commit | 6965964df65c1c3679b92b92101225e4a709ba73 (patch) | |
tree | d478688b56c790297d13c4a92d384514d8a31d8b /configure.in | |
parent | e29c109d2afa62068528c0adaa3b42dee557cba9 (diff) | |
download | ruby-6965964df65c1c3679b92b92101225e4a709ba73.tar.gz |
* configure.in: On Solaris, with gcc, "-std=iso9899:1999"
in $ansi_options is often also needed in CPPFLAGS,
because some feature definitions vary depending on such
standards options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 15520b26e7..3cc008e5a4 100644 --- a/configure.in +++ b/configure.in @@ -1098,6 +1098,13 @@ main() [given_xopen_source=yes], [given_xopen_source=no]) AC_MSG_RESULT($given_xopen_source) if test $given_xopen_source = no; then + # On Solaris, with gcc, -std=iso9899:1999 in $ansi_options + # is often also needed in CPPFLAGS, because some feature + # definitions vary depending on such standards options. + AS_CASE(["${ansi_options}"], + [*-std=iso9899:1999*], [ + RUBY_APPEND_OPTIONS(CPPFLAGS, ${ansi_options}) + ]) AC_MSG_CHECKING(appropriate _XOPEN_SOURCE value to define) define_xopen_source="" for tmp_xpg in 7 6 5; do |