dnl Required by the gnulib 'relocatable-prog' module.
dnl See doc/relocatable-maint.texi in the gnulib tree for details.
-RELOCATABLE_LIBRARY_PATH='$(libdir)'
+RELOCATABLE_LIBRARY_PATH='$(pkglibdir)'
RELOCATABLE_STRIP=:
PSPP_CHECK_PREREQS
perl-module/lib/PSPP.pm \
perl-module/t/Pspp.t
+MAKE_PERL = $(MAKE) $(AM_MAKEFLAGS) LD_RUN_PATH=$(pkglibdir)
+
perl-module/pspp-module-config: Makefile
(echo '%Locations = (';\
printf " SourceDir => '";\
perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz: $(module_sources) perl-module/Makefile
rm -f $@
- cd perl-module && $(MAKE) $(AM_MAKEFLAGS) tardist
+ cd perl-module && $(MAKE_PERL) tardist
PHONY += module-make
module-make: perl-module/Makefile
- cd perl-module && $(MAKE) $(AM_MAKEFLAGS)
+ cd perl-module && $(MAKE_PERL)
ALL_LOCAL += perl_module_tarball
perl_module_tarball: $(module_sources) src/libpspp-core.la
fi ; \
done \
fi
- $(MAKE) $(AM_MAKEFLAGS) module-make perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz
+ $(MAKE_PERL) module-make perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz
CLEAN_LOCAL += perl_module_clean
perl_module_clean:
AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/lib
-lib_LTLIBRARIES = src/libpspp-core.la src/libpspp.la
+pkglib_LTLIBRARIES = src/libpspp-core.la src/libpspp.la
src_libpspp_core_la_SOURCES =