/[weechat]/weechat/configure.in
ViewVC logotype

Diff of /weechat/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.92 by kolter, Sun Nov 13 16:41:44 2005 UTC revision 1.93 by kolter, Tue Nov 22 14:36:20 2005 UTC
# Line 273  fi Line 273  fi
273    
274  if test "x$enable_ruby" = "xyes" ; then  if test "x$enable_ruby" = "xyes" ; then
275      enable_plugins="yes"      enable_plugins="yes"
276    
277        AC_PATH_PROG(RUBY, ruby ruby1.9 ruby1.8)
278        if test -z $RUBY ; then
279            AC_MSG_ERROR([
280    *** Ruby must be installed on your system
281    *** but ruby interpreter couldn't be found in path.
282    
283    *** Please check that ruby is in path, or install
284    *** it with your software package manager.])
285        fi
286            
287      # TODO: check that ruby lib and headers are installed      RUBY_INCLUDE=`$RUBY -rrbconfig -e "puts Config::CONFIG[['archdir']]"`
288        
289      RUBY_CFLAGS=-I`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"`      AC_MSG_CHECKING(for Ruby header files)
290      RUBY_LFLAGS=`ruby -rrbconfig -e "puts Config::CONFIG[['LIBRUBYARG_SHARED']]"`      if test -r "$RUBY_INCLUDE/ruby.h"; then
291            RUBY_CFLAGS="-I$RUBY_INCLUDE"
292        else
293            AC_MSG_ERROR([
294    *** Ruby header files couldn't be found in your system.
295    *** Try to install them with your software package manager.])
296        fi
297        AC_MSG_RESULT(found)
298      
299        RUBY_LFLAGS=`$RUBY -rrbconfig -e "puts Config::CONFIG[['LIBRUBYARG_SHARED']]"`
300    
301      AC_SUBST(RUBY_CFLAGS)      AC_SUBST(RUBY_CFLAGS)
302      AC_SUBST(RUBY_LFLAGS)      AC_SUBST(RUBY_LFLAGS)
303      AC_DEFINE(PLUGIN_RUBY)      AC_DEFINE(PLUGIN_RUBY)

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.93

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26