On Thu, Jun 13, 2019 at 03:53:10AM -0700, Hugo van der Sanden via RT wrote: > On Wed, 12 Jun 2019 21:10:30 -0700, tonyc wrote: > > clang might not be called clang. > > > > For example, I installed clang and no gcc on a clean Ubuntu and > > /usr/bin/cc was an alias for clang, so a default Configure used "cc". > > > > The attached tries to detect if $cc is clang or if clang is available > > in PATH (and works-for-me). > > The first stanza looks good to me, but for the second stanza I'm not sure it's safe to invoke some arbitrary program called clang in your path if you haven't requested it. We do it for gcc. TonyThread Previous | Thread Next