From: Bartosz Golaszewski Date: Mon, 9 Feb 2015 17:31:09 +0000 (+0100) Subject: configure.ac: Add AC_CANONICAL_SYSTEM macro. X-Git-Tag: libsigrok-0.4.0~650 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3cdff6cd2d1ce64e901540fa86a263666222ac07;p=libsigrok.git configure.ac: Add AC_CANONICAL_SYSTEM macro. In order to determine the target OS when cross-compiling libsigrok we need autotools to set the 'target_os' variable. This macro determines the system type and sets output variables to the names of the canonical system types. Signed-off-by: Bartosz Golaszewski --- diff --git a/configure.ac b/configure.ac index 39766c6b..595dafe2 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,9 @@ AC_CONFIG_HEADER([config.h]) AC_CONFIG_MACRO_DIR([autostuff]) AC_CONFIG_AUX_DIR([autostuff]) +# We require this to know the target settings if we're cross-compiling. +AC_CANONICAL_SYSTEM + # We require at least automake 1.11 (needed for 'silent rules'). AM_INIT_AUTOMAKE([1.11 -Wall -Werror subdir-objects check-news color-tests]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])