From ecedd9c50c50bb42accf27394193bb7ef80c75b0 Mon Sep 17 00:00:00 2001
From: Mats Erik Andersson <gnu@gisladisker.se>
Date: Wed, 10 Oct 2012 11:10:28 +0200
Subject: [PATCH] Out-of-tree building of perl modules.

---
 configure.ac     | 2 +-
 perl/Makefile.am | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 11a5390fa..7333e03c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -341,7 +341,7 @@ AC_SUBST(dynlib_suffix)
 
 # Do we have GNU tar?
 AC_MSG_CHECKING([if you have a recent GNU tar])
-if $tar --version 2> /dev/null | grep -q GNU && tar cvf /dev/null --warning=no-timestamp ./configure > /dev/null; then
+if $tar --version 2> /dev/null | grep -q GNU && tar cvf /dev/null --warning=no-timestamp ./config.log > /dev/null; then
     AC_MSG_RESULT(yes)
     tarFlags="--warning=no-timestamp"
 else
diff --git a/perl/Makefile.am b/perl/Makefile.am
index e42894353..aaf76bbc8 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -26,6 +26,7 @@ AM_CXXFLAGS = \
   -D_FILE_OFFSET_BITS=64
 
 lib/Nix/Store.cc: lib/Nix/Store.xs
+	$(INSTALL) -d lib/Nix
 	xsubpp $^ -output $@
 
 else
-- 
GitLab