Patchwork [Open-FCoE,3/4] build: Add AM_PROG_AR to configure.ac

login
register
mail settings
Submitter Robert Love
Date May 9, 2013, 9:56 p.m.
Message ID <20130509215638.7036.50594.stgit@fritz>
Download mbox | patch
Permalink /patch/36/
State Accepted
Headers show

Comments

Robert Love - May 9, 2013, 9:56 p.m.
This tells automake to use an external linker (to create the libutil.a archive). It resolves the following warning:

[rwlove@vmF18 fcoe-utils]$ ./bootstrap.sh
automake: warnings are treated as errors
/usr/share/automake-1.12/am/library.am: warning: 'lib/libutil.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:33:   while processing library 'lib/libutil.a'
/usr/share/automake-1.12/am/library.am: warning: 'libopenfcoe.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:33:   while processing library 'libopenfcoe.a'
autoreconf: automake failed with exit status: 1

Signed-off-by: Robert Love <robert.w.love@intel.com>
---
 configure.ac |    3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/configure.ac b/configure.ac
index 6d884e5..9d8f25e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,9 @@ 
 AC_INIT([fcoe-utils], [1.0.27], [fcoe-devel@open-fcoe.org])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
+AM_PROG_AR
+AM_INIT_AUTOMAKE([foreign])
+
 AC_PROG_CC
 AM_PROG_CC_C_O
 AC_PROG_RANLIB