diff --git a/configure b/configure
index 99ead322f8e71ee043a424ad6ea187353cb26058..b966c8253d5454d48f0e2bb09c1a7793c66c457d 100755
--- a/configure
+++ b/configure
@@ -311,7 +311,7 @@ ac_includes_default="\
 # include <unistd.h>
 #endif"
 
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS FONTFORGE PKG_CONFIG PRELINK LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS XML2LIBS XML2INCL XSLTLIBS XSLTINCL CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS LCMSLIBS LDAPLIBS FREETYPELIBS FREETYPEINCL ft_devel ft_devel2 FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ESDCONFIG ESDLIBS ESDINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS BUILTINFLAG DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS FONTFORGE PKG_CONFIG PRELINK LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS XML2LIBS XML2INCL XSLTLIBS XSLTINCL CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS LCMSLIBS LDAPLIBS FREETYPELIBS FREETYPEINCL ft_devel ft_devel2 FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ESDCONFIG ESDLIBS ESDINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS BUILTINFLAG DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS MAIN_BINARY EXTRA_BINARIES LDD LIBOBJS LTLIBOBJS'
 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_IMPLIB_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
 
 # Initialize some variables set by options.
@@ -13115,29 +13115,19 @@ case $host_os in
     ;;
 esac
 
-case $host_os in
-  linux* | k*bsd*-gnu)
-    case $host_cpu in
-      *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
- ;;
-      *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
- ;;
-    esac
+case $host in
+  *i[3456789]86*-linux* | *i[3456789]86*-k*bsd*-gnu)
     MAIN_BINARY="wine-glibc"
 
-    ;;
-  darwin*)
-    WINE_BINARIES="wine-pthread"
-
-    MAIN_BINARY="wine-pthread"
-
-    ;;
-  *)
-    WINE_BINARIES="wine-kthread"
-
-    MAIN_BINARY="wine-kthread"
+    EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
 
     ;;
+  darwin*)          MAIN_BINARY="wine-pthread"
+ ;;
+  *i[3456789]86*) MAIN_BINARY="wine-kthread"
+ ;;
+  *)                MAIN_BINARY="wine-pthread"
+ ;;
 esac
 
 
@@ -19863,8 +19853,8 @@ s,@CROSSWINDRES@,$CROSSWINDRES,;t t
 s,@LDPATH@,$LDPATH,;t t
 s,@CRTLIBS@,$CRTLIBS,;t t
 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
-s,@WINE_BINARIES@,$WINE_BINARIES,;t t
 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
+s,@EXTRA_BINARIES@,$EXTRA_BINARIES,;t t
 s,@LDD@,$LDD,;t t
 s,@LIBOBJS@,$LIBOBJS,;t t
 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
diff --git a/configure.ac b/configure.ac
index de05da60d3f21369db0c42807fdeb5ef33b6aea0..582df4da62b7bd663c212f959dd2d685f3b703aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1081,22 +1081,14 @@ case $host_os in
     ;;
 esac
 
-case $host_os in
-  linux* | k*bsd*-gnu)
-    case $host_cpu in
-      *i[[3456789]]86*) AC_SUBST(WINE_BINARIES,"wine-glibc wine-kthread wine-pthread wine-preloader") ;;
-      *) AC_SUBST(WINE_BINARIES,"wine-glibc wine-kthread wine-pthread") ;;
-    esac
+case $host in
+  *i[[3456789]]86*-linux* | *i[[3456789]]86*-k*bsd*-gnu)
     AC_SUBST(MAIN_BINARY,"wine-glibc")
+    AC_SUBST(EXTRA_BINARIES,"wine-kthread wine-pthread wine-preloader")
     ;;
-  darwin*)
-    AC_SUBST(WINE_BINARIES,"wine-pthread")
-    AC_SUBST(MAIN_BINARY,"wine-pthread")
-    ;;
-  *)
-    AC_SUBST(WINE_BINARIES,"wine-kthread")
-    AC_SUBST(MAIN_BINARY,"wine-kthread")
-    ;;
+  darwin*)          AC_SUBST(MAIN_BINARY,"wine-pthread") ;;
+  *i[[3456789]]86*) AC_SUBST(MAIN_BINARY,"wine-kthread") ;;
+  *)                AC_SUBST(MAIN_BINARY,"wine-pthread") ;;
 esac
 
 dnl **** Get the soname for libraries that we load dynamically ****
diff --git a/loader/Makefile.in b/loader/Makefile.in
index 30c9c0ed21a0930bce1c6905f49d170688d8d243..741fa65ede613ef1cfc065dbcc7c07cb0d498491 100644
--- a/loader/Makefile.in
+++ b/loader/Makefile.in
@@ -14,8 +14,9 @@ C_SRCS = \
 KTHREAD_OBJS = kthread.o main.o
 PTHREAD_OBJS = pthread.o main.o
 
-WINE_BINARIES = @WINE_BINARIES@
-MAIN_BINARY   = @MAIN_BINARY@
+MAIN_BINARY    = @MAIN_BINARY@
+EXTRA_BINARIES = @EXTRA_BINARIES@
+WINE_BINARIES  = $(MAIN_BINARY) $(EXTRA_BINARIES)
 
 MANPAGES = wine.man