(org-map-entries): Let-bind `file'.
[bpt/emacs.git] / src / s / hpux8.h
1 /* system description file for hpux version 8.
2
3 Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4 2008 Free Software Foundation, Inc.
5
6 This file is part of GNU Emacs.
7
8 GNU Emacs is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 GNU Emacs is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20
21 /*
22 Commentary:
23
24 This contains changes that were suggested "for the hp700".
25 They were not needed for the 800.
26 Our conjecture that they are needed for hpux version 8,
27 which is what runs on the 700. */
28
29 #define HPUX8
30
31 #include "hpux.h"
32
33 /* dob@inel.gov says HPUX 8.07 needs this. He was using X11R5, I think. */
34 #define LIBX11_SYSTEM -lXext
35
36 #define LIB_X11_LIB -L/usr/lib/X11R5 -L/usr/lib/X11R4 -lX11
37 #define C_SWITCH_X_SYSTEM -I/usr/include/X11R5 -I/usr/include/X11R4
38 #define LD_SWITCH_X_DEFAULT -L/usr/lib/X11R5 -L/usr/lib/X11R4
39
40 /* Don't use shared libraries. unexec doesn't handle them.
41 Note GCC automatically passes -a archive to ld, and it has its own
42 conflicting -a. */
43 #ifdef __GNUC__
44 /* No need to specify roundabout way of linking temacs. */
45 #define ORDINARY_LINK
46
47 #ifdef HPUX_USE_SHLIBS
48 #define LD_SWITCH_SYSTEM_TEMACS
49 #else
50 #define LD_SWITCH_SYSTEM_TEMACS -Xlinker -a -Xlinker archive
51 #endif
52
53 #else /* not __GNUC__ */
54 /* Note, -a only works for hpux ld, not cc. And "cc LD_SWITCH_SYSTEM"
55 is used in configure's $ac_link to do various autoconf checks.
56 Since we only need -a when unexec'ing, only pass in -a to
57 "ld temacs" (ghazi@caip.rutgers.edu 7/10/97). */
58 #if (defined(hp9000s700) || defined(__hp9000s700))
59 #ifdef HPUX_USE_SHLIBS
60 #define LD_SWITCH_SYSTEM_TEMACS -L/lib/pa1.1
61 #else
62 #define LD_SWITCH_SYSTEM_TEMACS -a archive -L/lib/pa1.1
63 #endif
64 #else /* not (defined(hp9000s700) || defined(__hp9000s700)) */
65 #ifdef HPUX_USE_SHLIBS
66 #define LD_SWITCH_SYSTEM_TEMACS
67 #else
68 #define LD_SWITCH_SYSTEM_TEMACS -a archive
69 #endif
70 #endif /* not (defined(hp9000s700) || defined(__hp9000s700)) */
71 #endif /* not __GNUC__ */
72
73 /* Some hpux 8 machines seem to have TIOCGWINSZ,
74 and none have sioctl.h, so might as well define this. */
75 #define NO_SIOCTL_H
76
77 #if 0 /* autoconf should be detecting the presence or absence of
78 random and srandom now. */
79 /* If you use X11R4 you must define this. If you use
80 X11R5 you must comment this out */
81 /* #define HAVE_RANDOM */
82 #define random foo_random
83 #define srandom foo_srandom
84 #endif
85
86 #if 0 /* This seems to be spurious. */
87 /* "X11R5" on hpux8 doesn't have this function, which is supposed to exist
88 in X11R5. Maybe things will work if we just don't call it. */
89 #define NO_XRM_SET_DATABASE
90 #endif
91
92 /* Enable a special hack in XTread_socket. */
93 #define X_IO_BUG
94
95 /* arch-tag: 25fafe5c-b26c-43ab-8144-1629d59207ee
96 (do not change this comment) */