all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dkcombs@panix.com (David Combs)
Subject: Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?
Date: Thu, 22 May 2003 08:02:17 +0000 (UTC)	[thread overview]
Message-ID: <bai069$200$1@reader1.panix.com> (raw)
In-Reply-To: 5lhe7olyei.fsf@rum.cs.yale.edu

In article <5lhe7olyei.fsf@rum.cs.yale.edu>,
Stefan Monnier <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> wrote:
>>> [emacs-21.3]$ ./configure --prefix=/usr/sfw --with-x-toolkit=motif
>>> --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-x
>
>> Question: does any 2nd person agree that I should use
>> the above config-args -- either as-is, or with modifications.
>
>The --with-xpm, --with-jpeg, --with-tiff, --with-gif, and --with-png,
>and --with-x should be unnecessary (they are autodetected).
>The --with-x-toolkit=motif is your choice, depending on whether you prefer
>the Motif toolkit for scrollbars and menus or the Xaw3d toolkit for
>scrollbars and the Lucid toolkit for menus.
>
>You have Xaw3d installed on your system in /usr/sfw/lib as your
>listing has shown, so it should work just fine as long as you make sure
>to tell the executable where the Xaw3d library can be found.
>
>For that you need to either provide a -R/usr/sfw/lib argument or an
>LD_RUN_PATH to the C compiler (the C compiler did find the library while

How do I do that?  Is there some way that I can add it as
a config arg?  Or as an env-variable?  Or do I have to
go into the resulting makefile (Makefile?) and add it, by
hand, after cc command?



>compiling,  but the compiler does not assume that the library will be at the
>same spot when you run the program as when you compile) or set
>LD_LIBRARY_PATH if you forgot to give the relevant info to the compiler.
>The -R option is the best choice.
>
>The same issue you're seeing with Xaw3d might occur with Motif, of course,
>depending on where the library is installed and what is the default search
>path for dynamically linked libraries.
>
>
>        Stefan

Here's some lines from the Makefile:











(an *Occur* buffer):
3 lines matching "(CC)" in buffer Makefile<2>.
     69:	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
     79:LD = $(CC)
    107:	$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args



---- Now I show that "*Occur*" again, but broken up,
     and showing that piece's matching lines just below (with,
     for context, a few lines before and after the matched line(s).


For anyone's edification,  I did two M-x Occurs in the Makefile,
and I show them here, along with the matched lines and
each with some surrounding context-lines.

Anyone eager to write in come comments or other
explanatons or background or even modifications,
as tutorial info, please do so.

THANKS!

David



[From the *Occur*]
     69:	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<


# ========================== start of cpp stuff =======================
C_SWITCH_SYSTEM=
SHELL=/bin/sh
TOOLKIT_DEFINES = -DUSE_LUCID
ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir}       -I/usr/openwin/include    -I/usr/dt/include  ${CFLAGS}
.c.o:
	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o
OLDXMENU=${lwlibdir}liblw.a
LIBXMENU= $(OLDXMENU)
LIBW= -lXaw3d
LIBXTR6 = -lSM -lICE
LIBXT= $(LIBW) -lXmu  -lXt $(LIBXTR6) -lXext
X11_LDFLAGS = -L/usr/openwin/lib   
LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT)         -lXpm  -lX11     
LIBSOUND= 

