Changed ruby variables

This commit is contained in:
Jesse van den Kieboom 2006-03-24 11:57:33 +00:00
parent 1379b3d2a9
commit 4bca1de1e8
1 changed files with 11 additions and 11 deletions

View File

@ -71,15 +71,15 @@ if test "_$rubyen" = "_yes"; then
RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG[["archdir"]] || $archdir') 2>/dev/null` RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG[["archdir"]] || $archdir') 2>/dev/null`
if test "$RUBYDIR" != ""; then if test "$RUBYDIR" != ""; then
dirs="$RUBYDIR" dirs="$RUBYDIR"
RUBYINCLUDE=none RUBY_CFLAGS=none
for i in $dirs; do for i in $dirs; do
if test -r $i/ruby.h; then if test -r $i/ruby.h; then
AC_MSG_RESULT($i) AC_MSG_RESULT($i)
RUBYINCLUDE="-idirafter $i" RUBY_CFLAGS="-idirafter $i"
break; break;
fi fi
done done
if test "$RUBYINCLUDE" = none; then if test "$RUBY_CFLAGS" = none; then
AC_MSG_RESULT(could not locate ruby.h, disabling ruby support) AC_MSG_RESULT(could not locate ruby.h, disabling ruby support)
rubymsg="(no headers found, install ruby-dev)" rubymsg="(no headers found, install ruby-dev)"
rubyen="no" rubyen="no"
@ -93,7 +93,7 @@ if test "_$rubyen" = "_yes"; then
dirs="$dirs $rb_libdir $rb_bindir" dirs="$dirs $rb_libdir $rb_bindir"
rb_libruby=`($RUBY -rrbconfig -e 'print Config::CONFIG[["LIBRUBY_A"]]') 2>/dev/null` rb_libruby=`($RUBY -rrbconfig -e 'print Config::CONFIG[["LIBRUBY_A"]]') 2>/dev/null`
RUBYLINK=`($RUBY -rrbconfig -e ' RUBY_LIBS=`($RUBY -rrbconfig -e '
c = Config::CONFIG c = Config::CONFIG
if c.has_key? "LIBRUBYARG_STATIC" # 1.8.x if c.has_key? "LIBRUBYARG_STATIC" # 1.8.x
if c[["LIBRUBY"]] == c[["LIBRUBY_A"]] if c[["LIBRUBY"]] == c[["LIBRUBY_A"]]
@ -119,7 +119,7 @@ if test "_$rubyen" = "_yes"; then
rubymsg="(libs not found)" rubymsg="(libs not found)"
rubyen="no" rubyen="no"
else else
AC_MSG_RESULT($RUBYLINK in $RUBYLIB) AC_MSG_RESULT($RUBY_LIBS in $RUBYLIB)
fi fi
else else
AC_MSG_RESULT(unable to determine ruby configuration, disabling ruby support) AC_MSG_RESULT(unable to determine ruby configuration, disabling ruby support)
@ -134,17 +134,17 @@ if test "_$rubyen" = "_yes"; then
fi fi
if test "_$rubyen" == "_no"; then if test "_$rubyen" == "_no"; then
RUBYINCLUDE="" RUBY_CFLAGS=""
RUBYLINK="" RUBY_LIBS=""
AM_CONDITIONAL(HAVE_SCRIPT, false) AM_CONDITIONAL(HAS_RUBY, false)
else else
rubymsg="enjoy scripting :)" rubymsg="enjoy scripting :)"
AC_DEFINE([HAVE_RUBY], 1, [Ruby scripting is enabled]) AC_DEFINE([HAVE_RUBY], 1, [Ruby scripting is enabled])
AM_CONDITIONAL(HAVE_SCRIPT, true) AM_CONDITIONAL(HAS_RUBY, true)
fi fi
AC_SUBST(RUBYINCLUDE) AC_SUBST(RUBY_CFLAGS)
AC_SUBST(RUBYLINK) AC_SUBST(RUBY_LIBS)
# Look for libnotify # Look for libnotify
LIBNOTIFY_REQUIRED=0.2.3 LIBNOTIFY_REQUIRED=0.2.3