[Mesa-dev] [PATCH v2] automake: Add AM_PROG_AR before LT_INIT to silence a lot of warnings.

Kenneth Graunke kenneth at whitecape.org
Sun Jun 10 09:19:03 PDT 2012


The warnings appear to occur with newer automake (probably 1.12).

v2: Use m4_ifdef like Eric suggested (it looks like AM_PROG_AR is necessary
    with automake 1.12 but not recognized in older versions...); also add
    the resulting bin/ar-lib to .gitignore.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 bin/.gitignore |    1 +
 configure.ac   |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/bin/.gitignore b/bin/.gitignore
index 2ee67a6..dfaa6d3 100644
--- a/bin/.gitignore
+++ b/bin/.gitignore
@@ -5,3 +5,4 @@ install-sh
 /missing
 ylwrap
 compile
+ar-lib
diff --git a/configure.ac b/configure.ac
index fb7c4a6..43cb2b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,8 @@ echo \#buildapi-variable-no-builddir >/dev/null
 # to make
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+
 LT_PREREQ([2.2])
 LT_INIT([disable-static])
 
-- 
1.7.10.4



More information about the mesa-dev mailing list