Looking for saved searches? click on "Search Bugs" above.

configure should throw error when APNG not found

RESOLVED FIXED in mozilla1.9alpha5

Status

()

Core
Build Config
RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: Andrew Smith, Assigned: Andrew Smith)

Tracking

Trunk
mozilla1.9alpha5
x86
All
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments, 2 obsolete attachments)

(Assignee)

Description

11 years ago
A check was added to configure.in so that if the system libpng doesn't have APNG support, the embedded library is used.

It would be nice to have configure through an error rather than silently ignore the --with-system-png option

Once I figure out how to do that I'll post a patch.
Summary: configure should through error when APNG not found → configure should throw error when APNG not found
(Assignee)

Comment 1

11 years ago
Created attachment 260086 [details] [diff] [review]
use AC_MSG_ERROR

It looks like this works. Will you review it please?
Attachment #260086 - Flags: review?(dbaron)
I tend to think that we should be consistent in whether these arguments get ignored or give errors when we can't honor them.  This patch would make --with-system-png give an error for one case and be ignored in another.  (Never mind --with-system-zlib, ...jpeg, ...cairo, etc.)

I actually do prefer giving errors, but that's probably something at least Benjamin should be in on deciding.

Comment 3

11 years ago
Yes, we should throw errors.
(Assignee)

Comment 4

11 years ago
Created attachment 260212 [details] [diff] [review]
use AC_MSG_ERROR twice

I'm not sure this is what anyone asked for, but here is another patch that throws errors for all three system-png problems.
Attachment #260086 - Attachment is obsolete: true
Attachment #260086 - Flags: review?(dbaron)
Comment on attachment 260212 [details] [diff] [review]
use AC_MSG_ERROR twice

Looks good to me, although we might want Benjamin to double-check.

(It would probably be good to make similar changes for the other system libs -- jpeg, zlib, cairo, maybe nspr.)
Attachment #260212 - Flags: review+
Attachment #260212 - Flags: review?(benjamin)

Updated

11 years ago
Attachment #260212 - Flags: review?(benjamin) → review+
Whiteboard: [checkin needed]

Comment 6

11 years ago
Doesn't apply cleanly, could you attach an updated patch?
Target Milestone: --- → mozilla1.9alpha5
Version: unspecified → Trunk
(Assignee)

Comment 7

11 years ago
Created attachment 264747 [details] [diff] [review]
same as above

this is the same patch as the above except for one character (acTL instead of acTl), that was fixed in another bug.

Comment 8

11 years ago
(In reply to comment #7)
> Created an attachment (id=264747) [details]
> same as above
> 
> this is the same patch as the above except for one character (acTL instead of
> acTl), that was fixed in another bug.
> 
What's with the changes in 
modules/libpr0n/src/imgContainer.cpp?
(Assignee)

Comment 9

11 years ago
Created attachment 268832 [details] [diff] [review]
same thing again

that creeped in from a different patch.
Attachment #264747 - Attachment is obsolete: true

Comment 10

11 years ago
Checking in configure.in;
/cvsroot/mozilla/configure.in,v  <--  configure.in
new revision: 1.1828; previous revision: 1.1827
done
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.