Allow empty pythonincdir option

The include path options can be empty if the python is installed in
the standard header path.  So, configure shouldn't check its emptiness.
This commit is contained in:
Takashi Iwai 2007-08-31 16:41:19 +02:00
parent b04d1e18e4
commit e23317de39

View File

@ -350,7 +350,7 @@ if test "$build_python" = "yes"; then
AS_HELP_STRING([--with-pythonincdir=dir],
[specify python C header files (-I/usr/include/python)]),
pythonincdir="$withval", pythonincdir=`python-config --includes`)
if test -z "$pythonlibs" -o -z "$pythonincdir"; then
if test -z "$pythonlibs"; then
echo "Unable to determine python libraries! Probably python-config is not"
echo "available on this system. Please, use --with-pythonlibs and"
echo "--with-pythonincdir options. Python components are disabled in this build."