1 /* system description file for hpux version 8.
3 Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4 2008 Free Software Foundation, Inc.
6 This file is part of GNU Emacs.
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.
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.
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/>. */
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. */
33 /* dob@inel.gov says HPUX 8.07 needs this. He was using X11R5, I think. */
34 #define LIBX11_SYSTEM -lXext
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
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
44 /* No need to specify roundabout way of linking temacs. */
47 #ifdef HPUX_USE_SHLIBS
48 #define LD_SWITCH_SYSTEM_TEMACS
50 #define LD_SWITCH_SYSTEM_TEMACS -Xlinker -a -Xlinker archive
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
62 #define LD_SWITCH_SYSTEM_TEMACS -a archive -L/lib/pa1.1
64 #else /* not (defined(hp9000s700) || defined(__hp9000s700)) */
65 #ifdef HPUX_USE_SHLIBS
66 #define LD_SWITCH_SYSTEM_TEMACS
68 #define LD_SWITCH_SYSTEM_TEMACS -a archive
70 #endif /* not (defined(hp9000s700) || defined(__hp9000s700)) */
71 #endif /* not __GNUC__ */
73 /* Some hpux 8 machines seem to have TIOCGWINSZ,
74 and none have sioctl.h, so might as well define this. */
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
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
92 /* Enable a special hack in XTread_socket. */
95 /* arch-tag: 25fafe5c-b26c-43ab-8144-1629d59207ee
96 (do not change this comment) */