From 4e59d8608b1b7e1f39d9d3cbb90b0d3035bc0828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sat, 8 Jun 2013 23:10:21 +0200 Subject: [PATCH] [automake] workaround automake serial-tests option --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 55cca79..8d59b31 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,17 @@ AC_CONFIG_SRCDIR([src/main/lighttpd_worker.c]) AC_CONFIG_HEADER([include/lighttpd/config.h]) AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE([-Wall -Wno-portability -Wno-override -Werror foreign dist-bzip2 tar-ustar serial-tests]) +dnl HOW FUCKING BROKEN IS AUTOMAKE... +dnl serial-tests is not recognized before 1.12, and required for serial tests with 1.13 +dnl if you don't use the default (symlinked) automake on your box, set AUTOMAKE to the path you're using +m4_define([serial_tests], [ + m4_esyscmd([case `${AUTOMAKE:-automake} --version | head -n 1` in + *1.11.*|*1.10.*|*1.9.*);; + *) echo serial-tests;; + esac]) +]) + +AM_INIT_AUTOMAKE([-Wall -Wno-portability -Wno-override -Werror foreign dist-bzip2 tar-ustar] serial_tests) dnl check environment AC_USE_SYSTEM_EXTENSIONS