targetname=rlm_ruby
+ruby_cflags=
+ruby_ldflags=
if test x$with_rlm_ruby != xno; then
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
-
if test -z "$RUBY"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ruby executable path has been provided" >&5
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
+
+ if test -n "$RUBY"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
$as_echo_n "(cached) " >&6
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- as_fn_error $? "cannot import Ruby module \"mkmf\".
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot import Ruby module \"mkmf\".
+Please check your Ruby installation. The error was:
+$ac_distutils_result" >&5
+$as_echo "$as_me: WARNING: cannot import Ruby module \"mkmf\".
Please check your Ruby installation. The error was:
-$ac_distutils_result" "$LINENO" 5
+$ac_distutils_result" >&2;}
fi
#
# all done!
#
- if test -n "$RUBY_VERSION"; then
- ruby_cflags+="$RUBY_CFLAGS"
- ruby_ldflags+="$RUBY_LDFLAGS"
- ruby_ldflags+="$RUBY_EXTRA_LIBS"
+ if test -n "$RUBY_VERSION"; then
+ ruby_cflags="${RUBY_CFLAGS}"
+ ruby_ldflags="${RUBY_LDFLAGS} ${RUBY_EXTRA_LIBS}"
+ else
+ fail="ruby"
+ targetname=
+ fi
else
fail="ruby"
targetname=
m4_include([ax_ruby_devel.m4])
targetname=modname
+ruby_cflags=
+ruby_ldflags=
if test x$with_[]modname != xno; then
AC_PROG_CC
AC_PROG_CPP
-
- AX_RUBY_DEVEL([1.8])
- if test -n "$RUBY_VERSION"; then
- ruby_cflags+="$RUBY_CFLAGS"
- ruby_ldflags+="$RUBY_LDFLAGS"
- ruby_ldflags+="$RUBY_EXTRA_LIBS"
+ AX_WITH_RUBY
+
+ if test -n "$RUBY"; then
+ AX_RUBY_DEVEL([1.8])
+ if test -n "$RUBY_VERSION"; then
+ ruby_cflags="${RUBY_CFLAGS}"
+ ruby_ldflags="${RUBY_LDFLAGS} ${RUBY_EXTRA_LIBS}"
+ else
+ fail="ruby"
+ targetname=
+ fi
else
fail="ruby"
targetname=