How to change paths where configure looks for required libraries? Is it in qmake.conf or maybe make?
For sure not in Makefiles since these are created by configure.
See configure -h:
-I <string> ........ Add an explicit include path.
-L <string> ........ Add an explicit library path.