Re: detecting required libraries in AC_CHECK_LIB

2001-07-04 Thread Steve M. Robbins
Hi, In the interest of completing the mail archive: I've uncovered the cause of my trouble last month. It turns out that the linker searches the directories listed in /etc/ld.so.conf when looking for shared objects. Somehow, that file got changed to mode 600. Since I couldn't read the file, t

Re: detecting required libraries in AC_CHECK_LIB

2001-06-04 Thread Steve M. Robbins
On Mon, Jun 04, 2001 at 08:40:13PM +0200, Simon Josefsson wrote: > "Steve M. Robbins" <[EMAIL PROTECTED]> writes: > > > On Mon, Jun 04, 2001 at 05:49:41PM +0200, Peter Eisentraut wrote: > >> Steve M. Robbins writes: > >> > >> > I expect that one cannot do so in general. But I'll take a partial

Re: detecting required libraries in AC_CHECK_LIB

2001-06-04 Thread Simon Josefsson
"Steve M. Robbins" <[EMAIL PROTECTED]> writes: > On Mon, Jun 04, 2001 at 05:49:41PM +0200, Peter Eisentraut wrote: >> Steve M. Robbins writes: >> >> > I expect that one cannot do so in general. But I'll take a partial >> > solution, if there is one. On linux, at least, "ldd libfoo.so" will >>

Re: detecting required libraries in AC_CHECK_LIB

2001-06-04 Thread Jeff Dubrule
On Mon, Jun 04, 2001 at 05:49:41PM +0200, Peter Eisentraut wrote: > > Unfortunately it's hardly possible to automatically detect dependencies > that have not been declared anywhere by a means other than trying out all > possible candidates. While we're on the subject, what about this situation:

Re: detecting required libraries in AC_CHECK_LIB

2001-06-04 Thread Steve M. Robbins
On Mon, Jun 04, 2001 at 05:49:41PM +0200, Peter Eisentraut wrote: > Steve M. Robbins writes: > > > I expect that one cannot do so in general. But I'll take a partial > > solution, if there is one. On linux, at least, "ldd libfoo.so" will > > tell me which other shared objects libfoo links again

Re: detecting required libraries in AC_CHECK_LIB

2001-06-04 Thread Peter Eisentraut
Steve M. Robbins writes: > I expect that one cannot do so in general. But I'll take a partial > solution, if there is one. On linux, at least, "ldd libfoo.so" will > tell me which other shared objects libfoo links against, so this > info is embedded in the shared object. If the info is embedde

detecting required libraries in AC_CHECK_LIB

2001-06-04 Thread Steve M. Robbins
Hi, When I use AC_CHECK_LIB(foo,bla), it will fail utterly if libfoo is linked to libbar and I neglected to put "-lbar" in the 5th argument of AC_CHECK_LIB. This may be just what you want. On the other hand, I get the impression that every time I turn around X11R6 has split out another two or t