On 08.05.2016 06:27, Blaxton wrote: > autogen.sh is producing wrong path to aclocal: > > autogen.sh[83]: /bin/../share/aclocal: not found > /libtool.m4 not found (try setting the LIBTOOL_M4 environment variable) > > I have checked autogen.sh: > below line determine location of libtoolize : > libtoolize="`./build/PrintPath glibtoolize libtoolize glibtoolize1 > libtoolize15 libtoolize14`" > which in my system is > /bin/libtoolize and it is symlinked to /opt/freeware/bin/libtoolize > > then below line set ltpath to bin rather than /opt/freeware/bin > ltpath="`dirname $libtoolize`" > > and below line: > if [ -d "$ltpath/../share/aclocal/." ]; then > ltm4=`cd "$ltpath/../share/aclocal" && pwd` > > throws below error: > autogen.sh[83]: /bin/../share/aclocal: not found > /libtool.m4 not found (try setting the LIBTOOL_M4 environment variable) > > how can I fix this ? > Do I need to change the autogen or I can pass a variable to autogen.sh ?
Well, _did_ you try setting the LIBTOOL_M4 envrironment variable, like the error message suggests? Something like: env LIBTOOL_M4=/opt/freeware/share/aclocal ./autogen.sh -- Brane