]> xenbits.xensource.com Git - libvirt.git/commit
build: avoid journald on rhel 5
authorEric Blake <eblake@redhat.com>
Mon, 1 Oct 2012 22:38:56 +0000 (16:38 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 1 Oct 2012 23:33:25 +0000 (17:33 -0600)
commitcd1e8d1c47abe9f481065115ea532b405a494c63
tree4d0d53235154063eafefed5396beddc7d1ac0fe8
parent9038ac65dafde5a404daf0b416e1f8bf80af683a
build: avoid journald on rhel 5

Commit f6430390 broke builds on RHEL 5, where glibc (2.5) is too
old to support mkostemp (2.7) or htole64 (2.9).  While gnulib
has mkostemp, it still lacks htole64; and it's not worth dragging
in replacements on systems where journald is unlikely to exist
in the first place, so we just use an extra configure-time check
as our witness of whether to attempt compiling the code.

* src/util/logging.c (virLogParseOutputs): Don't attempt to
compile journald on older glibc.
* configure.ac (AC_CHECK_DECLS): Check for htole64.
configure.ac
src/util/logging.c