Hi Baurzhan, * Baurzhan Ismagulov wrote on Tue, Jun 28, 2005 at 08:46:53PM CEST: > On Tue, Jun 28, 2005 at 06:31:57PM +0200, Ralf Wildenhues wrote: > > Hmm. I don't know whether AC_CONFIG_SUBDIRS can give you the > > flexibility you want here. If you unconditionally build both packages, > > there is no need to check for libl1 during src1/configure. > > The problem is, I have to check the location of the library. The system > can be built in two ways: > > 1. libl1.a in ../lib/l1, native or cross. > > 2. libl1.a somewhere else (like /usr/lib or /usr/<platform>/lib), native > or cross.
Hmm. How about you allow for a switch to tell the package you are doing (1). For example: --enable-included-libl1. You may pass this to the top package configure, it will pass it through. Then have the sub-configure skip the test for libl1 in that case. Agreed, it's not a great solution. Better suggestions welcome. Regards, Ralf