X-Git-Url: http://git.code-monkey.de/?p=ruby-edje.git;a=blobdiff_plain;f=m4%2Fac_ruby_ext.m4;h=90a3383846ac8a692e255c04b5e614d7bf6e3891;hp=17f62590952d06d222a5e06e7b3080694c6abf57;hb=2bcc79d1ea2295fdb7ab271e4b39a7a7de39ef9f;hpb=fdbac22e73a61f2c87c799a6b9753176708bf9a2 diff --git a/m4/ac_ruby_ext.m4 b/m4/ac_ruby_ext.m4 index 17f6259..90a3383 100644 --- a/m4/ac_ruby_ext.m4 +++ b/m4/ac_ruby_ext.m4 @@ -13,13 +13,22 @@ AC_DEFUN([AC_RUBY_EXT], [ fi AC_MSG_CHECKING(for Ruby library path) + RUBYLIBDIR=`($rubybin -rmkmf -e 'print Config::CONFIG[["libdir"]]') 2> /dev/null` + if test -d "$RUBYLIBDIR"; then + AC_MSG_RESULT([$RUBYLIBDIR]) + else + AC_MSG_RESULT(not found) + AC_MSG_ERROR(Ruby library path not found) + fi + + AC_MSG_CHECKING(for Ruby extension path) RUBYDIR=`($rubybin -rmkmf -e 'print Config::CONFIG[["archdir"]]') 2> /dev/null` if test -d "$RUBYDIR"; then AC_MSG_RESULT([$RUBYDIR]) else AC_MSG_RESULT(not found) - AC_MSG_ERROR(Ruby library path not found) + AC_MSG_ERROR(Ruby extension path not found) fi AC_MSG_CHECKING(for Ruby site library path) @@ -28,9 +37,10 @@ AC_DEFUN([AC_RUBY_EXT], [ AC_MSG_RESULT([$RUBYSITEDIR]) else AC_MSG_RESULT(not found) - AC_MSG_ERROR(Ruby site library path not found) + AC_MSG_ERROR(Ruby site extension path not found) fi + AC_SUBST(RUBYLIBDIR) AC_SUBST(RUBYDIR) AC_SUBST(RUBYSITEDIR) ])