From acb9c126d4251e4f80f2d421f0874c815fce72db Mon Sep 17 00:00:00 2001 From: Sebastien Boisvert Date: Mon, 20 Jun 2016 21:11:00 -0400 Subject: [PATCH] configure.ac: check cmake availability In the configure.ac file, detect if a cmake executable is available. Two new variables are now available in any Makefile.am file: HAVE_CXX (which tells if a C++ compiler is available) and HAVE_CMAKE (which indicates whether a cmake executable is available). Acked-by: Philippe Proulx Acked-by: Sebastien Boisvert Signed-off-by: Sebastien Boisvert Signed-off-by: Mathieu Desnoyers --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index de462ffc..105b46ff 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,9 @@ AM_CONDITIONAL([NO_SHARED], [test "x$enable_shared" = "xno"]) # Checks for programs. AC_PROG_CC AC_PROG_CXX +AM_CONDITIONAL([HAVE_CXX], [test "x$CXX" != "x"]) +AC_CHECK_PROG([HAVE_CMAKE], [cmake], ["yes"]) +AM_CONDITIONAL([HAVE_CMAKE], [test "x$HAVE_CMAKE" = "xyes"]) AC_PROG_MAKE_SET LT_INIT -- 2.34.1