Patchwork [1/5] libtool: Fix libtool warnings

login
register
mail settings
Submitter Chuck Lever
Date June 3, 2013, 3:44 p.m.
Message ID <20130603154440.37741.52202.stgit@manray.1015granger.net>
Download mbox | patch
Permalink /patch/248321/
State Accepted
Headers show

Comments

Chuck Lever - June 3, 2013, 3:44 p.m.
When building 0.9 on Fedora 18, I get these warnings from
autogen.sh:

/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libadmin.la':
   linking libtool libraries using a non-POSIX
/usr/share/automake-1.12/am/ltlibrary.am: archiver requires
   'AM_PROG_AR' in 'configure.ac'
src/libadmin/Makefile.am:26:   while processing Libtool library
   'libadmin.la'

Some web searching suggests this is a problem introduced by automake
1.12 after support for building in Microsoft environments was added,
but the true issue is caused by libtool, and can be addressed by
a one-line change to configure.ac.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 configure.ac |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/configure.ac b/configure.ac
index 0cc81af..deb457a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,7 @@  AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
 
 # Automake and libtools initialization
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 LT_INIT
 AM_INIT_AUTOMAKE([-Wall -Werror silent-rules])