#!/bin/sh
# $Id: cfg-mingw64,v 1.6 2015/06/05 00:50:00 tom Exp $
# configure to cross-compile using mingw32 using 64-bits

BUILD_CC=${CC:-gcc}
unset CC
unset CXX

TARGET=`choose-mingw64`

if test -n "$TARGET"
then
	PREFIX=
	test -d /usr/$TARGET && PREFIX="--prefix=/usr/$TARGET"
	cfg-normal \
		--with-build-cc=$BUILD_CC \
		--host=$TARGET \
		--target=$TARGET \
		$PREFIX "$@" || exit 1
else
	echo "? cannot find MinGW-64 compiler in path"
	exit 1
fi
