You need to download the source code of QT from https://download.qt.io/archive/qt/
Or install QT with its source code (you can select it in somewhere in qt installer)
Then you can find the "configure" in the root folder of the source code. (In windows it will be configure.bat). And you need to build Qt static Libs before you build your static application.