it could make sense to skip it.
printf "Running flake8 and 2to3 if detected.\n"
$(top_srcdir)/contrib/scripts/lint/lint-python.sh || true
+if HAVE_AWK
check-texinfo:
@cd $(top_srcdir); find . -type f ! -path '*/.*' -name '*.texi' -print0 | xargs -0 ./contrib/scripts/check-texinfo.awk > $(srcdir)/texinfo_lint.log || true
+endif
# awk
AC_PATH_PROGS( AWK_BINARY, [awk gawk], ,$PATH:/usr/bin/:/usr/local/bin )
AC_SUBST([AWK_BINARY])
+AS_IF([test -x "$AWK_BINARY"],
+ [AC_DEFINE_UNQUOTED([HAVE_AWK], [1], [Path to awk])],
+ [AC_DEFINE_UNQUOTED([HAVE_AWK], [0], [Path to awk])])
# should we install gnunet-logread?
AC_MSG_CHECKING(whether to install gnunet-logread)
gnunet_pyexpect.py \
gnunet_janitor.py \
gnunet-chk.py \
+ $(AWK_SCRIPTS)
+
+if HAVE_AWK
+AWK_SCRIPTS = \
check-texinfo.awk
+else
+AWK_SCRIPTS =
+endif
bin_SCRIPTS = \
gnunet-bugreport \
$(do_subst) < $< > $@
chmod +x $@
+if HAVE_AWK
check-texinfo.awk: check-texinfo.awk.in Makefile
$(do_subst) < $(srcdir)/check-texinfo.awk.in > check-texinfo.awk
chmod +x check-texinfo.awk
+endif