patchGNU Autoconf Archive - Patches: patch #7411, Bug: ax_check_zlib.m4 does not...


patch #7411: Bug: ax_check_zlib.m4 does not honour --with-zlib=DIR

Submitted by:  None
Submitted on:  Sun 12 Dec 2010 01:50:41 PM UTC  
Priority:  5 - Normal Status:  Done
Assigned to:  Peter Simons <simons> Originator Email:  -email is unavailable-
Open/Closed:  Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 23 Dec 2010 01:54:33 PM UTC, comment #3:


your patch has been applied in commit 9f0e19e0ecd288fdf1ae30a49a8b5703c844e229. Thank you very much for the submission!

Take care,

Peter Simons <simons>
Project AdministratorIn charge of this item.
Sun 19 Dec 2010 10:52:35 PM UTC, comment #2:

Hi Peter,

sure. New attached version does not set anything outside the macro call, also checks for 'usual places' of MacPorts and fink on OSX (if not found under /usr/local and /usr, which is probably not the case for many installations). The rewritten part has grown a bit.

Version attached tested on Linux (Kubuntu 9.10) and OSX (10.6) but should work on any other UNIX though (*BSD, AIX, HPUX, Solaris, etc.)


(file #22239)

Sat 18 Dec 2010 05:15:56 PM UTC, comment #1:

Hi Bach,

thank you very much for the patch. I wonder, though, whether it's a good idea to add the assignment "ZLIB_HOME=/usr/local" at the top of the file, i.e. outside of the macro definition? This means that just including the m4 file will set that variable, even if the macro itself is never called. It's certainly uncommon for autoconf macros to behave that way. Do you think there's a way to move that assignment into the macro body?

Take care,

Peter Simons <simons>
Project AdministratorIn charge of this item.
Sun 12 Dec 2010 01:50:41 PM UTC, original submission:

Hi there,

I found this out while tinkering with a system (OSX) that does not have a ZLIB installed at the default place (/usr/local or /usr): ax_check_zlib.m4 does not honour --with-zlib=DIR

In fact, it overwrites the value supplied via command line just after having asked for it.

The attached file corrects this.


PS: if wanted I could write a version which also checks "the usual places" from different unix port packages on OSX (MacPorts, fink, etc.)



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #22239:  ax_check_zlib.m4 added by None (5KiB - application/octet-stream - New version, not setting any variable if not called, checking for 'usual places' on OSX)
file #22183:  ax_check_zlib.m4 added by None (5KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by simons (Original author)
  • -email is unavailable- added by None (Submitted the item)



    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-02 simons StatusReady For Test => Done
        Open/ClosedOpen => Closed
    2010-12-23 simons StatusNeed Info => Ready For Test
    2010-12-19 None Attached File- => Added ax_check_zlib.m4, #22239
    2010-12-18 simons StatusNone => Need Info
        Assigned toNone => simons
    2010-12-18 simons Carbon-Copy- => Added loic dachary
    2010-12-12 None Attached File- => Added ax_check_zlib.m4, #22183

    Back to the top

    Powered by Savane 3.3