[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: conditionally compiling C++ code
From: |
Ronald Landheer-Cieslak |
Subject: |
Re: conditionally compiling C++ code |
Date: |
Thu, 24 Apr 2003 13:53:54 +0200 (CEST) |
On Wed, 23 Apr 2003, Thomas Dickey wrote:
> On Wed, Apr 23, 2003 at 09:27:36AM +0200, Ronald Landheer-Cieslak wrote:
> > AC_PROG_CXX checks whether it can find a working C++ compiler. Is it a
> > problem to *know* this if you're not going to use it?
> sure - given that it used to only check, but now errors out if it
> cannot. That was obvious from his question; there's no point in blaming
> the user for defects in the code.
I wasn't blaming anyone for anything (mine is not to assign blame) and I
do agree that the macro should allow to be run optionally.
That being said, I should also say that I've never tried running
AC_PROG_CXX without a C++ compiler being available, so whether it errors
out or not - I don't know. If it does, IMHO, it's a misfeature (or a bug):
the choice of exiting with an error should belong to the persion writing
the configure.ac file.
Other than that, the mere knowledge of a compiler being available should
not, IMHO, have any impact on the behaviour of any program - especially if
the user specified that it should not be used. As a result, AC_PROG_CXX
not being optionnal is a bug, but so is depending on it being optionnal
and using the resulting variables to see whether you should be using C++.
rlc
- conditionally compiling C++ code, Keith Bostic, 2003/04/21
- Re: conditionally compiling C++ code, Ronald Landheer-Cieslak, 2003/04/23
- Re: conditionally compiling C++ code, Thomas Dickey, 2003/04/23
- Re: conditionally compiling C++ code,
Ronald Landheer-Cieslak <=
- Re: conditionally compiling C++ code, Thomas E. Dickey, 2003/04/24
- Re: conditionally compiling C++ code, Steve M. Robbins, 2003/04/24
- Re: conditionally compiling C++ code, Ronald Landheer-Cieslak, 2003/04/25
- Re: conditionally compiling C++ code, Steve M. Robbins, 2003/04/26
- Re: conditionally compiling C++ code, Ronald Landheer-Cieslak, 2003/04/28
- Re: conditionally compiling C++ code, Peter Eisentraut, 2003/04/28
- Re: conditionally compiling C++ code, Thomas Dickey, 2003/04/28
- Re: conditionally compiling C++ code, Bob Proulx, 2003/04/28
- Re: conditionally compiling C++ code, Thomas E. Dickey, 2003/04/29
- Re: conditionally compiling C++ code, Patrick Welche, 2003/04/29