[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with conditional sources
From: |
John Calcote |
Subject: |
Re: Problems with conditional sources |
Date: |
Mon, 25 Aug 2008 15:07:50 -0600 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20071114) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> While that would make sense but my problem originates from the fact that
> the conditional files isn't compiled.
>
> After some hacking into the generated Makefile I noticed that the files
> wouldn't be compiled even if I inserted them into libfoo_la_SOURCES
> manually. However, I found that I had to inserting them into
> am_libfoo_la_OBJECTS with the lo extension to make it work. Shouldn't
> automake manage this?
>
> I am just learning autotools so it might be a very simple mistake.
Yes, I'm so sorry. I got so interested in addressing the issue of macro
location in the Makefile, I forgot to answer your original question.
Frankly, from what you've presented, I can't see any reason why you're
experiencing that behavior. You're absolutely right - automake should
(and usually does) handle conditionals without a hitch.
How does WANT_BAR get assigned? Do you have an AM_CONDITIONAL statement
for WANT_BAR in your configure.ac file?
Perhaps you could send along relevant portions of the generated
Makefile. I know they're big, but just clip out the stuff you think is
important.
John
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iEYEARECAAYFAkizHyYACgkQdcgqmRY/OH++dQCfRlaIjJjHcNN85cjBkkC+frc+
1n8AoIzxdDTw5ghPvqVQ6G/RIBHP+wWD
=7iV/
-----END PGP SIGNATURE-----
Re: Problems with conditional sources, Andreas Schwab, 2008/08/25