summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMaxim Koltsov <kolmax94@gmail.com>2010-11-08 14:35:13 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-08 14:35:13 +0000
commit5b99e1b983b38d3405662c1e2b16f2731d465ce3 (patch)
tree6191d33d0bb71ddc6267a17d7dfe329d97017e20 /configure.ac
parent041969480a2712311c2a82a0c118426793a9b338 (diff)
downloadlibguestfs-5b99e1b983b38d3405662c1e2b16f2731d465ce3.tar.gz
libguestfs-5b99e1b983b38d3405662c1e2b16f2731d465ce3.tar.xz
libguestfs-5b99e1b983b38d3405662c1e2b16f2731d465ce3.zip
build: Add ./configure --disable-ruby option.
This disables the Ruby language bindings.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 4f29fcdc..bda6c3aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -610,9 +610,15 @@ AM_CONDITIONAL([HAVE_PYTHON],
[test "x$PYTHON_INCLUDEDIR" != "x" && test "x$PYTHON_SITE_PACKAGES" != "x"])
dnl Check for Ruby and rake (optional, for Ruby bindings).
-AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=0])
-AC_CHECK_PROG([RAKE],[rake],[rake],[no])
-
+AC_ARG_ENABLE([ruby],
+ AS_HELP_STRING([--disable-ruby], [Disable Ruby language bindings]),
+ [],
+ [enable_ruby=yes])
+AS_IF([test "x$enable_ruby" != "xno"],
+ [
+ AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=0])
+ AC_CHECK_PROG([RAKE],[rake],[rake],[no])
+ ])
AM_CONDITIONAL([HAVE_RUBY],
[test "x$RAKE" != "xno" && test -n "$HAVE_LIBRUBY"])