Commit d8724cce authored by Andrea Bolognani's avatar Andrea Bolognani

configure: Detect flake8 automatically

This also allows the user to run a custom flake8
by setting FLAKE8 in the environment.
Signed-off-by: 's avatarAndrea Bolognani <abologna@redhat.com>
Reviewed-by: 's avatarJán Tomko <jtomko@redhat.com>
parent 40ce0a87
......@@ -46,6 +46,6 @@ gen-AUTHORS:
# E501: (line too long) warning is ignored.
.PHONY: flake8
flake8:
flake8 --show-source --ignore=E501 $(srcdir)
$(FLAKE8) --show-source --ignore=E501 $(srcdir)
syntax-check: flake8
......@@ -36,6 +36,7 @@ AC_PROG_MKDIR_P
AM_PROG_CC_C_O
AC_PROG_CC_STDC
AC_PROG_LIBTOOL
AC_PATH_PROGS([FLAKE8], [flake8])
PKG_CHECK_MODULES([GIO2], [gio-unix-2.0 >= $GLIB2_REQUIRED])
PKG_CHECK_MODULES([GLIB2], [glib-2.0 >= $GLIB2_REQUIRED])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment