use AC_CONFIG_FILES to avoid outputting files over and over
authorMike Frysinger <vapier@gentoo.org>
Sun, 20 Dec 2009 14:09:59 +0000 (09:09 -0500)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 21 Dec 2009 08:44:58 +0000 (09:44 +0100)
The current configure ends up generating a lot of common files multiple
times because it calls AC_OUTPUT multiplte times.  The right way to do
this is call AC_CONFIG_FILES multiple times and AC_OUTPUT once.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

configure.in

index a30e7eb..f00d70c 100644 (file)
@@ -140,9 +140,11 @@ fi
 AC_SUBST(LIBFTDI_MODULES)
 AC_SUBST(LIBFTDI_MODULES_PKGCONFIG)
 
-AC_OUTPUT([libftdi-config],[chmod a+x libftdi-config])
-AC_OUTPUT(Makefile src/Makefile bindings/Makefile bindings/python/Makefile bindings/python/setup.py examples/Makefile doc/Doxyfile doc/Makefile libftdi.pc libftdi.spec)
+AC_CONFIG_FILES([libftdi-config],[chmod a+x libftdi-config])
+AC_CONFIG_FILES(Makefile src/Makefile bindings/Makefile bindings/python/Makefile bindings/python/setup.py examples/Makefile doc/Doxyfile doc/Makefile libftdi.pc libftdi.spec)
 
 if test "x$ENABLE_LIBFTDIPP" = "x1"; then
-    AC_OUTPUT(ftdipp/Makefile libftdipp.pc)
+    AC_CONFIG_FILES(ftdipp/Makefile libftdipp.pc)
 fi
+
+AC_OUTPUT