diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-22 09:45:06 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-28 09:45:19 +0100 |
commit | b4ea01af47dd1270c1a5580a7b66e7615785769d (patch) | |
tree | 1c87e8b49a284ddbfeb0f2652062737f0947da11 | |
parent | 283e63be8522d842d8f7d615942f42081a832106 (diff) | |
download | libguestfs-b4ea01af47dd1270c1a5580a7b66e7615785769d.tar.gz libguestfs-b4ea01af47dd1270c1a5580a7b66e7615785769d.tar.xz libguestfs-b4ea01af47dd1270c1a5580a7b66e7615785769d.zip |
ruby: Fix libruby test.
If -lruby was not available, this used to define HAVE_LIBRUBY=0.
However this meant that the later test -n "$HAVE_LIBRUBY" would
be successful, whereas it should fail in this case.
(cherry picked from commit 823ba05ebd8f1a12574a3f154aaf7c8b4f2aeeac)
-rw-r--r-- | configure.ac | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index e6b56f75..1cd65188 100644 --- a/configure.ac +++ b/configure.ac @@ -883,11 +883,10 @@ AC_ARG_ENABLE([ruby], AS_HELP_STRING([--disable-ruby], [Disable Ruby language bindings]), [], [enable_ruby=yes]) -AS_IF([test "x$enable_ruby" != "xno"], - [ +AS_IF([test "x$enable_ruby" != "xno"],[ AC_CHECK_PROG([RUBY],[ruby],[ruby],[no]) AC_CHECK_PROG([RAKE],[rake],[rake],[no]) - AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=0]) + AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=]) AC_SUBST([RAKE]) ]) AM_CONDITIONAL([HAVE_RUBY], |