Only ask pkg-config for the systemd unit directory if both are installed
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 16 Sep 2011 09:50:01 +0000 (10:50 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 21 Sep 2011 10:25:48 +0000 (11:25 +0100)
commit3f1af382a13cd21eea7e7e0addd0183400e7fd69
tree597d544df7d0f1ee8b2164dc36eb077761ee2a38
parentd55b3efbdef877642a154dfdca43d760795cdd9c
Only ask pkg-config for the systemd unit directory if both are installed

pkg-config is not a hard dependency, and this check avoids errors in a
minimal build environment:

./configure: line 21777: --variable=systemdsystemunitdir: command not found

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
configure.ac