* r2-swig fixes reported by @hteso

This commit is contained in:
pancake 2011-03-23 14:22:21 +01:00
parent 72ef2c2a1f
commit 4ec547ed04
3 changed files with 16 additions and 4 deletions

View File

@ -4,6 +4,8 @@
SUP_LANGS=""
LANGS="python perl ruby lua go java"
[ -z "${CC}" ] && CC=gcc
[ -z "${CXX}" ] && CXX=g++
if [ "$1" = "force-all" ]; then
:> supported.langs
@ -13,7 +15,7 @@ if [ "$1" = "force-all" ]; then
echo python >> supported.langs
fi
echo "#include <lua.h>" > .test.c
${CC} -c .test.c
${CC} -I/usr/include/lua5.1 ${CFLAGS} -c .test.c
if [ -f .test.o ]; then
echo "check-langs.sh: Detected lua"
echo lua >> supported.langs

View File

@ -5,9 +5,13 @@
# order matters here
PCS=" python2-config
python25-config
python2.5-config
python26-config
python2.6-config
python27-config
python2.7-config
python28-config
python2.8-config
python-config"
PYTHONCONFIG=""

View File

@ -41,9 +41,15 @@ else
test ../vapi/$${VAPI} -nt ${LIBS_PFX}$@ -o ! -e ${LIBS_PFX}$@ ; \
if [ $$? = 0 ]; then echo " - ${LANG} $@" ; \
LIB=`echo $@ | sed -e s,.${SOEXT},,` ; \
${CXX} -fPIC -shared $${LIB}_wrap.cxx `../python-config-wrapper --cflags --libs` \
`pkg-config --cflags --libs $${LIB}` ${CFLAGS} ${LDFLAGS} -o ${LIBS_PFX}$@ ; \
fi ; true
case "${LANG}" in \
"python") \
${CXX} -fPIC -shared $${LIB}_wrap.cxx `../python-config-wrapper --cflags --libs` \
`pkg-config --cflags --libs $${LIB}` ${CFLAGS} ${LDFLAGS} -o ${LIBS_PFX}$@ ; \
;; \
"lua") \
${CXX} -fPIC -shared $${LIB}_wrap.cxx -I/usr/include/lua5.1 ${CFLAGS} ${LDFLAGS} -o ${LIBS_PFX}$@ ; \
;; \
esac ; fi ; true
clean:
rm -f *.${SOEXT}