diff --git a/doc/Makefile.am b/doc/Makefile.am
index cbfc360e540b10de530158eac24e75d1f1278675..df74fa8ce3171eaee98fb886a19a34c7615a00bd 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,4 +1,4 @@
-# $Id: Makefile.am,v 1.43 2002/08/11 16:14:36 ceder Exp $
+# $Id: Makefile.am,v 1.44 2002/08/15 08:47:53 ceder Exp $
 # Copyright (C) 1998-1999, 2001-2002  Lysator Academic Computer Association.
 #
 # This file is part of the LysKOM server.
@@ -90,7 +90,7 @@ SUFFIXES = .texi .notab
 	## ugly.  Ban tabs.
 	$(RM) $@
 	if grep -n '	' $< /dev/null ; then echo tabs detected ; exit 1; fi
-	gawk 'length($0) > 79 {print FILENAME ":" NR ": too long line"; e=1} \
+	$(AWK) 'length($0) > 79 {print FILENAME ":" NR ": too long line"; e=1}\
 		END {exit(e)}' $<
 	echo no tabs found > $@