File shared-mime-info-1.0-disable-checks.patch of Package mingw-shared-mime-info

diff --git a/Makefile.am b/Makefile.am
index 139e3b6..bbebe05 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -74,6 +74,9 @@ create-pot:
 	$(AM_V_GEN) $(MAKE) -C po shared-mime-info.pot
 
 check: create-pot freedesktop.org.xml update-mime-database$(EXEEXT) check-translations
+if CROSS_COMPILING
+	@echo "Cross compiling: Skipping checks"
+else
 	if test -e $(top_builddir)/freedesktop.org.xml; then \
 		xmllint --noout --valid $(top_builddir)/freedesktop.org.xml || exit 1;	\
 	else \
@@ -98,6 +101,7 @@ check: create-pot freedesktop.org.xml update-mime-database$(EXEEXT) check-transl
 	fi
 	@echo Number of mime-types that might need generic-icon: `grep "mime-type type=" $(srcdir)/freedesktop.org.xml.in | grep -v video/ | grep -v image/ | grep -v text/ | grep -v audio/ | grep -v "octet-stream" | wc -l` ; \
 	echo Number of mime-types with a generic icon: `grep "generic-icon name=" $(srcdir)/freedesktop.org.xml.in | wc -l` ;
+endif
 
 check-translations:
 	@for i in $(top_srcdir)/po/*.po ; do								\
diff --git a/configure.in b/configure.in
index 0940625..1937857 100644
--- a/configure.in
+++ b/configure.in
@@ -20,6 +20,9 @@ GETTEXT_PACKAGE=shared-mime-info
 AC_SUBST(GETTEXT_PACKAGE)
 AM_GLIB_GNU_GETTEXT
 
+dnl Check for cross compiling
+AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
+
 dnl Check whether libxml and glib are present is installed
 PKG_CHECK_MODULES(ALL, \
 		  libxml-2.0 >= 2.4 \