build-sys: correctly search for gnu-efi header
authorMatt Clarkson <mattyclarkson@gmail.com>
Thu, 6 Apr 2017 13:12:11 +0000 (14:12 +0100)
committerMatt Clarkson <mattyclarkson@gmail.com>
Thu, 6 Apr 2017 13:32:41 +0000 (14:32 +0100)
commitcba49f2deab481045408d5452ac8c84fc03bccd5
tree28120b228b38d9fa74c7d2c86e870761d82bc79a
parentd60c527009133a1ed3d69c14b8c837c790e78d10
build-sys: correctly search for gnu-efi header

When the user provides the --with-efi-includedir we incorrectly search
for the header at /usr/include not the provided location. This patch
changes the check to use the provided value so that non-standard header
locations are supported.

This situation occurs commonly when cross-compiling systemd because the
GNU EFI headers and library will not be installed into the root
locations but highly likely a temporary system root.
configure.ac