Commit 2224fb60 authored by Kenneth Graunke's avatar Kenneth Graunke

automake: Check for 'indent' and fall back to 'cat' if not found.

The glapi generator code uses indent to produce more readable code.
However, we don't want to make GNU indent a hard build dependency; check
for it in and fall back to 'cat' if it's not available.

Bugzilla: default avatarKenneth Graunke <>
Reviewed-by: default avatarMatt Turner <>
Acked-by: default avatarBen Widawsky <>
parent ff3eef1a
......@@ -64,6 +64,10 @@ NM = @NM@
# Perl
# Indent (used for generating dispatch tables)
# Python and flags (generally only needed by the developers)
......@@ -72,6 +72,11 @@ AC_PROG_LEX
AC_PATH_PROG([PERL], [perl])
AC_CHECK_PROG(INDENT, indent, indent, cat)
if test "x$INDENT" != "xcat"; then
AC_SUBST(INDENT_FLAGS, '-i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool')
dnl Our fallback install-sh is a symlink to minstall. Use the existing
dnl configuration in that case.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment