This is a major version bump and represents many many bug fixes and lots of improvements. The scope is fairly broad and can't really be summarized. See the ChangeLog in the distfile for a complete list of changes.
69 lines
3 KiB
Text
69 lines
3 KiB
Text
$NetBSD: patch-ab,v 1.2 2004/12/01 04:47:53 dmcmahill Exp $
|
|
|
|
- not all !sparcs are little endian.
|
|
|
|
- don't assume /usr/local
|
|
|
|
--- src/include/config.h.orig Fri Jul 16 01:59:53 2004
|
|
+++ src/include/config.h
|
|
@@ -32,6 +32,8 @@
|
|
#ifndef _CONFIG_H_
|
|
#define _CONFIG_H_ 1
|
|
|
|
+#include <sys/endian.h>
|
|
+
|
|
/********************* MACHINE DETERMINATION *********************/
|
|
|
|
/* determine if it is Macintosh OS */
|
|
@@ -135,7 +137,7 @@
|
|
# ifndef USEQT
|
|
# include <X11/Intrinsic.h>
|
|
# endif
|
|
-# ifdef sparc
|
|
+# if BYTE_ORDER == BIG_ENDIAN
|
|
# define BYTES_SWAPPED 1 /* bytes are MSB first */
|
|
# endif
|
|
# define DIRSEP '/' /* directory separator */
|
|
@@ -143,31 +145,19 @@
|
|
# define MACFSTAG(x) 0
|
|
# define NONFILECH '?' /* character that cannot be in file name */
|
|
# define CADRCFILENAME x_(".cadrc") /* CAD startup file */
|
|
+# define LIBDIR x_("@prefix@/share/electric/lib/") /* location of library files */
|
|
+# define DOCDIR x_("@prefix@/share/electric/doc/html/") /* location of HTML files */
|
|
+# define ESIMLOC x_("@prefix@/bin/esim")
|
|
+# define RSIMLOC x_("@prefix@/bin/rsim")
|
|
+# define PRESIMLOC x_("@prefix@/bin/presim")
|
|
+# define RNLLOC x_("@prefix@/bin/rnl")
|
|
+# define SPICELOC x_("@prefix@/bin/spice3")
|
|
+# define FASTHENRYLOC x_("@localbase@/bin/fasthenry")
|
|
+# define SORTLOC x_("/usr/bin/sort")
|
|
+# define FLATDRCLOC x_("@prefix@/bin/ffindshort")
|
|
+# define SFLATDRCLOC x_("@prefix@/bin/findshort")
|
|
# ifdef sun
|
|
-# define LIBDIR x_("/usr/local/share/electric/lib/") /* location of library files */
|
|
-# define DOCDIR x_("/usr/local/share/electric/doc/html/") /* location of HTML files */
|
|
-# define ESIMLOC x_("/usr/local/bin/esim")
|
|
-# define RSIMLOC x_("/usr/local/bin/rsim")
|
|
-# define PRESIMLOC x_("/usr/local/bin/presim")
|
|
-# define RNLLOC x_("/usr/local/bin/rnl")
|
|
-# define SPICELOC x_("/usr/local/bin/spice")
|
|
-# define FASTHENRYLOC x_("/usr/local/bin/fasthenry")
|
|
-# define SORTLOC x_("/usr/local/bin/sort")
|
|
-# define FLATDRCLOC x_("/usr/local/bin/ffindshort")
|
|
-# define SFLATDRCLOC x_("/usr/local/bin/findshort")
|
|
# define u_int64_t uint64_t
|
|
-# else
|
|
-# define LIBDIR x_("/usr/share/electric/lib/") /* location of library files */
|
|
-# define DOCDIR x_("/usr/share/electric/doc/html/") /* location of HTML files */
|
|
-# define ESIMLOC x_("/usr/bin/esim")
|
|
-# define RSIMLOC x_("/usr/bin/rsim")
|
|
-# define PRESIMLOC x_("/usr/bin/presim")
|
|
-# define RNLLOC x_("/usr/bin/rnl")
|
|
-# define SPICELOC x_("/usr/bin/spice")
|
|
-# define FASTHENRYLOC x_("/usr/bin/fasthenry")
|
|
-# define SORTLOC x_("/usr/bin/sort")
|
|
-# define FLATDRCLOC x_("/usr/bin/ffindshort")
|
|
-# define SFLATDRCLOC x_("/usr/bin/findshort")
|
|
# endif
|
|
#endif
|
|
|