From: Maurice L. <mj...@ga...> - 2003-03-25 19:23:39
|
Rafael Laboissiere writes: > * Alan W. Irwin <ir...@be...> [2003-03-25 06:33]: > > > Following up on Maurice's later comment: Rafael, would it be straightforward > > to supply a default for this -I option consisting of appending > > '../share/libtool/libltdl/' to the results of `which libtool`? I believe > > such a default would take care of most if not all of our needs so we would > > could simply invoke ./bootstrap.sh without parameters most of the time. > > Please, tell me what this shell snippet gives for you: > > prefix=`which libtool | sed 's:/bin/libtool::'` > if test -n "$prefix" ; then > acdir=${prefix}/share/libtool/libltdl > if test -d $acdir ; then > if test -f ${acdir}/aclocal.m4 ; then > aclocal_opts="-I $acdir" > fi > fi > fi > echo aclocal_opts: $aclocal_opts > > If this works, I will integrate it into bootstrap.sh. Works for me: aclocal_opts: -I /home/mjl/local/SunOS/share/libtool/libltdl -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |