comparison contrib/splicex/configure @ 712:59babc5385d5 draft

SpliceX fixed, old coding trim down with patch for --time option
author d3v11 <d3v11@d3v11.ano>
date Sun, 30 Oct 2011 08:01:22 -0400
parents de6fd9fc14e5
children 1dcc647991ca
comparison
equal deleted inserted replaced
711:c02c7e024e05 712:59babc5385d5
15 PYPATH=`which "$1"` 15 PYPATH=`which "$1"`
16 echo -ne ' OK' 16 echo -ne ' OK'
17 echo 17 echo
18 else 18 else
19 echo -ne ' FAILED' 19 echo -ne ' FAILED'
20 echo
20 exit 1 21 exit 1
21 fi 22 fi
22 23
23 echo -ne ' checking for man...' 24 echo -ne ' checking for man...'
24 if which man >/dev/null; then 25 if which man >/dev/null; then
25 echo -ne ' OK' 26 echo -ne ' OK'
26 echo 27 echo
27 else 28 else
28 echo -ne ' FAILED' 29 echo -ne ' FAILED'
30 echo
29 exit 1 31 exit 1
30 fi 32 fi
31 33
32 if [ -z "$2" ]; then 34 if [ -z "$2" ]; then
33 echo -ne ' checking for cython...' 35 echo -ne ' checking for cython...'
34 if which cython >/dev/null; then 36 if which cython >/dev/null; then
35 echo -ne ' OK' 37 echo -ne ' OK'
36 echo 38 echo
37 else 39 else
38 echo -ne ' FAILED' 40 echo -ne ' FAILED'
41 echo
39 exit 1 42 exit 1
40 fi 43 fi
41 fi 44 fi
42 45
43 if [ -z "$2" ]; then 46 if [ -z "$2" ]; then
45 if which gcc >/dev/null; then 48 if which gcc >/dev/null; then
46 echo -ne ' OK' 49 echo -ne ' OK'
47 echo 50 echo
48 else 51 else
49 echo -ne ' FAILED' 52 echo -ne ' FAILED'
53 echo
50 exit 1 54 exit 1
51 fi 55 fi
52 fi 56 fi
53 57
54 echo 58 echo
63 elif [ -e /usr/local/include/"$1"/Python.h ] && [ -e /usr/local/include/"$1"/structmember.h ]; then 67 elif [ -e /usr/local/include/"$1"/Python.h ] && [ -e /usr/local/include/"$1"/structmember.h ]; then
64 PYHEADERS="/usr/local/include/$1" 68 PYHEADERS="/usr/local/include/$1"
65 echo -e " compiler flags == gcc -I /usr/local/include/$1" 69 echo -e " compiler flags == gcc -I /usr/local/include/$1"
66 else 70 else
67 echo -e " Python.h and structmember.h could not be found... FAILED" 71 echo -e " Python.h and structmember.h could not be found... FAILED"
72 echo
73 exit 1
68 fi 74 fi
69 fi 75 fi
70 echo 76 echo
71 if [ -z "$2" ]; then 77 if [ -z "$2" ]; then
72 sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >build/splicex || exit 1 78 sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >build/splicex || exit 1