From b128b8b1d60a615a41d2a4d717358f2bcce26c67 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 6 Apr 2011 16:13:02 +0200 Subject: Prepare for a W64 target. --- autogen.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index dbc5080..596565b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -64,6 +64,10 @@ case "$1" in myhost="w32" myhostsub="ce" ;; + --build-w64) + myhost="w32" + myhostsub="64" + ;; --build*) echo "**Error**: invalid build option $1" >&2 exit 1 @@ -92,6 +96,11 @@ if [ "$myhost" = "w32" ]; then [ -z "$w32root" ] && w32root="$HOME/w32ce_root" toolprefixes="arm-mingw32ce" ;; + 64) + w32root="$w64root" + [ -z "$w32root" ] && w32root="$HOME/w64root" + toolprefixes="amd64-mingw32msvc" + ;; *) [ -z "$w32root" ] && w32root="$HOME/w32root" toolprefixes="i586-mingw32msvc i386-mingw32msvc" @@ -110,7 +119,7 @@ if [ "$myhost" = "w32" ]; then done if [ -z "$crossbindir" ]; then echo "Cross compiler kit not installed" >&2 - if [ -z "$sub" ]; then + if [ -z "$myhostsub" ]; then echo "Under Debian GNU/Linux, you may install it using" >&2 echo " apt-get install mingw32 mingw32-runtime mingw32-binutils" >&2 fi -- cgit v1.2.3