case $THIS_SUB_DEPENDS in
DBUS) echo "DBUS support requested, forcing dbus dependency." &&
     depends dbus
     ;;
#GIF) echo "GIF support requested, forcing giflib dependency." &&
#     depends giflib
#     ;;
OPENGL) echo "OPENGL support requested, forcing OPENGL dependency." &&
     depends OPENGL
     ;;
FIREBIRD) echo "Firebird support requested, forcing firebird dependency." &&
     depends firebird \
             "-plugin-sql-ibase  -I$INSTALL_ROOT/opt/firebird/include  \
             -L$INSTALL_ROOT/opt/firebird/lib"
     ;;
POSTGRESQL) echo "Postresql support requested, forcing  postgresql dependency." &&
     depends postgresql \
             "-plugin-sql-psql  -I$INSTALL_ROOT/src/include/postgresql       \
              -I$INSTALL_ROOT/usr/include/server/libpq  -L$INSTALL_ROOT/usr/lib  -lpq"
     ;;
SQLITE) echo "Sqlite support requested, forcing sqlite dependency." &&
     depends sqlite
      ;;
SSL) echo "SSL support requested, forcing SSL dependency." &&
     depends SSL
      ;;
TOOLS) if [[ $QT_TOOLS == "-nomake" ]]; then
         echo "Tools requested, forcing build." &&
         QT_TOOLS="-make"
       fi
       ;;
STL) if [[  $QT_STL == "-no-stl" ]]; then
       echo "STL support requested, forcing build."  &&
       QT_STL="-stl"
     fi
     ;;
QT3) if [[  $QT_QT3 == "-no-qt3support" ]]; then
       echo "Qt3 support requested, forcing build."  &&
       QT_QT3="-qt3support"
     fi
     ;;
WEBKIT) if [[  $QT_WEBKIT == "-no-webkit" ]]; then
          echo "WebKit module requested, forcing build."  &&
          QT_WEBKIT="-webkit"
        fi
        ;;
MYSQL) echo "MySQL support requested, forcing mysql dependency." &&
       depends MYSQL "-plugin-sql-mysql  -I$INSTALL_ROOT/usr/include/mysql  \
                   -L$INSTALL_ROOT/usr/lib  -lmysqlclient"
       ;;
MEDIA) if [[  $QT_MEDIA == "-no-multimedia" ]]; then
          echo "Multimedia module requested, forcing build."  &&
          QT_MEDIA="-multimedia"
        fi
        ;;
GTK) if [[  $QT_GTK == "-no-gtkstyle" ]]; then
          echo "GTK theme integration requested, forcing build."  &&
          QT_GTK="-gtkstyle"
        fi
        ;;
ACCESS) if [[  $QT_ACCESS == "-no-accessibility" ]]; then
          echo "Accessiblity support requested, forcing build."  &&
          QT_ACCESS="-accessibility"
        fi
        ;;
EXCEPT) if [[ $QT_EXCEPT == "-no-exceptions" ]]; then
          echo "Exception checking requested, forcing build."
          QT_EXCEPT="-exceptions"
        fi
        ;;
PHONON) if [[ $QT_PHONON == "-no-phonon -no-phonon-backend" ]]; then
          echo "Phonon backend requested, forcing build."
          QT_PHONON="-phonon -phonon-backend"
        fi
        ;;
NO_PHONON) if [[ $QT_PHONON == "-phonon -phonon-backend" ]]; then
             echo "Without phonon requested, forcing build."
             QT_PHONON="-no-phonon -no-phonon-backend"
           fi
           ;;

*) echo unknown sub-depends!!! ; return 1 ;;
esac
