From 0ad317ec16fa836321617c10a8c6ba5c70f156b8 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 3 Mar 2017 15:13:30 +0100 Subject: build system portability fixes * especially to improve building on FreeBSD 11 * We need GNU Make, yet alone because Scintilla/Scinterm needs it. We now document that dependency and added an Autoconf check from the autoconf-archive. We make sure that the build process is invoked with GNU make by generating only GNUmakefiles. The Makefile.am files have not been renamed, so this change can be rolled back easily. * Some GNU-Make-specific autoreconf warnings have still been resolved. But not all of them, as this would have been unelegant and we need GNU Make anyway. * Declare ACLOCAL_AMFLAGS to appease autoreconf * Added an explicit check for C++11 from the autoconf-archives. In general we should support building with every C++11 compiler that is sufficiently GNU-like. * Do not use `sed` for inplace editing, as different sed-implementations have mutually incompatible syntax for this. Instead of declaring and checking a dependency on GNU sed, we simply use SciTECO for the editing task. This improves code portability on BSDs. * Similarily, BSD/POSIX `cmp` is supported now. This fixes the test suite on BSD without declaring a dependency on the GNU coreutils. * Simplified sciteco-wrapper generation. --- INSTALL | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'INSTALL') diff --git a/INSTALL b/INSTALL index 734b99c..38e4017 100644 --- a/INSTALL +++ b/INSTALL @@ -13,7 +13,10 @@ without warranty of any kind. SciTECO Build and Runtime Dependencies ====================================== - * Autotools, GNU C/C++ (v4.4 or later) or LLVM/gcc or LLVM/Clang + * Autotools and an UNIX-like environment + * GNU Make + * A C++11 compiler, e.g. GNU C/C++ (v4.4 or later) or + LLVM/gcc or LLVM/Clang * Glib 2 as a cross-platform runtime library (v2.28 or later on Unix, v2.34 or later for MinGW): https://developer.gnome.org/glib/ -- cgit v1.2.3