3
AM_INIT_AUTOMAKE(%{APPNAMELC}, 0.1)
9
# ruby interpreter check
10
AC_PATH_PROG([RUBY],[ruby])
11
if test -z "${RUBY}" ; then
12
AC_MSG_ERROR([you need Ruby to use this program])
15
AC_CHECK_PROG(RUBY, ruby, ruby)
17
if test -z "$RUBY"; then
18
DO_NOT_COMPILE="$DO_NOT_COMPILE qtruby"
20
AC_MSG_CHECKING(for ruby dirs)
21
RUBY_ARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"archdir"@:>@)'`
22
RUBY_SITEARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitearchdir"@:>@)'`
23
RUBY_SITEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitelibdir"@:>@)'`
24
RUBY_LIBDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"libdir"@:>@)'`
25
RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'`
26
AC_MSG_RESULT([archdir $RUBY_ARCHDIR, sitearchdir $RUBY_SITEARCHDIR, sitedir $RUBY_SITEDIR, libdir $RUBY_LIBDIR, librubyarg $RUBY_LIBRUBYARG])
27
AC_SUBST(RUBY_ARCHDIR)
28
AC_SUBST(RUBY_SITEARCHDIR)
29
AC_SUBST(RUBY_SITEDIR)
31
AC_SUBST(RUBY_LIBRUBYARG)
35
AC_MSG_CHECKING([whether Korundum is installed])
37
cat >korundumtest.rb <<END
40
${RUBY} korundumtest.rb >/dev/null 2>&1 && korundum_present=yes
41
AC_MSG_RESULT([$korundum_present])
44
AC_PATH_PROG([RBUIC],[rbuic])
45
if test -z "${RBUIC}" ; then
46
AC_MSG_ERROR([cannot find rbuic (part of the QtRuby package)])