On 06/28/2013 11:11 AM, Guy Harris wrote: [Can you convince your mailer to wrap long lines?]
> 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.) Not entirely artificial; this has been reported several times on the Cygwin mailing lists as well. I will point out that gnulib provides a nicer module for actually detecting c++ (and not misidentifying 'cc' as a case-insensitive 'CC' lookalike): http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob;f=m4/ansi-c%2B%2B.m4;h=8319dd38;hb=HEAD Maybe we should investigate pulling some of that code into autoconf proper? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature