From 77eceb6a84e2ee04ee3a87f7909a28a2e8d121a8 Mon Sep 17 00:00:00 2001 From: Kirill Smelkov Date: Wed, 24 Nov 2010 15:55:39 +0300 Subject: [PATCH] configure: Correctly detect if we are cross-compiling for win32 --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e8a1ffb..05edb05 100644 --- a/configure.ac +++ b/configure.ac @@ -46,10 +46,12 @@ LIBMODBUS_LD_AGE=0 LIBMODBUS_LT_VERSION_INFO=$LIBMODBUS_LD_CURRENT:$LIBMODBUS_LD_REVISION:$LIBMODBUS_LD_AGE AC_SUBST(LIBMODBUS_LT_VERSION_INFO) +AC_CANONICAL_HOST + # Check whether we are building for Win32 os_win32="false" -case "${target}" in - *mingw32) +case "${host_os}" in + *mingw32*) os_win32="true" ;; esac -- libgit2 0.21.4