autoconf
[Top][All Lists]
Advanced

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

Re: Getting a list of available C compilers


From: Ralf Wildenhues
Subject: Re: Getting a list of available C compilers
Date: Sat, 31 Oct 2009 09:29:22 +0100
User-agent: Mutt/1.5.20 (2009-08-09)

Hi Harlan,

* Harlan Stenn wrote on Tue, Oct 27, 2009 at 12:39:24AM CET:
> Does anybody have (a pointer to) a small utility that will return a list
> of available C compilers on a system?

I guess you can peek at AC_PROG_CC for a list, that is of course far
from complete.

> Extra points if it can ferret out multiple instances/versions of gcc...

Question is why would you need it and what would you do with it?
What does it help you to know about a bunch of $host-gcc-X.Y if
you are not going to compile for $host?

But yes, you should be able to walk the PATH and use some glob on each
directory to find such candidates.

HTH.  Cheers,
Ralf




reply via email to

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