bug-autoconf
[Top][All Lists]
Advanced

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

Re: testsuite failure: multiple languages


From: Ralf Wildenhues
Subject: Re: testsuite failure: multiple languages
Date: Mon, 30 Mar 2009 20:28:45 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Eric,

* Eric Blake wrote on Mon, Mar 30, 2009 at 07:37:26PM CEST:
> 'make -C tests maintainer-check-c++' fails the 'Multiple languages' test,
> since you can't use C++ to compile a C-only program.  Generally, autoconf
> tries to allow the use of a C++ compiler in place of a C compiler (that
> is, most of autoconf tries to target the intersection of the two
> languages, rather than sticking with strict C), hence the
> 'maintainer-check-c++' target.  But we need a way to skip this particular
> test when CC is not a C compiler, and I don't have a good idea for it.

Untested:
In a separate configure.ac script compiled and run before the main part
of the test, have something like this (without any CXX stuff in there)?

  AC_PROG_CC
  AC_COMPILE_IFSELSE([
    AC_LANG_PROGRAM([[
      #ifdef __cplusplus
      choke me
      #endif
    ]])], [], AS_EXIT([77]))

Cheers,
Ralf




reply via email to

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