X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=configure.ac;h=e4df2c6ffa5eb350983338d6f5f1dbfa6b104af5;hp=228122f026ddcf685dae5b6e0db5d82c0dc0f22d;hb=84763d7fca3668c62ee3fe53d0e00a5a672f687b;hpb=54911bdd325393d1f7f2861f298463c364b45469 diff --git a/configure.ac b/configure.ac index 228122f..e4df2c6 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ # freeform string. m4_define([libguestfs_major], [1]) m4_define([libguestfs_minor], [13]) -m4_define([libguestfs_release], [7]) +m4_define([libguestfs_release], [12]) AC_INIT([libguestfs],libguestfs_major.libguestfs_minor.libguestfs_release) AC_CONFIG_AUX_DIR([build-aux]) @@ -69,6 +69,8 @@ gl_INIT AC_PROG_LIBTOOL +AC_PROG_SED + dnl Check for basic C environment. AC_PROG_CC_STDC AC_PROG_INSTALL @@ -884,6 +886,44 @@ AS_IF([test "x$enable_php" != "xno"], ]) AM_CONDITIONAL([HAVE_PHP], [test "x$PHP" != "xno" && test "x$PHPIZE" != "xno"]) +dnl Erlang +ERLC=no +ERL_INTERFACEDIR=no +AC_ARG_ENABLE([erlang], + AS_HELP_STRING([--disable-erlang], [Disable Erlang language bindings]), + [], + [enable_erlang=yes]) +AS_IF([test "x$enable_erlang" != "xno"], + [ + ERLC= + AC_CHECK_PROG([ERLC],[erlc],[erlc],[no]) + + if test "x$ERLC" != "xno"; then + dnl Look for erl_interface directory in various places. + AC_MSG_CHECKING([for erl_interface]) + + for d in \ + $libdir /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 + do + dir=`ls -1d $d/erlang/lib/erl_interface-* 2>/dev/null` + if test "x$dir" != "x" && test -d "$dir"; then + AC_MSG_RESULT([$dir]) + ERL_INTERFACEDIR=$dir + break + fi + done + + if test "x$ERL_INTERFACEDIR" = "xno"; then + AC_MSG_RESULT([not found]) + fi + fi + + AC_SUBST([ERLC]) + AC_SUBST([ERL_INTERFACEDIR]) + ]) +AM_CONDITIONAL([HAVE_ERLANG], + [test "x$ERLC" != "xno" && test "x$ERL_INTERFACEDIR" != "xno"]) + dnl Check for Perl modules needed by Perl virt tools (virt-df, etc.) AS_IF([test "x$PERL" != "xno"], [ @@ -931,6 +971,8 @@ AC_CONFIG_FILES([Makefile debian/changelog df/Makefile edit/Makefile + erlang/Makefile + erlang/examples/Makefile examples/Makefile fish/Makefile fuse/Makefile @@ -992,6 +1034,8 @@ echo -n "Haskell bindings .................... " if test "x$HAVE_HASKELL_TRUE" = "x"; then echo "yes"; else echo "no"; fi echo -n "PHP bindings ........................ " if test "x$HAVE_PHP_TRUE" = "x"; then echo "yes"; else echo "no"; fi +echo -n "Erlang bindings ..................... " +if test "x$HAVE_ERLANG_TRUE" = "x"; then echo "yes"; else echo "no"; fi echo "guestfish and C virt tools .......... yes" echo -n "Perl virt tools ..................... " if test "x$HAVE_TOOLS_TRUE" = "x"; then echo "yes"; else echo "no"; fi