This isn't mozilla I'm compiling, its an application I'm writing and 
distributing in source format. The application uses the gtkembedmoz 
widget and thus needs to check that mozilla is installed.

After using the included m4 code in your configure, you can use @LIBS@ 
in your linking lines of makefile.in and it will have set up the -L and 
-l. You can also use @CXXFLAGS@ in compilation lines to get -I's for 
where the necessary include file for the widget is.

My grasp of both autoconf and linking/loading is tenuous at best so I'm 
not sure of next steps. Does the mozilla installation program append a 
line to /etc/ld.so.conf (on Linux, not sure what analogy is in BSD-style 
OSs)? If not, I suppose I'd have to do so in any 'make install' rule? Or 
does the library search path get embedded in the executable by the 
linker? I need to do some more tinkering.

        D

[EMAIL PROTECTED] wrote:

> In netscape.public.mozilla.unix Dominic Tracey <[EMAIL PROTECTED]> wrote:
> -> I went and wrote some stuff to do what I want for now and have attached 
> -> it below. To use it, attach it to the end of your aclocal.m4 and call 
> -> AQ_CHECK_MOZILLA() from your configure.in. The following (probably 
> -> dangerous and/or foolish) assumptions are made:
> 
> -> 1) The default location for libgtkmozembed.so is /usr/local/mozilla. 
> -> This can be over-ridden with the --with-mozilla-dir=DIR configure option.
> 
> hmmm, will mozilla be compiled using -R ${libpath} or -rpath ${libpath} ?
> that would suppress needing of defining LD_LIBRARY_PATH in scripts used to
> run it... (solaris uses -R, linux -rpath, FreeBSD -rpath maybe some else)
> 
> 


Reply via email to