[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Configure for non-gcc compiler
From: |
Mike Frysinger |
Subject: |
Re: Configure for non-gcc compiler |
Date: |
Thu, 18 Apr 2013 14:20:22 -0400 |
User-agent: |
KMail/1.13.7 (Linux/3.8.3; KDE/4.6.5; x86_64; ; ) |
On Thursday 18 April 2013 14:06:12 A.P. Horst wrote:
> been trying my way in autotools land for a short while now, and I must
> say, it works like a charm.
> But there is one thing I've been breaking my head on for a while now.
> Many of my projects use GCC, some use a totally different compiler and
> worse, some are mixed. How do I go about that with autoconf? Is there an
> easy way to 'add' a compiler to check for? Or a hard way?
> If somebody could give me some handles to work with, I would be very
> thankful. My searches on the internet have turned up squat, bit might be
> I didn't use the magic combo of keywords.
check out this project:
http://www.gnu.org/software/autoconf-archive/
it includes a lot of macros like doing compiler/linker checks
if you want to be lazy, there is a $GCC var that autoconf sets up so it's not
uncommon for packages to do:
AS_IF([test "$GCC" = "yes"], [dnl
...
])
-mike
signature.asc
Description: This is a digitally signed message part.