home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / e20313sr.zip / emacs / 20.3.1 / src / config.h < prev    next >
C/C++ Source or Header  |  1999-07-31  |  12KB  |  406 lines

  1. /* GNU Emacs site configuration template file.  -*- C -*-
  2.    Copyright (C) 1988, 1993, 1994 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to the
  18. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. Boston, MA 02111-1307, USA.  */
  20.  
  21.  
  22. /* No code in Emacs #includes config.h twice, but some of the code
  23.    intended to work with other packages as well (like gmalloc.c) 
  24.    think they can include it as many times as they like.  */
  25. #ifndef EMACS_CONFIG_H
  26. #define EMACS_CONFIG_H
  27.  
  28.  
  29. /* These are all defined in the top-level Makefile by configure.
  30.    They're here only for reference.  */
  31.  
  32. /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point
  33.    numbers. */
  34. #define LISP_FLOAT_TYPE 1
  35.  
  36. /* Define GNU_MALLOC if you want to use the *new* GNU memory allocator. */
  37. #define GNU_MALLOC 1
  38.  
  39. /* Define REL_ALLOC if you want to use the relocating allocator for
  40.    buffer space. */
  41. #define REL_ALLOC 1
  42.   
  43. /* Define HAVE_X_WINDOWS if you want to use the X window system.  */
  44. #define HAVE_X_WINDOWS 1
  45. #define HAVE_PM 1
  46.  
  47. /* Define HAVE_X11 if you want to use version 11 of X windows.
  48.    Otherwise, Emacs expects to use version 10.  */
  49. #define HAVE_X11 1
  50.  
  51. /* Define if using an X toolkit.  */
  52. #define USE_X_TOOLKIT 1
  53.  
  54. /* Define this if you're using XFree386.  */
  55. #undef HAVE_XFREE386
  56.  
  57. /* Define this if you have Motif 2.1 or newer.  */
  58. #undef HAVE_MOTIF_2_1
  59.  
  60. /* Define HAVE_MENUS if you have mouse menus.
  61.    (This is automatic if you use X, but the option to specify it remains.)
  62.    It is also defined with other window systems that support xmenu.c.  */
  63. #define HAVE_MENUS 1
  64.  
  65. /* Define if we have the X11R6 or newer version of Xt.  */
  66. #undef HAVE_X11XTR6
  67.  
  68. /* Define if we have the X11R6 or newer version of Xlib.  */
  69. #undef HAVE_X11R6
  70.  
  71. /* Define if we have the X11R5 or newer version of Xlib.  */
  72. #undef HAVE_X11R5
  73.  
  74. /* Define if netdb.h declares h_errno.  */
  75. #undef HAVE_H_ERRNO
  76.  
  77. /* Nowadays we have frame objects even if we support only ASCII terminals.  */
  78. #define MULTI_FRAME
  79.  
  80. /* If we're using any sort of window system, define some consequences.  */
  81. #ifdef HAVE_X_WINDOWS
  82. #define HAVE_WINDOW_SYSTEM
  83. #define MULTI_KBOARD
  84. #define HAVE_FACES
  85. #define HAVE_MOUSE
  86. #endif
  87.  
  88. /* Define USE_TEXT_PROPERTIES to support visual and other properties
  89.    on text. */
  90. #define USE_TEXT_PROPERTIES
  91.  
  92. /* Define USER_FULL_NAME to return a string
  93.    that is the user's full name.
  94.    It can assume that the variable `pw'
  95.    points to the password file entry for this user.
  96.  
  97.    At some sites, the pw_gecos field contains
  98.    the user's full name.  If neither this nor any other
  99.    field contains the right thing, use pw_name,
  100.    giving the user's login name, since that is better than nothing.  */
  101. #define USER_FULL_NAME pw->pw_gecos
  102.  
  103. /* Define AMPERSAND_FULL_NAME if you use the convention
  104.    that & in the full name stands for the login id.  */
  105. /* Turned on June 1996 supposing nobody will mind it.  */
  106. #define AMPERSAND_FULL_NAME
  107.  
  108. /* Things set by --with options in the configure script.  */
  109.  
  110. /* Define to support POP mail retrieval.  */
  111. #undef MAIL_USE_POP
  112.  
  113. /* Define to support Kerberos-authenticated POP mail retrieval.  */
  114. #undef KERBEROS
  115.  
  116. /* Define to support using a Hesiod database to find the POP server.  */
  117. #undef HESIOD
  118.  
  119. /* Some things figured out by the configure script, grouped as they are in
  120.    configure.in.  */
  121. #ifndef _ALL_SOURCE  /* suppress warning if this is pre-defined */
  122. #undef _ALL_SOURCE
  123. #endif
  124. #undef HAVE_SYS_SELECT_H
  125. #define HAVE_SYS_TIMEB_H 1
  126. #define HAVE_SYS_TIME_H 1
  127. #define HAVE_UNISTD_H 1
  128. #undef HAVE_UTIME_H
  129. #undef HAVE_LINUX_VERSION_H
  130. #undef HAVE_SYS_SYSTEMINFO_H
  131. #undef HAVE_TERMIOS_H
  132. #undef HAVE_LIMITS_H
  133. #undef HAVE_STRING_H
  134. #define STDC_HEADERS 1
  135. #define TIME_WITH_SYS_TIME 1
  136.  
  137. #undef HAVE_LIBDNET
  138. #undef HAVE_LIBPTHREADS
  139. #undef HAVE_LIBRESOLV
  140. #undef HAVE_LIBXMU
  141. #undef HAVE_LIBNCURSES
  142. #undef HAVE_LIBINTL
  143.  
  144. /* movemail Kerberos support */
  145. /* libraries */
  146. #undef HAVE_LIBKRB
  147. #undef HAVE_LIBKRB4
  148. #undef HAVE_LIBDES
  149. #undef HAVE_LIBDES425
  150. #undef HAVE_LIBKRB5
  151. #undef HAVE_LIBCRYPTO
  152. #undef HAVE_LIBCOM_ERR
  153. /* header files */
  154. #undef HAVE_KRB5_H
  155. #undef HAVE_DES_H
  156. #undef HAVE_KRB_H
  157. #undef HAVE_KERBEROSIV_DES_H
  158. #undef HAVE_KERBEROSIV_KRB_H
  159. #undef HAVE_KERBEROS_DES_H
  160. #undef HAVE_KERBEROS_KRB_H
  161. #undef HAVE_COM_ERR_H
  162.  
  163. /* GSS-API libraries and headers */
  164. #undef HAVE_LIBGSSAPI_KRB5
  165. #undef HAVE_LIBGSSAPI
  166. #undef HAVE_GSSAPI_H
  167.  
  168. /* Mail-file locking */
  169. #undef HAVE_LIBMAIL
  170. #undef HAVE_MAILLOCK_H
  171. #undef HAVE_TOUCHLOCK
  172.  
  173. #undef HAVE_ALLOCA_H
  174.  
  175. #define HAVE_GETTIMEOFDAY 1
  176. /* If we don't have gettimeofday,
  177.    the test for GETTIMEOFDAY_ONE_ARGUMENT may succeed,
  178.    but we should ignore it.  */
  179. #ifdef HAVE_GETTIMEOFDAY
  180. #undef GETTIMEOFDAY_ONE_ARGUMENT
  181. #endif
  182. #define HAVE_GETHOSTNAME 1
  183. #define HAVE_DUP2 1
  184. #define HAVE_RENAME 1
  185. #define HAVE_CLOSEDIR 1
  186.  
  187. #undef TM_IN_SYS_TIME
  188. #undef HAVE_TM_ZONE
  189. #define HAVE_TZNAME 1
  190.  
  191. #undef const
  192.  
  193. #undef HAVE_LONG_FILE_NAMES
  194.  
  195. #undef CRAY_STACKSEG_END
  196.  
  197. #undef UNEXEC_SRC
  198.  
  199. #undef HAVE_LIBXBSD
  200. #undef HAVE_XRMSETDATABASE
  201. #undef HAVE_XSCREENRESOURCESTRING
  202. #undef HAVE_XSCREENNUMBEROFSCREEN
  203. #undef HAVE_XSETWMPROTOCOLS
  204.  
  205. #define HAVE_MKDIR 1
  206. #define HAVE_RMDIR 1
  207. #undef HAVE_RANDOM
  208. #undef HAVE_LRAND48
  209. #define HAVE_BCOPY 1
  210. #define HAVE_BCMP 1
  211. #undef HAVE_LOGB
  212. #define HAVE_FREXP 1
  213. #define HAVE_FMOD 1
  214. #define HAVE_FTIME 1
  215. #undef HAVE_RES_INIT /* For -lresolv on Suns.  */
  216. #undef HAVE_SETSID
  217. #undef HAVE_FPATHCONF
  218. #define HAVE_SELECT 1
  219. #define HAVE_MKTIME 1
  220. #undef HAVE_EUIDACCESS
  221. #define HAVE_GETPAGESIZE 1
  222. #define HAVE_TZSET 1
  223. #define HAVE_SETLOCALE 1
  224. #define LOCALTIME_CACHE 1
  225. #undef HAVE_INET_SOCKETS
  226.  
  227. #undef HAVE_AIX_SMT_EXP
  228.  
  229. /* Define if you have the ANSI `strerror' function.
  230.    Otherwise you must have the variable `char *sys_errlist[]'.  */
  231. #define HAVE_STRERROR 1
  232.  
  233. #undef HAVE_UTIMES
  234.  
  235. /* Define if `sys_siglist' is declared by <signal.h>.  */
  236. #undef SYS_SIGLIST_DECLARED
  237.  
  238. /* Define if `struct utimbuf' is declared by <utime.h>.  */
  239. #undef HAVE_STRUCT_UTIMBUF
  240.  
  241. /* Define if `struct timeval' is declared by <sys/time.h>.  */
  242. #define HAVE_TIMEVAL 1
  243.  
  244. /* If using GNU, then support inline function declarations. */
  245. #ifdef __GNUC__
  246. #define INLINE __inline__
  247. #else
  248. #define INLINE
  249. #endif
  250.  
  251. #define EMACS_CONFIGURATION "i386-pc-emx"
  252.  
  253. #define EMACS_CONFIG_OPTIONS ""
  254.  
  255. /* The configuration script defines opsysfile to be the name of the
  256.    s/SYSTEM.h file that describes the system type you are using.  The file
  257.    is chosen based on the configuration name you give.
  258.  
  259.    See the file ../etc/MACHINES for a list of systems and the
  260.    configuration names to use for them.
  261.  
  262.    See s/template.h for documentation on writing s/SYSTEM.h files.  */
  263. #undef config_opsysfile 
  264. #include "s/emx.h"
  265.  
  266. /* The configuration script defines machfile to be the name of the
  267.    m/MACHINE.h file that describes the machine you are using.  The file is
  268.    chosen based on the configuration name you give.
  269.  
  270.    See the file ../etc/MACHINES for a list of machines and the
  271.    configuration names to use for them.
  272.  
  273.    See m/template.h for documentation on writing m/MACHINE.h files.  */
  274. #define config_machfile "m/intel386.h"
  275. #include "m/intel386.h"
  276.  
  277. /* Load in the conversion definitions if this system
  278.    needs them and the source file being compiled has not
  279.    said to inhibit this.  There should be no need for you
  280.    to alter these lines.  */
  281.  
  282. #ifdef SHORTNAMES
  283. #ifndef NO_SHORTNAMES
  284. #include "../shortnames/remap.h"
  285. #endif /* not NO_SHORTNAMES */
  286. #endif /* SHORTNAMES */
  287.  
  288. /* If no remapping takes place, static variables cannot be dumped as
  289.    pure, so don't worry about the `static' keyword. */
  290. #ifdef NO_REMAP
  291. #undef static
  292. #endif
  293.  
  294. /* Define `subprocesses' should be defined if you want to
  295.    have code for asynchronous subprocesses
  296.    (as used in M-x compile and M-x shell).
  297.    These do not work for some USG systems yet;
  298.    for the ones where they work, the s/SYSTEM.h file defines this flag.  */
  299.  
  300. #ifndef VMS
  301. #ifndef USG
  302. /* #define subprocesses */
  303. #endif
  304. #endif
  305.  
  306. /* Define LD_SWITCH_SITE to contain any special flags your loader may need.  */
  307. #undef LD_SWITCH_SITE
  308.  
  309. /* Define C_SWITCH_SITE to contain any special flags your compiler needs.  */
  310. #undef C_SWITCH_SITE
  311.  
  312. /* Define LD_SWITCH_X_SITE to contain any special flags your loader
  313.    may need to deal with X Windows.  For instance, if you've defined
  314.    HAVE_X_WINDOWS above and your X libraries aren't in a place that
  315.    your loader can find on its own, you might want to add "-L/..." or
  316.    something similar.  */
  317. #undef LD_SWITCH_X_SITE
  318.  
  319. /* Define LD_SWITCH_X_SITE_AUX with an -R option
  320.    in case it's needed (for Solaris, for example).  */
  321. #undef LD_SWITCH_X_SITE_AUX
  322.  
  323. /* Define C_SWITCH_X_SITE to contain any special flags your compiler
  324.    may need to deal with X Windows.  For instance, if you've defined
  325.    HAVE_X_WINDOWS above and your X include files aren't in a place
  326.    that your compiler can find on its own, you might want to add
  327.    "-I/..." or something similar.  */
  328. #undef C_SWITCH_X_SITE
  329.  
  330. /* Define STACK_DIRECTION here, but not if m/foo.h did.  */
  331. #ifndef STACK_DIRECTION
  332. #undef STACK_DIRECTION
  333. #endif
  334.  
  335. /* Define the return type of signal handlers if the s-xxx file
  336.    did not already do so.  */
  337. #define RETSIGTYPE void
  338.  
  339. /* SIGTYPE is the macro we actually use.  */
  340. #ifndef SIGTYPE
  341. #define SIGTYPE RETSIGTYPE
  342. #endif
  343.  
  344. #ifdef emacs /* Don't do this for lib-src.  */
  345. /* Tell regex.c to use a type compatible with Emacs.  */
  346. #define RE_TRANSLATE_TYPE Lisp_Object
  347. #define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C)
  348. #define RE_TRANSLATE_P(TBL) (XFASTINT (TBL) != 0)
  349. #endif
  350.  
  351. /* The rest of the code currently tests the CPP symbol BSTRING.
  352.    Override any claims made by the system-description files.
  353.    Note that on some SCO version it is possible to have bcopy and not bcmp.  */
  354. #undef BSTRING
  355. #if defined (HAVE_BCOPY) && defined (HAVE_BCMP)
  356. #define BSTRING
  357. #endif
  358.  
  359. /* Non-ANSI C compilers usually don't have volatile.  */
  360. #ifndef HAVE_VOLATILE
  361. #ifndef __STDC__
  362. #define volatile
  363. #endif
  364. #endif
  365.  
  366. /* Some of the files of Emacs which are intended for use with other
  367.    programs assume that if you have a config.h file, you must declare
  368.    the type of getenv.
  369.  
  370.    This declaration shouldn't appear when alloca.s or Makefile.in
  371.    includes config.h.  */
  372. #ifndef NOT_C_CODE
  373. extern char *getenv ();
  374. #endif
  375.  
  376. #endif /* EMACS_CONFIG_H */
  377.  
  378. /* These default definitions are good for almost all machines.
  379.    The exceptions override them in m/MACHINE.h.  */
  380.  
  381. #ifndef BITS_PER_CHAR
  382. #define BITS_PER_CHAR 8
  383. #endif
  384.  
  385. #ifndef BITS_PER_SHORT
  386. #define BITS_PER_SHORT 16
  387. #endif
  388.  
  389. /* Note that lisp.h uses this in a preprocessor conditional, so it
  390.    would not work to use sizeof.  That being so, we do all of them
  391.    without sizeof, for uniformity's sake.  */
  392. #ifndef BITS_PER_INT
  393. #define BITS_PER_INT 32
  394. #endif
  395.  
  396. #ifndef BITS_PER_LONG
  397. #define BITS_PER_LONG 32
  398. #endif
  399.  
  400. /* Don't include <string.h> during configure.  */
  401. #ifndef NOT_C_CODE
  402. #ifdef HAVE_STRING_H
  403. #include "string.h"
  404. #endif
  405. #endif
  406.