Ignore:
Timestamp:
Nov 29, 2009, 1:41:20 PM (11 years ago)
Author:
Pascal Terjan
Message:
  • Fix build
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/configure.ac

    r4025 r4061  
    5858  enable_python="yes"
    5959])
     60AC_ARG_ENABLE(ruby,
     61  [  --enable-ruby           build Ruby interpreter (default yes)])
     62AS_IF([test "x$enable_ruby" != "xno"], [
     63  enable_ruby="yes"
     64])
    6065
    6166CACA="no"
     
    109114fi
    110115
     116ac_cv_my_have_ruby="no"
     117if test "${enable_ruby}" != "no"; then
     118  AC_PATH_PROG(RUBY, ruby, no)
     119  if test "${RUBY}" != "no"; then
     120    RUBY_CFLAGS="-I$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"archdir"@:>@')"
     121    RUBY_LIBS="-L$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"libdir"@:>@') -l$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"RUBY_SO_NAME"@:>@')"
     122    AC_SUBST(RUBY_CFLAGS)
     123    AC_SUBST(RUBY_LIBS)
     124    CPPFLAGS="${CPPFLAGS} ${RUBY_CFLAGS}"
     125    AC_CHECK_HEADERS([ruby.h],
     126     [ac_cv_my_have_ruby="yes"])
     127  fi
     128fi
     129AM_CONDITIONAL(USE_RUBY, test "${ac_cv_my_have_ruby}" = "yes")
    111130
    112131# Optimizations
Note: See TracChangeset for help on using the changeset viewer.