bug-automake
[Top][All Lists]
Advanced

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

Re: Can't call AC_PROG_CXX conditionally


From: Akim Demaille
Subject: Re: Can't call AC_PROG_CXX conditionally
Date: Mon, 18 Nov 2002 18:37:56 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

 Andreas> When AC_PROG_CXX is used conditionally then the generated
 Andreas> configure script complains that conditional "am__fastdepCXX"
 Andreas> was never defined when AC_PROG_CXX is not actually called.
 Andreas> In a real-world example this would depend on some --enable
 Andreas> or --with option.

Do not do this.  I know it's a pain, but this is really something not
to do.

Actually, in the real world, I would suggest AC_CONFIG_SUBDIR'ing the
part in C++.  Or maybe...

m4_pushdef([AC_MSG_ERROR])
AC_PROG_CXX
m4_popdef([AC_PROG_CXX])

Something should be done, agreed.




reply via email to

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