Re: Freebsd vs built sources

2006-07-13 Thread Stepan Kasal
Hello, On Wed, Jul 12, 2006 at 08:52:54PM +0800, John Darrington wrote: > On Wed, Jul 12, 2006 at 02:33:21PM +0200, Stepan Kasal wrote: > Just omit "$(top_builddir)/" from all occurences. > > I can't do that. If I do, then it will fail to build from outside > of the source tree. no, this i

Suffix rules do not work with per-target options

2006-07-13 Thread Stepan Kasal
Hello, I have noticed that suffix rules do not work with per-target flags. If you have .q.c: cp $< $@ foo_SOURCES = bar.q foo_CPPFLAGS = -I dir Then the generated rule looks like: foo-bar.o: bar.q ... gcc bar.q ... while both occurences of `bar.q' should obviously be `bar.c'.

Re: Freebsd vs built sources

2006-07-13 Thread Stepan Kasal
Hello, a correction: On Thu, Jul 13, 2006 at 07:29:14PM +0200, Stepan Kasal wrote: > But the same simplification is not possible in > src/language/lexer/automake.mk, because of a bug in Automake: this > feature does not work in combination with per-target flags. > So nodist_src_language_stats_lib

Main prog is configure-generated?

2006-07-13 Thread Micah J. Cowan
1) What is an appropriate setup when the primary "binary" file is generated from the configure script? 2) What is an appropriate setup when the primary "binary" program file is ready-to-go already (say, a shell script or somesuch)? A project I'm working on initially started out as scenario (2) ab

finding the location of header (.h) files

2006-07-13 Thread mick
I have an application that depends on gtkhtml-2.0, which seems to be in a diferent location in almost every linux or BSD distribution. Currently I have:- INCLUDES = -I/usr/include/gtkhtml-2.0 in Makefile.am and AC_CHECK_LIB([gtkhtml-2], [html_document_open_stream],, [AC_MSG_ERROR([BUMMER, Mayb