diff --git a/texi2html.spec b/texi2html.spec
index b84cfbd..6f023b1 100644
--- a/texi2html.spec
+++ b/texi2html.spec
@@ -26,7 +26,7 @@ output not specified in the Texinfo input file to be specified.
install -m 644 %{SOURCE1} i18n/ja
%build
-export CFLAGS="$RPM_OPT_FLAGS"
+./autogen.sh
%configure
make clean
make %{?_smp_mflags}
@@ -64,8 +64,8 @@ fi
%{_datadir}/%{name}/images/*
%changelog
-* Fri Feb 22 2005 Jindrich Novy 1.76-2
-- add $RPM_OPT_FLAGS to CFLAGS
+* Tue Feb 22 2005 Jindrich Novy 1.76-2
+- reintroduce autogen.sh
* Fri Feb 18 2005 Jindrich Novy 1.76-1
- we have separate texi2html package now (#121889)