help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?


From: David Combs
Subject: Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?
Date: Thu, 22 May 2003 08:02:17 +0000 (UTC)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]