]> sigrok.org Git - libsigrok.git/commitdiff
configure.ac: Add AC_CANONICAL_SYSTEM macro.
authorBartosz Golaszewski <redacted>
Mon, 9 Feb 2015 17:31:09 +0000 (18:31 +0100)
committerUwe Hermann <redacted>
Wed, 11 Feb 2015 15:22:56 +0000 (16:22 +0100)
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 <redacted>
configure.ac

index 39766c6bda5015c6d7c0b9f9a415605f6b8c1a30..595dafe25623ed48b822b095bbc281b59e6f21e3 100644 (file)
@@ -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])])