From: Arran Cudbard-Bell Date: Sat, 24 Nov 2012 21:48:02 +0000 (+0000) Subject: Should be AC_MSG_WARN X-Git-Tag: release_3_0_0_beta1~1483 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=894153756d5eb201039b3b13626d58b268c5395a;p=thirdparty%2Ffreeradius-server.git Should be AC_MSG_WARN --- diff --git a/src/modules/rlm_ruby/configure b/src/modules/rlm_ruby/configure index 15980b3f4a4..2544040b8f9 100755 --- a/src/modules/rlm_ruby/configure +++ b/src/modules/rlm_ruby/configure @@ -3544,7 +3544,7 @@ rm -f core conftest.err conftest.$ac_objext \ $as_echo "$rubyexists" >&6; } if test ! "$rubyexists" = "yes"; then - as_fn_error $? " + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not link test program to Ruby. Maybe the main Ruby library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. @@ -3554,7 +3554,18 @@ $as_echo "$rubyexists" >&6; } You probably have to install the development version of the Ruby package for your distribution. The exact name of this package varies among them. ============================================================================ - " "$LINENO" 5 + " >&5 +$as_echo "$as_me: WARNING: + Could not link test program to Ruby. Maybe the main Ruby library has been + installed in some non-standard library path. If so, pass it to configure, + via the LDFLAGS environment variable. + Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/ruby/lib\" + ============================================================================ + ERROR! + You probably have to install the development version of the Ruby package + for your distribution. The exact name of this package varies among them. + ============================================================================ + " >&2;} RUBY_VERSION="" fi ac_ext=c @@ -3571,8 +3582,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # all done! # - - if test ! -n "$RUBY_VERSION"; then + if test -n "$RUBY_VERSION"; then ruby_cflags+="$RUBY_CFLAGS" ruby_ldflags+="$RUBY_LDFLAGS" ruby_ldflags+="$RUBY_EXTRA_LIBS" diff --git a/src/modules/rlm_ruby/configure.in b/src/modules/rlm_ruby/configure.in index bb25a7999e9..f275e931d1c 100644 --- a/src/modules/rlm_ruby/configure.in +++ b/src/modules/rlm_ruby/configure.in @@ -19,8 +19,7 @@ if test x$with_[]modname != xno; then AC_PROG_CPP AX_RUBY_DEVEL([1.8]) - - if test ! -n "$RUBY_VERSION"; then + if test -n "$RUBY_VERSION"; then ruby_cflags+="$RUBY_CFLAGS" ruby_ldflags+="$RUBY_LDFLAGS" ruby_ldflags+="$RUBY_EXTRA_LIBS" diff --git a/src/modules/rlm_ruby/m4/ax_ruby_devel.m4 b/src/modules/rlm_ruby/m4/ax_ruby_devel.m4 index cebec7fbd03..27fcbeda9a9 100644 --- a/src/modules/rlm_ruby/m4/ax_ruby_devel.m4 +++ b/src/modules/rlm_ruby/m4/ax_ruby_devel.m4 @@ -190,7 +190,7 @@ $ac_distutils_result]) AC_MSG_RESULT([$rubyexists]) if test ! "$rubyexists" = "yes"; then - AC_MSG_ERROR([ + AC_MSG_WARN([ Could not link test program to Ruby. Maybe the main Ruby library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable.