]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: fix compilation failures
authorEric Blake <eblake@redhat.com>
Fri, 22 Jul 2011 17:59:37 +0000 (11:59 -0600)
committerDaniel Veillard <veillard@redhat.com>
Mon, 25 Jul 2011 05:48:26 +0000 (13:48 +0800)
commit5283ea9b1d8a4b0f2fd6796bf60615aca7b6c3e6
treeff052e1900b9d5b4367c92aefe35b81b903bbcfb
parentc198d91667533dc40c35941a98a09d7515451125
tests: fix compilation failures

Even though gnutls is a hard-req for libvirt, and gnutls depends
on libtasn1, that does not mean that you have to have the libtasn1
development files installed.  Skip the test rather than failing
compilation in that case.

With newer gcc, the test consumed too much stack space.  Move
things to static storage to fix that.

* configure.ac (AC_CHECK_HEADERS): Check for libtasn1.h.
(HAVE_LIBTASN1): New automake conditional.
* tests/Makefile.am (virnettlsconvirnettlscontexttest_SOURCES)
(virnettlscontexttest_LDADD): Allow compilation without libtasn1.
* tests/virnettlscontexttest.c: Skip test if headers not present.
(struct testTLSCertReq): Alter time members.
(testTLSGenerateCert): Reflect the change.
(mymain): Reduce stack usage.
configure.ac
tests/Makefile.am
tests/virnettlscontexttest.c