On Thu, Sep 18, 2003 at 06:54:10AM -0000, Iain Truskett wrote:
> I was wondering if there was a nice recipe to determine
> whether a C compiler is available. The various modules I looked at
> that have both XS and pure perl implementations don't seem to
> have any sort of standard method of determination.
> 
> Runtime isn't a problem since the C based implementation would have a
> different name from the Perl one, but I don't know a recommended way to
> work out whether to bother compiling at 'make' time.

Filter::cpp has a reasonable heuristic.  ExtUtils::Embed's tests probably
have one, too.


-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
Fuck with me and I will saw off your legs.
        http://www.unamerican.com/

Reply via email to