Changeset 3282 for trunk/cf


Ignore:
Timestamp:
Feb 6, 2013 11:21:08 AM (8 years ago)
Author:
gah
Message:

fixes for 1.9 ruby build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cf/rpLangRuby.m4

    r3281 r3282  
    9191CXXFLAGS="${CPPFLAGS}"
    9292AC_CHECK_HEADERS(ruby.h)
    93 if test "x${ac_cv_header_ruby_h}" != "x" ; then
    94   HAVE_RUBY_H=yes
    95   AC_CHECK_HEADERS(node.h,,,[
     93HAVE_RUBY_H=${ac_cv_header_ruby_h}
     94AC_SUBST(HAVE_RUBY_H)
     95
     96AC_CHECK_HEADERS(node.h,,,[
    9697#include <ruby.h>
    97   ])
    98   AC_CHECK_HEADERS(ruby/node.h,
    99     [ AC_DEFINE(REALLY_HAVE_RUBY_NODE_H, [],
    100     [ Define this macro to use ruby/node.h ]) ],
    101                              ,[
     98])
     99AC_CHECK_HEADERS(ruby/node.h,
     100[ AC_DEFINE(REALLY_HAVE_RUBY_NODE_H, [],
     101[ Define this macro to use ruby/node.h ]) ],
     102                            ,[
    102103                             #include <ruby.h>
    103   ])
    104   AC_CHECK_HEADERS(version.h,,,[
     104])
     105AC_CHECK_HEADERS(version.h,,,[
    105106#include <ruby.h>
    106   ])
    107   AC_CHECK_HEADERS(env.h,,,[
    108   #include <ruby.h>
    109   ])
    110 else
    111   HAVE_RUBY_H=no
    112 fi
    113 AC_SUBST(HAVE_RUBY_H)
     107])
     108AC_CHECK_HEADERS(env.h,,,[
     109#include <ruby.h>
     110])
    114111
    115112CPPFLAGS="${CPPFLAGS_save}"
Note: See TracChangeset for help on using the changeset viewer.