Here is the update for instruction to make install on MinGW.
(Since I goes to from make only to pass to make install)
1.Install MinGW-5.1.4.exe
2.Install MSYS-1.0.11-2004.04.30-1.exe
3.Install msysDTK-1.0.1.exe
Above files are taken from following
http://sourceforge.net/project/showfiles.php?group_id=2435
4.Install gtk-dev-2.12.9-win32-2.exe
(This is for using pkg-config/gettext/libxml2)
Expand this to C:\MinGW\lib\GTK
Taken from
http://gladewin32.sourceforge.net/
5.update some MSYS packages
m4-1.4.7-MSYS.tar.bz2 from root directory
(we need 1.4.5 or later but msysDTK installs 1.4)
gawk-3.1.5-MSYS-1.0.11-1.tar.bz2
(gawk match with 3 args are needed on ChangeLog.awk but not in gawk 3.0.4)
Taken from
http://sourceforge.net/project/showfiles.php?group_id=2435
6.Install autoconf-2.62.tar.gz
./configure --prefix=/usr
make
make install
Taken from
http://www.gnu.org/software/autoconf/
7.Install automake-1.10.1.tar.gz
./configure --prefix=/usr
make
make install
(create /usr/share/aclocal-1.10)
Taken from
http://www.gnu.org/software/automake/
8.Install libtool-1.5.26.tar.gz
./configure --prefix=/usr
make
make install
Taken from
http://www.gnu.org/software/libtool/
9.Add m4 script for aclocal
cp /mingw/lib/GTK/share/aclocal/* /usr/share/aclocal
(This is for running autogen.sh)
10..Install GNUTLS
expand gnutls-2.3.13.exe to c:\msys\1.0
(it goes to /usr)(This is for /usr/share/aclocal)
cp -r /usr/include/gnutls /mingw/include
cp /usr/lib/libgnutls* /mingw/lib
cp /usr/lib/libgpg-error* /mingw/lib
cp /usr/lib/libgcrypt* /mingw/lib
cp /usr/lib/libtasn1.* /mingw/lib
rewrite dependency_libs on /mingw/lib/libgnutls.la and /mingw/lib/libgcrypt.la
from /home/jas/gnutls4win/inst to /mingw
Taken from
http://josefsson.org/gnutls4win/
11.expand xdr
Install Rich's package xdr-4.0-mingw5.tar.gz
rpc => /mingw/include
lib*.a => /mingw/lib
Taken from
http://www.annexia.org/tmp/xdr-4.0-mingw5.tar.gz
12.get libvirt code
get Hourly development snapshot(this package includes autogen.sh)
Taken from
ftp://libvirt.org/libvirt/
apply patch.
patch should be taken from
https://www.redhat.com/archives/libvir-list/2008-June/msg00196.html
13.create virsh
./autogen.sh
./configure --without-xen --without-qemu --without-sasl --without-libvirtd
make
make syntax-check
make check
make install
14.execute /usr/local/bin/virsh.exe
Hope virsh.exe works on MinGW.
Thanks
Atsushi SAKAI