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)
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)
])
-## $Id: Makefile.am 9 2004-06-19 19:53:47Z tilman $
+## $Id: Makefile.am 72 2004-08-16 18:10:27Z tilman $
AM_CFLAGS = $(ECORE_CFLAGS)
INCLUDES = -I$(RUBYDIR)
rb_idler.c rb_idler.h \
rb_timer.c rb_timer.h
-ecore_la_LIBADD = -lruby $(ECORE_LIBS)
+ecore_la_LIBADD = -L$(RUBYLIBDIR) -lruby $(ECORE_LIBS)
ecore_la_LDFLAGS = -module -avoid-version
-## $Id: Makefile.am 50 2004-08-01 10:18:39Z tilman $
+## $Id: Makefile.am 72 2004-08-16 18:10:27Z tilman $
AM_CFLAGS = $(ECORE_CFLAGS) $(EVAS_CFLAGS)
INCLUDES = -I$(RUBYDIR) -I$(RUBYSITEDIR)
rb_gl_x11.c rb_gl_x11.h \
rb_fb.c rb_fb.h
-ecore_evas_la_LIBADD = -lruby $(ECORE_LIBS) $(EVAS_LIBS)
+ecore_evas_la_LIBADD = -L$(RUBYLIBDIR) -lruby $(ECORE_LIBS) $(EVAS_LIBS)
ecore_evas_la_LDFLAGS = -module -avoid-version
pkgincludedir = $(RUBYSITEDIR)/ecore
-## $Id: Makefile.am 9 2004-06-19 19:53:47Z tilman $
+## $Id: Makefile.am 72 2004-08-16 18:10:27Z tilman $
AM_CFLAGS = $(ECORE_CFLAGS)
INCLUDES = -I$(RUBYDIR)
ecore_job_la_SOURCES = rb_ecore_job.c rb_ecore_job.h \
rb_job.c rb_job.h
-ecore_job_la_LIBADD = -lruby $(ECORE_LIBS)
+ecore_job_la_LIBADD = -L$(RUBYLIBDIR) -lruby $(ECORE_LIBS)
ecore_job_la_LDFLAGS = -module -avoid-version
-## $Id: Makefile.am 50 2004-08-01 10:18:39Z tilman $
+## $Id: Makefile.am 72 2004-08-16 18:10:27Z tilman $
AM_CFLAGS = $(ECORE_CFLAGS)
INCLUDES = -I$(RUBYDIR) -I$(RUBYSITEDIR)
ecore_x_la_SOURCES = rb_ecore_x.c rb_ecore_x.h \
rb_window.c rb_window.h
-ecore_x_la_LIBADD = -lruby $(ECORE_LIBS)
+ecore_x_la_LIBADD = -L$(RUBYLIBDIR) -lruby $(ECORE_LIBS)
ecore_x_la_LDFLAGS = -module -avoid-version
pkgincludedir = $(RUBYSITEDIR)/ecore