Closed Bug 162650 Opened 23 years ago Closed 22 years ago

have a autoconf macro to get compile and link flags from mozilla-config

Categories

(SeaMonkey :: Build Config, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: axel, Assigned: axel)

Details

Attachments

(1 file)

as more apps use Mozilla components, we should have support for autoconf. Adding chak, as I think this is a MRE issue. I created a mre.m4, based on nspr.m4, which can be used like this: AM_PATH_MRE(1.0.1,[xpcom js], HAVE_MRE=1,HAVE_MRE=0) if test -z "$HAVE_MRE"; then echo "MRE not found" else echo $MRE_CFLAGS echo $MRE_LIBS fi not sure if this is really MRE, so macro names might need a change.
Attached file mre.m4
It would be better if Chris reviewed the patch since i'm not all that familiar with autoconf...thanks
The m4 code looks correct but I'm also concerned about the naming since nothing about the output of the mozilla-config script is really MRE specific.
Why is this necessary? Can't you just use pkg-config?
Maybe we could, of course that depends on the availability of pkg-config. I found it for cygwin, solaris and linux. Fink has it on http://fink.sourceforge.net/pdb/package.php/pkgconfig. So the other question is, which .pc do we need? I bet there should be at least a mozilla-xpcom-glue.pc or so, but is that enough? mozilla-mre.pc to get to mredir = $(libdir)/mre/mre-$(MOZILLA_VERSION) mrelibdir = $(mredir)/lib ?
Which .pc(s) you need depends on what your actual dependencies are. The ones currently available are here: <http://lxr.mozilla.org/mozilla/source/build/unix/>. If you have dependencies that are not satisfied by any combination of those, then probably another one needs to be added. Having every package under the sun install it's own autoconf macro is a solution that has been obsoleted by pkg-config. pkg-config has a high likelihood of being installed or available for any POSIXy system that might get a reasonably fresh version of Mozilla installed on it, because there are lots of packages that already use it. I recommend WONTFIX for this bug.
pkg-config worksforme, mozilla-config doesn't expose a whole lot more than the current set of .pcs. (LiveConnect is the only exception that I see.) I bet that not shipping pkg.m4 isn't worth mentioning, that obviously ships with pkg-config.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: