By default, the ./configure from Qt 4.1 includes the mkspecs from Qt3 (/usr/lib/qt3/mkspecs/linux-g++/) and --of course-- it fails.

I definitively don't ask ./configure to use this path so I guess this is a setting on my system. But where?