]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Should be AC_MSG_WARN
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 24 Nov 2012 21:48:02 +0000 (21:48 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 24 Nov 2012 21:48:02 +0000 (21:48 +0000)
src/modules/rlm_ruby/configure
src/modules/rlm_ruby/configure.in
src/modules/rlm_ruby/m4/ax_ruby_devel.m4

index 15980b3f4a468d2fefbf57b935c84bf945680c38..2544040b8f921033d6c4c8eac475cb6db78ec5c8 100755 (executable)
@@ -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"
index bb25a7999e98822e3bfbe46a773710fc1d82f8da..f275e931d1cbbcfe2b07e9b23908e52f4eeae86e 100644 (file)
@@ -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"
index cebec7fbd036e6e92b92d202f6588c4c94318f8e..27fcbeda9a9d2bde8644e61bac9efa6378d626ca 100644 (file)
@@ -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.