mirror of https://github.com/djcb/mu.git
* configure.ac: unbreak McCabe tool checking
This commit is contained in:
parent
8321f6718a
commit
8b70e6bace
16
configure.ac
16
configure.ac
|
@ -156,14 +156,20 @@ AS_IF([test "x$have_gtk3" != "xyes"],[
|
||||||
AM_CONDITIONAL(HAVE_GTK, [test "x$have_gtk2" = "xyes" -o "x$have_gtk3" = "xyes"])
|
AM_CONDITIONAL(HAVE_GTK, [test "x$have_gtk2" = "xyes" -o "x$have_gtk3" = "xyes"])
|
||||||
|
|
||||||
|
|
||||||
# check for pmccabe
|
# check for pmccabe
|
||||||
AC_PATH_PROG([PMCCABE],[pmccabe],[yes],[no])
|
AC_PATH_PROG([PMCCABE],[pmccabe],[pmccabe],[no])
|
||||||
AS_IF([test "x$PMCCABE" != "xyes"],[
|
AS_IF([test "x$PMCCABE" = "xno"],[
|
||||||
AC_MSG_WARN([
|
AC_MSG_WARN([
|
||||||
*** Developers: you don't seem to have the 'pmccabe' tool installed.
|
*** Developers: you don't seem to have the 'pmccabe' tool installed.
|
||||||
*** Please install it if you want to run the automated code checks])
|
*** Please install it if you want to run the automated code checks])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
if test "x$PMCCABE" = "xno"; then
|
||||||
|
have_pmccabe="no"
|
||||||
|
else
|
||||||
|
have_pmccabe="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
|
@ -190,8 +196,8 @@ fi
|
||||||
|
|
||||||
echo "Xapian version : $xapian_version"
|
echo "Xapian version : $xapian_version"
|
||||||
echo "Build unit tests (glib >= 2.16) : $have_gtest"
|
echo "Build unit tests (glib >= 2.16) : $have_gtest"
|
||||||
echo "Build UI (requires GTK+) : $have_gtk"
|
echo "Build 'mug' (requires GTK+) : $have_gtk"
|
||||||
echo "McCabe's Cyclomatic Complexity tool : $PMCCABE"
|
echo "McCabe's Cyclomatic Complexity tool : $have_pmccabe"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "type 'make' to build mu, or 'make check' to run the unit tests."
|
echo "type 'make' to build mu, or 'make check' to run the unit tests."
|
||||||
|
|
Loading…
Reference in New Issue