Made cross compiling easier;

run configure --host=i586-mingw32 --build=i586-linux
, for example, to cross compile from linux to windows using
i586-mingw32-xxx binaries.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Harco de Hilster
1999-07-21 18:45:25 +00:00
parent e41bbc80bc
commit 214960fb6d
2 changed files with 20 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ dnl ---------------------------------------------------------------------------
dnl the file passed to AC_INIT should be specific to our package
AC_INIT(wx-config.in)
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM
dnl When making releases do:
dnl
@@ -770,11 +770,15 @@ AC_CACHE_SAVE
dnl cross-compiling support: we're cross compiling if the build system is
dnl different from the target one (assume host and target be always the same)
if eval "test $host != $build"; then
if eval "test $build != NONE"; then
CC="$build-gcc"
CXX="$build-g++"
RANLIB="$build-ranlib"
NM="$build-nm"
if eval "test $host_alias != NONE"; then
CC=$host_alias-gcc
CXX=$host_alias-c++
AR=$host_alias-ar
RANLIB=$host_alias-ranlib
DLLTOOL=$host_alias-dlltool
LD=$host_alias-ld
NM=$host_alias-nm
STRIP=$host_alias-strip
fi
fi