diff mbox

[ndctl] autogen.sh: allow a --force to be sent to autoreconf

Message ID 1461089477-11334-1-git-send-email-vishal.l.verma@intel.com (mailing list archive)
State Accepted
Commit 26b85197a918
Headers show

Commit Message

Verma, Vishal L April 19, 2016, 6:11 p.m. UTC
From: Vishal Verma <vishal@kernel.org>

Sometimes based on your libtool version, you may see something like:

libtool: Version mismatch error.  This is libtool 2.4.2, but the
libtool: definition of this LT_INIT comes from libtool 2.4.6.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2
libtool: and run autoconf again.

which can be fixed by passing --force to autoreconf.

Let autogen.sh pass any commandline arguments on to autoreconf to allow
one to fix this.

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
 autogen.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/autogen.sh b/autogen.sh
index 2970a3b..a23cf53 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -7,7 +7,9 @@  if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
 fi
 
 $(dirname $0)/git-version-gen
-autoreconf --install --symlink
+reconf_args=''
+[ -n "$*" ] && reconf_args="$*"
+autoreconf --install --symlink $reconf_args
 
 libdir() {
         echo $(cd $1/$(gcc -print-multi-os-directory); pwd)