extend libiberty

Heiko <[email protected]> Sat, 13 Dec 2025 17:03:26 +0100
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
Hello,

I am trying to extend libiberty with a new function.

When I do
cd gcc/libiberty
../configure --enable-maintainer-mode
make maint-deps

I get
Makefile:376: *** missing separator.  Stop.

It seems, there is a problem in the generated Makefile.
Line 376 reads
@HAVE_PERL@    $(PERL) $(srcdir)/gather-docs $(srcdir) 
$(srcdir)/functions.texi $(CFILES) $(TEXIFILES)

So I manually removed @HAVE_PERL@ and rerun 'make maint-deps'.
Then I get
make: *** No rule to make target '../../config/acx.m4', needed by 
'../aclocal.m4'.  Stop.

I am using autoconf 2.72.

Any hints, what I am doing wrong?

Thanks,
Heiko