* More fixes for the r2-bindings configure

This commit is contained in:
pancake 2012-06-13 18:15:28 +02:00
parent 62101a69b7
commit 37a492bdd0
3 changed files with 24 additions and 10 deletions

View File

@ -34,7 +34,12 @@ $(foreach p,${ALANGS},$(eval $(call ADD_lang,$(p))))
.PHONY: ${INSTALL_TARGETS} ${INSTALL_EXAMPLE_TARGETS} ${LANG}
ifeq ($(DEVEL_MODE),1)
all: supported.langs ruby perl python lua go gear gir
LANGS=$(shell cat supported.langs|sort|uniq)
all: supported.langs
@for a in ${LANGS} ; do \
[ $$a = valac ] && continue; \
(cd $$a && ${MAKE} ) ; done
supported.langs:
CC=${CC} CXX=${CXX} sh check-langs.sh
else

View File

@ -54,16 +54,23 @@ for a in lua python php5 ; do
[ -f $a/r_core_wrap.cxx ] && SUP_LANGS="$a ${SUP_LANGS}"
done
for a in valac g++ ; do
$a --help > /dev/null 2>&1
# check g++
${CXX} --help >/dev/null 2>&1
if [ $? = 0 ]; then
echo " - $a: yes"
SUP_LANGS="$a ${SUP_LANGS}"
echo " - cxx: yes ($CXX)"
SUP_LANGS="cxx ${SUP_LANGS}"
else
echo " - $a: no"
echo " - cxx: no"
fi
done
# check valac
valac --help > /dev/null 2>&1
if [ $? = 0 ]; then
echo " - valac: yes"
SUP_LANGS="valac ${SUP_LANGS}"
else
echo " - valac: no"
fi
:> supported.langs
for a in ${SUP_LANGS}; do

View File

@ -32,7 +32,7 @@ disable() {
exit 1
fi
ENABLE=""
DISABLE="echo $1 | sed -e 's/:/ /g'"
DISABLE="`echo $1 | sed -e 's/:/ /g'`"
}
MODE=""
@ -63,6 +63,10 @@ if [ -n "${DISABLE}" ]; then
rm -f .sl
fi
mv supported.langs .sl
cat .sl | sort | uniq > supported.langs
rm -f .sl
echo "Supported langs:"
cat supported.langs | sed -e 's,^, - ,'
@ -70,6 +74,4 @@ cat supported.langs | sed -e 's,^, - ,'
# check for perl
:> langs.cfg
echo "Supported langs: $(cat supported.langs)"
exit 0