[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: conditionally compiling C++ code
From: |
Thomas Dickey |
Subject: |
Re: conditionally compiling C++ code |
Date: |
Mon, 28 Apr 2003 17:21:34 -0400 |
User-agent: |
Mutt/1.3.27i |
On Mon, Apr 28, 2003 at 11:00:47PM +0200, Peter Eisentraut wrote:
> Steve M. Robbins writes:
>
> > But this third way doesn't work! AC_PROG_CXX fails if there is no C++
> > compiler and configure aborts.
> > The lack of a nonfatal check for C++ is the cause of my complaint,
> > too.
>
> I would advise against writing configure scripts that check whether some
> library or program exists, and if not, automatically disable some feature
> of the package altogether. This leads to tons of problems downstream.
>
> Example: For years, we shipped a configure script with the logic that if
bad example: if the configure script cannot find readline, the program
can't use it.
try to think of a plausible example (if you're able).
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
- 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, 2003/04/24
- 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 <=
- 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
- Re: conditionally compiling C++ code, Sander Niemeijer, 2003/04/29
- Re: conditionally compiling C++ code, Ronald Landheer-Cieslak, 2003/04/29
- Re: conditionally compiling C++ code, Thomas E. Dickey, 2003/04/29
- Re: conditionally compiling C++ code, Ronald Landheer-Cieslak, 2003/04/30
- Re: conditionally compiling C++ code, Patrick Welche, 2003/04/29
- Re: conditionally compiling C++ code, Sander Niemeijer, 2003/04/29
- Re: conditionally compiling C++ code, Ronald Landheer-Cieslak, 2003/04/29