diff --git a/xlhtml/Makefile.am b/xlhtml/Makefile.am
index f88e383..519715c 100644
--- a/xlhtml/Makefile.am
+++ b/xlhtml/Makefile.am
@@ -12,7 +12,7 @@ LDADD = ../cole/libcole.a
xlhtml_SOURCES = support.c xlhtml.c html.c ascii.c xml.c
xldump_SOURCES = xldump.c
xlcdump_SOURCES = xlcdump.c
-AM_CFLAGS = -Wall -Wshadow -Wcast-align -Wpointer-arith
+AM_CFLAGS = -Wall -Wshadow -Wcast-align -Wpointer-arith
support.o: version.h
doc:
diff --git a/xlhtml/Makefile.in b/xlhtml/Makefile.in
index 5f68fc2..3f2a8a6 100644
--- a/xlhtml/Makefile.in
+++ b/xlhtml/Makefile.in
@@ -86,7 +86,7 @@ LDADD = ../cole/libcole.a
xlhtml_SOURCES = support.c xlhtml.c html.c ascii.c xml.c
xldump_SOURCES = xldump.c
xlcdump_SOURCES = xlcdump.c
-AM_CFLAGS = -Wall -Wshadow -Wcast-align -Wpointer-arith
+AM_CFLAGS = -ansi -pedantic -Wall -Wshadow -Wcast-align -Wpointer-arith
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =