mesa: cannot include AC_PROG_XXX in an if block

This is called indirectly in AC_PATH_XTRA