diff --git a/mythplugins/mytharchive/mytharchive/mytharchive.pro b/mythplugins/mytharchive/mytharchive/mytharchive.pro
index bf7f717..d20e0f7 100644
--- mythplugins/mytharchive/mytharchive/mytharchive.pro
+++ mythplugins/mytharchive/mytharchive/mytharchive.pro
@@ -14,7 +14,7 @@ LIBS += -lmythavcodec-$$LIBVERSION
 LIBS += -lmythavformat-$$LIBVERSION
 LIBS += -lmythswscale-$$LIBVERSION
 
-TEMPLATE = lib opengl
+TEMPLATE = lib
 CONFIG += plugin thread
 TARGET = mytharchive
 target.path = $${LIBDIR}/mythtv/plugins
@@ -61,6 +61,7 @@ INSTALLS +=  profilefiles burnuifiles
 INSTALLS +=  nativeuifiles 
 
 #The following line was inserted by qt3to4
-QT += xml sql opengl 
+QT += xml sql
+using_opengl:QT += opengl
 
 include ( ../../libs-targetfix.pro )
diff --git a/mythplugins/mytharchive/mytharchivehelper/mytharchivehelper.pro b/mythplugins/mytharchive/mytharchivehelper/mytharchivehelper.pro
index ae073c1..90e413e 100644
--- mythplugins/mytharchive/mytharchivehelper/mytharchivehelper.pro
+++ mythplugins/mytharchive/mytharchivehelper/mytharchivehelper.pro
@@ -9,7 +9,8 @@ INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libswscale
 DEPENDPATH *= $${INCLUDEPATH}
 
 TEMPLATE = app
-CONFIG += thread opengl
+CONFIG += thread
+using_opengl:CONFIG += opengl
 
 target.path = $${PREFIX}/bin
 
@@ -27,4 +28,5 @@ LIBS += -lmythavcodec-$$LIBVERSION
 LIBS += -lmythavformat-$$LIBVERSION
 LIBS += -lmythswscale-$$LIBVERSION
 
-QT += xml sql opengl
+QT += xml sql
+using_opengl:QT += opengl
diff --git a/mythplugins/mythbrowser/mythbrowser/mythbrowser.pro b/mythplugins/mythbrowser/mythbrowser/mythbrowser.pro
index 98a8a9d..f689c0c 100644
--- mythplugins/mythbrowser/mythbrowser/mythbrowser.pro
+++ mythplugins/mythbrowser/mythbrowser/mythbrowser.pro
@@ -2,10 +2,12 @@ include (../../mythconfig.mak )
 include (../../settings.pro )
 include (../../programs-libs.pro )
 
-QT += network xml sql opengl webkit
+QT += network xml sql webkit
+using_opengl:QT += opengl
 
 TEMPLATE = lib
-CONFIG += thread opengl plugin warn_on
+CONFIG += thread plugin warn_on
+using_opengl:CONFIG += opengl
 TARGET = mythbrowser
 target.path = $${LIBDIR}/mythtv/plugins
 INSTALLS += target
diff --git a/mythplugins/mythflix/mythflix/mythflix.pro b/mythplugins/mythflix/mythflix/mythflix.pro
index 5ffa22e..4359f77 100644
--- mythplugins/mythflix/mythflix/mythflix.pro
+++ mythplugins/mythflix/mythflix/mythflix.pro
@@ -25,6 +25,7 @@ SOURCES += newsengine.cpp dbcheck.cpp flixutil.cpp
 
 
 #The following line was inserted by qt3to4
-QT += network xml sql opengl qt3support
+QT += network xml sql qt3support
+using_opengl:QT += opengl
 
 include ( ../../libs-targetfix.pro )
diff --git a/mythplugins/mythgallery/mythgallery/mythgallery.pro b/mythplugins/mythgallery/mythgallery/mythgallery.pro
index cf8219a..4542477 100644
--- mythplugins/mythgallery/mythgallery/mythgallery.pro
+++ mythplugins/mythgallery/mythgallery/mythgallery.pro
@@ -37,6 +37,7 @@ opengl {
 
 
 #The following line was inserted by qt3to4
-QT += network opengl sql xml
+QT += network sql xml
+using_opengl:QT += opengl
 
 include ( ../../libs-targetfix.pro )
diff --git a/mythplugins/mythgame/mythgame/mythgame.pro b/mythplugins/mythgame/mythgame/mythgame.pro
index b1f371a..39e7847 100644
--- mythplugins/mythgame/mythgame/mythgame.pro
+++ mythplugins/mythgame/mythgame/mythgame.pro
@@ -23,6 +23,7 @@ use_hidesyms {
 LIBS += -lz
 
 #The following line was inserted by qt3to4
-QT += xml sql opengl qt3support 
+QT += xml sql qt3support
+using_opengl:QT += opengl
 
 include ( ../../libs-targetfix.pro )
diff --git a/mythplugins/mythmusic/mythmusic/mythmusic.pro b/mythplugins/mythmusic/mythmusic/mythmusic.pro
index 177a5bc..1153405 100644
--- mythplugins/mythmusic/mythmusic/mythmusic.pro
+++ mythplugins/mythmusic/mythmusic/mythmusic.pro
@@ -3,7 +3,8 @@ include ( ../../settings.pro )
 include ( ../../programs-libs.pro )
 include (config.pro)
 
-QT += xml sql opengl qt3support network
+QT += xml sql qt3support network
+using_opengl:QT += opengl
 
 !exists( config.pro ) {
    error(Missing config.pro: please run the configure script)
diff --git a/mythplugins/mythvideo/mtd/mtd.pro b/mythplugins/mythvideo/mtd/mtd.pro
index 7c3c357..d63d170 100644
--- mythplugins/mythvideo/mtd/mtd.pro
+++ mythplugins/mythvideo/mtd/mtd.pro
@@ -5,7 +5,8 @@ include ( ../../programs-libs.pro )
 QT += sql xml network
 
 TEMPLATE = app
-CONFIG += thread opengl
+CONFIG += thread
+using_opengl:CONFIG += opengl
 TARGET = mtd
 target.path = $${PREFIX}/bin
 INSTALLS += target