about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-20T15·28+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-20T15·28+0000
commit22d13d6ec27b02f98ca4e398fbae4f3273e97794 (patch)
tree1e50c26afadc048eda040ad1d5bc222b4f30c229
parent947e64578969e95e96157c7e2e52fd7299027184 (diff)
* Check for patch (NIX-59).
-rw-r--r--configure.ac1
-rw-r--r--externals/Makefile.am4
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index add3a5bc1728..5e3c7f01a3e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -107,6 +107,7 @@ fi
 
 NEED_PROG(curl, curl)
 NEED_PROG(shell, sh)
+NEED_PROG(patch, patch)
 AC_PATH_PROG(xmllint, xmllint, false)
 AC_PATH_PROG(xsltproc, xsltproc, false)
 AC_PATH_PROG(jing, jing, false) # needed because xmllint --relaxng seems broken
diff --git a/externals/Makefile.am b/externals/Makefile.am
index 07258aabeea1..75984fce4cd1 100644
--- a/externals/Makefile.am
+++ b/externals/Makefile.am
@@ -11,7 +11,7 @@ $(DB).tar.gz:
 
 $(DB): $(DB).tar.gz
 	gunzip < $(srcdir)/$(DB).tar.gz | tar xvf -
-	(cd $(DB) && patch -p1) < $(srcdir)/bdb-cygwin.patch
+	(cd $(DB) && $(patch) -p1) < $(srcdir)/bdb-cygwin.patch
 
 have-db:
 	$(MAKE) $(DB)
@@ -46,7 +46,7 @@ $(ATERM).tar.gz:
 
 $(ATERM): $(ATERM).tar.gz
 	gunzip < $(srcdir)/$(ATERM).tar.gz | tar xvf -
-	(cd $(ATERM) && patch -p1) < $(srcdir)/aterm-aliasing.patch
+	(cd $(ATERM) && $(patch) -p1) < $(srcdir)/aterm-aliasing.patch
 
 have-aterm:
 	$(MAKE) $(ATERM)