From xemacs-m  Wed Jun 11 08:27:26 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 IAA16461
	for <xemacs-beta@xemacs.org>; Wed, 11 Jun 1997 08:27:25 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id GAA17781 for <xemacs-beta@xemacs.org>; Wed, 11 Jun 1997 06:47:01 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id GAA16916; Wed, 11 Jun 1997 06:25:49 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id GAA18295; Wed, 11 Jun 1997 06:25:47 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id GAA16597; Wed, 11 Jun 1997 06:25:48 -0700
Date: Wed, 11 Jun 1997 06:25:48 -0700
Message-Id: <199706111325.GAA16597@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: XEmacs Beta Test <xemacs-beta@xemacs.org>
Subject: xpm version configure test
In-Reply-To: <199706111254.FAA16587@xemacs.eng.sun.com>
References: <199706111254.FAA16587@xemacs.eng.sun.com>
X-Mailer: VM 6.32 under 20.3 "Zagreb" XEmacs Lucid (beta5)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Martin" == Martin Buchholz <Martin> writes:

Martin> I intend to use the following test to check that our Xpm version is
Martin> sufficiently up to date.  Can someone with an SGI check that the
Martin> broken Xpm installed on that system does in fact fail this test??
Martin> If it passes, what exactly is wrong with SGI's xpm?

Martin> #include <xpm.h>
Martin> #if XpmIncludeVersion < 30406
Martin> #error Xpm version too old
Martin> #endif

Here is the actual configure.in fragment for autodetecting Xpm which
will be included in the next beta.

dnl Autodetect Xpm
AC_MSG_CHECKING(for Xpm)
xe_check_libs=-lXpm
test -z "$with_xpm" && { AC_TRY_LINK([#include <X11/xpm.h>],[
#if XpmIncludeVersion < 30406
#error Xpm version too old
#endif
XpmFreeXpmInfo();
], with_xpm=yes , with_xpm=no)
}
xe_check_libs=
AC_MSG_RESULT($with_xpm)
if test "$with_xpm" = "yes"; then
  AC_DEFINE(HAVE_XPM)
  XE_PREPEND(-lXpm, libs_x)
fi


