diff --git a/Examples/Makefile.in b/Examples/Makefile.in index 1a27b32cd..d7b9a5bcf 100644 --- a/Examples/Makefile.in +++ b/Examples/Makefile.in @@ -1626,8 +1626,7 @@ d_run: # ----------------------------------------------------------------- d_version: - # Needs improvement! - echo D version guess - $(D_VERSION) + ($(DCOMPILER) --version 2> /dev/null || $(DCOMPILER)) | head -n 3 # ----------------------------------------------------------------- # Clean the D examples diff --git a/configure.ac b/configure.ac index 2afaf2275..360b2f440 100644 --- a/configure.ac +++ b/configure.ac @@ -2568,7 +2568,7 @@ _ACEOF fi if test -z "$D2COMPILERBIN" ; then - AC_CHECK_PROGS(D2COMPILER, dmd gdmd) + AC_CHECK_PROGS(D2COMPILER, dmd gdmd ldmd2 ldc2) if test -n "$D2COMPILER" ; then AC_MSG_CHECKING(whether the D2 compiler works)