automake-patches
[Top][All Lists]
Advanced

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

Re: allow convenient library in subdirectory


From: Alexandre Duret-Lutz
Subject: Re: allow convenient library in subdirectory
Date: 10 Jul 2001 10:22:29 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>> "Tim" == Tim Van Holder <address@hidden> writes:

 >> # Check that the library fits the standard naming convention.
 >> -   if ($onelib !~ /^lib.*\.a$/)
 >> +   if ($onelib !~ m%^(?:.*/)?lib[^/]*\.a$%)
 >> {
 Tim> Unless automake slashflips paths, this should probably be

 Tim> + if ($onelib !~ m%^(?:.*[\\/])?lib[^\\/]*\.a$%)

 Tim> in order to support DOS paths.

Oh, sorry I was not DOS-friendly.  My understanding is that
presently Automake isn't DOS-friendly at all.  But of course if
you are aiming at this you have to start somewhere.

 Tim> Also, if the '?:' is intended to match a DOS/Windows
 Tim> drivespec

It's not.  `?:' is a hint for Perl's regexp engine, it means that
the parenthesis are used for grouping only (no costly
backreferences).  

Any drivespec would be eaten by the `.*' part, but $onelib ought
to be a relative path anyway.

[...]

-- 
Alexandre Duret-Lutz



reply via email to

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