[Top][All Lists]

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


From: Bob Lockie
Subject: Re: AC_DEFINE
Date: Fri, 14 Mar 2003 16:26:59 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030309

On 03/13/03 22:31 John Burger spoke thusly

From: Bob Lockie <address@hidden>

I execute the following in

yet this #ifdef in the source code doesn't work:

You don't say how you expect this to happen. Your question gives the impression that you think the AC_DEFINE in and the #ifdef in the source file are sufficient, but this is not the case. (You didn't say if you're using Automake - if so, then the two things you mention may indeed be enough. Someone who uses Automake will have to comment.)

I can think of a number of ways to make this happen, including but not limited to:

  Having configure generate the source file itself

  Generating a header file that defines ENABLE_XMMS,
  which the source file includes

  Generating a Makefile (or makefile fragment) that directly or
  indirectly compiles the source file with -DENABLE_XMMS in the
  compiler flags, e.g., using @DEFS@

Which, if any, of these routes are you taking?

- John Burger

The source code #includes "config.h" which autoconf updates the #defines in (I think).
Is there anyway that I can trace the include path?

Sent from Mozilla and GNU/Linux.
Powered by an AMD processor.

reply via email to

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