From: Uwe Hermann Date: Sat, 4 Apr 2015 16:10:18 +0000 (+0200) Subject: configure.ac: Use $host_os instead of $target_os. X-Git-Tag: libserialport-0.1.1~64 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3cb7aa98c2271081b80b0a2df7fc02be03e2a1bf;p=libserialport.git configure.ac: Use $host_os instead of $target_os. $build and $build_os refer to the machine on which the software is built, $host and $host_os refer to the machine for which the software is (cross-)built. The variables $target and $target_os (despite the confusing names) are only relevant in the context of building cross-compilers. --- diff --git a/configure.ac b/configure.ac index 35f9d74..f01644b 100644 --- a/configure.ac +++ b/configure.ac @@ -33,8 +33,6 @@ AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([autostuff]) AC_CONFIG_AUX_DIR([autostuff]) -AC_CANONICAL_TARGET - # We require at least automake 1.11 (needed for 'silent rules'). AM_INIT_AUTOMAKE([1.11 -Wall -Werror check-news]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) @@ -79,7 +77,7 @@ AC_SUBST(SP_LIB_LDFLAGS) SP_PKGLIBS="" SP_LIBS="" -case $target_os in +case $host_os in *linux*) AM_CONDITIONAL([LINUX], true) AM_CONDITIONAL([WIN32], false)