[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    RE: configure & make in subdir (was: please help: cannot link c-l
From:       David Faure <David.Faure () cramersystems ! com>
Date:       1999-12-20 10:41:20
[Download RAW message or body]

> Sorry,
> 
> I have some more questions.
> 
> I have added the AC_CONFIG_SUBDIRS macro in configure.in. In 
> my case it looks like
> AC_CONFIG_SUBDIRS (kbiblio/btparse/configure) 
I think this should be
AC_CONFIG_SUBDIRS (kbiblio/btparse)
It says "subdirs", not "configure file in the subdir" :-)

> (my program is in subdir kbiblio, and the library is in sub-subdir
btparse)
> Now, on ./configure, the configure script of the btparse package is
called. So
> this works as expected. However, the files that the configure of btparse
> generates are written into the directory ./, not into the directory
> kbiblio/btparse/   :-(. So in summary, it doesn't work.
Hmmm...

> Another problem arises in the make process. Adding btparse to the subdir
line in
> the Makefile.am of kbiblio doesn't help to compile btparse, because
automake is
> involved, which looks for a Makefile.in in btparse, which is not there
because
> btparse build works differently from the kde-build process. So what I
really
> need is the possibility to simply invoke the command make in the subdir
> kbiblio/btparse.
You might want to look at the old hacks in kdegraphics/kdvi
(not the current ones but the ones at the time of 1.1, IIRC).
Basically, you have to add a target which calls something like
"$(MAKE) -C btparse", or "( cd btparse ; $(MAKE) )" ...
Mixing build systems isn't easy.
It might be easier to convert btparse's Makefile.in into a Makefile.am ...

--
David Faure
faure@kde.org - KDE developer
david@mandrakesoft.com - Mandrake
david.faure@cramersystems.com - Cramer Systems

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic