aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-03-19 18:31:59 -0700
committerGraydon Hoare <[email protected]>2011-03-19 18:34:40 -0700
commit50c78313f216c96000c63a99c8ee787a8ae595ae (patch)
tree5a092ab5d7b5e956e76025455930afc157ea90b6 /configure
parentProbe for python, git, makeinfo and texi2pdf, but not sed. (diff)
downloadrust-50c78313f216c96000c63a99c8ee787a8ae595ae.tar.xz
rust-50c78313f216c96000c63a99c8ee787a8ae595ae.zip
Separate scan for commands used during configure.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index bf5d7a92..c8819426 100755
--- a/configure
+++ b/configure
@@ -12,6 +12,14 @@ err() {
exit 1
}
+
+need_cmd() {
+ if which $1 >/dev/null 2>&1
+ then msg "found $1"
+ else err "need $1"
+ fi
+}
+
make_dir() {
if [ ! -d $1 ]
then
@@ -63,6 +71,9 @@ probe_need() {
fi
}
+msg "looking for configure programs"
+need_cmd mkdir
+need_cmd printf
msg "recreating config.mk"
echo '' >config.mk