autoconf-patches
[Top][All Lists]
Advanced

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

Re: include bindir in AUTOM4TE default


From: Alexandre Duret-Lutz
Subject: Re: include bindir in AUTOM4TE default
Date: 05 Dec 2001 14:08:33 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

>>> "Ralf" == Ralf Corsepius <address@hidden> writes:

 Ralf> Am Mit, 2001-12-05 um 12.20 schrieb Jens Petersen:
 >> Ralf Corsepius <address@hidden> writes:
 >> 
 >> > Am Mit, 2001-12-05 um 10.53 schrieb Akim Demaille:
 >> > > >>>>> "juhp" == Jens Petersen <address@hidden> writes:
 >> > > 
 >> > > >> * bin/autoconf.in (AUTOM4TE): Prefix with bindir, so that autoconf
 >> > > >> runs even when it is installed outside the current PATH.

[...]

 >> > > I'm not in favor of it.  I believe that the principle of least
 >> > > surprise means obeying to the PATH.  In the past, autoconf has had
 >> > > problems because of hard coded paths.
 >> 
 >> Ok, but isn't there also the risk of getting a different
 >> version of autom4te ahead in the path relative to the
 >> desired version?
 Ralf> Yes, this risk is present and actually is very easy to run into if
 Ralf> having different versions of autoconf installed to different PREFIXes.

[...]

What about something like this:

  if test -z "$AUTOM4TE"; then
    AUTOM4TE = `echo "$0" | sed s/@address@hidden/@autom4te-name@/`
  fi

or

  dir=`echo "$0" | sed -e 's,[^\\/]*$,,'`
  : address@hidden@}

That should obey PATH if the user typed `autoconf', but
use `/mumble/autom4te' whenever the user ran `/mumble/autoconf'.
-- 
Alexandre Duret-Lutz



reply via email to

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