anchor.diff:        then [ "--disable-ns-self-contained" ]
       else if withX
         then [ "--with-x-toolkit=${toolkit}" "--with-xft" "--with-cairo" ]
  -      else [ "--with-x=no" "--with-xpm=no" "--with-jpeg=no" "--with-png=no"
  -             "--with-gif=no" "--with-tiff=no" ])
  +    else if withPgtk
  +      then [ "--with-pgtk" ]
  +    else [ "--with-x=no" "--with-xpm=no" "--with-jpeg=no" "--with-png=no"
  +           "--with-gif=no" "--with-tiff=no" ])
       ++ lib.optionals withMacport [
         "--with-mac"
         "--enable-mac-app=$$out/Applications"
  
positive.code:     ++ lib.optionals stdenv.isLinux [ dbus libselinux alsa-lib acl gpm ]
      ++ lib.optionals withSystemd [ systemd ]
      ++ lib.optionals withX
        [ xlibsWrapper libXaw Xaw3d libXpm libpng libjpeg giflib libtiff libXft
          gconf cairo ]
      ++ lib.optionals (withX || withNS) [ librsvg ]
      ++ lib.optionals withImageMagick [ imagemagick ]
      ++ lib.optionals (stdenv.isLinux && withX) [ m17n_lib libotf ]
      ++ lib.optional (withX && withGTK2) gtk2-x11
  
negative.code:     ++ lib.optional withXwidgets "--with-xwidgets"
      ++ lib.optional nativeComp "--with-native-compilation"
      ++ lib.optional withImageMagick "--with-imagemagick"
      ++ lib.optional withXinput2 "--with-xinput2"
      ++ lib.optional (!withToolkitScrollBars) "--without-toolkit-scroll-bars"
    ;
  