blob: f9899f2e23c305cba17d7ae77c9b1b52fb36b124 (
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
|
$NetBSD: patch-ab,v 1.1.1.1 2002/03/13 01:39:20 dmcmahill Exp $
- not all !sparcs are little endian.
- don't assume /usr/local
--- src/include/config.h.orig Tue Mar 5 14:22:45 2002
+++ src/include/config.h Tue Mar 5 15:01:41 2002
@@ -32,4 +32,6 @@
#define _CONFIG_H_ 1
+#include <sys/endian.h>
+
/********************* MACHINE DETERMINATION *********************/
@@ -112,5 +114,5 @@
# include <X11/Intrinsic.h>
# endif
-# ifdef sparc
+# if BYTE_ORDER == BIG_ENDIAN
# define BYTES_SWAPPED 1 /* bytes are MSB first */
# endif
@@ -120,15 +122,15 @@
# define NONFILECH '?' /* character that cannot be in file name */
# define CADRCFILENAME ".cadrc" /* CAD startup file */
-# define LIBDIR "/usr/local/lib/electric/" /* location of library files */
-# define DOCDIR "/usr/local/doc/electric/html/" /* location of HTML files */
-# define ESIMLOC "/usr/local/bin/esim"
-# define RSIMLOC "/usr/local/bin/rsim"
-# define PRESIMLOC "/usr/local/bin/presim"
-# define RNLLOC "/usr/local/bin/rnl"
-# define SPICELOC "/usr/local/bin/spice"
-# define FASTHENRYLOC "/usr/local/bin/fasthenry"
+# define LIBDIR "@prefix@/share/electric/" /* location of library files */
+# define DOCDIR "@prefix@/share/doc/electric/html/" /* location of HTML files */
+# define ESIMLOC "@prefix@/bin/esim"
+# define RSIMLOC "@prefix@/bin/rsim"
+# define PRESIMLOC "@prefix@/bin/presim"
+# define RNLLOC "@prefix@/bin/rnl"
+# define SPICELOC "@localbase@/bin/spice3"
+# define FASTHENRYLOC "@localbase@/bin/fasthenry"
# define SORTLOC "/usr/bin/sort"
-# define FLATDRCLOC "/usr/local/bin/ffindshort"
-# define SFLATDRCLOC "/usr/local/bin/findshort"
+# define FLATDRCLOC "@prefix@/bin/ffindshort"
+# define SFLATDRCLOC "@prefix@/bin/findshort"
# ifdef sun
# define u_int64_t uint64_t
|