mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
build: Remove Vala bindings
They depend on gobject introspection which was removed in previous
commits.
Updates: commit 955ea8882b
This commit is contained in:
committed by
rwmjones
parent
7e2170e9e0
commit
d428c6fee8
11
configure.ac
11
configure.ac
@@ -158,16 +158,6 @@ HEADING([Checking for Go])
|
||||
m4_include([m4/guestfs-golang.m4])
|
||||
HEADING([Checking for Rust])
|
||||
m4_include([m4/guestfs-rust.m4])
|
||||
HEADING([Checking for GObject Introspection])
|
||||
dnl GObject introspection is needed for Vala bindings.
|
||||
m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
|
||||
GOBJECT_INTROSPECTION_CHECK([1.30.0])
|
||||
],[
|
||||
AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
|
||||
])
|
||||
|
||||
HEADING([Checking for Vala])
|
||||
VAPIGEN_CHECK
|
||||
|
||||
dnl Bash completion.
|
||||
HEADING([Checking for bash completion])
|
||||
@@ -338,7 +328,6 @@ feature "PHP bindings" test "x$HAVE_PHP_TRUE" = "x"
|
||||
feature "Erlang bindings" test "x$HAVE_ERLANG_TRUE" = "x"
|
||||
feature "Lua bindings" test "x$HAVE_LUA_TRUE" = "x"
|
||||
feature "Go bindings" test "x$HAVE_GOLANG_TRUE" = "x"
|
||||
feature "Vala bindings" test "x$ENABLE_VAPIGEN_TRUE" = "x"
|
||||
feature "bash completion" test "x$HAVE_BASH_COMPLETION_TRUE" = "x"
|
||||
feature "Rust bindings" test "x$HAVE_RUST_TRUE" = "x"
|
||||
|
||||
|
||||
@@ -303,14 +303,6 @@ Optional. Used to build the Haskell bindings.
|
||||
|
||||
Optional. Used to build the PHP bindings.
|
||||
|
||||
=item glib2
|
||||
|
||||
=item gobject-introspection
|
||||
|
||||
=item vala
|
||||
|
||||
Optional. Used to build the Vala bindings.
|
||||
|
||||
=item LUA
|
||||
|
||||
Optional. Used to build the LUA bindings.
|
||||
|
||||
101
m4/vapigen.m4
101
m4/vapigen.m4
@@ -1,101 +0,0 @@
|
||||
dnl vapigen.m4
|
||||
dnl
|
||||
dnl Copyright 2012 Evan Nemerson
|
||||
dnl
|
||||
dnl This library is free software; you can redistribute it and/or
|
||||
dnl modify it under the terms of the GNU Lesser General Public
|
||||
dnl License as published by the Free Software Foundation; either
|
||||
dnl version 2.1 of the License, or (at your option) any later version.
|
||||
dnl
|
||||
dnl This library is distributed in the hope that it will be useful,
|
||||
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
dnl Lesser General Public License for more details.
|
||||
dnl
|
||||
dnl You should have received a copy of the GNU Lesser General Public
|
||||
dnl License along with this library; if not, write to the Free Software
|
||||
dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# VAPIGEN_CHECK([VERSION], [API_VERSION], [FOUND_INTROSPECTION], [DEFAULT])
|
||||
# --------------------------------------
|
||||
# Check vapigen existence and version
|
||||
#
|
||||
# See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation
|
||||
AC_DEFUN([VAPIGEN_CHECK],
|
||||
[
|
||||
AS_IF([test "x$3" != "xyes"], [
|
||||
m4_provide_if([GOBJECT_INTROSPECTION_CHECK], [], [
|
||||
m4_provide_if([GOBJECT_INTROSPECTION_REQUIRE], [], [
|
||||
AC_MSG_ERROR([[You must call GOBJECT_INTROSPECTION_CHECK or GOBJECT_INTROSPECTION_REQUIRE before using VAPIGEN_CHECK unless using the FOUND_INTROSPECTION argument is "yes"]])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
AC_ARG_ENABLE([vala],
|
||||
[AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]],[build Vala bindings @<:@default=]ifelse($4,,auto,$4)[@:>@])],,[
|
||||
AS_IF([test "x$4" = "x"], [
|
||||
enable_vala=auto
|
||||
], [
|
||||
enable_vala=$4
|
||||
])
|
||||
])
|
||||
|
||||
AS_CASE([$enable_vala], [no], [enable_vala=no],
|
||||
[yes], [
|
||||
AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [
|
||||
AC_MSG_ERROR([Vala bindings require GObject Introspection])
|
||||
])
|
||||
], [auto], [
|
||||
AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [
|
||||
enable_vala=no
|
||||
])
|
||||
], [
|
||||
AC_MSG_ERROR([Invalid argument passed to --enable-vala, should be one of @<:@no/auto/yes@:>@])
|
||||
])
|
||||
|
||||
AS_IF([test "x$2" = "x"], [
|
||||
vapigen_pkg_name=vapigen
|
||||
], [
|
||||
vapigen_pkg_name=vapigen-$2
|
||||
])
|
||||
AS_IF([test "x$1" = "x"], [
|
||||
vapigen_pkg="$vapigen_pkg_name"
|
||||
], [
|
||||
vapigen_pkg="$vapigen_pkg_name >= $1"
|
||||
])
|
||||
|
||||
PKG_PROG_PKG_CONFIG
|
||||
|
||||
PKG_CHECK_EXISTS([$vapigen_pkg], [
|
||||
AS_IF([test "$enable_vala" = "auto"], [
|
||||
enable_vala=yes
|
||||
])
|
||||
], [
|
||||
AS_CASE([$enable_vala], [yes], [
|
||||
AC_MSG_ERROR([$vapigen_pkg not found])
|
||||
], [auto], [
|
||||
enable_vala=no
|
||||
])
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING([for vapigen])
|
||||
|
||||
AS_CASE([$enable_vala],
|
||||
[yes], [
|
||||
VAPIGEN=`$PKG_CONFIG --variable=vapigen $vapigen_pkg_name`
|
||||
VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir $vapigen_pkg_name`/vala/Makefile.vapigen
|
||||
AS_IF([test "x$2" = "x"], [
|
||||
VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir $vapigen_pkg_name`
|
||||
], [
|
||||
VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned $vapigen_pkg_name`
|
||||
])
|
||||
])
|
||||
|
||||
AC_MSG_RESULT([$enable_vala])
|
||||
|
||||
AC_SUBST([VAPIGEN])
|
||||
AC_SUBST([VAPIGEN_VAPIDIR])
|
||||
AC_SUBST([VAPIGEN_MAKEFILE])
|
||||
|
||||
AM_CONDITIONAL(ENABLE_VAPIGEN, test "x$enable_vala" = "xyes")
|
||||
])
|
||||
Reference in New Issue
Block a user