Changeset 3281


Ignore:
Timestamp:
Feb 6, 2013 11:04:50 AM (11 years ago)
Author:
gah
Message:

fixes for 1.9 ruby build

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/cf/rpLangRuby.m4

    r3277 r3281  
    9090CPPFLAGS="${CPPFLAGS} ${RUBY_CPPFLAGS}"
    9191CXXFLAGS="${CPPFLAGS}"
    92 AC_CHECK_HEADERS(ruby.h,,AC_MSG_ERROR(
    93                 could not find ruby.h (check config.log)),[ ])
    94 AC_CHECK_HEADERS(node.h,,,[
     92AC_CHECK_HEADERS(ruby.h)
     93if test "x${ac_cv_header_ruby_h}" != "x" ; then
     94  HAVE_RUBY_H=yes
     95  AC_CHECK_HEADERS(node.h,,,[
    9596#include <ruby.h>
    96 ])
    97 AC_CHECK_HEADERS(ruby/node.h,
    98                  [ AC_DEFINE(REALLY_HAVE_RUBY_NODE_H, [],
    99                              [ Define this macro to use ruby/node.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 ]) ],
    100101                             ,[
     102                             #include <ruby.h>
     103  ])
     104  AC_CHECK_HEADERS(version.h,,,[
    101105#include <ruby.h>
    102 ])
    103 AC_CHECK_HEADERS(version.h,,,[
    104 #include <ruby.h>
    105 ])
    106 AC_CHECK_HEADERS(env.h,,,[
    107 #include <ruby.h>
    108 ])
     106  ])
     107  AC_CHECK_HEADERS(env.h,,,[
     108  #include <ruby.h>
     109  ])
     110else
     111  HAVE_RUBY_H=no
     112fi
     113AC_SUBST(HAVE_RUBY_H)
    109114
    110115CPPFLAGS="${CPPFLAGS_save}"
  • trunk/configure

    r3277 r3281  
    691691build_cpu
    692692build
     693HAVE_RUBY_H
    693694RUBY_SITELIBDIR
    694695RUBY_LIBRUBYARG_STATIC
     
    89248925for ac_header in ruby.h
    89258926do :
    8926   ac_fn_cxx_check_header_compile "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "
    8927 "
     8927  ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
    89288928if test "x$ac_cv_header_ruby_h" = xyes; then :
    89298929  cat >>confdefs.h <<_ACEOF
     
    89318931_ACEOF
    89328932
    8933 else
    8934   as_fn_error $? "could not find ruby.h (check config.log)" "$LINENO" 5
    8935 fi
    8936 
    8937 done
    8938 
    8939 for ac_header in node.h
     8933fi
     8934
     8935done
     8936
     8937if test "x${ac_cv_header_ruby_h}" != "x" ; then
     8938  HAVE_RUBY_H=yes
     8939  for ac_header in node.h
    89408940do :
    89418941  ac_fn_cxx_check_header_compile "$LINENO" "node.h" "ac_cv_header_node_h" "
     
    89528952done
    89538953
    8954 for ac_header in ruby/node.h
     8954  for ac_header in ruby/node.h
    89558955do :
    89568956  ac_fn_cxx_check_header_compile "$LINENO" "ruby/node.h" "ac_cv_header_ruby_node_h" "
    8957 #include <ruby.h>
     8957                             #include <ruby.h>
    89588958
    89598959"
     
    89698969done
    89708970
    8971 for ac_header in version.h
     8971  for ac_header in version.h
    89728972do :
    89738973  ac_fn_cxx_check_header_compile "$LINENO" "version.h" "ac_cv_header_version_h" "
     
    89848984done
    89858985
    8986 for ac_header in env.h
     8986  for ac_header in env.h
    89878987do :
    89888988  ac_fn_cxx_check_header_compile "$LINENO" "env.h" "ac_cv_header_env_h" "
    8989 #include <ruby.h>
     8989  #include <ruby.h>
    89908990
    89918991"
     
    89988998
    89998999done
     9000
     9001else
     9002  HAVE_RUBY_H=no
     9003fi
    90009004
    90019005
  • trunk/gui/scripts/sidebarframe.tcl

    r3177 r3281  
    214214            Background
    215215    }
    216     pack $itk_component(tabs) -side top -expand yes -anchor e -padx {4 0} -fill y
     216    pack $itk_component(tabs) -side top -expand yes -anchor e -padx {4 0} \
     217        -fill y
    217218
    218219    eval itk_initialize $args
  • trunk/lang/Makefile.in

    r3277 r3281  
    1515CC              = @CC@
    1616CXX             = @CXX@
    17 RUBY_CPPFLAGS   = @RUBY_CPPFLAGS@
     17HAVE_RUBY_H     = @HAVE_RUBY_H@
     18RUBY            = @RUBY@
    1819PERL            = @PERL@
    1920TCLSH           = @TCLSH@
     
    3334  LANGS += python
    3435endif
    35 ifneq ($(RUBY_CPP_FLAGS),)
     36ifeq ($(HAVE_RUBY_H),yes)
    3637  LANGS += ruby
    3738endif
Note: See TracChangeset for help on using the changeset viewer.