Ignore:
Timestamp:
Nov 25, 2007, 8:00:26 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Some cleanup in the Ruby bindings Makefile.am.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r2060 r2067  
    347347  AC_PATH_PROG(RUBY, ruby, no)
    348348  if test "${RUBY}" != "no"; then
    349     RUBY_ARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"archdir"@:>@'`
     349    RUBY_CFLAGS="-I$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"archdir"@:>@')"
     350    RUBY_LIBS="-L$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"libdir"@:>@') -l$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"RUBY_SO_NAME"@:>@')"
    350351    RUBY_SITEARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"sitearchdir"@:>@'`
    351352    RUBY_SITELIBDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"sitelibdir"@:>@'`
    352     RUBY_LIBDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"libdir"@:>@'`
    353     RUBY_SO_NAME=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"RUBY_SO_NAME"@:>@'`
    354     AC_SUBST(RUBY_ARCHDIR)
     353    AC_SUBST(RUBY_CFLAGS)
     354    AC_SUBST(RUBY_LIBS)
    355355    AC_SUBST(RUBY_SITEARCHDIR)
    356356    AC_SUBST(RUBY_SITELIBDIR)
    357     AC_SUBST(RUBY_LIBDIR)
    358     AC_SUBST(RUBY_SO_NAME)
    359     AC_CHECK_HEADERS(
    360       $RUBY_ARCHDIR/ruby.h,
     357    CPPFLAGS="${CPPFLAGS} ${RUBY_CFLAGS}"
     358    AC_CHECK_HEADERS([ruby.h],
    361359     [ac_cv_my_have_ruby="yes"
    362360      CACA_BINDINGS="${CACA_BINDINGS} Ruby"])
Note: See TracChangeset for help on using the changeset viewer.