[mpich-discuss] Bug in autogen.sh selects wrong version of libtoolize and gives bogus error message

William Gropp wgropp at illinois.edu
Wed Mar 14 16:31:59 CDT 2018


This code is incorrect

    if test -z "${LIBTOOLIZE+set}" && ( glibtoolize --version ) >/dev/null 2>&1
; then
        libtoolize=glibtoolize
    else
        libtoolize=${LIBTOOLIZE:-libtoolize}
    fi

because it selects glibtoolsize over libtoolize, even if autoconf etc. have been installed by the user (me in this case) ahead of the ones defined by the operating system (MacOS in my case).  Even worse, it then tells me:

Checking if autotools are in the same location... no
        autoconf is in /Users/gropp
        automake is in /Users/gropp
        libtool  is in /opt/local

But here’s what I get:

wdg-macbook: gropp$ which autoconf
/Users/gropp/bin/autoconf
wdg-macbook: gropp$ which automake
/Users/gropp/bin/automake
wdg-macbook: gropp$ which libtool
/Users/gropp/bin/libtool
wdg-macbook: gropp$

So: autogen.sh claims the libtool in the path is in /opt/local , which it is not, and
autogen.sh claims that the tools are in directories that they are not in (it always dropped “bin” - there is no requirement that the directory path end in bin.

I can work around these errors by setting LIBTOOLIZE, but I should not need to do that and I had to debug autogen.sh to discover what it really wanted. 

Bill

William Gropp
Director and Chief Scientist, NCSA
Thomas M. Siebel Chair in Computer Science
University of Illinois Urbana-Champaign






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20180314/32c97646/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list