Patchwork [3/8] build: avoid automake warnings about AM_PROG_AR requirement

login
register
mail settings
Submitter Jim Meyering
Date Nov. 30, 2011, 8:51 p.m.
Message ID <1322686298-14634-4-git-send-email-jim@meyering.net>
Download mbox | patch
Permalink /patch/128569/
State Superseded
Headers show

Comments

Jim Meyering - Nov. 30, 2011, 8:51 p.m.
From: Jim Meyering <meyering@redhat.com>

* configure.ac: Use AM_PROG_AR (must precede LT_INIT).
Without this, when using what will soon be automake-1.11.2, we'd
get a warning like this for each .a file:
  automake: warnings are treated as errors
  /usr/share/automake-1.11a/am/library.am: warning: `libadmin.a':\
    linking libraries using a non-POSIX
  /usr/share/automake-1.11a/am/library.am: archiver requires \
    `AM_PROG_AR' in `configure.ac'
  src/libadmin/Makefile.am:26:   while processing library `libadmin.a'
---
 configure.ac |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/configure.ac b/configure.ac
index 2a2052f..6e84293 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,8 @@  AC_CONFIG_SRCDIR([src])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])

+AM_PROG_AR
+
 # Automake and libtools initialization
 LT_INIT
 AM_INIT_AUTOMAKE([-Wall -Werror silent-rules])