Re: libgtop and aclocal



Gleef <gleef@capital.net> writes:

> On Fri, 1 Jan 1999 joel@unabomber.ml.org wrote:
> > Flame away if this is a common problem with an obvious solution, but I'm
> > stumped. I've been getting this problem with the latest CVS libgtop source
> > for a couple of days, and I can't find any reference to it in the mailing
> > list recently. What am I doing wrong?
> > 
> > [joel@frodo libgtop]$ make
> > cd . && aclocal -I . macros
> 
> Well, that line should be "cd . && aclocal -I . -I macros", which explains
> the error (the missing -I is critical).  Try removing config.cache and
> reruning autogen.sh.  Does that give you any errors?  Does make start
> working?

The problem is with macros/aclocal-include.m4 - it should look like this:

-----------------
# aclocal-include.m4
# 
# This macro adds the name macrodir to the set of directories
# that `aclocal' searches for macros.  

# serial 1

dnl AM_ACLOCAL_INCLUDE(macrodir)
AC_DEFUN([AM_ACLOCAL_INCLUDE],
[for k in $1 ; do ACLOCAL="$ACLOCAL -I $k" ; done])
-----------------

Then, your macros/autogen.sh should have this somewhere in it:

------------------
    macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
    ( cd $dr
      aclocalinclude="$ACLOCAL_FLAGS"
      for k in $macrodirs; do
        if test -d $k; then
          aclocalinclude="$aclocalinclude -I $k"
        ##else 
------------------

If that's the case, remove your aclocal.m4 and acinclude.m4 and rerun
autogen.sh. It should work then.

Martin

-- 
-----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier
   martin@home-of-linux.org, http://www.home-of-linux.org/
------------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]