emacs-23: hacky fix to libXaw linker errors on MacOS X

When building Emacs on MacOS X, the configure script believes that libXaw is
available and tries to link it (even when, in fact, libXaw is not available).
To work around that problem, we make Xaw support mandatory on MacOS X.

svn path=/nixpkgs/trunk/; revision=17610
This commit is contained in:
Peter Simons 2009-10-02 13:57:26 +00:00
parent 1570ccf3cf
commit 49afefdb19
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ assert dbusSupport -> dbus != null;
assert xaw3dSupport -> Xaw3d != null;
assert gtkGUI -> pkgconfig != null && gtk != null;
assert xftSupport -> libXft != null && libpng != null; # libpng = probably a bug
assert stdenv.system == "i686-darwin" -> xawSupport; # fails to link otherwise
stdenv.mkDerivation rec {
name = "emacs-23.1";

View File

@ -6631,7 +6631,7 @@ let
libpng libjpeg libungif libtiff texinfo dbus;
inherit (xlibs) libXaw libXpm libXft;
inherit (gtkLibs) gtk;
xawSupport = getPkgConfig "emacs" "xawSupport" false;
xawSupport = system == "i686-darwin" || getPkgConfig "emacs" "xawSupport" false;
xaw3dSupport = getPkgConfig "emacs" "xaw3dSupport" false;
gtkGUI = getPkgConfig "emacs" "gtkSupport" true;
xftSupport = getPkgConfig "emacs" "xftSupport" true;