[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: configure does not find installed Perl modules
- From: Blair Zajac <nospam@thanx>
- Date: Sun, 09 Sep 2001 15:42:03 -0700
Hi Denis,
I don't see any reasons why that won't work.
Best,
Blair
Denis Barbier wrote:
>
> On Thu, Aug 30, 2001 at 02:02:33PM -0700, Blair Zajac wrote:
> > When I use WML 2.0.7 configure with the --with-openworld option to
> > search for already installed Perl modules that WML needs, it does not
> > properly find them.
> [...]
> > --- ../wml-2.0.7-orig/config/aclocal.m4 Sun Jun 17 15:44:29 2001
> > +++ ./config/aclocal.m4 Thu Aug 30 13:47:01 2001
> > @@ -69,12 +69,12 @@
> > TMPFILE=$tmpdir/ac.$$
> > rm -f $TMPFILE
> > cat >$TMPFILE <<'EOT'
> > -eval {
> > - require $1;
> > - if ('$2' ne 'ANY') {
> > - $1->require_version('$2');
> > - }
> > -};
> > +my $string = 'use $1';
> > +if ('$2' ne 'ANY') {
> > + $string .= ' $2';
> > +}
> > +$string .= ';';
> > +eval $string;
> > if ([$]@) {
> > print "failed";
> > } else {
> [...]
>
> Hi Blair,
>
> unless you tell it does not work, I will use m4 `ifelse':
> eval { require $1 ifelse($2, ANY, , $2); };
> And also clean up some other constructs in config files.
>
> Thanks for your report
>
> --
> Denis Barbier
> WML Maintainer
> ______________________________________________________________________
> Website META Language (WML) www.engelschall.com/sw/wml/
> Official Support Mailing List sw-wml@engelschall.com
> Automated List Manager majordomo@engelschall.com
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com