From xemacs-m  Mon Jul 21 20:04:40 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 UAA22670
	for <xemacs-beta@xemacs.org>; Mon, 21 Jul 1997 20:04:39 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id SAA14754; Mon, 21 Jul 1997 18:33:33 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id SAA24427; Mon, 21 Jul 1997 18:04:03 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id SAA15192; Mon, 21 Jul 1997 18:04:02 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id SAA14316; Mon, 21 Jul 1997 18:03:58 -0700
Date: Mon, 21 Jul 1997 18:03:58 -0700
Message-Id: <199707220103.SAA14316@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: "Barry Friedman" <friedman@nortel.ca>
Cc: neal@ctd.comsat.com (Neal Becker), xemacs-beta@xemacs.org
Subject: Re: No -lPW please
In-Reply-To: <9707220024.AA10014@nquah6f>
References: <E0wqIaN-00063g-00@neal.ctd.comsat.com>
	<9707220024.AA10014@nquah6f>
X-Mailer: VM 6.32 under 20.3 "Sofia" XEmacs  Lucid (beta9)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Barry" == Barry Friedman <friedman@nortel.ca> writes:

Barry> Neal Becker wrote:
>> 
>> It seems that -lPW is back with b14 on hpux9.05.  Is that because I
>> had trouble with patching up configure?  (I wish someone would mail me 
>> a current b14 configure).
>> 
>> Please don't use -lPW on hpux.  It is evil.

Barry> It's back because there isn't any other alloca that I know of and
Barry> hp-c89 fails to compile without one.

Barry> The inclusion of -lPW should be compiler dependent and only included
Barry> in the link for the lib-src directory where the compile fails otherwise.

Barry> Any other solutions gratefully accepted.

HP Guys & Gals, I'd like you to take ownership of this problem.  It's
hard for me to deal with this without access to an appropriate system.

It seems really lame that the HP linker would complain about a
duplicate symbol in a library.  Isn't the app always allowed to
override symbols from libraries?

Anyways, try this patch, and if possible, test with cc and gcc.

+++ configure.in
@@ -2817,7 +2813,7 @@
 fi
 
 dnl HP-UX has a working alloca in libPW.
-case "$opsys" in hpux* )
+case "${GCC}${opsys}" in hpux* )
  AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)])
 esac
 

