From: Paul Cercueil Date: Mon, 29 Aug 2016 13:05:20 +0000 (+0200) Subject: libserialport: Fix Linux files not compiled in with a toolchain for ucLinux X-Git-Tag: libserialport-0.1.2~104 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b2359c5c994c90f84b087cc4e463cdccf76ca1d7;p=libserialport.git libserialport: Fix Linux files not compiled in with a toolchain for ucLinux Buildroot can create toolchains for the no-MMU flavour of Linux, with a triple containing 'uclinux' instead of just 'linux'. Signed-off-by: Paul Cercueil --- diff --git a/configure.ac b/configure.ac index f6b66e8..8ac87a3 100644 --- a/configure.ac +++ b/configure.ac @@ -74,7 +74,7 @@ AC_DEFINE_UNQUOTED([SP_LIB_VERSION_REVISION], [$SP_LIB_VERSION_REVISION], [.]) AC_DEFINE_UNQUOTED([SP_LIB_VERSION_AGE], [$SP_LIB_VERSION_AGE], [.]) AC_DEFINE_UNQUOTED([SP_LIB_VERSION_STRING], ["$SP_LIB_VERSION"], [.]) -AM_CONDITIONAL([LINUX], [test -z "${host_os##linux*}"]) +AM_CONDITIONAL([LINUX], [test -z "${host_os##linux*}" || test -z "${host_os##uclinux*}"]) AM_CONDITIONAL([WIN32], [test -z "${host_os##mingw*}" || test -z "${host_os##cygwin*}"]) AM_CONDITIONAL([MACOSX], [test -z "${host_os##darwin*}"]) AM_CONDITIONAL([FREEBSD], [test -z "${host_os##freebsd*}"])