Improve test_for_mingw

- change test so that both tested programs must work, not only the exit code of the last one
- make it cross-compile compatible

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19101 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-05-04 22:40:19 +00:00
parent 4a4190f261
commit b4ebe56020

View File

@ -142,11 +142,10 @@ function inst_dtk() {
}
function test_for_mingw() {
${CC} --version
${LD} --help
if [ "$CROSS_COMPILE" != "yes" ]; then
g++ --version
mingw32-make --help
if [ "$CROSS_COMPILE" == "yes" ]; then
${CC} --version && ${LD} --help
else
g++ --version && mingw32-make --help
fi
}