Does config/lyxinclude.m4 still need to use LYX_PROG_CXX instead of AC_*
(other than that LYX_* deals with --enable-warnings and others)?

The reason being that this macro doesn't work anymore with automake 1.5,
which uses a new dependency tracking implementation (which needs an
AC_SUBST done by AC_PROG_CXX).

Quick fix:

Index: config/lyxinclude.m4
===================================================================
RCS file: /cvs/lyx/lyx-devel/config/lyxinclude.m4,v
retrieving revision 1.46
diff -u -p -r1.46 lyxinclude.m4
--- config/lyxinclude.m4        2001/09/11 13:13:02     1.46
+++ config/lyxinclude.m4        2001/10/01 14:46:51
@@ -161,20 +161,7 @@ cross_compiling=$ac_cv_prog_cxx_cross
 
 AC_DEFUN(LYX_PROG_CXX,
 [AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
-AC_MSG_CHECKING([for a working C++ compiler])
-LYX_SEARCH_PROG(CXX, $CCC g++ gcc c++ CC cxx xlC cc++, LYX_PROG_CXX_WORKS)
-
-if test -z "$CXX" ; then
-  AC_ERROR([Unable to find a working C++ compiler])
-fi
-
-AC_SUBST(CXX)
-AC_MSG_RESULT($CXX)
-
-AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a
cross-
compiler])
-AC_MSG_RESULT($cross_compiling)
-
-AC_PROG_CXX_GNU
+AC_PROG_CXX
 
 ### We might want to get or shut warnings.
 AC_ARG_ENABLE(warnings,

<-- cut --

Better one, I think: split LYX_PROG_CXX

Comments?

-- 
        Yves

Reply via email to