changeset 46776:16b6134d7193

In src: 2002-07-31 Andrew Choi <akochoi@shaw.ca> * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if HAVE_CARBON is defined. In mac: 2002-07-31 Andrew Choi <akochoi@shaw.ca> * INSTALL: Add instructions for building X Window version.
author Andrew Choi <akochoi@shaw.ca>
date Thu, 01 Aug 2002 03:33:20 +0000
parents fa09ee24694e
children 19a2158de8ae
files mac/ChangeLog mac/INSTALL src/ChangeLog src/s/darwin.h
diffstat 4 files changed, 26 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mac/ChangeLog	Thu Aug 01 03:11:39 2002 +0000
+++ b/mac/ChangeLog	Thu Aug 01 03:33:20 2002 +0000
@@ -1,3 +1,7 @@
+2002-07-31  Andrew Choi  <akochoi@shaw.ca>
+
+	* INSTALL: Add instructions for building X Window version.
+
 2002-07-11  Andrew Choi  <akochoi@shaw.ca>
 
 	* make-package: Change -a option to -R for cp command.
--- a/mac/INSTALL	Thu Aug 01 03:11:39 2002 +0000
+++ b/mac/INSTALL	Thu Aug 01 03:33:20 2002 +0000
@@ -25,9 +25,6 @@
 
 The last step must be performed as root.
 
-If you have X Window installed, you need to type `./configure
---without-x' instead of `./configure'.
-
 You can type `make bootstrap' instead of `make' to rebuild everything,
 including byte-compiling the Lisp files.
 
@@ -43,6 +40,17 @@
 command-line options cannot be passed to Emacs running under the Aqua
 GUI.  This should soon be fixed.
 
+If you are building Emacs to run on Mac OS X and X Window, you need to
+create a directory containing statically-linked X libraries.
+
+  sudo mkdir /usr/X11R6/libstatic
+  cd /usr/X11R6/libstatic
+  sudo ln -s ../lib/lib*.a ../lib/X11 .
+
+Instead of typing `./configure' above, type
+
+  ./configure --without-carbon --with-x --x-libraries=/usr/X11R6/libstatic
+
 To use colors in a terminal, put the following lines in the file
 ~/.termcap and log in again.
 
--- a/src/ChangeLog	Thu Aug 01 03:11:39 2002 +0000
+++ b/src/ChangeLog	Thu Aug 01 03:33:20 2002 +0000
@@ -1,3 +1,8 @@
+2002-07-31  Andrew Choi  <akochoi@shaw.ca>
+
+	* s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
+	HAVE_CARBON is defined.
+
 2002-07-31  Richard M. Stallman  <rms@gnu.org>
 
 	* xmenu.c (set_frame_menubar): First parse all submenus,
--- a/src/s/darwin.h	Thu Aug 01 03:11:39 2002 +0000
+++ b/src/s/darwin.h	Thu Aug 01 03:33:20 2002 +0000
@@ -40,8 +40,10 @@
 /* MAC_OS is used to conditionally compile code common to both MAC_OS8
    and MAC_OSX.  */
 #ifdef MAC_OSX
+#ifdef HAVE_CARBON
 #define MAC_OS
 #endif
+#endif
 
 /* SYSTEM_TYPE should indicate the kind of system you are using.
  It sets the Lisp variable system-type.  */
@@ -222,7 +224,9 @@
 #define HAVE_SOCKETS
 
 /* Extra initialization calls in main for Mac OS X system type.  */
+#ifdef HAVE_CARBON
 #define SYMS_SYSTEM syms_of_mac()
+#endif
 
 /* Definitions for how to dump.  Copied from nextstep.h.  */
 
@@ -271,7 +275,9 @@
 
 /* Tell src/Makefile.in to create files in the Mac OS X application
    bundle mac/Emacs.app.  */
+#ifdef HAVE_CARBON
 #define OTHER_FILES macosx-app
+#endif
 
 
 /* Define the following so emacs symbols will not conflict with those