Mercurial > hg > anonet-resdb
diff contrib/splicex/configure @ 706:de6fd9fc14e5 draft
SpliceX patched compiler for /path/to/Python.h and /path/to/structmember.h
author | d3v11 <d3v11@d3v11.ano> |
---|---|
date | Sat, 29 Oct 2011 11:37:41 -0400 |
parents | dc8f88270f6a |
children | 59babc5385d5 |
line wrap: on
line diff
--- a/contrib/splicex/configure Sat Oct 29 10:17:30 2011 -0400 +++ b/contrib/splicex/configure Sat Oct 29 11:37:41 2011 -0400 @@ -57,7 +57,15 @@ echo -e " python version == $1" echo -e " interpreter path == $PYPATH" if [ -z "$2" ]; then - echo -e " compiler flags == gcc -I/usr/include/$1" + if [ -e /usr/include/"$1"/Python.h ] && [ -e /usr/include/"$1"/structmember.h ]; then + PYHEADERS="/usr/include/$1" + echo -e " compiler flags == gcc -I /usr/include/$1" + elif [ -e /usr/local/include/"$1"/Python.h ] && [ -e /usr/local/include/"$1"/structmember.h ]; then + PYHEADERS="/usr/local/include/$1" + echo -e " compiler flags == gcc -I /usr/local/include/$1" + else + echo -e " Python.h and structmember.h could not be found... FAILED" + fi fi echo if [ -z "$2" ]; then @@ -69,6 +77,7 @@ echo -ne " generating Makefile..." if [ -z "$2" ]; then sed -e s^PYTHON^"$1"^g src/make.in >Makefile || exit 1 + sed -i s^HEADERS^"$PYHEADERS"^g Makefile || exit 1 echo -ne ' DONE' echo else