Adding libguestfs

This commit is contained in:
Gerardo J. Puerta
2020-01-15 18:07:31 +01:00
parent 31334171d5
commit fef65a64e7
20 changed files with 756 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- a/configure.ac 2014-01-24 19:04:05.633056872 +0100
+++ b/configure.ac 2014-01-24 19:04:34.685691757 +0100
@@ -24,6 +24,7 @@
AC_INIT([libguestfs],libguestfs_major.libguestfs_minor.libguestfs_release)
AC_CONFIG_AUX_DIR([build-aux])
+AM_GNU_GETTEXT_VERSION(0.18.3)
dnl Initialize automake. automake < 1.12 didn't have serial-tests and
dnl gives an error if it sees this, but for automake >= 1.13

View File

@ -0,0 +1,15 @@
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -482,6 +482,11 @@
DISTRO=UBUNTU
fi
fi
+
+if test -f /etc/gentoo-release; then
+ DISTRO=GENTOO
+fi
+
if test -f /etc/arch-release; then
DISTRO=ARCHLINUX
fi

View File

@ -0,0 +1,16 @@
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1487,8 +1487,10 @@
dnl Replace libtool with a wrapper that clobbers dependency_libs in *.la files
dnl http://lists.fedoraproject.org/pipermail/devel/2010-November/146343.html
-LIBTOOL='bash $(top_srcdir)/libtool-kill-dependency_libs.sh $(top_builddir)/libtool'
-AC_SUBST([LIBTOOL])
+dnl LIBTOOL='bash $(top_srcdir)/libtool-kill-dependency_libs.sh $(top_builddir)/libtool'
+dnl AC_SUBST([LIBTOOL])
+LT_INIT
+
dnl Produce output files.
AC_CONFIG_HEADERS([config.h])

View File

@ -0,0 +1,21 @@
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1491,11 +1491,12 @@
])
# check for gtk-doc
-m4_ifdef([GTK_DOC_CHECK], [
- GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
-],[
- AM_CONDITIONAL([ENABLE_GTK_DOC], false)
-])
+#m4_ifdef([GTK_DOC_CHECK], [
+# GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
+#],[
+# AM_CONDITIONAL([ENABLE_GTK_DOC], false)
+#])
+GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
dnl Library versioning.
MAX_PROC_NR=`cat $srcdir/src/MAX_PROC_NR`

View File

@ -0,0 +1,13 @@
diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
@@ -88,9 +88,6 @@
if HAVE_HASKELL
SUBDIRS += haskell
endif
-if HAVE_PHP
-SUBDIRS += php
-endif
if HAVE_ERLANG
SUBDIRS += erlang erlang/examples
endif