doc: Generate chunked manual

This commit makes use of a2x in order to generate a chunked manual in
addition to the "all in one page" one.
Fix --without-sasl build

There are 2 SASL-related function prototypes which are unused in the
--without-sasl case. They cause a warning, and a build failure
when using -Werror. Wrapping them in #if HAVE_SASL avoids this issue.
build-sys: Fix VPATH builds

Fixing this is a matter of picking the spice-common fix to generate the
(de)marshaller source files in the right place, and to adjust the compiler
flags to look for includes in the build directory as well.
Introduce reds_stream_async_read() helper

This will allow to make RedsStream::async_read private
Add reds_stream_set_async_error_handler() helper

This replaces async_read_set_error_handler() which was unused. This sets a
callback to be called when an async operation fails.

We could pass the error_handler to each reds_stream_async_read() call, but as
we will be using the same one for all async calls, it's more convenient to set it
once and for all.
AsyncRead is going to be private to reds_stream.c in one of the next
commits, and the error handler will need to be set from reds.c,
hence the move to a public RedsStream method.
Call AsyncRead variables 'async' instead of 'obj'

This is a more explicit name.
Remove RedLinkInfo::async_read

9feed69 moved the async reader code to RedsStream so that it can be used
for the SASL authentication code. In particular, it introduced a
RedsStream::async_read member which is used by the SASL authentication code
for its async operations.

However, what was not done is to remove the now redundant
RedLinkInfo::async_read field. This causes failures when using SASL
authentication as the async read error callback is getting set
on the RedLinkInfo::async_read structure, but then the SASL code is trying
to use the RedeStream::async_read structure for its async IOs, which do not
have the needed error callback set.

This commit makes use of the newly introduced reds_stream_async_read()
helper in order to make use of RedsStream::async_read.
Make struct AsyncRead/async_read_handler private

All users are now contained in reds_stream.c
Add G_GNUC_UNUSED annotations to async_read_handler args

2 of the arguments are not used, the G_GNUC_UNUSED annotation will make
this explicit.
Call correct SASL helper in reds_handle_auth_sasl_step

sasl_handle_auth_start() was called instead of reds_sasl_handle_auth_step()
Add missing buffer (re)allocation to reds_sasl_handle_auth_steplen()

We need to make sure we have a buffer big enough to accomodate the data
sent by the coming SASL step.
Fix submodule reference
Use PRI macros in printf to keep compatibility between 32/64bit system

gcc's some integer type definitions are different between 32/64bit system.
This causes platform dependency problem with printf function. However,
we can avoid this problem by using PRI macros that supports platform
independent printf.
docs: Fix make distcheck
server: use a warning when disconnecting unresponsive client

The debug level is not visible by default, since it is an unsolicited
server behaviour, make it a warning.
Update NEWS
Update 'release' instructions in configure.ac

The instructions are obsolete, replace them with the explanation about
how to handle current/revision/age from libtool manual:
https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
Update libtool version information for 0.12.5 release
Fix make failed when uncommented COMPRESS_STAT in red_worker.c

https://bugs.freedesktop.org/show_bug.cgi?id=79246
As a developer, I maybe want to see the detail compress stat of spice, like this:
Method   	  count  	orig_size(MB)	enc_size(MB)	enc_time(s)
QUIC     	     846	       948.02	      147.22	        7.51
GLZ      	    2895	       594.90	       26.60	        1.33
ZLIB GLZ 	       0	         0.00	        0.00	        0.00
LZ       	       1	         3.15	        0.01	        0.00
JPEG     	       0	         0.00	        0.00	        0.00
JPEG-RGBA	       0	         0.00	        0.00	        0.00
----------------------------------------------------------------------------
Total    	    3742	      1546.07	      173.83	        8.84

But when I uncommented the COMPRESS_STAT and COMPRESS_DEBUG in red_worker.c and make.
I got some error(in Bugzilla). This error because of some simple syntax errors.
Commit this patch to fix this issue.

Signed-off-by: Wang Qiang <wangqiang.hunan@gmail.com>
Fix assert in mjpeg_encoder_adjust_params_to_bit_rate()

If mjpeg_encoder_reset_quality() is called with the same quality as currently
set, it will not reset last_enc_size but not reset num_recent_enc_frames,
violating some assumptions in _adjust_params_to_bit_rate(). To avoid aborting
the server, simply return early from this function.

Resolves: rhbz#1086820