From xemacs-m  Mon Feb  3 03:34:20 1997
Received: from pentagana.sonic.jp (root@tokyo-02-092.gol.com [202.243.51.92])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id DAA17671
	for <xemacs-beta@xemacs.org>; Mon, 3 Feb 1997 03:34:18 -0600 (CST)
Received: from mother.sonic.jp (mother.sonic.jp [194.93.1.1]) by pentagana.sonic.jp (8.7.1+2.6Wbeta4/3.4W3) with ESMTP id SAA00447 for <xemacs-beta@xemacs.org>; Mon, 3 Feb 1997 18:29:44 +0900
Received: from pentagana (jhod@[194.93.1.69]) by mother.sonic.jp with SMTP (8.7.1/8.7.1) id SAA11710 for <xemacs-beta@xemacs.org>; Mon, 3 Feb 1997 18:30:37 +0900 (JST)
Sender: jhod@mother.sonic.jp
Message-ID: <32F5B006.70238577@po.iijnet.or.jp>
Date: Mon, 03 Feb 1997 18:29:42 +0900
From: Jareth Hein <jhod@po.iijnet.or.jp>
Organization: Sonic Software Planning, Tokyo
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.28 i586)
MIME-Version: 1.0
To: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Subject: 20.0final CONFIG showstopper for hpux10.XX
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

As it sits, configure will bomb out on HP-UX 10.10 and 10.20 if gcc is
not present. Here is a patch to configure and configure.in to rectify
the problem.

--Jareth


*** configure.old       Mon Feb  3 17:36:56 1997
--- configure   Mon Feb  3 18:12:38 1997
***************
*** 1142,1147 ****
--- 1142,1152 ----
        ;;
      esac
  
+     if [ $opsys = hpux10 ]; then
+       NON_GNU_CC="cc -Ae"
+       NON_GNU_CPP="cc -Ae -E"
+     fi
+ 
      case "${canonical}" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;;
esac
    ;;
  
***************
*** 1599,1605 ****
  fi
  
  #### Choose a compiler.
! if test "x$CC" = x  ; then
    cc_specified=1
  fi
  
--- 1604,1610 ----
  fi
  
  #### Choose a compiler.
! if test "x$CC" != x  ; then
    cc_specified=1
  fi
  
*** configure.in.old    Mon Feb  3 18:22:40 1997
--- configure.in        Mon Feb  3 18:20:15 1997
***************
*** 1148,1153 ****
--- 1145,1155 ----
        ;;
      esac
  
+     if [ $opsys = hpux10 ]; then
+       NON_GNU_CC="cc -Ae"
+       NON_GNU_CPP="cc -Ae -E"
+     fi
+ 
      case "${canonical}" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;;
esac
    ;;
  
***************
*** 1619,1625 ****
  fi
  
  #### Choose a compiler.
! if test "x$CC" = x  ; then
    cc_specified=1
  fi
  
--- 1621,1627 ----
  fi
  
  #### Choose a compiler.
! if test "x$CC" != x  ; then
    cc_specified=1
  fi

