annotate src/s/netbsd.h @ 108185:804e9ced8374

Rework previous autoconf changes, hopefully to make clearer. * configure.in (OTHER_OBJ): Remove. (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New output variables. * configure: Regenerate. * src/Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null, for clarity. (OTHER_OBJ): Remove. (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure. (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
author Glenn Morris <rgm@gnu.org>
date Fri, 30 Apr 2010 20:04:51 -0700
parents 13415f222ad9
children 0c1c81ee223e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75942
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
1 /* s/ file for netbsd system.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
2
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
3 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007,
106815
1d1d5d9bd884 Add 2010 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 105956
diff changeset
4 2008, 2009, 2010 Free Software Foundation, Inc.
75942
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
5
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
6 This file is part of GNU Emacs.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
7
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
8 GNU Emacs is free software: you can redistribute it and/or modify
75942
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
9 it under the terms of the GNU General Public License as published by
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
10 the Free Software Foundation, either version 3 of the License, or
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
11 (at your option) any later version.
75942
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
12
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
16 GNU General Public License for more details.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
17
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
18 You should have received a copy of the GNU General Public License
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
75942
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
20
4690
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
21
96303
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 94715
diff changeset
22 /* Get most of the stuff from bsd-common */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 94715
diff changeset
23 #include "bsd-common.h"
4690
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
24
28640
7f198d98ac14 Revert HAVE_GETLOADAVG changes.
Dave Love <fx@gnu.org>
parents: 28593
diff changeset
25 #define HAVE_GETLOADAVG 1
4690
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
26
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
27 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
28
5902
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
29 #define LIBS_TERMCAP -ltermcap
5901
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
30
108125
13415f222ad9 Use $CRT_DIR in more places.
Glenn Morris <rgm@gnu.org>
parents: 108092
diff changeset
31 #define START_FILES pre-crt0.o $(CRT_DIR)/crt0.o START_FILES_1 $(CRT_DIR)/crtbegin.o
13415f222ad9 Use $CRT_DIR in more places.
Glenn Morris <rgm@gnu.org>
parents: 108092
diff changeset
32 #define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtend.o END_FILES_1
26163
99c35bcce8c0 netbsd-elf fixes
Ken Raeburn <raeburn@raeburn.org>
parents: 25032
diff changeset
33 #undef LIB_GCC
99c35bcce8c0 netbsd-elf fixes
Ken Raeburn <raeburn@raeburn.org>
parents: 25032
diff changeset
34 #define LIB_GCC
6368
f18c8a4f7125 (LOCALTIME_CACHE): Define this symbol.
Karl Heuer <kwzh@gnu.org>
parents: 6014
diff changeset
35
51878
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
36 #ifdef HAVE_CRTIN
108125
13415f222ad9 Use $CRT_DIR in more places.
Glenn Morris <rgm@gnu.org>
parents: 108092
diff changeset
37 #define START_FILES_1 $(CRT_DIR)/crti.o
13415f222ad9 Use $CRT_DIR in more places.
Glenn Morris <rgm@gnu.org>
parents: 108092
diff changeset
38 #define END_FILES_1 $(CRT_DIR)/crtn.o
51903
707ddd673f01 (START_FILES_1, END_FILES_1): Always define them.
Richard M. Stallman <rms@gnu.org>
parents: 51878
diff changeset
39 #else
707ddd673f01 (START_FILES_1, END_FILES_1): Always define them.
Richard M. Stallman <rms@gnu.org>
parents: 51878
diff changeset
40 #define START_FILES_1
707ddd673f01 (START_FILES_1, END_FILES_1): Always define them.
Richard M. Stallman <rms@gnu.org>
parents: 51878
diff changeset
41 #define END_FILES_1
51878
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
42 #endif
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
43
12534
3f869873946a (AMPERSAND_FULL_NAME): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 11705
diff changeset
44 #define AMPERSAND_FULL_NAME
20032
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
45
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
46 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
47 says where to find X windows at run time. We convert it to a -rpath option
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
48 which is what OSF1 uses. */
39331
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
49 #define LD_SWITCH_SYSTEM_tmp `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
45600
5265807751c9 Include /usr/pkg in the run time shared library path.
Eli Zaretskii <eliz@gnu.org>
parents: 39349
diff changeset
50 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
39331
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
51
21475
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
52 /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
53 the library search parth, i.e. it won't search /usr/lib
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
54 for libc and friends. Using -nostartfiles instead avoids
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
55 this problem, and will also work on earlier NetBSD releases */
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
56
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
57 #define LINKER $(CC) -nostartfiles
25032
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 21475
diff changeset
58
30079
1572612184fc Sound support for NetBSD through "Linux emulation" support:
Ken Raeburn <raeburn@raeburn.org>
parents: 29430
diff changeset
59 #define DEFAULT_SOUND_DEVICE "/dev/audio"
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
60
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
61 /* Greg A. Woods <woods@weird.com> says we must include signal.h
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
62 before syssignal.h is included, to work around interface conflicts
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
63 that are handled with CPP __RENAME() macro in signal.h. */
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
64
31524
3935d834ff04 s/netbsd.h: NO_C_SOURCE->NOT_C_CODE
Ken Raeburn <raeburn@raeburn.org>
parents: 31332
diff changeset
65 #ifndef NOT_C_CODE
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
66 #include <signal.h>
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
67 #endif
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
68
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
69 /* Don't close pty in process.c to make it as controlling terminal.
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
70 It is already a controlling terminal of subprocess, because we did
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
71 ioctl TIOCSCTTY. */
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
72
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
73 #define DONT_REOPEN_PTY
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45600
diff changeset
74
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
75 /* Tell that garbage collector that setjmp is known to save all
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
76 registers relevant for conservative garbage collection in the
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
77 jmp_buf. */
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
78
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
79 #define GC_SETJMP_WORKS 1
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45600
diff changeset
80
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
81 /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method. */
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
82
34472
76076c5b2009 (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS instead of `1'.
Gerd Moellmann <gerd@gnu.org>
parents: 31524
diff changeset
83 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
84
73704
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
85 /* Use sigprocmask and friends instead of sigblock;
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
86 sigblock is considered obsolete on NetBSD. */
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
87
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
88 #define POSIX_SIGNALS 1
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
89
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51975
diff changeset
90 /* arch-tag: e80f364a-04e9-4faf-93cb-f36a0fe95c81
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51975
diff changeset
91 (do not change this comment) */