bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_PROG_CXX doesn't check whether what it finds is actually a C++ compil


From: Guy Harris
Subject: AC_PROG_CXX doesn't check whether what it finds is actually a C++ compiler
Date: Fri, 28 Jun 2013 10:11:24 -0700

If you are on a system that

        1) doesn't have a program named g++, c++, gpp, or aCC installed;

        2) does have a C compiler named cc installed;

        3) has that program on a case-insensitive file system;

AC_PROG_CXX will misidentify cc as being a C++ compiler, as its search for CC 
will find cc (due to the case-insensitive file system) but will not try to 
compile a program containing C++-specific features with it.

(This was found by a somewhat artificial test, in which, on an OS X system with 
the default case-insensitive root file system, I temporarily renamed g++ and 
c++ so that AC_PROG_CXX wouldn't find them, and ran a configure script.  
Whether this is something to be concerned about in the real world is another 
matter.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]