blob: 9cd3865b472545334f4f36e9719d5b9b66457608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
$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
|