I am trying to run an autogen.sh script and am receiving the following error:
checking for correct ltmain.sh version... no
*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.24, ltmain.sh = 1.5.22) ***
libtoolize --copy --force
if appropriate, please contact the maintainer of this
package (or your distribution) for help.
I tried running libtoolize --copy --force
as it said and received the following message:
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
I tried reinstalling m4, autoconf, libtool, and make. No dice.
So then I tried copying /usr/share/libtool/ltmain.sh
into the build directory, to overwrite the ltmain.sh that was in there. Now autogen.sh
gets through without errors.
I've never had to do this before,though (copying ltmain.sh). Is this something that is normally done automatically? How do I fix it?