From xemacs-m  Tue Feb 18 14:49:32 1997
Received: from frege.math.ethz.ch (root@frege-d-math-north-g-west.math.ethz.ch [129.132.145.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id OAA03546
	for <xemacs-beta@xemacs.org>; Tue, 18 Feb 1997 14:49:31 -0600 (CST)
Received: from fresnel.math.ethz.ch (vroonhof@fresnel [129.132.145.6]) by frege.math.ethz.ch (8.6.12/Main-STAT-mailer) with ESMTP id VAA12284 for <xemacs-beta@xemacs.org>; Tue, 18 Feb 1997 21:49:24 +0100
Received: (vroonhof@localhost) by fresnel.math.ethz.ch (8.6.9/D-MATH-client) id VAA02817; Tue, 18 Feb 1997 21:48:52 +0100
Sender: vroonhof@math.ethz.ch
To: xemacs-beta@xemacs.org
Subject: Re: Minor 19.15-b94 ./configure problem on Solaris 2.x
References: <byraiejaaz.fsf@math.ethz.ch>
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII
From: Jan Vroonhof <vroonhof@math.ethz.ch>
Date: 18 Feb 1997 21:48:51 +0100
In-Reply-To: Jan Vroonhof's message of 18 Feb 1997 18:25:40 +0100
Message-ID: <bypvxxkfgs.fsf@math.ethz.ch>
Lines: 50
X-Mailer: Gnus v5.4.13/XEmacs 19.15

Jan Vroonhof <vroonhof@math.ethz.ch> writes:

> On our Solaris machines with the X11R5 compiled by our sysadmins the
> configure script failed to detect the need for -lXmu. No foreign
> libraries besides XPM 3.4h 

... and of course the nonnative X11R5.
I did a ./configure --extra-verbose and this gives:
[..]
checking for specified window system
  No window system specified.  Looking for X11.
checking for X include and library files with xmkmf
	X11 headers are in /sugd/sunos5/X11R5/include
	X11 libraries are in /sugd/sunos5/X11R5/lib
  Using X11.
[..]
checking for -lXmu
Undefined			first referenced
 symbol  			    in file
XtDisplayToApplicationContext       /sugd/sunos5/X11R5/lib/libXmu.so
XtIsManaged                         /sugd/sunos5/X11R5/lib/libXmu.so
[..]
ld: fatal: Symbol referencing errors. No output written to conftest

[..]
  No Xmu; substituting equivalent routines.

[..]

So apparently our Xmu library needs to be linked against libXt. If
read configure.in it says:
#
# see if Xmu is hanging around somewhere
#
# FSF 19.31 has this:
#dnl If using toolkit, check whether libXmu.a exists.
#dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
#  OLDLIBS="$LIBS"
#  if test x$HAVE_X11XTR6 = xyes; then
#    LIBS="-lXt -lSM -lICE $LIBS"
#  else
#    LIBS="-lXt $LIBS"
#  fi
#  A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
#  LIBS="$OLDLIBS"

So we should follow the FSF lead and include -lXt temporarily when
conftest-ing for Xmu.

Jan

