configure.ac: honour LLVM_LIBDIR when linking against LLVM
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 24 Oct 2016 17:11:33 +0000 (18:11 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 9 Nov 2016 21:36:14 +0000 (21:36 +0000)
commita39ad185932eab4f25a0cb2b112c10d8700ef242
tree58d9bc2a5c1925031df2ae84f403d5f0147754d6
parent3652d1d5942a857f225700d67ce2c900396982f2
configure.ac: honour LLVM_LIBDIR when linking against LLVM

Currently if one uses a non-default prefix, the path won't get
propagated and we'll fail at link-time.

A very quick and easy example is to install to /usr/local.
At this point, llvm-config will be picked even without the
--with-llvm-prefix, but regardless of the latter linking will fail.

Currently people can workaround that via LD_LIBRARY_PATH.

Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org>
Cc: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
configure.ac