Index: tools/wineinstall
===================================================================
RCS file: /home/wine/wine/tools/wineinstall,v
retrieving revision 1.70
diff -u -p -r1.70 wineinstall
--- tools/wineinstall	19 Jul 2004 19:36:44 -0000	1.70
+++ tools/wineinstall	18 Feb 2005 17:08:35 -0000
@@ -34,7 +34,7 @@ DOWINE=auto                   # whether 
 DOREG=auto                    # whether to install default registry
 DOAPP=auto                    # whether to install applications, distributed with Wine
 SYSREG=yes                    # whether to make root's registry global (system-default)
-
+MAKE=make
 # this is only for existing-windows installs
 WINECONF=tools/wineconf       # path to the wineconf perl script
 
@@ -93,6 +93,20 @@ function conf_string_answer {
 echo "WINE Installer v0.74"
 echo
 
+if [ "$1" = "--distcc" ]
+then {
+  echo "Compiling wine using distcc!"
+  echo
+  #change make to use distcc :)
+  MAKE="make -j8 CC=distcc"
+} 
+else {
+  echo "If you have distcc you can run this script with --distcc to speed up your compiles"
+  echo "See www.distcc.org"
+  echo
+}
+fi
+
 if [ "$BINDIST" = 'no' ]
 then {
 
@@ -240,9 +254,9 @@ then {
     std_sleep
 
     # try to just make wine, if this fails 'make depend' and try to remake
-    if ! { make; }
+    if ! { $MAKE; }
     then {
-      if ! { make depend && make; }
+      if ! { $MAKE depend && $MAKE; }
       then {
         echo
         echo "Compilation failed, aborting install."
