Move LD_SWITCH_X_SITE_AUX from cpp to autoconf.
[bpt/emacs.git] / src / s / netbsd.h
CommitLineData
6e0394c0
GM
1/* s/ file for netbsd system.
2
4b158629 3 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007,
114f9c96 4 2008, 2009, 2010 Free Software Foundation, Inc.
6e0394c0
GM
5
6This file is part of GNU Emacs.
7
4b158629 8GNU Emacs is free software: you can redistribute it and/or modify
6e0394c0 9it under the terms of the GNU General Public License as published by
4b158629
GM
10the Free Software Foundation, either version 3 of the License, or
11(at your option) any later version.
6e0394c0
GM
12
13GNU Emacs is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
4b158629 19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
6e0394c0 20
60fa73fd 21
f2a77c3a
DN
22/* Get most of the stuff from bsd-common */
23#include "bsd-common.h"
60fa73fd 24
8fffa182 25#define HAVE_GETLOADAVG 1
60fa73fd 26
60fa73fd
RM
27#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
28
e7e0c779 29#define LIBS_TERMCAP -ltermcap
6c9364e1 30
76cda504
GM
31#define START_FILES pre-crt0.o $(CRT_DIR)/crt0.o START_FILES_1 $(CRT_DIR)/crtbegin.o
32#define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtend.o END_FILES_1
3a7093d8
KR
33#undef LIB_GCC
34#define LIB_GCC
9f145434 35
7a179ad4 36#ifdef HAVE_CRTIN
76cda504
GM
37#define START_FILES_1 $(CRT_DIR)/crti.o
38#define END_FILES_1 $(CRT_DIR)/crtn.o
0c8b2afa
RS
39#else
40#define START_FILES_1
41#define END_FILES_1
7a179ad4
RS
42#endif
43
845b1a3c 44#define AMPERSAND_FULL_NAME
12f230a1 45
27a2cdfc
GM
46/* LD_SWITCH_X_SITE_AUX_RPATH gives a -rpath option (which is what
47 OSF1 uses) that says where to find X windows at run time. */
48#define LD_SWITCH_SYSTEM $(LD_SWITCH_X_SITE_AUX_RPATH) -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
1270031d 49
ad61e7bc
KH
50/* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
51 the library search parth, i.e. it won't search /usr/lib
52 for libc and friends. Using -nostartfiles instead avoids
53 this problem, and will also work on earlier NetBSD releases */
54
55#define LINKER $(CC) -nostartfiles
2327e4a0 56
80fcd514 57#define DEFAULT_SOUND_DEVICE "/dev/audio"
d276b0cf
GM
58
59/* Greg A. Woods <woods@weird.com> says we must include signal.h
60 before syssignal.h is included, to work around interface conflicts
61 that are handled with CPP __RENAME() macro in signal.h. */
62
6a72fdd1 63#ifndef NOT_C_CODE
d276b0cf
GM
64#include <signal.h>
65#endif
66
67/* Don't close pty in process.c to make it as controlling terminal.
68 It is already a controlling terminal of subprocess, because we did
69 ioctl TIOCSCTTY. */
70
71#define DONT_REOPEN_PTY
177c0ea7 72
d276b0cf
GM
73/* Tell that garbage collector that setjmp is known to save all
74 registers relevant for conservative garbage collection in the
75 jmp_buf. */
76
77#define GC_SETJMP_WORKS 1
177c0ea7 78
d276b0cf
GM
79/* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method. */
80
fc40e215 81#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
d276b0cf 82
ea7ce821
RS
83/* Use sigprocmask and friends instead of sigblock;
84 sigblock is considered obsolete on NetBSD. */
85
86#define POSIX_SIGNALS 1
87
ab5796a9
MB
88/* arch-tag: e80f364a-04e9-4faf-93cb-f36a0fe95c81
89 (do not change this comment) */