Checking for cpp before using it avoids somewhat ugly
nested output. Pointed out in bug 593544.
dnl Initialize maintainer mode
AM_MAINTAINER_MODE
+dnl Checks for programs.
+AC_PROG_CC
+AC_PROG_CPP
+
AC_CANONICAL_HOST
AC_MSG_CHECKING([for the BeOS])
AC_SUBST(ABS_GLIB_RUNTIME_LIBDIR)
AM_CONDITIONAL(HAVE_GLIB_RUNTIME_LIBDIR, [test "x$with_runtime_libdir" != "x"])
-dnl Checks for programs.
-AC_PROG_CC
-AC_PROG_CPP
-
dnl Check for a working C++ compiler, but do not bail out, if none is found.
AC_CHECK_TOOLS(CXX, [$CCC c++ g++ gcc CC cxx cc++ cl], [gcc])
AC_LANG_SAVE