unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrew Choi <akochoi@shaw.ca>
Cc: mac-emacs-devel@lists.sourceforge.net, emacs-devel@gnu.org
Subject: Re: [Mac-emacs-devel] "./configure --with-x --without-carbon" on MacOSX
Date: Wed, 31 Jul 2002 21:41:41 -0600	[thread overview]
Message-ID: <15820.0327343822$1028173301@news.gmane.org> (raw)
In-Reply-To: <3D8EFAA7-9319-11D6-977B-003065CDBD6E@mac.com>

Hi Nozomu,

Thanks!  This is a very nice patch.  I've checked this into the CVS
and added your installation instructions below to the file
mac/INSTALL.

Andrew.

[I have not tested this patch because I do not have X Window on my Mac.
I invite everyone interested to try it.]

> Hi,
> 
> I had to compile emacs of current CVS tree  with X window support on 
> MacOSX. But
> 
> 	./configure --with-x --without-carbon
> 
> did not work. I think there are two problems.
> 
> P1. Some symbols conflict between code for X and code for Carbon.
> P2. Even when the abobe problem is solved, temacs linked with X dynlib 
> cannot unexec.
> 
> To solve the problem 1, I made small patch attached to this mail.
> 
> I think I cannot solve the problem 2. But there is workaround. e.g.:
> 
> 	W2a. make directory contains only statically-linked X library.
> 		% sudo mkdir /usr/X11R6/libstatic
> 		% cd /usr/X11R6/libstatic
> 		% sudo ln -s ../lib/lib*.a ../lib/X11 .
> 	W2b. configure Emacs with the libraries.
> 		% ./configure --without-carbon --with-x --x-
> libraries=/usr/X11R6/libstatic
> 
> This emacs on XDarwin also works fine for me.
> 
> I hope this helps.
> 
> Nozomu Ando
> -----
>
> Index: src/s/darwin.h
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/src/s/darwin.h,v
> retrieving revision 1.3
> diff -u -r1.3 darwin.h
> --- src/s/darwin.h	1 Jul 2002 23:30:21 -0000	1.3
> +++ src/s/darwin.h	9 Jul 2002 08:21:26 -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

           reply	other threads:[~2002-08-01  3:41 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <3D8EFAA7-9319-11D6-977B-003065CDBD6E@mac.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='15820.0327343822$1028173301@news.gmane.org' \
    --to=akochoi@shaw.ca \
    --cc=emacs-devel@gnu.org \
    --cc=mac-emacs-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).