#
# Checks for Python and tries to get the include path to 'Python.h', and
# the libpython library.
-# It provides the $(PYTHON_CFLAGS) $(PYTHON_LIBS) output variables.
+# It provides the $(PYTHON_CFLAGS) $(PYTHON_LIBS) output
+# variables.
AC_DEFUN([PYTHON_DEVEL],
[
AC_REQUIRE([AM_PATH_PYTHON])
for i in "$python_prefix/include/python$PYTHON_VERSION/" \
"$python_prefix/include/python/" "$python_prefix/"
do
- python_path=`find $i -type f -name Python.h -print`
+ python_path=`find $i -type f -name Python.h -print 2> /dev/null`
test "$python_path" && break
done
for i in $python_path