[Note: the line immediately following the above one *is*
the line-79 "LD =" below, that was matched by M-x Occur.



[From the *Occur*]
     79:LD = $(CC)

LD = $(CC)
ALL_LDFLAGS =   -L/usr/ccs/lib `./prefix-args -Xlinker -R/usr/openwin/lib ` `{ set x USE_MOTIF; test "$$2" = "USE_MOTIF"; }  || echo ' -R/usr/dt/lib -L/usr/dt/lib'`    	     $(LDFLAGS)
INTERVAL_SRC = intervals.h composite.h
GETLOADAVG_LIBS = 
obj=    dispnew.o frame.o scroll.o xdisp.o xmenu.o window.o 	charset.o coding.o category.o ccl.o	cm.o term.o xfaces.o $(XOBJ) 	emacs.o keyboard.o macros.o keymap.o sysdep.o 	buffer.o filelock.o insdel.o marker.o 	minibuf.o fileio.o dired.o filemode.o 	cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o 	alloc.o data.o doc.o editfns.o callint.o 	eval.o floatfns.o fns.o print.o lread.o 	abbrev.o syntax.o unexelf.o  mocklisp.o bytecode.o 	process.o callproc.o 	region-cache.o sound.o atimer.o 	doprnt.o strftime.o intervals.o textprop.o composite.o md5.o 	$(MSDOS_OBJ)



[From the *Occur*]
    107:	$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args


temacs:   $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj}   prefix-args
	$(LD)  ${STARTFLAGS} ${ALL_LDFLAGS}       -o temacs ${STARTFILES} ${obj} ${otherobj}        ${LIBES}
prefix-args: prefix-args.c $(config_h)
	$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) 
	touch stamp-oldxmenu
../src/$(OLDXMENU): ${OLDXMENU}
$(OLDXMENU): really-lwlib









====================== Now, the Occur is on "cflags":


6 lines matching "cflags" in buffer Makefile<2>.
     37:CFLAGS= -g -O2 
     67:ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir}       -I/usr/openwin/include    -I/usr/dt/include  ${CFLAGS}
     69:	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
    107:	$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
    119:	cd ${lwlibdir}; ${MAKE} ${MFLAGS}       CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'     "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)"     "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)"     "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)"     "C_SWITCH_SITE=$(C_SWITCH_SITE_1)"     "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)"     "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)"
    249:	LC_ALL=C $(MAKE) $(MFLAGS) temacs ALL_CFLAGS="$(ALL_CFLAGS) -DPURESIZE=5000000 -I../src"


---- Now I show THIS "*Occur*" again, but broken up,
     and showing that piece's matching lines just below (with,
     for context, a few lines before and after the matched line(s).



[From the *Occur*]
6 lines matching "cflags" in buffer Makefile<2>.
     37:CFLAGS= -g -O2 

CC=gcc
CPP=gcc -E
CFLAGS= -g -O2 
CPPFLAGS=    
LDFLAGS= -L/usr/openwin/lib -L/extra-non-sun--c-libraries--bin # dkc-added-3may03
LN_S=ln -s



[From the *Occur*]
     67:ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir}       -I/usr/openwin/include    -I/usr/dt/include  ${CFLAGS}
     69:	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<


# ========================== start of cpp stuff =======================
C_SWITCH_SYSTEM=
SHELL=/bin/sh
TOOLKIT_DEFINES = -DUSE_LUCID
ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir}       -I/usr/openwin/include    -I/usr/dt/include  ${CFLAGS}
.c.o:
	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<



[From the *Occur*]
    107:	$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
    119:	cd ${lwlibdir}; ${MAKE} ${MFLAGS}       CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'     "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)"     "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)"     "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)"     "C_SWITCH_SITE=$(C_SWITCH_SITE_1)"     "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)"     "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)"


temacs:   $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj}   prefix-args
	$(LD)  ${STARTFLAGS} ${ALL_LDFLAGS}       -o temacs ${STARTFILES} ${obj} ${otherobj}        ${LIBES}
prefix-args: prefix-args.c $(config_h)
	$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) 
	touch stamp-oldxmenu
../src/$(OLDXMENU): ${OLDXMENU}
$(OLDXMENU): really-lwlib
C_SWITCH_MACHINE_1 =  
C_SWITCH_SYSTEM_1 =  
C_SWITCH_SITE_1 =  
C_SWITCH_X_SITE_1 = -I/usr/openwin/include 
C_SWITCH_X_MACHINE_1 =  
C_SWITCH_X_SYSTEM_1 = -I/usr/dt/include 
really-lwlib:
	cd ${lwlibdir}; ${MAKE} ${MFLAGS}       CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'     "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)"     "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)"     "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)"     "C_SWITCH_SITE=$(C_SWITCH_SITE_1)"     "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)"     "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)"
	@true   
