Re: --with-perl=/path/to/prefered/perl?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Larry Rosenman <ler(at)lerctr(dot)org>, pgsql-hackers(at)hub(dot)org
Subject: Re: --with-perl=/path/to/prefered/perl?
Date: 2000-10-25 18:59:08
Message-ID: Pine.LNX.4.21.0010252048590.790-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian writes:

> > Larry Rosenman <ler(at)lerctr(dot)org> writes:
> > > Would it be possible to add a path spec to the --with-perl configure
> > > option so that if we have 2 or more PERL versions on the system we can
> > > pick which one to use?
> >
> > Why do you need that, as opposed to just setting your PATH so that
> > configure finds the right one first?
>
> On BSD/OS, there is perl (perl4) and perl5 (perl5). You have to set the
> name of the perl executable.

The standard interface to any Autoconf configure script to override the
name of a program has always been and will always be setting environment
variables like this:

PERL=perl3 CC=cc YACC='bison -y' TCLSH=/usr/local/bin/tclsh AWK=mawk ./configure --options ...

(Okay, I lied, in Autoconf 2.50-to-be you can also put the variable
assignments after the "./configure", but that doesn't change the overall
principle.)

The idea here is that you might set some of these environment variables
permanently on your system and then every configure script you run will
use the same defaults.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-10-25 20:12:44 Re: --with-perl=/path/to/prefered/perl?
Previous Message Larry Rosenman 2000-10-25 18:26:21 Re: --with-perl=/path/to/prefered/perl?