summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-07-11 15:14:07 -0400
committerOri Bernstein <orib@google.com>2012-07-11 15:14:07 -0400
commit8b1cf3fd57e7c94f6c162027e440ceb3e50ee50f (patch)
tree35fca65349f966830ea4a0740429839fc5edd302 /configure
parentb554cdfe59ba5631651182f05c19947a7b02d848 (diff)
downloadmc-8b1cf3fd57e7c94f6c162027e440ceb3e50ee50f.tar.gz
Make the tuple test test things more usefully.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure36
1 files changed, 36 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 0000000..50c0b30
--- /dev/null
+++ b/configure
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+prefix="/usr/local"
+
+for i in `seq 300`; do
+ echo "Lots of output to emulate automake... ok"
+ echo "Testing for things you'll never use... fail"
+ echo "Satisfying the fortran77 lobby... ok"
+ echo "Burning CPU time checking for the bloody obvious... ok"
+done
+echo "Automake emulated successfully"
+
+for arg in $*; do
+ shift 1
+ case $arg in
+ "--prefix" | "-p")
+ prefix=shift $*
+ ;;
+ --prefix=*)
+ prefix=`echo $arg | sed 's/^--prefix=//g'`
+ ;;
+ "--help" | "-h")
+ echo "Usage:"
+ echo " --prefix | -p: The prefix to install to"
+ break;
+ ;;
+ *) echo "Unrecognized argument $arg";;
+ esac
+done
+
+cat << EOF
+ Building with:
+ prefix=$prefix
+EOF
+
+echo export INST_ROOT=$prefix > config.mk