configure: Set autotools baseline
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 18 Mar 2021 21:47:39 +0000 (17:47 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 19 Mar 2021 18:31:31 +0000 (14:31 -0400)
Set autotools baseline to Autoconf >= 2.69 and Automake >= 1.12 and
enable error reporting.

This is part of an effort to standardise our autotools setup across
project to simplify maintenance.

Change-Id: I1f3487d7e610b3f6f9d710ef2d1d4b7a39d7dabb
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
README.md
bootstrap
configure.ac

index 8dfd5e96a62ab2cc048e54e26a111bcc7b357894..2b89ffa0af9f35469f7839568706829a20a6d3ac 100644 (file)
--- a/README.md
+++ b/README.md
@@ -108,7 +108,7 @@ This source tree is based on the autotools suite from GNU to simplify
 portability. Here are some things you should have on your system in order to
 compile the git repository tree :
 
-  - GNU autotools (automake >=1.10, autoconf >=2.50, autoheader >=2.50)
+  - GNU autotools (automake >=1.12, autoconf >=2.69)
     (make sure your system wide `automake` points to a recent version!)
   - GNU Libtool >=2.2
     (for more information, go to http://www.gnu.org/software/autoconf/)
index 2bec3713512d2c4fab2371a3a66a5367bcb18c4a..f278ad91b1559a9a743afe903ceeb7bb9c82b275 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,8 +1,10 @@
 #!/bin/sh
+#
+# SPDX-License-Identifier: LGPL-2.1-only
 
 set -x
 if [ ! -d "config" ]; then
        mkdir config
 fi
 
-autoreconf -vi
+autoreconf -vi -W all,error
index 5dc94f39afc4bdf8aab7a41478ece34e21a3d2a3..ff5a57ea8d8de2601eeb23e4a7604092feff035a 100644 (file)
@@ -24,7 +24,7 @@ m4_define([urcu_lib_version], urcu_lib_version_current[:]urcu_lib_version_revisi
 ## Autoconf base setup ##
 ##                     ##
 
-AC_PREREQ(2.59)
+AC_PREREQ([2.69])
 AC_INIT([userspace-rcu],[urcu_version],[mathieu dot desnoyers at efficios dot com],[],[http://liburcu.org/])
 
 AC_CONFIG_HEADERS([include/config.h include/urcu/config.h])
@@ -34,11 +34,16 @@ AC_CONFIG_MACRO_DIR([m4])
 AC_CANONICAL_TARGET
 AC_CANONICAL_HOST
 
-AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip nostdinc])
+
+##                     ##
+## Automake base setup ##
+##                     ##
+
+AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip nostdinc -Wall -Wno-portability -Werror])
 AM_MAINTAINER_MODE([enable])
 
-# Enable silent rules if available (Introduced in AM 1.11)
-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+# Enable silent rules by default
+AM_SILENT_RULES([yes])
 
 AC_REQUIRE_AUX_FILE([tap-driver.sh])
 
This page took 0.026773 seconds and 4 git commands to generate.