Closed Bug 742795 Opened 12 years ago Closed 12 years ago

autoconf.mk should be completely autogenerated

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla17

People

(Reporter: ted, Assigned: glandium)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently to add an entry to autoconf.mk you have to both add an entry in autoconf.mk.in and add an AC_SUBST line to configure.in. We should fix this to work more like AC_DEFINE/mozilla-config.h, where the file is generated entirely from the AC_SUBST lines in configure.in.

We'll have to move the few ifdefs/other non-declarative bits in there to config.mk, but that's probably a net win.

Fixing this will probably require some autoconf grovelling.
Depends on: 763987
Attached patch (PoC) Autogenerate autoconf.mk (obsolete) — Splinter Review
This seems to work locally, but there are a few issues:
- config.status doesn't generate a new autoconf.mk
- there may be AC_SUBSTed variable that shouldn't be defined in autoconf.mk (see, for example, STL_FLAGS in js/src/configure.in ; it was not in autoconf.mk.in but was AC_SUBSTed, so it ended up in the autogenerated autoconf.mk, and that was breaking my build)
Depends on: 764286
Blocks: 774049
Depends on: 776968
Depends on: 774032
No longer depends on: 776968
Attachment #646824 - Flags: review?(ted.mielczarek)
Attachment #632576 - Attachment is obsolete: true
Blocks: 778740
Comment on attachment 646824 [details] [diff] [review]
Autogenerate autoconf.mk

Review of attachment 646824 [details] [diff] [review]:
-----------------------------------------------------------------

Awesome!
Attachment #646824 - Flags: review?(ted.mielczarek) → review+
Assignee: nobody → mh+mozilla
https://hg.mozilla.org/mozilla-central/rev/f940a77ee247
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Is there a bug open already to do this in comm-central as well?
(In reply to Robert Kaiser (:kairo@mozilla.com) from comment #8)
> Is there a bug open already to do this in comm-central as well?

It's mentioned in bug 780357
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: