2007-08-22 19:28:08 +02:00
|
|
|
$NetBSD: patch-aa,v 1.5 2007/08/22 17:28:09 jlam Exp $
|
2002-09-24 19:57:24 +02:00
|
|
|
|
2005-09-02 04:27:11 +02:00
|
|
|
--- pvs.orig 2004-10-05 20:04:54.000000000 -0400
|
2007-08-22 19:28:08 +02:00
|
|
|
+++ pvs
|
2005-09-02 04:27:11 +02:00
|
|
|
@@ -45,7 +45,7 @@
|
2002-09-24 19:57:24 +02:00
|
|
|
|
|
|
|
# PVSPATH should be set after installation by <PVS>/bin/relocate or by hand
|
|
|
|
# to the location of the PVS installation
|
2005-09-02 04:27:11 +02:00
|
|
|
-PVSPATH=/homes/owre/pvs3.0
|
2003-03-31 22:49:36 +02:00
|
|
|
+PVSPATH=@PREFIX@/pvs
|
2002-09-24 19:57:24 +02:00
|
|
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
# Nothing below this line should need modification
|
2007-08-22 19:28:08 +02:00
|
|
|
@@ -155,12 +155,18 @@ done
|
|
|
|
|
|
|
|
PVSEMACS=${PVSEMACS:-"emacs"}
|
|
|
|
|
|
|
|
+# Handle NetBSD binary emulation.
|
|
|
|
+case $opsys in
|
|
|
|
+ NetBSD) arch=`uname -p`
|
|
|
|
+ case $arch in
|
|
|
|
+ *86*) opsys=Linux ;;
|
|
|
|
+ sparc*) opsys=SunOS ;;
|
|
|
|
+ esac ;;
|
|
|
|
+esac
|
|
|
|
+
|
|
|
|
# Determine the system type and set PVSARCH accordingly
|
|
|
|
case $opsys in
|
|
|
|
- SunOS) majvers=`uname -r | cut -d"." -f1`
|
|
|
|
- if [ $majvers = 4 ]
|
|
|
|
- then echo "PVS 3.0 only runs under Solaris or Linux"; exit 1
|
|
|
|
- fi
|
|
|
|
+ SunOS) majvers=5
|
2002-09-24 19:57:24 +02:00
|
|
|
PVSARCH=sun4;;
|
2007-08-22 19:28:08 +02:00
|
|
|
Linux) # If Linux, we need to determine the Redhat version to use.
|
2002-09-24 19:57:24 +02:00
|
|
|
opsys=redhat
|
2007-08-22 19:28:08 +02:00
|
|
|
@@ -215,8 +221,15 @@ PVSVERBOSE=${PVSVERBOSE:-0}
|
2002-09-24 19:57:24 +02:00
|
|
|
PVSIMAGE="$PVSLISP"
|
|
|
|
|
|
|
|
export ALLEGRO_CL_HOME DISPLAY LD_LIBRARY_PATH
|
|
|
|
-export PVSARCH PVSIMAGE PVSPATH PATH PVSLISP PVSVERBOSE PVSTIMEOUT
|
|
|
|
-export PVSPATCHLEVEL PVSMINUSQ PVSFORCEDP PVSDEFAULTDP
|
|
|
|
+export PVSARCH PVSIMAGE PVSPATH PATH PVSLISP PVSVERBOSE
|
2002-12-20 22:37:37 +01:00
|
|
|
+export PVSPATCHLEVEL PVSMINUSQ PVSFORCEDP
|
2002-09-24 19:57:24 +02:00
|
|
|
+if [ "$PVSTIMEOUT" ]; then
|
|
|
|
+ export PVSTIMEOUT
|
|
|
|
+fi
|
|
|
|
+if [ "$PVSDEFAULTDP" ]; then
|
|
|
|
+ export PVSDEFAULTDP;
|
|
|
|
+fi
|
2002-12-20 22:37:37 +01:00
|
|
|
+
|
2002-09-24 19:57:24 +02:00
|
|
|
|
|
|
|
pvsemacsinit="-load $PVSPATH/emacs/go-pvs.el $loadafter"
|
|
|
|
|