Only check if D compiler works if the compiler was found
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
569470c4b9
commit
18cede40d2
1 changed files with 24 additions and 20 deletions
|
|
@ -2048,6 +2048,7 @@ else
|
||||||
if test -z "$D1COMPILERBIN" ; then
|
if test -z "$D1COMPILERBIN" ; then
|
||||||
AC_CHECK_PROGS(D1COMPILER, dmd ldmd gdmd)
|
AC_CHECK_PROGS(D1COMPILER, dmd ldmd gdmd)
|
||||||
|
|
||||||
|
if test -n "$D1COMPILER" ; then
|
||||||
AC_MSG_CHECKING(whether the D1/Tango compiler works)
|
AC_MSG_CHECKING(whether the D1/Tango compiler works)
|
||||||
cat > conftest.$ac_ext <<_ACEOF
|
cat > conftest.$ac_ext <<_ACEOF
|
||||||
import tango.io.Stdout;
|
import tango.io.Stdout;
|
||||||
|
|
@ -2062,6 +2063,7 @@ _ACEOF
|
||||||
D1COMPILER=]
|
D1COMPILER=]
|
||||||
)
|
)
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
D1COMPILER="$D1COMPILERBIN"
|
D1COMPILER="$D1COMPILERBIN"
|
||||||
fi
|
fi
|
||||||
|
|
@ -2069,6 +2071,7 @@ _ACEOF
|
||||||
if test -z "$D2COMPILERBIN" ; then
|
if test -z "$D2COMPILERBIN" ; then
|
||||||
AC_CHECK_PROGS(D2COMPILER, dmd gdmd)
|
AC_CHECK_PROGS(D2COMPILER, dmd gdmd)
|
||||||
|
|
||||||
|
if test -n "$D2COMPILER" ; then
|
||||||
AC_MSG_CHECKING(whether the D2 compiler works)
|
AC_MSG_CHECKING(whether the D2 compiler works)
|
||||||
cat > conftest.$ac_ext <<_ACEOF
|
cat > conftest.$ac_ext <<_ACEOF
|
||||||
import std.algorithm;
|
import std.algorithm;
|
||||||
|
|
@ -2083,6 +2086,7 @@ _ACEOF
|
||||||
D2COMPILER=]
|
D2COMPILER=]
|
||||||
)
|
)
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
D2COMPILER="$D2COMPILERBIN"
|
D2COMPILER="$D2COMPILERBIN"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue