configure: add check for GNU indent
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Tue, 13 Jan 2015 10:02:27 +0000 (11:02 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 14 Jan 2015 11:52:22 +0000 (12:52 +0100)
commitefef6c828092702b1f928f98d15fb90b4544a85c
treeb3b1c4eb8a652844af1efac64b04ae190671abe3
parent6d43a4c33864ae66a92b1d893f4400b7fa7f8a41
configure: add check for GNU indent

Only GNU indent is supported when indenting autogenerated format_pack.c
and format_unpack.c files. Some non-GNU indent (Mac OS X and FreeBSD)
add extra whitespaces than break the build of those files.

Fallback to 'cat' if a non-GNU indent is found.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=88335
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
configure.ac