[libvirt] [PATCH 1/2] maint: use modern autoconf idioms

Eric Blake eblake at redhat.com
Wed Jul 31 22:48:42 UTC 2013


Autoconf 2.59 says that AC_OUTPUT with arguments is obsolete,
and we are already using the replacement for some, but not all,
of our output files.

* configure.ac (AC_OUTPUT): Rewrite to use AC_CONFIG_FILES.

Signed-off-by: Eric Blake <eblake at redhat.com>
---
 configure.ac | 42 ++++++++++++++++++++++--------------------
 1 file changed, 22 insertions(+), 20 deletions(-)

diff --git a/configure.ac b/configure.ac
index 084d864..a155790 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2440,26 +2440,28 @@ AC_DEFINE_UNQUOTED([base64_encode_alloc],[libvirt_gl_base64_encode_alloc],[Hack

 AC_CONFIG_FILES([run],
                 [chmod +x,-w run])
-AC_OUTPUT(Makefile src/Makefile include/Makefile docs/Makefile \
-	  docs/schemas/Makefile \
-	  gnulib/lib/Makefile \
-	  gnulib/tests/Makefile \
-          libvirt.pc libvirt.spec mingw-libvirt.spec \
-          po/Makefile.in \
-	  include/libvirt/Makefile include/libvirt/libvirt.h \
-	  python/Makefile \
-          daemon/Makefile \
-          tools/Makefile \
-          tests/Makefile \
-          examples/apparmor/Makefile \
-          examples/domain-events/events-c/Makefile \
-          examples/domsuspend/Makefile \
-          examples/dominfo/Makefile \
-          examples/openauth/Makefile \
-          examples/python/Makefile \
-          examples/hellolibvirt/Makefile \
-          examples/systemtap/Makefile \
-          examples/xml/nwfilter/Makefile)
+AC_CONFIG_FILES([\
+        Makefile src/Makefile include/Makefile docs/Makefile \
+        docs/schemas/Makefile \
+        gnulib/lib/Makefile \
+        gnulib/tests/Makefile \
+        libvirt.pc libvirt.spec mingw-libvirt.spec \
+        po/Makefile.in \
+        include/libvirt/Makefile include/libvirt/libvirt.h \
+        python/Makefile \
+        daemon/Makefile \
+        tools/Makefile \
+        tests/Makefile \
+        examples/apparmor/Makefile \
+        examples/domain-events/events-c/Makefile \
+        examples/domsuspend/Makefile \
+        examples/dominfo/Makefile \
+        examples/openauth/Makefile \
+        examples/python/Makefile \
+        examples/hellolibvirt/Makefile \
+        examples/systemtap/Makefile \
+        examples/xml/nwfilter/Makefile])
+AC_OUTPUT

 AC_MSG_NOTICE([])
 AC_MSG_NOTICE([Configuration summary])
-- 
1.8.3.1




More information about the libvir-list mailing list