Description: Fix LD_LIBRARY_PATH in CHECK_CMD
 Sometimes the libtool wrapper around gyoto fails to find the plug-ins in
 lib/.libs. This causes FTBFS. Set LD_LIBRARY_PATH to include this directory.
Author: Thibaut Paumard
Origin: upstream
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813725
Applied-Upstream: 9006be3211f0daeaf32f1ff49a4b8accb1e7eb48
Last-Update: 2016-02-10
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
diff --git a/bin/Makefile.am b/bin/Makefile.am
index d443134..7985a1e 100644
--- a/bin/Makefile.am
+++ b/bin/Makefile.am
@@ -62,7 +62,7 @@ CLEANFILES += $(CHECK_RESULTS) $(CHECK_MPI_RESULTS)
 
 MPIRUN = mpirun
 
-CHECK_CMD = ./gyoto -pstdplug -r32 -T8 -P0
+CHECK_CMD = LD_LIBRARY_PATH=@top_builddir@/lib/.libs/:$(LD_LIBRARY_PATH) ./gyoto -pstdplug -r32 -T8 -P0
 
 check-nompi-clean:
 	rm -f $(CHECK_RESULTS)
