config.h.in 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. /* Copyright 2004 Per Bothner <per@bothner.com>
  2. * Based on config.h from screen-4.0.2.
  3. * Copyright (c) 1993-2000
  4. * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
  5. * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
  6. * Copyright (c) 1987 Oliver Laumann
  7. *
  8. * This program 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 2, or (at your option)
  11. * any later version.
  12. *
  13. * This program 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 this program (see the file COPYING); if not, write to the
  20. * Free Software Foundation, Inc.,
  21. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  22. *
  23. ****************************************************************
  24. * $Id$ FAU
  25. */
  26. /**********************************************************************
  27. *
  28. * User Configuration Section
  29. */
  30. /*
  31. * define PTYMODE if you do not like the default of 0622, which allows
  32. * public write to your pty.
  33. * define PTYGROUP to some numerical group-id if you do not want the
  34. * tty to be in "your" group.
  35. * Note, screen is unable to change mode or group of the pty if it
  36. * is not installed with sufficient privilege. (e.g. set-uid-root)
  37. * define PTYROFS if the /dev/pty devices are mounted on a read-only
  38. * filesystem so screen should not even attempt to set mode or group
  39. * even if running as root (e.g. on TiVo).
  40. */
  41. #undef PTYMODE
  42. #undef PTYGROUP
  43. #undef PTYROFS
  44. /*
  45. * If screen is NOT installed set-uid root, screen can provide tty
  46. * security by exclusively locking the ptys. While this keeps other
  47. * users from opening your ptys, it also keeps your own subprocesses
  48. * from being able to open /dev/tty. Define LOCKPTY to add this
  49. * exclusive locking.
  50. */
  51. #undef LOCKPTY
  52. /**********************************************************************
  53. *
  54. * End of User Configuration Section
  55. *
  56. * Rest of this file is modified by 'configure'
  57. * Change at your own risk!
  58. *
  59. */
  60. /*
  61. * Some defines to identify special unix variants
  62. */
  63. #ifndef SVR4
  64. #undef SVR4
  65. #endif
  66. #ifndef _POSIX_SOURCE
  67. #undef _POSIX_SOURCE
  68. #endif
  69. /*
  70. * Define POSIX if your system supports IEEE Std 1003.1-1988 (POSIX).
  71. */
  72. #undef POSIX
  73. /*
  74. * Define TERMIO if you have struct termio instead of struct sgttyb.
  75. * This is usually the case for SVID systems, where BSD uses sgttyb.
  76. * POSIX systems should define this anyway, even though they use
  77. * struct termios.
  78. */
  79. #undef TERMIO
  80. /*
  81. * Define CYTERMIO if you have cyrillic termio modes.
  82. */
  83. #undef CYTERMIO
  84. /*
  85. * Define TERMINFO if your machine emulates the termcap routines
  86. * with the terminfo database.
  87. * Thus the .screenrc file is parsed for
  88. * the command 'terminfo' and not 'termcap'.
  89. */
  90. #undef TERMINFO
  91. /*
  92. * If your library does not define ospeed, define this.
  93. */
  94. #undef NEED_OSPEED
  95. /*
  96. * Define SYSV if your machine is SYSV complient (Sys V, HPUX, A/UX)
  97. */
  98. #ifndef SYSV
  99. #undef SYSV
  100. #endif
  101. /*
  102. * Define SIGVOID if your signal handlers return void. On older
  103. * systems, signal returns int, but on newer ones, it returns void.
  104. */
  105. #undef SIGVOID
  106. /*
  107. * Define USESIGSET if you have sigset for BSD 4.1 reliable signals.
  108. */
  109. #undef USESIGSET
  110. /*
  111. * Define SYSVSIGS if signal handlers must be reinstalled after
  112. * they have been called.
  113. */
  114. #undef SYSVSIGS
  115. /*
  116. * Define BSDWAIT if your system defines a 'union wait' in <sys/wait.h>
  117. *
  118. * Only allow BSDWAIT i.e. wait3 on nonposix systems, since
  119. * posix implies wait(3) and waitpid(3). vdlinden@fwi.uva.nl
  120. *
  121. */
  122. #ifndef POSIX
  123. #undef BSDWAIT
  124. #endif
  125. /*
  126. * On RISCOS we prefer wait2() over wait3(). rouilj@sni-usa.com
  127. */
  128. #ifdef BSDWAIT
  129. #undef USE_WAIT2
  130. #endif
  131. /*
  132. * Define if you have the utempter utmp helper program
  133. */
  134. #undef HAVE_UTEMPTER
  135. /*
  136. * If ttyslot() breaks getlogin() by returning indexes to utmp entries
  137. * of type DEAD_PROCESS, then our getlogin() replacement should be
  138. * selected by defining BUGGYGETLOGIN.
  139. */
  140. #undef BUGGYGETLOGIN
  141. /*
  142. * If your system has the calls setreuid() and setregid(),
  143. * define HAVE_SETREUID. Otherwise screen will use a forked process to
  144. * safely create output files without retaining any special privileges.
  145. */
  146. #undef HAVE_SETREUID
  147. /*
  148. * If your system supports BSD4.4's seteuid() and setegid(), define
  149. * HAVE_SETEUID.
  150. */
  151. #undef HAVE_SETEUID
  152. /*
  153. * If you want the "time" command to display the current load average
  154. * define LOADAV. Maybe you must install screen with the needed
  155. * privileges to read /dev/kmem.
  156. * Note that NLIST_ stuff is only checked, when getloadavg() is not available.
  157. */
  158. #undef LOADAV
  159. #undef LOADAV_NUM
  160. #undef LOADAV_TYPE
  161. #undef LOADAV_SCALE
  162. #undef LOADAV_GETLOADAVG
  163. #undef LOADAV_UNIX
  164. #undef LOADAV_AVENRUN
  165. #undef LOADAV_USE_NLIST64
  166. #undef NLIST_DECLARED
  167. #undef NLIST_STRUCT
  168. #undef NLIST_NAME_UNION
  169. /*
  170. * If your system has the new format /etc/ttys (like 4.3 BSD) and the
  171. * getttyent(3) library functions, define GETTTYENT.
  172. */
  173. #undef GETTTYENT
  174. /*
  175. * Define USEBCOPY if the bcopy/memcpy from your system's C library
  176. * supports the overlapping of source and destination blocks. When
  177. * undefined, screen uses its own (probably slower) version of bcopy().
  178. *
  179. * SYSV machines may have a working memcpy() -- Oh, this is
  180. * quite unlikely. Tell me if you see one.
  181. * "But then, memmove() should work, if at all available" he thought...
  182. * Boing, never say "works everywhere" unless you checked SCO UNIX.
  183. * Their memove fails the test in the configure script. Sigh. (Juergen)
  184. */
  185. #undef USEBCOPY
  186. #undef USEMEMCPY
  187. #undef USEMEMMOVE
  188. /*
  189. * If your system has vsprintf() and requires the use of the macros in
  190. * "varargs.h" to use functions with variable arguments,
  191. * define USEVARARGS.
  192. */
  193. #undef USEVARARGS
  194. /*
  195. * If your system has strerror() define this.
  196. */
  197. #undef HAVE_STRERROR
  198. /*
  199. * If the select return value doesn't treat a descriptor that is
  200. * usable for reading and writing as two hits, define SELECT_BROKEN.
  201. */
  202. #undef SELECT_BROKEN
  203. /*
  204. * Define this if your system supports named pipes.
  205. */
  206. #undef NAMEDPIPE
  207. /*
  208. * Define this if your system exits select() immediatly if a pipe is
  209. * opened read-only and no writer has opened it.
  210. */
  211. #undef BROKEN_PIPE
  212. /*
  213. * Define this if the unix-domain socket implementation doesn't
  214. * create a socket in the filesystem.
  215. */
  216. #undef SOCK_NOT_IN_FS
  217. /*
  218. * If your system has setenv() and unsetenv() define USESETENV
  219. */
  220. #undef USESETENV
  221. /*
  222. * If your system does not come with a setenv()/putenv()/getenv()
  223. * functions, you may bring in our own code by defining NEEDPUTENV.
  224. */
  225. #undef NEEDPUTENV
  226. /*
  227. * If the passwords are stored in a shadow file and you want the
  228. * builtin lock to work properly, define SHADOWPW.
  229. */
  230. #undef SHADOWPW
  231. /*
  232. * If you are on a SYS V machine that restricts filename length to 14
  233. * characters, you may need to enforce that by setting NAME_MAX to 14
  234. */
  235. #undef NAME_MAX /* KEEP_UNDEF_HERE override system value */
  236. #undef NAME_MAX
  237. /*
  238. * define HAVE_RENAME if your system has a rename() function
  239. */
  240. #undef HAVE_RENAME
  241. /*
  242. * define HAVE__EXIT if your system has the _exit() call.
  243. */
  244. #undef HAVE__EXIT
  245. /*
  246. * define HAVE_LSTAT if your system has symlinks and the lstat() call.
  247. */
  248. #undef HAVE_LSTAT
  249. /*
  250. * define HAVE_UTIMES if your system has the utimes() call.
  251. */
  252. #undef HAVE_UTIMES
  253. /*
  254. * define HAVE_FCHOWN if your system has the fchown() call.
  255. */
  256. #undef HAVE_FCHOWN
  257. /*
  258. * define HAVE_FCHMOD if your system has the fchmod() call.
  259. */
  260. #undef HAVE_FCHMOD
  261. /*
  262. * define HAVE_VSNPRINTF if your system has vsnprintf() (GNU lib).
  263. */
  264. #undef HAVE_VSNPRINTF
  265. /*
  266. * define HAVE_GETCWD if your system has the getcwd() call.
  267. */
  268. #undef HAVE_GETCWD
  269. /*
  270. * define HAVE_SETLOCALE if your system has the setlocale() call.
  271. */
  272. #undef HAVE_SETLOCALE
  273. /*
  274. * define HAVE_STRFTIME if your system has the strftime() call.
  275. */
  276. #undef HAVE_STRFTIME
  277. /*
  278. * define HAVE_NL_LANGINFO if your system has the nl_langinfo() call
  279. * and <langinfo.h> defines CODESET.
  280. */
  281. #undef HAVE_NL_LANGINFO
  282. /*
  283. * Newer versions of Solaris include fdwalk, which can greatly improve
  284. * the startup time of screen; otherwise screen spends a lot of time
  285. * closing file descriptors.
  286. */
  287. #undef HAVE_FDWALK
  288. /*
  289. * define HAVE_DEV_PTC if you have a /dev/ptc character special
  290. * device.
  291. */
  292. #undef HAVE_DEV_PTC
  293. /*
  294. * define HAVE_SVR4_PTYS if you have a /dev/ptmx character special
  295. * device and support the ptsname(), grantpt(), unlockpt() functions.
  296. */
  297. #undef HAVE_SVR4_PTYS
  298. /*
  299. * define HAVE_GETPT if you have the getpt() function.
  300. */
  301. #undef HAVE_GETPT
  302. /*
  303. * define HAVE_OPENPTY if your system has the openpty() call.
  304. */
  305. #undef HAVE_OPENPTY
  306. /*
  307. * define PTYRANGE0 and or PTYRANGE1 if you want to adapt screen
  308. * to unusual environments. E.g. For SunOs the defaults are "qpr" and
  309. * "0123456789abcdef". For SunOs 4.1.2
  310. * #define PTYRANGE0 "pqrstuvwxyzPQRST"
  311. * is recommended by Dan Jacobson.
  312. */
  313. #undef PTYRANGE0
  314. #undef PTYRANGE1
  315. #define USEVARARGS
  316. #undef HAVE_SYS_STROPTS_H
  317. #undef HAVE_SYS_WAIT_H