[Top][All Lists]

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

Re: Path to binary in --help or --version

From: Paul D. Smith
Subject: Re: Path to binary in --help or --version
Date: Mon, 7 Jul 2003 22:21:24 -0400

%% "J. Grant" <address@hidden> writes:

  >> I'm not sure how you imagine this would work, or what use it would
  >> be.  If you run --version don't you already know that you have
  >> different versions?

  jg> For instance, cygwin make ver 3.80 and msys/mingw make ver 3.80,
  jg> both installed, and used by different build processes.  However,
  jg> there are problems if the alternative one is exectuted by mistake.
  jg> I would like to avoid this.

The Cygwin version of GNU make is not supported by the FSF (this list).
If their --version output is not sufficiently distinct so that you can
tell it's not the "real" GNU make, that's something you should raise
with them: it's definitely a problem.

  jg> I thought the full path could be displayed, such as "/usr/bin/make" or 
  jg> whatever.  This isnt too hard I expect.

  >> As for the other, make doesn't know its own path.  For example, make
  >> doesn't have the path used during the configure encoded anywhere in its
  >> executable: you can copy the make executable anywhere and it will still
  >> work fine.  It has no external files etc. that it needs to find.  The
  >> only thing it could do would be to emulate the way the system searches
  >> the PATH environment variable and find the first matching binary.

  jg> It does IMO, external calls to "sh", which it needs to find...
  jg> And if cygwin make finds msys/mingw sh, nothing works, etc...

The UNIX version of GNU make does not do any parsing of PATH to find the
shell: the path the shell is included fully qualified in the SHELL
variable (default value is /bin/sh).

If you have a request for the Windows port you should ask on

I'm still not very clear on why you want the path to make.  It seems to
me that checking the version value should be able to tell you much more
easily whether you have the correct version or not.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

[Prev in Thread] Current Thread [Next in Thread]