From xemacs-m  Wed Jul 30 08:01:30 1997
Received: from bcarsde4.localhost (mailgate.nortel.ca [192.58.194.74])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id IAA07581
	for <xemacs-beta@xemacs.org>; Wed, 30 Jul 1997 08:01:16 -0500 (CDT)
Received: from bcarsde5.ott.bnr.ca (actually 47.80.6.26) by bcarsde4.localhost;
          Wed, 30 Jul 1997 08:46:38 -0400
Received: from nquah6f (actually nquah6f.ott.bnr.ca) by bcarsde5.ott.bnr.ca;
          Wed, 30 Jul 1997 08:54:37 -0400
Received: by nquah6f (1.38.193.4/16.2 BNR V4.2 P1) id AA03127;
          Wed, 30 Jul 1997 08:53:28 -0400
From: Barry Friedman <friedman@nquah6f>
Message-Id: <9707301253.AA03127@nquah6f>
Subject: Re: HPUX 9 + cc + alloca + libPW
To: mrb@Eng.Sun.COM
Date: Wed, 30 Jul 1997 08:53:27 -0400 (EDT)
Cc: xemacs-beta@xemacs.org
Reply-To: "Barry Friedman" <friedman@nortel.ca>
In-Reply-To: <199707292143.OAA22771@xemacs.eng.sun.com> from "Martin Buchholz" at Jul 29, 97 02:43:02 pm
X-Mailer: ELM [version 2.4.1 PL23]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

I think you have given us the solution to this problem:

Martin Buchholz wrote:
> 
> Here is the relevant section from the Autoconf 2.12 documentation:
> 
[snip]
>           #   ifndef alloca /* predefined by HP cc +Olibcalls */

I modified src/s/hpux9.h  to define :  (patch below)
#define C_SWITCH_SYSTEM "-Ae -Wp,-H100000 +Olibcalls"

and commented out your last configure change which tests for alloca
in libPW.a   

The build is now fine on both gcc and hp-cc (c89)

If this works on hpux 10.x  (which it should given the same compiler)
then we can lay this problem to rest.


*** hpux9.h.orig	Tue Jul 29 20:32:19 1997
--- hpux9.h	Tue Jul 29 20:41:05 1997
***************
*** 34,40 ****
  #ifdef __hp9000s300
  #define C_SWITCH_SYSTEM "-Aa -D_HPUX_SOURCE"
  #else
! #define C_SWITCH_SYSTEM "-Ae -Wp,-H100000"
  #endif
  /* XEmacs: commented out
  #else
--- 34,40 ----
  #ifdef __hp9000s300
  #define C_SWITCH_SYSTEM "-Aa -D_HPUX_SOURCE"
  #else
! #define C_SWITCH_SYSTEM "-Ae -Wp,-H100000 +Olibcalls"
  #endif
  /* XEmacs: commented out
  #else
-- 
Barry Friedman                         
Emax Computer Systems Inc., 440 Laurier Ave. W., Ottawa, Ont. Canada K1R 7X6
ESN: 395-4270  NET: friedman@nortel.ca  Phone: (613) 782-2389  Fax: 782-2228  

