diff options
author | d3v11 <d3v11@d3v11.ano> | 2011-10-28 19:08:24 -0400 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2011-10-28 19:08:24 -0400 |
commit | 182c7b23d482a680ac140a681128b74c7db058ac (patch) | |
tree | 57b9215ee510cd6cc6b66dd0bd3b05c22263c8de /contrib/splicex/configure | |
parent | d8def0eb06465680919d7dc14daa287e7d065813 (diff) | |
download | resdb-182c7b23d482a680ac140a681128b74c7db058ac.tar.gz resdb-182c7b23d482a680ac140a681128b74c7db058ac.zip |
SpliceX now compiles to true binary
Diffstat (limited to 'contrib/splicex/configure')
-rwxr-xr-x | contrib/splicex/configure | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/contrib/splicex/configure b/contrib/splicex/configure new file mode 100755 index 0000000..7e11811 --- /dev/null +++ b/contrib/splicex/configure @@ -0,0 +1,50 @@ +#!/bin/bash +if [ -z "$1" ]; then + echo 'usage: ./configure <python[version]>' + exit 1 +fi + +echo -ne 'checking for python...' +if which `which "$1"` >/dev/null; then + PYPATH=`which "$1"` + echo -ne ' OK' + echo +else + echo -ne ' FAILED' + exit 1 +fi + +echo -ne 'checking for man...' +if which man >/dev/null; then + echo -ne ' OK' + echo +else + echo -ne ' FAILED' + exit 1 +fi + +echo -ne 'checking for cython...' +if which cython >/dev/null; then + echo -ne ' OK' + echo +else + echo -ne ' FAILED' + exit 1 +fi + +echo -ne 'checking for gcc...' +if which gcc >/dev/null; then + echo -ne ' OK' + echo +else + echo -ne ' FAILED' + exit 1 +fi + +echo -ne "configuring splicex for $1 @ $PYPATH..." +sed -e s^PYTHON^"$1"^g src/make.in >Makefile +sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >build/splicex +sed -e s^PYTHON^"$PYPATH"^g src/splicex-deshadow.py >build/splicex-deshadow +echo -ne ' OK' +echo +echo -e 'configure complete' |