On Thu, Oct 11, 2001 at 09:36:12AM -0500, [EMAIL PROTECTED] wrote:
> > +   AC_MSG_RESULT($cxx_sane)
> > +   if test x$cxx_sane = xno; then
> > +      AC_MSG_ERROR(C++ test compile failed; check your C++ compiler)
> > +   fi
> > +   AC_LANG_RESTORE
> > +])
>
> Why don't you just:
>   AC_TRY_RUN([int main() { return(0); } ], ,[
>     AC_MSG_ERROR([C++ test compile failed; check your C++ compiler])])

Nice optimization. BTW, does anybody know why autoconf-2.52 does not
check c++ compiler itself? I remember older versions of autoconf did that.

--
   Alexander.                      | http://www.yars.free.net/~lav/

Reply via email to