delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/19/00:52:44

Date: Tue, 19 Nov 2002 07:52:31 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Ed Manlove <emanlove AT ieee DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: Autoconf can't find m4
In-Reply-To: <rocC9.703$HY7.248001645@news.netcarrier.net>
Message-ID: <Pine.SUN.3.91.1021119074644.10110C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 18 Nov 2002, Ed Manlove wrote:

> I am getting the following error in building a cross compiler.  It states
> autoconf can't find m4 but it is in my bin directory and my path is there?
> Any ideas?
> [...]
> make.exe[1]: Entering directory `c:/djgpp/gnu/gcc-2.952/build.djg/gcc'
> cd ../../gcc; autoconf
> autoconf: Autoconf requires GNU m4 1.4 or later
> make.exe[1]: *** [../../gcc/configure] Error 1

Sorry for asking the obvious: you do have Autoconf installed, right?

If you do, the next things I'd suggest to look into are:

  - Is m4.exe a DJGPP port?  If not, perhaps Autoconf invokes it in a way 
    that fails due to compatibility problems (such as long command lines).
    Or maybe the m4 you have is not version 1.4 or later (type 
    "m4 --version" and see what it says).

  - Do you have Perl and Bash installed?  IIRC, Autoconf is a Perl 
    script, so it requires Perl and Bash.

  - Finally, find out what code fragment in Autoconf prints the above 
    error message and try to figure out why could it fail.  If you cannot 
    figure that out, post the failing fragment here and someone will help 
    you out.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019