diff --git a/Makefile.am b/Makefile.am index 889be94abc9..abcc9710f9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -104,7 +104,9 @@ if BUILD_DOCS @cd doc && $(MAKE) $(AM_MAKEFLAGS) install-man endif -TESTS = tools/check-unused-dependencies +if OS_LINUX + TESTS = tools/check-unused-dependencies +endif rat: java -jar $(top_srcdir)/ci/apache-rat-0.13-SNAPSHOT.jar -E $(top_srcdir)/ci/rat-regex.txt -d $(top_srcdir) diff --git a/configure.ac b/configure.ac index c22131fdedb..78795af9904 100644 --- a/configure.ac +++ b/configure.ac @@ -738,6 +738,7 @@ case $host_os in esac TS_ADDTO(AM_CPPFLAGS, [-D$host_os_def]) +AM_CONDITIONAL([OS_LINUX], [test "x$host_os_def" = "xlinux"]) dnl AM_PROG_AR is not always available, but it doesn't seem to be needed in older versions. ifdef([AM_PROG_AR],