Skip to content
Browse files

fix CPPOUTFILE

* configure.in (RUBY_CPPOUTFILE): check if output is really sent to
  specified file to tell if -o option works.  [ruby-dev:45742]
  [Bug#6591]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent b1644bf commit d1351e98fd001f613f35f0ea6e3b37c03baf26e8 @nobu nobu committed
Showing with 7 additions and 2 deletions.
  1. +5 −1 ChangeLog
  2. +2 −1 configure.in
View
6 ChangeLog
@@ -1,4 +1,8 @@
-Thu Jun 14 22:49:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jun 14 22:59:56 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CPPOUTFILE): check if output is really sent to
+ specified file to tell if -o option works. [ruby-dev:45742]
+ [Bug#6591]
* configure.in (RUBY_CPPOUTFILE): check if output file is actually
created. [ruby-dev:45742] [Bug#6591]
View
3 configure.in
@@ -139,7 +139,8 @@ AC_DEFUN([RUBY_CPPOUTFILE],
[cppflags=$CPPFLAGS
CPPFLAGS='-o conftest-1.i'
rb_cv_cppoutfile=no
-AC_TRY_CPP([], [test -f conftest-1.i && rb_cv_cppoutfile=yes])
+AC_TRY_CPP([test-for-cppout],
+ [grep test-for-cppout conftest-1.i > /dev/null && rb_cv_cppoutfile=yes])
CPPFLAGS=$cppflags
rm -f conftest*])
if test "$rb_cv_cppoutfile" = yes; then

0 comments on commit d1351e9

Please sign in to comment.
Something went wrong with that request. Please try again.