python-sip: Check for python-dev prereq

git-svn-id: svn://svn.openwrt.org/openwrt/packages@23597 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mb 2010-10-23 20:16:12 +00:00
parent 62be5cb5de
commit 8b012c8faa

View File

@ -127,7 +127,16 @@ define Host/Install
install
endef
#TODO check for host python-dev headers.
define Require/python2-dev
[ -e /usr/include/Python.h ] || \
[ -e /usr/include/python/Python.h ] || \
[ -e /usr/include/python2.5/Python.h ] || \
[ -e /usr/include/python2.6/Python.h ]
endef
$(eval $(call Require,python2-dev, \
Please install Python 2.x headers (python-dev) \
))
$(eval $(call RequireCommand,python, \
Please install Python 2.x \