From xemacs-m  Sun May 25 09:00:35 1997
Received: from goggins.bath.ac.uk (pp@goggins.bath.ac.uk [138.38.32.13])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA00681
	for <xemacs-beta@xemacs.org>; Sun, 25 May 1997 09:00:32 -0500 (CDT)
Received: from niss.ac.uk (actually host hands.niss.ac.uk) 
          by goggins.bath.ac.uk with SMTP (PP); Sun, 25 May 1997 15:00:01 +0100
Received: by niss.ac.uk (SMI-8.6/SMI-SVR4)	id NAA09429;
          Sun, 25 May 1997 13:59:54 GMT
Date: Sun, 25 May 1997 13:59:54 GMT
Message-Id: <199705251359.NAA09429@niss.ac.uk>
From: N J Doye <nic@niss.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: georgn@Canada.Sun.COM
Cc: N J Doye <nic@niss.ac.uk>, xemacs-beta@xemacs.org
Subject: Re: 20.3-b2 fails configure Sol2.5+cc
In-Reply-To: <199705231756.NAA00700@verve.canada.sun.com>
References: <199705231428.OAA11452@niss.ac.uk>	<199705231756.NAA00700@verve.canada.sun.com>
X-Mailer: VM 6.31 under 20.1 XEmacs Lucid (beta10)

Georg Nikodym spake thus:

->>>>>> "NJD" == N J Doye <nic@niss.ac.uk> writes:
->
-> NJD> Hi all, sorry, haven't figured out what's going on, yet. ld is
-> NJD> getting an argument it can't handle. (-2 from the -O2, I think).
->
->Actually it's the C compiler.  It understands -O or -xO<n> where 1<n<5
->
->Add --cflags="what you know works" to your configure invocation.

And from reading Georg's next message (Subject: FYI) I found that
adding --compiler=cc really fixed the problem. Is there a good reason
for the default non-gcc compiler (on solaris) to be 'cc -g -O2' when
(for me, at least) this doen't work? Is it because some people don't
use the cool Sun Pro compiler?

Also why does it check if gcc works, when I've specified not to use
it? 

Anyhow, it's configured fine this time. A big thank you to all XEmacs
developers out there. :-)

uname -a: SunOS hands.niss.ac.uk 5.5 Generic_103093-05 sun4m sparc SUNW,SPARCstation-5

./configure sparc-sun-solaris2.5 \
--with-x=yes --dynamic \
--prefix=/home/hands/ccsnjd/Opt \
--with-sound=native --with-gcc=no --with-gif=yes --with-xpm=yes \
--extra-verbose --compiler=cc --cflags="-g -xO2"

Configured for `sparc-sun-solaris2.5'.
 
  Where should the build process find the source code?    /home/hands/ccsnjd/Src/xemacs-20.3-b2
  What installation prefix should install use?            /home/hands/ccsnjd/Opt
  What operating system and machine description files should XEmacs use?
        `s/sol2-5.h' and `m/sparc.h'
  What compiler should XEmacs be built with?              cc -g -xO2
  Should XEmacs use the GNU version of malloc?            yes
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Where do we find X Windows header files?                /usr/dt/include /usr/openwin/include
  Where do we find X Windows libraries?                   /usr/dt/lib /usr/openwin/lib
  Runtime library search path:                            /usr/dt/lib:/usr/openwin/lib
  Compiling in support for XAUTH.
  Compiling in support for GIF image conversion.
  Compiling in support for XPM images.
  Compiling in native sound support.
  Compiling in support for GNU DBM.
  Compiling in support for ToolTalk.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Motif dialog boxes.
  Compiling in extra code for debugging.
  Compiling in code for checking XEmacs memory usage.
  WARNING: ---------------------------------------------------------
  WARNING: Compiling in support for runtime error checking.
  WARNING: XEmacs will run noticeably more slowly as a result.
  WARNING: Error checking is on by default for XEmacs beta releases.
  WARNING: ---------------------------------------------------------

-- 
Nic Doye,      Computer Officer,     NISS    | e-mail:    nic@niss.ac.uk
(National Information Services & Systems),   | tel: +44 1225 826826x4757
University of Bath,  Bath.   BA2 7AY.  UK.   | fax:      +44 1225 826117

