diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-04-13 00:46:24 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-04-13 00:46:24 -0700 |
commit | 20bb032dc16ab0a0a20e9a5705738c797ac4b3da (patch) | |
tree | 015f8be7a1d1d99e09e682c35956538ebb57cf50 /libbio/configure | |
parent | ac02d84497997778d2c9680f5c7fc26b9814f62c (diff) | |
download | mc-20bb032dc16ab0a0a20e9a5705738c797ac4b3da.tar.gz |
Add code to subdir in preparation for merging with mc.
Diffstat (limited to 'libbio/configure')
-rwxr-xr-x | libbio/configure | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libbio/configure b/libbio/configure new file mode 100755 index 0000000..37fe623 --- /dev/null +++ b/libbio/configure @@ -0,0 +1,52 @@ +#!/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" + +INST_ROOT='/usr/local' + +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 + +OS=`uname` + +echo export INST_ROOT=$prefix > config.mk +case $OS in + *Linux*) + echo 'export SYS=linux' >> config.mk + ;; + *Darwin*) + echo 'export SYS=osx' >> config.mk + ;; + *) + echo 'Unknown architecture.' + ;; +esac + +cat << EOF + Building with: + prefix=$prefix +EOF + |