On Cygwin, 'uname -s' includes the version of the underlying operating
system; here it is 'CYGWIN_NT-6.0'. The configure script attempts to
define this in config/config.h, but '#define OS_CYGWIN_NT-6.0 1' is an
invalid macro definition.
This truncates the value to just 'CYGWIN', to match $OS in the Makefile.
Signed-off-by: Aneurin Price <aneurin.price@gmail.com>
AC_PROG_CPP
AC_PROG_INSTALL
- ac_os=`uname -s`
+ ac_os=`uname -s | sed 's/[-_].*//'`
_os=`echo $ac_os | tr '[a-z]' '[A-Z]'`
AC_DEFINE OS_$_os 1
eval OS_${_os}=1