patchGNU Autoconf Archive - Patches: patch #8247, ...

 
 

patch #8247: AX_CHECK_{PREPROC,COMPILE,LINK}_FLAG: add optional INPUT argument

Submitted by:  None
Submitted on:  Sun 24 Nov 2013 09:30:16 PM UTC  
 
Priority: 5 - NormalStatus: Done
Assigned to: Peter Simons <simons>Originator Email: -unavailable-
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 10 Dec 2013 08:59:26 PM UTC, comment #1:

I pushed your patch in commit 391cb680171d3889965b1ead43d3a326c913bc25. Thank you very much for the submission!

Peter Simons <simons>
Project AdministratorIn charge of this item.
Sun 24 Nov 2013 09:30:16 PM UTC, original submission:

This patch adds an optional INPUT argument to the end of the AX_CHECK_{PREPROC,COMPILE,LINK}_FLAG macros. It allows the user to specify an alternative input source to AC_{PREPROC,COMPILE,LINK}_IFELSE. The default is to use AC_LANG_PROGRAM(), so the change is fully backward-compatible.

The use case of this change is checking for compiler warning flags, e.g. -Wstrict-prototypes, by compiling with -Wstrict-prototypes -Werror to see if the compiler fails. Unfortunately the default AC_LANG_PROGRAM() is not always warning-safe, e.g. -Wstrict-prototypes will warn on "int main() { ... }", so the compiler will fail even if the warning flag is supported. One can fix this by supplying an input source which compiles with the warning flags one wants to test for, e.g. in this case "int main(void) { ... }".

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 07 Feb 2014 10:29:51 AM UTCsimonsStatusReady For Test=>Done
      Open/ClosedOpen=>Closed
    Tue 10 Dec 2013 08:59:26 PM UTCsimonsStatusNone=>Ready For Test
      Assigned toNone=>simons
      Carbon-Copy-=>Added maarten bosmans
      Carbon-Copy-=>Added guido u. draheim
    Sun 24 Nov 2013 09:30:16 PM UTCNoneAttached File-=>Added 0001-AX_CHECK_-PREPROC-COMPILE-LINK-_FLAG-add-optional-IN.patch, #29700

    Back to the top


    Powered by Savane 3.1-cleanup