diff --git a/configure b/configure index 3d5f262cea..8b8fc7d008 100755 --- a/configure +++ b/configure @@ -6757,9 +6757,9 @@ else [ -f "$outpath/src/corelib/global/qconfig.h" ] && chmod +w "$outpath/src/corelib/global/qconfig.h" mv "$outpath/src/corelib/global/qconfig.h.new" "$outpath/src/corelib/global/qconfig.h" chmod -w "$outpath/src/corelib/global/qconfig.h" - for conf in "$outpath/include/QtCore/qconfig.h" "$outpath/include/Qt/qconfig.h"; do - ln -s "$outpath/src/corelib/global/qconfig.h" "$conf" - done + if [ ! -f "$outpath/include/QtCore/qconfig.h" ]; then + ln -s "$outpath/src/corelib/global/qconfig.h" "$outpath/include/QtCore/qconfig.h" + fi fi #-------------------------------------------------------------------------------