summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
Diffstat (limited to 'perl')
-rw-r--r--perl/Makefile.PL.in5
-rw-r--r--perl/Makefile.am4
2 files changed, 5 insertions, 4 deletions
diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in
index 40d1d6c4..d18aba63 100644
--- a/perl/Makefile.PL.in
+++ b/perl/Makefile.PL.in
@@ -23,7 +23,8 @@ WriteMakefile (
NAME => 'Sys::Guestfs',
VERSION => '@PACKAGE_VERSION@',
- LIBS => '-L@abs_top_builddir@/src/.libs -lguestfs',
- INC => '-I@abs_top_builddir@/src',
+ LIBS => '-L@top_builddir@/src/.libs -lguestfs',
+ INC => '-I@top_builddir@/src -I@top_srcdir@/src',
+ TYPEMAPS => [ '@srcdir@/typemap' ],
CCFLAGS => '@CFLAGS@',
);
diff --git a/perl/Makefile.am b/perl/Makefile.am
index 747ac436..66d1d4b1 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -36,8 +36,8 @@ if HAVE_PERL
TESTS = run-bindtests run-perl-tests
TESTS_ENVIRONMENT = \
- LD_LIBRARY_PATH=../src/.libs \
- LIBGUESTFS_PATH=../appliance
+ LD_LIBRARY_PATH=$(top_builddir)/src/.libs \
+ LIBGUESTFS_PATH=$(top_builddir)/appliance
INSTALLDIRS = site