log
[oweals/gnunet.git] / src / datastore / Makefile.am
index 092f0ede567c75b9f39210047824d09409cc20e4..7044cb46af736afd76eedf9daf859380dbad81e5 100644 (file)
@@ -170,7 +170,7 @@ check_PROGRAMS = \
   $(POSTGRES_TESTS)
 
 if ENABLE_TEST_RUN
-TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
+AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
 TESTS = $(check_PROGRAMS)
 endif