[libvirt] [libvirt-snmp][PATCH 3/3] configure: Prevent autoreconf from installing `compile' file

Michal Privoznik mprivozn at redhat.com
Wed Sep 5 08:55:40 UTC 2018


When running autoreconf, it installs this `compile' file which
triggers my OCD. It appears that our configure script can be
modernized a bit which makes it stop.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 configure.ac | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index f520927..c8df41d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,8 +1,12 @@
 AC_INIT([libvirt-snmp],[0.0.3],[libvir-list at redhat.com],[],[http://libvirt.org])
-AM_INIT_AUTOMAKE([-Wall -Werror])
+AC_CONFIG_SRCDIR(src/libvirtSnmp.c)
+AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([-Wall -Werror])
 
-AC_PREREQ([2.50])
+AC_CANONICAL_HOST
+
+AM_SILENT_RULES([yes])
 
 AC_PROG_CC
 AM_PROG_CC_C_O
-- 
2.16.4




More information about the libvir-list mailing list