.PHONY: really-lwlib



[From the *Occur*]
    249:	LC_ALL=C $(MAKE) $(MFLAGS) temacs ALL_CFLAGS="$(ALL_CFLAGS) -DPURESIZE=5000000 -I../src"



.PHONY: tags
bootstrap: bootstrap-emacs
bootstrap-temacs: 
	LC_ALL=C $(MAKE) $(MFLAGS) temacs ALL_CFLAGS="$(ALL_CFLAGS) -DPURESIZE=5000000 -I../src"
bootstrap-doc: ${libsrc}make-docfile
	-rm -f ${etc}DOC
	els=`echo ${shortlisp} ${SOME_MACHINE_LISP} 		| sed -e "s/\\.elc/.el/g"`; 	${libsrc}make-docfile -d ${srcdir} $$els ${obj} > ${etc}DOC
bootstrap-emacs: bootstrap-temacs bootstrap-doc
	./temacs --batch --load loadup bootstrap
	mv -f emacs bootstrap-emacs
	rm -f temacs

  parent reply	other threads:[~2003-05-22  8:02 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-20 16:41 Has anyone actually built emacs 21.3 for SOLARIS (sparc)? David Combs
2003-05-20 18:10 ` Stefan Monnier
2003-05-20 19:38   ` Dave Uhring
2003-05-20 18:39 ` Dave Uhring
2003-05-21 21:47   ` David Combs
2003-05-21 22:37     ` Stefan Monnier
2003-05-21 23:15       ` Darren Dunham
2003-05-22  0:54         ` Stefan Monnier
2003-05-22 15:06           ` bbense+gnu.emacs.help.comp.unix.solaris.May.22.03
2003-05-22 15:45             ` Dave Uhring
2003-05-23  5:28               ` David Combs
2003-05-23  9:18                 ` David Combs
2003-05-23 10:45                   ` Dave Uhring
2003-05-26  0:44                     ` David Combs
2003-05-23 10:41                 ` Dave Uhring
2003-05-23  4:36             ` David Combs
2003-05-23  5:53               ` Miles Bader
2003-05-22  8:02       ` David Combs [this message]
2003-05-22 13:56         ` Stefan Monnier
2003-05-22 14:53           ` David Combs
2003-05-20 19:53 ` Bijan Soleymani
2003-05-20 21:03   ` Dave Uhring
2003-05-21  8:50     ` David Combs
2003-05-21 15:55       ` Dave Uhring
2003-05-21 22:24         ` David Combs
2003-05-21 22:49           ` Stefan Monnier
2003-05-21 23:34           ` Dave Uhring
2003-05-22  8:07             ` David Combs
2003-05-22 13:48             ` Casper H.S. Dik
2003-05-22 14:45               ` Dave Uhring
2003-05-24  7:29                 ` David Combs
2003-05-24 14:55                   ` Dave Uhring
2003-05-25 16:40                     ` Philip Brown
2003-05-26  2:46                       ` David Combs
2003-05-26 19:14                         ` Philip Brown
2003-05-26 13:13                     ` David Combs
2003-05-26 15:46                       ` Dave Uhring
2003-05-26 22:49                         ` David Combs
2003-05-26 23:44                           ` Dave Uhring
2003-05-27  0:10                             ` Dave Uhring
2003-06-03  7:13                               ` David Combs
2003-06-03  7:09                             ` David Combs
2003-06-03 13:47                               ` Dave Uhring
2003-05-27 15:42                         ` Kevin Rodgers
2003-06-03  7:19                           ` David Combs
2003-05-21 21:44     ` David Combs

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

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

  git send-email \
    --in-reply-to='bai069$200$1@reader1.panix.com' \
    --to=dkcombs@panix.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.