configure.ac: use pkg-config for libelf
authorJonathan Gray <jsg@jsg.id.au>
Wed, 9 Dec 2015 05:55:01 +0000 (16:55 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 17 Dec 2015 09:37:24 +0000 (09:37 +0000)
commit7f585a6a98d0553ec0ba48e18b1d9bac1256881a
tree42b2a76487dbc136596c0b99245a34b8ea927144
parente97b207654a1c0b2c27b6ad6579b5570a83ce8cd
configure.ac: use pkg-config for libelf

Use PKG_CHECK_MODULES to get the flags to link libelf

v2: keep AC_CHECK_LIB as a fallback for elfutils provided
libelf that doesn't install a pkg-config file.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac
src/gallium/drivers/radeon/Makefile.am
src/gallium/targets/opencl/Makefile.am