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

Message ID 1322686298-14634-4-git-send-email-jim@meyering.net
State Superseded
Headers show

Commit Message

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(-)


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])

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