Hello,

Bug 89328 [0] shows that Mesa releases will not build without python.
If there is no python installed in the system, the build's
configuration step is going to fail due to python mako module check.

The idea behind this patch is to disable the python mako module check
when python is not installed in the system: if it needs to do something
with python, it is going to fail anyway.

Emil suggested another way of doing the same: the macro will set a
variable that we check in configure. Something like:

   PYTHON_MAKO_REQUIRED=0.3.4
   AX_CHECK_PYTHON_MAKO_MODULE($PYTHON_MAKO_REQUIRED)
   if test -n "$PYTHON2" -a $foo_mako_found = no; then
       AC_MSG_ERROR([Python mako module v$PYTHON_MAKO_MODULE not found])
   fi

Which one do you prefer? Is there a better solution for this?

Thanks,

Sam

[0] https://bugs.freedesktop.org/show_bug.cgi?id=89328

Samuel Iglesias Gonsalvez (1):
  configure.ac: Don't check for python mako module if python is not
    installed

 configure.ac | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

-- 
2.1.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to