[sr #110532] AC_CHECK_LIB no longer works with a C++ compiler

Vincent Lefèvre <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Follow-up Comment #2, sr #110532 (project autoconf):

MPFR is written in C, and it is generally compiled with a C compiler, so that
we expect the compiler to be given by $CC. This means that we need AC_LANG(C),
not AC_LANG(C++).

But we also allow C++ compilers (some compilers seem to support only C++, and
testing with a C++ compiler also allows us to detect some issues with the
header files). And since the compiler is given by $CC, g++ (for instance) is
used via CC=g++.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110532>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.