From xemacs-m  Mon Jun  9 17:49:03 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 RAA10340
	for <xemacs-beta@xemacs.org>; Mon, 9 Jun 1997 17:49:03 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id QAA27375; Mon, 9 Jun 1997 16:08:17 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id PAA21921; Mon, 9 Jun 1997 15:47:31 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id PAA18752; Mon, 9 Jun 1997 15:47:27 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id PAA13729; Mon, 9 Jun 1997 15:47:25 -0700
Date: Mon, 9 Jun 1997 15:47:25 -0700
Message-Id: <199706092247.PAA13729@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: Steven L Baur <steve@miranova.com>
Cc: XEmacs Beta Test <xemacs-beta@xemacs.org>
Subject: PATCH: new-configure-5-improved.diff
X-Mailer: VM 6.32 under 20.3 XEmacs Lucid (beta4)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

The latest configure changes are in your incoming.

Configure has been rewritten yet again.  I apologize for any
instability.  bsd derivatives in particular may be broken by this
patch.  Please provide feedback.

Steve: Please rename to avoid confusion:

mv new-configure-5.diff new-configure-5-broken.diff
mv new-configure-5-improved.diff new-configure-5.diff


Changelog entries:
1997-06-09  Martin Buchholz  <mrb@eng.sun.com>

	* */Makefile.in.in:
	* src/s/solaris*.h:
	* src/s/sunos4*.h:
	* src/s/linux.h:
	* src/s/bsd*.h:
	* configure.in: Yet another complete configure reorg:
	- recognition of cflags rewritten - existing mechanism scrapped.
	- Sun platforms now use $CC -E instead of /usr/ccs/lib/cpp
	- We now try to use -DFUNCPROTO=15 globally for better error checking
	- Linux no longer used -DBSD_SOURCE
	- lwlib and dynodump Makefiles cleaned up
	- More cpp cruft removed from Makefiles
	- configure environment variables better documented
	- SunPro compiler now recognized, similarily to gcc.
	- LIBS_MACHINE now properly recognized
	- limits.h now autodetected, and used if found.
	- the same -L/-R paths now used for linking *all* parts of XEmacs
	- there is now a message describing the type of movemail locking
	- Makefiles are now much more likely to survive a nasty cpp.
	- Xpm recognition is backed out to old method.
	- Linux and bsd* systems now use ORDINARY_LINK
	- lwlib build arguments now determined using sh instead of cpp.
	- compile commands are now much shorter and more efficient; 
	  unnecessary -I options and whitespace have been stripped.
	- Vanilla Linux build completely warning-free
	- SunPro build now only generates 2 warnings
	- configure now autodetects /usr/local/{lib,include}

	* src/balloon-x.c:
	* src/balloon_help.c:
	* src/mule-wnnfns.c: [...ugh!]
	* src/regex.c:  Fix compiler warnings
	

