diff --git a/autogen.sh b/autogen.sh
index e8e26cec65e1efcc6fcccaf8a890e1a6484d9319..164d1653ae8c53ca978ff445a166138c9fb60d09 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Generate configure & friends for CVS users.
 
+autoheader
 aclocal -I ./m4
 automake --add-missing
-autoheader
 autoconf