diff --git a/aclocal.m4 b/aclocal.m4 index 92bd39f871..0769077bb5 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -178,10 +178,12 @@ AC_DEFUN([WINE_CHECK_MINGW_PROG], i[[3456789]]86*) ac_prefix_list="m4_foreach([ac_wine_prefix],[w64-mingw32, pc-mingw32, mingw32msvc, mingw32], m4_foreach([ac_wine_cpu],[i686,i586,i486,i386],[ac_wine_cpu-ac_wine_prefix-gcc ])) - mingw32-gcc" ;; + m4_foreach([ac_wine_cpu],[i686,i586,i486,i386],[ac_wine_cpu-w64-mingw32-clang ]) + mingw32-gcc" ;; x86_64) ac_prefix_list="m4_foreach([ac_wine_prefix],[pc-mingw32, w64-mingw32, mingw32msvc], - m4_foreach([ac_wine_cpu],[x86_64,amd64],[ac_wine_cpu-ac_wine_prefix-gcc ]))" ;; + m4_foreach([ac_wine_cpu],[x86_64,amd64],[ac_wine_cpu-ac_wine_prefix-gcc ])) + m4_foreach([ac_wine_cpu],[x86_64,amd64],[ac_wine_cpu-w64-mingw32-clang ])" ;; *) ac_prefix_list="" ;; esac diff --git a/configure b/configure index a4c174a439..06e3b4a5eb 100755 --- a/configure +++ b/configure @@ -8766,9 +8766,11 @@ then case "$host_cpu" in i[3456789]86*) ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc - mingw32-gcc" ;; + i686-w64-mingw32-clang i586-w64-mingw32-clang i486-w64-mingw32-clang i386-w64-mingw32-clang + mingw32-gcc" ;; x86_64) - ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;; + ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc + x86_64-w64-mingw32-clang amd64-w64-mingw32-clang " ;; *) ac_prefix_list="" ;; esac @@ -8841,6 +8843,7 @@ $as_echo "yes" >&6; } do case "$1" in *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;; + *-clang) CROSSTARGET=`expr "$1" : '\(.*\)-clang'` ;; esac shift done diff --git a/configure.ac b/configure.ac index 7792f1c897..d47f7e9705 100644 --- a/configure.ac +++ b/configure.ac @@ -958,6 +958,7 @@ then do case "$1" in *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;; + *-clang) CROSSTARGET=`expr "$1" : '\(.*\)-clang'` ;; esac shift done],