diff --git a/configure.bat b/configure.bat
index b5ffb14731ed4daaac02f951532a902f22b60d6e..3517424e8af1fa9a6699fc8e8810040814e443cc 100644
--- a/configure.bat
+++ b/configure.bat
@@ -42,6 +42,7 @@
 @echo off
 set QTSRC=%~dp0
 set QTDIR=%CD%
+if not exist %QTSRC%\.gitignore goto sconf
 if exist configure.exe goto conf
 echo Please wait while bootstrapping configure ...
 
@@ -116,4 +117,8 @@ cd ..\..
 
 :conf
 configure.exe -srcdir %QTSRC% %* %nosyncqt%
+goto exit
+
+:sconf
+%QTSRC%\configure.exe %*
 :exit