[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: |
Wed, 23 Apr 2003 09:27:36 +0200 (CEST) |
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?
Optionally compiling files should be handled in your Makefile's
precursers: Makefile.am if you're using Automake, or Makefile.in if not.
If you are using Automake, you should take a look at the AM_CONDITIONAL
macro at File: automake.info, Node: Conditionals
HTH
rlc
On Mon, 21 Apr 2003, Keith Bostic wrote:
> We just ran across the problem where you cannot conditionally
> call the AC_PROG_CXX macro, that is, we were doing:
>
> if test "$db_cv_cxx" = "yes"; then
> AC_PROG_CXX
> fi
>
> and this broke when we upgraded to the autoconf 2.57 release.
>
> I've seen some postings on the web discussing the problem, but
> I haven't seen any suggested workarounds. Are there any?
>
> Is there a "standard" way to optionally compile C++ code as well
> as C code when using autoconf?
>
> Regards,
> --keith
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Keith Bostic address@hidden
> Sleepycat Software Inc. keithbosticim (ymsgid)
> 118 Tower Rd. +1-781-259-3139
> Lincoln, MA 01773 http://www.sleepycat.com
>
>
- conditionally compiling C++ code, Keith Bostic, 2003/04/21
- Re: conditionally compiling C++ code,
Ronald Landheer-Cieslak <=
- 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, 2003/04/28
- Re: conditionally compiling C++ code, Bob Proulx, 2003/04/28