Re: Conditional compiling?

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

 



Hi Ralf, Daniel,

* Ralf Corsepius wrote on Wed, Dec 21, 2005 at 08:43:00AM CET:
> On Wed, 2005-12-21 at 09:12 +0200, Daniel Pekelharing wrote:
> > 
> > I have some parts of my app which I want to be optional, so if the user
> > doesn't have library x then just compile without some features.
> > 
> > I figure with single isolated calls I should just surround them with
> > #ifdef statements, but I have also a couple of entire c files dedicated
> > to them...
> > Should I just #ifdef the entire c file?
> That's one possibility.

But not strictly portable -- ISO C forbids empty translation units,
so add at least a dummy.

The automake conditional method is fine, of course.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux