On Mon, Feb 25, 2008 at 06:33:29PM +0000, Andy Armstrong wrote: > On 25 Feb 2008, at 18:30, Guy Hulbert wrote: > > `which $Config{cc} --version` =~ m/$Config{gccversion}/ > >seems to "work" for all the combinations below ... but I can imagine > >that there are situations where it might not. > See also Windows, VMS, any other machine that doesn't have which.
Devel::CheckLib's _findcc() function first looks to see if the Config variable is -x-able. If it's not, it looks everywhere in the $ENV{PATH} for it, which is what 'which' is supposed to do. There's also some trickery in there for dealing with cases where $Config{cc} is "foo cc" where foo can be a shell script or similar for doing things like parallelising builds. -- David Cantrell | Cake Smuggler Extraordinaire Aluminum makes a nice hat. All paranoids will tell you that. But what most do not know Is reflections will show On the CIA's evil landsat.