helpAutoconf - Support: sr #110394, Support optional use of the C++...


sr #110394: Support optional use of the C++ compiler in AC_PROG_CXX (and similarly for other languages)

Submitted by:  Zack Weinberg <zackw>
Submitted on:  Sun 06 Dec 2020 10:25:57 PM UTC  
Category:  None Priority:  1 - Later
Severity:  1 - Wish Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None

Add a New Comment (Rich Markup)

You are not logged in

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


Sun 06 Dec 2020 10:26:29 PM UTC, comment #1: 

Not going to happen for 2.70 but should definitely be considered for 2.71.

Zack Weinberg <zackw>
Project Administrator
Sun 06 Dec 2020 10:25:57 PM UTC, original submission:  

Bug #110294 reports a regression in autoconf 2.70 on the configure script for a program that has some C and some C++ code, but use of the C++ code is optional.  The code that broke attempts to do most of what AC_PROG_CXX does, but not abort the configure script when a C++ compiler is not found.  Instead, output variables would be set so that compilation of C++ code is disabled.

We do not want to support this particular kludge, as it would pin down the guts of AC_PROG_CXX too much, but we should support optional use of the $LANG compiler (for all values of $LANG).  Perhaps with an additional argument to AC_PROG_CC, AC_PROG_CXX, etc, marking usage optional.

See also bug #110286.

Zack Weinberg <zackw>
Project Administrator


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by haible
  • -email is unavailable- added by zackw (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-07 haible Carbon-Copy- => Added
    2020-12-06 zackw Priority5 - Normal => 1 - Later

    Back to the top

    Powered by Savane 3.5