Closed Bug 764286 Opened 12 years ago Closed 12 years ago

Remove unused AC_SUBSTs

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla16

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 763987 is going to make autoconf.mk autogenerated. As such, any AC_SUBST that is defined and that is not actually used in autoconf.mk and any other file listed in AC_OUTPUT may hurt. As a matter of fact, at least STL_FLAGS in js/src does.
When I was saying bug 763987, I really meant bug 742795.
Blocks: 742795
No longer blocks: 763987
Attached patch Remove unused AC_SUBSTs (obsolete) — Splinter Review
That just removes the AC_SUBSTs that have no use in autoconf.mk and other config.status-generated stuff. I'm pretty sure there are plenty variables defined in autoconf.mk but never used, but I didn't go after those.
Attachment #632619 - Flags: review?(ted.mielczarek)
Without a syntax problem after iconv check removal.
Attachment #632631 - Flags: review?(ted.mielczarek)
Attachment #632619 - Attachment is obsolete: true
Attachment #632619 - Flags: review?(ted.mielczarek)
Comment on attachment 632631 [details] [diff] [review]
Remove unused AC_SUBSTs

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

r- because I don't understand a few of these large code removals.

::: configure.in
@@ -809,5 @@
>  AC_SUBST(GNU_CXX)
>  AC_SUBST(INTEL_CC)
>  AC_SUBST(INTEL_CXX)
> -AC_SUBST(CLANG_CC)
> -AC_SUBST(CLANG_CXX)

Huh, we don't actually use these? I guess we can always add them back if we need them.

::: js/src/configure.in
@@ -574,5 @@
>          fi
>  
>          unset _MSVC_VER_FILTER
> -
> -        AC_CACHE_CHECK(for std::_Throw, ac_cv_have_std__Throw,

Why are you removing this hunk? That doesn't seem right.

@@ -3043,5 @@
> -        [ac_cv_func_iconv=no]
> -        )]
> -    )
> -if test "$ac_cv_func_iconv" = "yes"; then
> -    AC_DEFINE(HAVE_ICONV)

It looks like this define actually does get used, why is this getting removed?
Attachment #632631 - Flags: review?(ted.mielczarek) → review-
Assignee: nobody → mh+mozilla
(In reply to Ted Mielczarek [:ted] from comment #4)
> Comment on attachment 632631 [details] [diff] [review]
> Remove unused AC_SUBSTs
> 
> Review of attachment 632631 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> r- because I don't understand a few of these large code removals.
> 
> ::: configure.in
> @@ -809,5 @@
> >  AC_SUBST(GNU_CXX)
> >  AC_SUBST(INTEL_CC)
> >  AC_SUBST(INTEL_CXX)
> > -AC_SUBST(CLANG_CC)
> > -AC_SUBST(CLANG_CXX)
> 
> Huh, we don't actually use these? I guess we can always add them back if we
> need them.

We only use them to trigger other tests during configure.

> ::: js/src/configure.in
> @@ -574,5 @@
> >          fi
> >  
> >          unset _MSVC_VER_FILTER
> > -
> > -        AC_CACHE_CHECK(for std::_Throw, ac_cv_have_std__Throw,
> 
> Why are you removing this hunk? That doesn't seem right.

The AC_SUBST corresponding to the test is not used in js/src. So it's not useful to keep the test.
 
> @@ -3043,5 @@
> > -        [ac_cv_func_iconv=no]
> > -        )]
> > -    )
> > -if test "$ac_cv_func_iconv" = "yes"; then
> > -    AC_DEFINE(HAVE_ICONV)
> 
> It looks like this define actually does get used

Not in js/src.
Oh, js/src/, duh.
Comment on attachment 632631 [details] [diff] [review]
Remove unused AC_SUBSTs

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

Hooray for reading comprehension.
Attachment #632631 - Flags: review- → review+
https://hg.mozilla.org/mozilla-central/rev/85a4e915fc20
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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: