From xemacs-m  Thu Jun 12 14:36:47 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id OAA07757
	for <xemacs-beta@xemacs.org>; Thu, 12 Jun 1997 14:36:46 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id MAA18146 for <xemacs-beta@xemacs.org>; Thu, 12 Jun 1997 12:56:39 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id MAA07924; Thu, 12 Jun 1997 12:35:07 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id MAA03701; Thu, 12 Jun 1997 12:35:05 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id MAA21292; Thu, 12 Jun 1997 12:35:05 -0700
Date: Thu, 12 Jun 1997 12:35:05 -0700
Message-Id: <199706121935.MAA21292@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Hrvoje Niksic <hniksic@srce.hr>
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Moscow: SUCCESS on sparc-sun-solaris2.5
In-Reply-To: <kigyb8f3kwh.fsf@jagor.srce.hr>
References: <kigyb8f3kwh.fsf@jagor.srce.hr>
X-Mailer: VM 6.32 under 20.3 "Zagreb" XEmacs Lucid (beta5)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Hrv" == Hrvoje Niksic <Hrvoje> writes:


Hrv> Note, however, that autodetection FAILED for me.

Hrv> configure:5544: checking for Xpm
Hrv> configure:5555: gcc -o conftest -g   -I/usr/local/include    -I/usr/dt/include  
Hrv> -I/usr/openwin/include  -L/usr/local/lib -L/usr/ccs/lib -fno-gnu-linker   -L/usr
Hrv> /dt/lib -L/usr/openwin/lib  -R/usr/local/lib:/usr/local/lib:/usr/local/lib:/usr/
Hrv> dt/lib:/usr/openwin/lib:/usr/local/lib conftest.c -lXpm  -lDtSvc -ltt  -lXmu -lX
Hrv> t -lXext -lX11  -lkvm -lkstat -lm   -lsocket -lnsl -lelf -lgen -ldl  1>&5
Hrv> configure: failed program was:
Hrv> #line 5547 "configure"
Hrv> #include "confdefs.h"
Hrv> #include <X11/xpm.h>
Hrv> int main(int argc, char *argv[]) {
Hrv> return (XpmIncludeVersion != XpmLibraryVersion()) ||
Hrv>         XpmIncludeVersion < 30406;
Hrv> }

Hrv> On my system I have xpm.h from 30406 and library 30408, and things
Hrv> have worked with XEmacs before.  I'll tell the admins to fix that, but 
Hrv> shouldn't a better check be:

Hrv> return XpmLibraryVersion() < 30406 || XpmIncludeVersion < 30406;

If the versions of the header and library don't match, then xpm is
incorrectly installed, and using it is asking for trouble. So I don't
think it should be autodetected in this case.  Obviously we could have
better diagnostics.  Hrvoje, you could try adding a
fprintf(stderr,...) to the above program (i.e. modify configure.in)
when there is a version mismatch - I am not sure whether the stderr
will end up in config.log or not.

Martin

