[LLVMdev] Trouble with sample project's autoconf

me22 me22.ca at gmail.com
Fri Feb 23 13:12:36 PST 2007


On 2/23/07, Reid Spencer <rspencer at reidspencer.com> wrote:
> > However, if I run the AutoRegen.sh script (after modifying it to
> > accept autoconf 2.61, which I think is fine as gentoo slots it the
> > same as the 2.5[0-9] versions), the configure no longer works:
> > ~/programming/llvm-1.9/projects/zhe $ cd autoconf/
> > ~/programming/llvm-1.9/projects/zhe/autoconf $ ./AutoRegen.sh
> > Regenerating aclocal.m4 with aclocal
> > /usr/share/aclocal/sdlmm.m4:12: warning: underquoted definition of AM_PATH_SDLMM
> > /usr/share/aclocal/sdlmm.m4:12:   run info '(automake)Extending aclocal'
> > /usr/share/aclocal/sdlmm.m4:12:   or see
> > http://sources.redhat.com/automake/automake.html#Extending-aclocal
>
> This one is because you're using 2.61. This kind of thing i why we
> *strongly* recommend people to use only the exact version of autoconf,
> libtool and automake that LLVM uses. There's obviously a difference in
> your aclocal that isn't handling the AM_PATH_SDLMM macro correctly.
>
Well, I went and installed autoconf 2.59 (the only autoconf 2.5x
available in Gentoo), but I still get the same thing:

~/programming/llvm-cvs $ cd projects/
~/programming/llvm-cvs/projects $ cp -a sample/ zhe
~/programming/llvm-cvs/projects $ cd zhe/
~/programming/llvm-cvs/projects/zhe $ ./configure
configure: creating ./config.status
config.status: creating Makefile.common
config.status: executing setup commands
config.status: executing Makefile commands
config.status: executing lib/Makefile commands
config.status: executing lib/sample/Makefile commands
config.status: executing tools/Makefile commands
config.status: executing tools/sample/Makefile commands
~/programming/llvm-cvs/projects/zhe $ cd autoconf/
~/programming/llvm-cvs/projects/zhe/autoconf $ ./AutoRegen.sh
Regenerating aclocal.m4 with aclocal
/usr/share/aclocal/sdlmm.m4:12: warning: underquoted definition of AM_PATH_SDLMM
/usr/share/aclocal/sdlmm.m4:12:   run info '(automake)Extending aclocal'
/usr/share/aclocal/sdlmm.m4:12:   or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
Regenerating configure with autoconf 2.5x
~/programming/llvm-cvs/projects/zhe/autoconf $ cd ..
~/programming/llvm-cvs/projects/zhe $ ./configure
configure: error: cannot find install-sh or install.sh in
../../../autoconf ./../../../autoconf
~/programming/llvm-cvs/projects/zhe $ autoconf --version
autoconf (GNU Autoconf) 2.59

What are the exact versions of libtool and automake that LLVM uses? I have
~/programming/llvm-cvs $ libtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
And Gentoo is set up with a script that tries to run the correct
automake by looking at aclocal.m4, Makefile.in, env variables, and
such, so I have all of automake 1.4, 1.5, ..., 1.9, and 1.10.

> Assuming that your /programming/llvm-1.9 directory contains llvm 1.9, it
> should have found it in /programming/llvm-1.9/autoconf/install-sh. Check
> to make sure that that directory and file are there. If it is there,
> then its some kind of bug.
>
install-sh is most definitely there:
~/programming/llvm-cvs $ ls autoconf/install-sh
autoconf/install-sh

However, configure seems to be looking for it in one directory too
low.  The ../../.. is correct from the autoconf directory, but
obviously not the directory in which configure is run.  I've tried
changing it to ../.. in configure.ac, but AutoRegen.sh overwrites it.

Thanks for the help Reid,
Scott McMurray



More information about the llvm-dev mailing list