Mercurial > hg > xemacs-beta
view src/config.h.in @ 872:79c6ff3eef26
[xemacs-hg @ 2002-06-20 21:18:01 by ben]
font changes etc.; some 21.4 changes
mule/mule-msw-init-late.el: Specify charset->windows-registry conversion.
mule/mule-x-init.el: Delete extra mule font additions here. Put them in faces.c.
cl-macs.el: Document better.
font-lock.el: Move Lisp function regexp to lisp-mode.el.
lisp-mode.el: Various indentation fixes:
Handle flet functions better.
Handle argument lists in defuns and flets.
Handle quoted lists, e.g. property lists -- don't indent like
function calls. Distinguish between lambdas and other lists.
lisp-mode.el: Handle this form.
faces.el, font-menu.el, font.el, gtk-faces.el, msw-faces.el, msw-font-menu.el, x-faces.el, x-init.el: Major overhaul of face-handling code:
-- Fix lots of bogus code in msw-faces.el, msw-font-menu.el,
font-menu.el that was "truenaming" font specs -- i.e. in the
process of frobbing a particular field in a general user-specified
font spec with wildcarded fields, sticking in particular values
for all the remaining wildcarded fields. This bug was rampant
everywhere except in x-faces.el (the oldest and only correctly
written code). This also means that we need to work with font
names at all times and not font instances, because a font instance
is essentially a truenamed font.
-- Total rewrite of extremely junky code in msw-faces.el. Work
with names as well as font instances, and return names; stop
truenaming when canonicalizing and frobbing; fix handling of the
combined style field, i.e. weight/slant (also fixed in font.el).
-- Totally rewrite the frobbing functions in faces.el. This time,
we frob all the instantiators rather than just computing a single
instance value and working backwards. That way, e.g., `bold' will
work for all charsets that have bold available, rather than only
for whatever charset was part of the computed font instance
(another example of the truename virus). Also fix up code to look
at the fallbacks (all of them) when no global value present, so we
don't need to put something in the global value. Intelligently
handle a request to frob a buffer locale, rather than signalling
an error. When frobbing instantiators, try hard to figure out
what device type is associated with them, and frob each according
to its own proper device type. Correctly handle inheritance
vectors given as instantiators. Preserve existing tags when
putting back frobbed instantiators. Extract out general
specifier-frobbing code into specifier.el. Document everything
cleanly. Do lots of other things better, etc.
-- Don't duplicatively set a global specification for the default
font -- it's already in the fallback and we no longer need a
default global specification present. Delete various code in
x-faces.el and msw-faces.el that duplicated the lists of fonts in
faces.c.
-- init-global-faces was not being called at all under MS Windows!
Major bogosity. That caused device-specific values to get stuck
into all the fonts, making it very hard to change them -- setting
global specs caused nothing to happen.
-- Correct weight names in font.el.
-- Lots more font fixups in objects*.c.
Printer.el: Warning fix.
specifier.el: Add more args to map-specifier.
Add various "heuristic" specifier functions to aid in creation of
specifier-munging code such as in faces.el.
subr.el: New functions.
lwlib.c: Fix warning.
config.inc.samp: Clean up, add args to control fastcall (not yet supported! the
changes needed are in another ws of mine), profile support, vc6
support, union-type.
xemacs.dsp, xemacs.mak: Semi-major overhaul.
Fix bug where dump-id was always getting recomputed, forcing a
redump even when nothing changed.
Add support for fastcall. Support edit-and-continue (on by
default) with vc6. Use incremental linking when doing a debug
compilation. Add support for profiling.
Consolidate the various debug flags.
Partial support for "batch-compiling" -- compiling many files on a
single invocation of the compiler. Doesn't seem to help that much
for me, so it's not finished or enabled by default.
Remove HAVE_MSW_C_DIRED, we always do.
Correct some sloppy use of directories.
s/cygwin32.h: Allow pdump to work under Cygwin (mmap is broken, so need to undefine
HAVE_MMAP).
s/win32-common.h, s/windowsnt.h: Support for fastcall. Add WIN32_ANY for identifying all Win32
variants (Cygwin, native, MinGW). Both of these are properly used
in another ws.
alloc.c, balloon-x.c, buffer.c, bytecode.c, callint.c, cm.c, cmdloop.c, cmds.c, console-gtk.c, console-gtk.h, console-msw.c, console-msw.h, console-stream.c, console-stream.h, console-tty.c, console-tty.h, console-x.c, console-x.h, console.c, console.h, device-gtk.c, device-msw.c, device-tty.c, device-x.c, device.c, device.h, devslots.h, dialog-gtk.c, dialog-msw.c, dialog-x.c, dialog.c, dired-msw.c, editfns.c, emacs.c, event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, event-tty.c, event-unixoid.c, events.c, extents.c, extents.h, faces.c, fileio.c, fns.c, frame-gtk.c, frame-msw.c, frame-tty.c, frame-x.c, frame.c, frame.h, glyphs-eimage.c, glyphs-gtk.c, glyphs-msw.c, glyphs-widget.c, glyphs-x.c, glyphs.c, glyphs.h, gui-gtk.c, gui-msw.c, gui-x.c, gui.c, gutter.c, input-method-xlib.c, intl-encap-win32.c, intl-win32.c, keymap.c, lisp.h, macros.c, menubar-gtk.c, menubar-msw.c, menubar-x.c, menubar.c, menubar.h, minibuf.c, mule-charset.c, nt.c, objects-gtk.c, objects-gtk.h, objects-msw.c, objects-msw.h, objects-tty.c, objects-tty.h, objects-x.c, objects-x.h, objects.c, objects.h, postgresql.c, print.c, process.h, redisplay-gtk.c, redisplay-msw.c, redisplay-output.c, redisplay-tty.c, redisplay-x.c, redisplay.c, redisplay.h, scrollbar-gtk.c, scrollbar-msw.c, scrollbar-x.c, scrollbar.c, select-gtk.c, select-msw.c, select-x.c, select.c, signal.c, sound.c, specifier.c, symbols.c, syntax.c, sysdep.c, syssignal.h, syswindows.h, toolbar-common.c, toolbar-gtk.c, toolbar-msw.c, toolbar-x.c, toolbar.c, unicode.c, window.c, window.h: The following are the major changes made:
(1) Separation of various header files into an external and an
internal version, similar to the existing separation of process.h
and procimpl.h. Eventually this should be done for all Lisp
objects. The external version has the same name as currently; the
internal adds -impl. The external file has XFOO() macros for
objects, but the structure is opaque and defined only in the
internal file. It's now reasonable to move all prototypes in
lisp.h into the appropriate external file, and this should be
done. Currently, separation has been done on extents.h,
objects*.h, console.h, device.h, frame.h, and window.h.
For c/d/f/w, the most basic properties are available in the
external header file, with the macros resolving to functions. In
the internal header file, the macros are redefined to directly
access the structure. Also, the global MARK_FOO_CHANGED macros
have been made into functions so that they can be accessed without
needing to include lots of -impl headers -- they are used in
almost exclusively in non-time-critical functions, and take up
enough time that the function overhead will be negligible.
Similarly, the function overhead from making the basic properties
mentioned above into functions is negligible, and code that does
heavy accessing of c/d/f/w structures inevitably ends up needing
the internal header files, anyway.
(2) More face changes.
-- Major rewrite of objects-msw.c. Now handles wildcard specs
properly, rather than "truenaming" (or even worse, signalling an
error, which previously happened with some of the fallbacks if you
tried to use them in make-font-instance!).
-- Split charset matching of fonts into two stages -- one to find
a font specifically designed for a particular charset (by
examining its registry), the second to find a Unicode font that
can support the charset. This needs to proceed as two complete,
separate instantiations in order to work properly (otherwise many
of the fonts in the HELLO page look wrong). This should also make
it easy to support iso10646 (Unicode) fonts under X.
-- All default values for fonts are now completely specified in
the fallbacks. Stuff from mule-x-init.el has all been moved here,
merged with the existing specs, and totally rethought so you get
sensible results. (HELLO now looks much better!).
-- Generalize the "default X/GTK device" stuff into a
per-device-type "default device".
-- Add mswindows-{set-}charset-registry. In time,
charset<->code-page conversion functions will be removed.
-- Wrap protective code around calls to compute device specifier tags,
and do this computation before calling the face initialization code
because the latter may need these tags to be correctly updated.
(3) Other changes.
EmacsFrame.c, glyphs-msw.c, eval.c, gui-x.c, intl-encap-win32.c, search.c, signal.c, toolbar-msw.c, unicode.c: Warning fixes.
config.h.in: #undefs meant to be frobbed by configure *MUST* go inside of
#ifndef WIN32_NO_CONFIGURE, and everything else *MUST* go outside!
eval.c: Let detailed backtraces be detailed.
specifier.c: Don't override user's print-string-length/print-length settings.
glyphs.c: New function image-instance-instantiator.
config.h.in, sysdep.c: Changes for fastcall.
sysdep.c, nt.c: Fix up a previous botched patch that tried to add support for both
EEXIST and EACCES. IF THE BOTCHED PATCH WENT INTO 21.4, THIS FIXUP
NEEDS TO GO IN, TOO.
search.c: Fix *evil* crash due to incorrect synching of syntax-cache code
with 21.1. THIS SHOULD GO INTO 21.4.
author | ben |
---|---|
date | Thu, 20 Jun 2002 21:19:10 +0000 |
parents | e7ee5f8bde58 |
children | e10cdc51a200 |
line wrap: on
line source
/* XEmacs site configuration template file. -*- C -*- Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002 Ben Wing. This file is part of XEmacs. XEmacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. XEmacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with XEmacs; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Significantly divergent from FSF. */ /* No code in XEmacs #includes config.h twice, but some of the code intended to work with other packages as well (like gmalloc.c) think they can include it as many times as they like. */ #ifndef _SRC_CONFIG_H_ #define _SRC_CONFIG_H_ /* This file now serves both as config.h.in and simply as config.h under Windows NT. Under Windows NT, there is no configure script that operates, so it is necessary for the relevant constants to be set manually, either by the user (for user options) or in s/windowsnt.h. Formerly, under NT there were three different places where constants were defined -- nt/config.h, nt/xemacs.mak and s/windowsnt.h; now only the latter two are used. (This separate config.h was a hassle because it required constant synchronization between it and src/config.h.in.) Since the options that are substituted by configure are written in config.h.in with #undef, it is easy to make this file serve as config.h under Windows NT. Options that are set by the user are specified in the file config.inc.samp, which is included by xemacs.mak \(the makefile) and used to set command-line options to the compiler. The sorts of options that relate to the system and not to the user and which are normally auto-determined by configure are set in windowsnt.h. What this means is that a little more care has to be taken in the way things are arranged in config.h.in. In particular: -- Everything that is written with a #undef should be bracketed by #ifdef WIN32_NO_CONFIGURE, and these #ifdefs should in general be grouped together as much as possible. -- Things that are not #undefs should not go inside this bracketed #ifdef, because these things typically set constants based on other constants and those latter constants may be set elsewhere under Windows NT. -- Any #ifdefs that depend on constants that may be set in windowsnt.h need to be moved after the point at which this file is included. This applies for example to the error checking macros. */ #if defined (WIN32_NATIVE) && !defined (MINGW) # define WIN32_NO_CONFIGURE #endif /* Use this to add code in a structured way to FSF-maintained source files so as to make it obvious where XEmacs changes are. */ #define XEMACS 1 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */ /* Program name */ #undef EMACS_PROGNAME /* Allow s&m files to differentiate OS versions without having multiple files to maintain. */ #undef OS_RELEASE /* The configuration name. This is used as the install directory name for the lib-src programs. */ #undef EMACS_CONFIGURATION /* The configuration options. This is exported to Lisp. */ #undef EMACS_CONFIG_OPTIONS /* The version info from version.sh. Used in #pragma ident in emacs.c */ #undef EMACS_MAJOR_VERSION #undef EMACS_MINOR_VERSION #undef EMACS_PATCH_LEVEL #undef EMACS_BETA_VERSION #undef EMACS_VERSION #undef XEMACS_CODENAME /* InfoDock versions, not used with XEmacs */ #undef INFODOCK_MAJOR_VERSION #undef INFODOCK_MINOR_VERSION #undef INFODOCK_BUILD_VERSION /* Make functions from IEEE Stds 1003.[123] available. */ #undef _POSIX_C_SOURCE /* Make some functions from Unix98 available. */ #undef _XOPEN_SOURCE /* Make "extensions" from Unix98 available. */ #undef _XOPEN_SOURCE_EXTENDED /* Make all functions available on AIX. See AC_AIX. */ #undef _ALL_SOURCE /* Make all functions available on GNU libc systems. See features.h. */ #undef _GNU_SOURCE /* Make all functions available on Solaris 2 systems. */ #undef __EXTENSIONS__ /* Used to identify the XEmacs version in stack traces. */ #undef STACK_TRACE_EYE_CATCHER /* Allow the configurer to specify if she wants site-lisp. */ #undef INHIBIT_SITE_LISP /* Allow the configurer to specify if she wants site-modules. */ #undef INHIBIT_SITE_MODULES /* This will be removed in 19.15. */ /* Hah! Try 20.3 ... */ /* Hah! Try never ... */ /* If at first you don't succeed, try, try again. */ /* #define LOSING_BYTECODE */ /* Undefine on systems which don't have processes */ #undef HAVE_UNIX_PROCESSES /* Does XEmacs support floating-point numbers? */ #undef LISP_FLOAT_TYPE /* Define GNU_MALLOC if you want to use the GNU memory allocator. */ #undef GNU_MALLOC /* Define if you are using the GNU C Library. -- experimental. */ #undef DOUG_LEA_MALLOC /* Define if you are using libmcheck.a from the GNU C Library. */ #undef HAVE_LIBMCHECK /* Define if you are using dlmalloc from the Linux C library. */ #undef _NO_MALLOC_WARNING_ /* Use the system malloc? */ #undef USE_SYSTEM_MALLOC /* Use a debugging malloc? -- experimental */ #undef USE_DEBUG_MALLOC /* Compile in TTY support? */ #undef HAVE_TTY /* Compile in support for MS windows? */ #undef HAVE_MS_WINDOWS /* special cygwin process handling? */ #undef HAVE_MSG_SELECT /* Compile in support for the X window system? */ #undef HAVE_X_WINDOWS /* Defines for building X applications */ #ifdef HAVE_X_WINDOWS /* The following will be defined if xmkmf thinks they are necessary */ #undef SVR4 #undef SYSV #undef AIXV3 #undef _POSIX_SOURCE #undef _BSD_SOURCE #undef _SVID_SOURCE #undef X_LOCALE #undef NARROWPROTO #endif /* HAVE_X_WINDOWS */ #endif /* WIN32_NO_CONFIGURE */ #ifdef HAVE_X_WINDOWS /* The following should always be defined, no matter what xmkmf thinks. */ #ifndef NeedFunctionPrototypes #define NeedFunctionPrototypes 1 #endif #ifndef FUNCPROTO #define FUNCPROTO 15 #endif #endif /* HAVE_X_WINDOWS */ /* Defines for building Gtk applications */ #undef HAVE_GNOME #undef HAVE_GTK #undef HAVE_GDK_IMLIB_INIT #undef HAVE_GLADE_GLADE_H #undef HAVE_GLADE_H #undef LIBGLADE_XML_TXTDOMAIN /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */ #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) || defined(HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */ #define HAVE_WINDOW_SYSTEM #endif /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */ #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined(HAVE_MSG_SELECT) #define HAVE_UNIXOID_EVENT_LOOP #endif #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */ /* XFree86 has a different prototype for this function */ #undef HAVE_XREGISTERIMINSTANTIATECALLBACK #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE #undef THIS_IS_X11R4 #undef THIS_IS_X11R5 #undef THIS_IS_X11R6 #undef HAVE_XCONVERTCASE #undef HAVE_BALLOON_HELP /* Where do we find bitmaps? */ #undef BITMAPDIR /* Define AMPERSAND_FULL_NAME if you use the convention that & in the full name stands for the login id. */ #undef AMPERSAND_FULL_NAME /* Some things figured out by the configure script, grouped as they are in configure.in. */ #undef HAVE_MCHECK_H #undef HAVE_A_OUT_H #undef HAVE_ELF_H #undef HAVE_CYGWIN_VERSION_H #undef HAVE_FCNTL_H #undef HAVE_INTTYPES_H #undef HAVE_LIBGEN_H #undef HAVE_LOCALE_H #undef HAVE_MACH_MACH_H #undef HAVE_SYS_PARAM_H #undef HAVE_SYS_PSTAT_H #undef HAVE_SYS_TIME_H #undef HAVE_SYS_TIMEB_H #undef HAVE_SYS_TIMES_H #undef HAVE_SYS_UN_H #undef HAVE_ULIMIT_H #undef HAVE_UNISTD_H #undef HAVE_SYS_WAIT_H #undef HAVE_LIBINTL_H #undef HAVE_X11_XLOCALE_H /* About __STDC__: Different compilers differ wrt __STDC__. Sunpro C defines it, but its value is 0 unless we disable non-ANSI extensions. VC++ doesn't define it at all unless we disable non-ANSI extensions. But these compilers are all ANSI-compliant. So don't go testing __STDC__ anywhere except in code that runs only on known compilers. --ben Jamie wrote the following: [[ The ANSI standard says that defining __STDC__ to a non-zero value means that the compiler conforms to that standard. The standard requires certain header files and library functions to be present. Therefore, if your compiler defines __STDC__ to non-0 but does not have ANSI headers and the ANSI library routines, then your compiler is buggy. Conversely, an ANSI-conforming environment (which has both the ANSI headers and library routines, i.e., stdlib.h and `memmove') does not necessarily define the STDC_HEADERS flag. Lucid Emacs requires an ANSI compiler. Therefore, there is no need to consult the abominable STDC_HEADERS flag. -- jwz ]] In reality, we should not be testing STDC_HEADERS at all except possibly in code we're purposely keeping in close sync with FSF code. STDC_HEADERS should be defined on *ALL* compilers. */ #undef STDC_HEADERS #undef TIME_WITH_SYS_TIME #undef WORDS_BIGENDIAN #undef HAVE_LONG_FILE_NAMES /* Use lock files to detect multiple edits of the same file? */ #undef CLASH_DETECTION /* Have shared library support */ #undef HAVE_DLOPEN #undef HAVE_DLERROR #undef HAVE__DLERROR #undef HAVE_SHL_LOAD #undef HAVE_DLD_INIT #undef HAVE_SHLIB #undef HAVE_LIBINTL #undef HAVE_LIBDNET #undef HAVE_LIBRESOLV /* Is `sys_siglist' declared by <signal.h>? */ #undef SYS_SIGLIST_DECLARED /* Is `struct timeval' declared by <sys/time.h>? */ #undef HAVE_TIMEVAL #undef TM_IN_SYS_TIME #undef HAVE_TM_ZONE #undef HAVE_TZNAME /* For `getloadavg' provided by system */ #undef HAVE_GETLOADAVG #undef HAVE_SYS_LOADAVG_H /* For implementing `getloadavg' ourselves */ #undef HAVE_LIBKSTAT #undef HAVE_KSTAT_H /* Is `h_errno' declared by <netdb.h>? */ #undef HAVE_H_ERRNO /* Does `localtime' cache TZ? */ #undef LOCALTIME_CACHE /* Can `gettimeofday' accept two arguments? */ #undef GETTIMEOFDAY_ONE_ARGUMENT #undef HAVE_MMAP #undef HAVE_STRCOLL #undef HAVE_GETPGRP #undef GETPGRP_VOID #undef HAVE_INVERSE_HYPERBOLIC #undef HAVE_CBRT #undef HAVE_CLOSEDIR #undef HAVE_DUP2 #undef HAVE_EACCESS #undef HAVE_FMOD #undef HAVE_FPATHCONF #undef HAVE_FREXP #undef HAVE_FTIME #undef HAVE_GETADDRINFO #undef HAVE_GETHOSTNAME #undef HAVE_GETNAMEINFO #undef HAVE_GETPAGESIZE #undef HAVE_GETTIMEOFDAY #undef HAVE_GETWD #undef HAVE_GETCWD #undef HAVE_LINK #undef HAVE_LOGB #undef HAVE_LRAND48 #undef HAVE_MATHERR #undef HAVE_MKDIR #undef HAVE_MKTIME #undef HAVE_PERROR #undef HAVE_POLL #undef HAVE_RANDOM #undef HAVE_READLINK #undef HAVE_REALPATH #undef HAVE_RENAME #undef HAVE_RES_INIT #undef HAVE_RINT #undef HAVE_RMDIR #undef HAVE_SELECT #undef HAVE_SETITIMER #undef HAVE_SETPGID #undef HAVE_SETSID #undef HAVE_SIGBLOCK #undef HAVE_SIGHOLD #undef HAVE_SIGPROCMASK #undef HAVE_SIGSETJMP #undef HAVE_SNPRINTF #undef HAVE_STPCPY #undef HAVE_STRERROR #undef HAVE_SYMLINK #undef HAVE_TZSET #undef HAVE_ULIMIT #undef HAVE_USLEEP #undef HAVE_UTIME #undef HAVE_UTIMES #undef HAVE_WAITPID #undef HAVE_VSNPRINTF /* Many flavors of PTY support */ #undef HAVE_GETPT /* glibc's easy pty allocation function */ #undef HAVE__GETPTY /* SGI's easy pty allocation function */ #undef HAVE_OPENPTY /* BSD's easy pty allocation function */ #undef HAVE_GRANTPT /* Unix98 */ #undef HAVE_UNLOCKPT /* Unix98 */ #undef HAVE_PTSNAME /* Unix98 */ #undef HAVE_KILLPG /* BSD */ #undef HAVE_TCGETPGRP /* Posix 1 */ #undef HAVE_ISASTREAM /* SysV streams */ #undef HAVE_SYS_PTY_H /* AIX */ #undef HAVE_SYS_PTYIO_H /* HP-UX */ #undef HAVE_PTY_H /* Linux, Tru64 */ #undef HAVE_LIBUTIL_H /* BSD openpty */ #undef HAVE_UTIL_H /* NetBSD openpty */ #undef HAVE_STROPTS_H /* SysV streams */ #undef HAVE_STRTIO_H /* SysV streams TIOCSIGNAL */ #undef HAVE_SOCKETS #undef HAVE_SOCKADDR_SUN_LEN #undef HAVE_MULTICAST #undef HAVE_SYSVIPC #undef HAVE_LOCKF #undef HAVE_FLOCK #undef HAVE_FSYNC #undef HAVE_FTRUNCATE #undef HAVE_UMASK #undef SYSV_SYSTEM_DIR #undef NONSYSTEM_DIR_LIBRARY #undef HAVE_TERMIOS #undef HAVE_TERMIO #undef NO_TERMIO #undef SIGNALS_VIA_CHARACTERS #undef NLIST_STRUCT /* Do IPv6 hostname canonicalization before IPv4 in getaddrinfo()? */ #undef IPV6_CANONICALIZE /* Compile in support for SOCKS? */ #undef HAVE_SOCKS /* Compile in support for X pixmaps via the `xpm' library? */ #undef HAVE_XPM #undef FOR_MSW /* Compile in support for "X faces" via the `compface' library? This enables graphical display of X-face headers in mail/news messages */ #undef HAVE_XFACE /* Compile in support for JPEG images */ #undef HAVE_JPEG /* Compile in support for TIFF images */ #undef HAVE_TIFF /* Compile in support for GIF images */ #undef HAVE_GIF /* Compile in support for PNG images */ #undef HAVE_PNG /* Compile in support for GZIP compression */ #undef HAVE_ZLIB /* Do you have the Xmu library? This should always be the case except on losing HP-UX systems. */ #undef HAVE_XMU /* Compile in support for DBM databases? May require libgdbm or libdbm. */ #undef HAVE_DBM /* Compile in support for Berkeley DB style databases? May require libdb. */ #undef HAVE_BERKELEY_DB /* Full #include file path for Berkeley DB's db.h */ #undef DB_H_FILE /* Do we have either DBM or Berkeley DB database support? */ #undef HAVE_DATABASE /* Do we have LDAP support? */ #undef HAVE_LDAP /* Does the library define ldap_set_option () ? */ #undef HAVE_LDAP_SET_OPTION /* Does the library define ldap_get_lderrno () ? */ #undef HAVE_LDAP_GET_LDERRNO /* Does the library define ldap_result2error () ? */ #undef HAVE_LDAP_RESULT2ERROR /* Does the library define ldap_parse_result () ? */ #undef HAVE_LDAP_PARSE_RESULT /* Do we have PostgreSQL RDBMS support? */ #undef HAVE_POSTGRESQL #undef HAVE_POSTGRESQLV7 #undef LIBPQ_FE_H_FILE /* main PostgreSQL header file */ /* Do you have the Xauth library present? This will add some extra functionality to gnuserv. */ #undef HAVE_XAUTH /* Compile in support for gpm (General Purpose Mouse)? */ #undef HAVE_GPM /* Compile in support for ncurses? */ #undef HAVE_NCURSES /* Full #include file paths for ncurses' curses.h and term.h. */ #undef CURSES_H_FILE #undef TERM_H_FILE /* Define USE_ASSERTIONS if you want the abort() to be changed to assert(). If the assertion fails, assert_failed() will be called. This is recommended for general use because it gives more info about the crash than just the abort() message. Too many people "Can't find the corefile" or have limit-ed core dumps out of existence. */ #undef USE_ASSERTIONS /* Define one or more of the following if you want lots of extra checks (e.g. structure validation) compiled in. These should be turned on during the beta-test cycle. */ /* Check the entire extent structure of a buffer each time an extent change is done, and do other extent-related checks. */ #undef ERROR_CHECK_EXTENTS /* Turn on checks related to types -- make sure that all X... macros are dereferencing the correct type, and that all XSET... macros (as much as possible) are setting the correct type of structure; check any other places that a specific type is expected. */ #undef ERROR_CHECK_TYPES /* Turn on checks related to text -- check that text in strings and buffers is in a valid format before we use it, check that buffer positions are valid, etc. */ #undef ERROR_CHECK_TEXT /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */ #undef ERROR_CHECK_GC /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */ #undef ERROR_CHECK_MALLOC /* Minor sanity checking of the bytecode interpreter. Useful for debugging the byte compiler. */ #undef ERROR_CHECK_BYTE_CODE /* Minor sanity checking of glyphs, especially subwindows and widgets. */ #undef ERROR_CHECK_GLYPHS /* Sanity-check the redisplay structures after each modification. */ #undef ERROR_CHECK_DISPLAY /* Define for any sanity checks on structures that are not handled by a more specific error-checking type. */ #undef ERROR_CHECK_STRUCTURES /* Define DEBUG_XEMACS if you want extra debugging code compiled in. This is mainly intended for use by developers. */ #undef DEBUG_XEMACS /* Define MEMORY_USAGE_STATS if you want extra code compiled in to determine where XEmacs' memory is going. */ #undef MEMORY_USAGE_STATS /* Define QUANTIFY if using Quantify from Rational Software. This adds some additional calls to control data collection. It is only intended for use by the developers. */ #undef QUANTIFY /* Define PURIFY if using Purify from Rational Software. It is only intended for use by the developers. */ #undef PURIFY /* Define EXTERNAL_WIDGET to compile support for using the editor as a widget within another program. */ #undef EXTERNAL_WIDGET /* There are some special-case defines for gcc and lcc. */ #undef USE_GCC #undef USE_LCC /* Compile in support for CDE (Common Desktop Environment) drag and drop? Requires libDtSvc, which typically must be present at runtime. */ #undef HAVE_CDE /* Compile in support for OffiX Drag and Drop? */ #undef HAVE_OFFIX_DND /* Compile in generic Drag'n'Drop API */ #undef HAVE_DRAGNDROP /* Compile in support for proper handling of WM_COMMAND. */ #undef HAVE_WMCOMMAND /* Define this if you want Mule support (multi-byte character support). There may be some performance penalty, although it should be small if you're working with ASCII files. */ #undef MULE /* Define this if you want EOL detection of files to be on by default in a non-Mule Unix; otherwise, defaults will be set so that all files are read in as binary. Doesn't apply to Cygwin or MinGW. */ #undef HAVE_DEFAULT_EOL_DETECTION /* Do we want to use X window input methods for use with Mule? (requires X11R5) If so, use raw Xlib or higher level Motif interface? */ #undef HAVE_XIM #undef XIM_XLIB #undef XIM_MOTIF /* Non-XIM input methods for use with Mule. */ #undef HAVE_CANNA #undef HAVE_WNN #undef WNN6 /* Debugging development option: Remove inessential but time consuming actions from happening during build. This saves a lot of time when you're repeatedly compiling-running-crashing. This (1) doesn't garbage-collect after loading each file during dumping, and (2) doesn't automatically rebuild the DOC file. (Remove it by hand to get it rebuilt.) */ #undef QUICK_BUILD /* If true, run the compiler with many files at once rather than one at a time. May speed up compilation time with some compilers, particularly if the entire compilation happens in a single process -- the process can cache the results of processing include files. This definitely helps with VC++ (although it doesn't use Makefile.in.in) but not with GCC, which runs many processes per file to compile. */ #undef BATCH_COMPILER_RUNS /* If defined, use unions instead of ints. A few systems (DEC Alpha) seem to require this, probably because something with the int definitions isn't right with 64-bit systems. */ #undef USE_UNION_TYPE /* Enable special GNU Make features in the Makefiles. */ #undef USE_GNU_MAKE /* Defined by AC_C_CONST in configure.in */ #undef const /* Allow the source to use standard types. Include these before the s&m files so that they can use them. */ #undef ssize_t #undef size_t #undef pid_t #undef mode_t #undef off_t #undef uid_t #undef gid_t #undef socklen_t #endif /* WIN32_NO_CONFIGURE */ /* USER_FULL_NAME returns a string that is the user's full name. It can assume that the variable `pw' points to the password file entry for this user. At some sites, the pw_gecos field contains the user's full name. If neither this nor any other field contains the right thing, use pw_name, giving the user's login name, since that is better than nothing. */ #define USER_FULL_NAME pw->pw_gecos #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS) #define XLIB_ILLEGAL_ACCESS 1 #endif #define XEMACS_WANTS_C_ALLOCA /* alloca twiddling. Because we might be #including alloca.h here, feature test macros such as _XOPEN_SOURCE must be defined above. */ #undef HAVE_ALLOCA_H #ifndef NOT_C_CODE #if defined (__CYGWIN__) /* We get complaints about redefinitions if we just use the __GNUC__ definition: stdlib.h also includes alloca.h, which defines it slightly differently */ #include <alloca.h> #elif defined (__GNUC__) #define alloca __builtin_alloca #elif defined (WIN32_NO_CONFIGURE) /* Defines size_t and alloca (). */ #include <malloc.h> #elif defined (__DECC) #include <alloca.h> #pragma intrinsic(alloca) #elif defined (HAVE_ALLOCA_H) #include <alloca.h> #elif defined (_AIX) /* AIX requires this before any "real" code in the translation unit. */ #pragma alloca #elif ! defined (alloca) #ifdef C_ALLOCA #define alloca xemacs_c_alloca #else void *alloca (); #endif /* C_ALLOCA */ #endif /* !defined (alloca) */ #endif /* C code */ /* The configuration script may define `opsysfile' to be the name of the s/...h file that describes your operating system. The file name is chosen based on the configuration name. */ #if defined (__cplusplus) && !defined (NOT_C_CODE) extern "C" { #endif #undef config_opsysfile #ifdef WIN32_NO_CONFIGURE #include "s/windowsnt.h" #elif defined (config_opsysfile) #include config_opsysfile #endif /* The configuration script may define `machfile' to be the name of the m/...h file that describes the machine you are using. The file name is chosen based on the configuration name. */ #undef config_machfile #ifdef WIN32_NO_CONFIGURE #include "m/windowsnt.h" #elif defined (config_machfile) #include config_machfile #endif #if defined (__cplusplus) && !defined (NOT_C_CODE) } #endif /* s&m files shouldn't be required to define anything, or even to exist. If the s&m files don't define SYSTEM_TYPE, configure will select an appropriate default value. */ #ifndef SYSTEM_TYPE #undef SYSTEM_TYPE #endif #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC) #define SYSTEM_MALLOC #endif /* Define the return type of signal handlers if the s/xxx.h file did not already do so. */ #define RETSIGTYPE void #ifndef XCDECL #define XCDECL #endif /* SIGTYPE is the macro we actually use. */ #ifndef SIGTYPE #define SIGTYPE RETSIGTYPE XCDECL #define SIGRETURN return #endif #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */ /* Use the relocating allocator for buffer space? */ #undef REL_ALLOC /* Define DYNODUMP if it is necessary to properly dump on this system. Currently this is only Solaris 2.x, for x < 6. */ #undef DYNODUMP /* Compile in support for Sun Sparcworks/WorkShop? */ #undef SUNPRO /* Sun SparcStations, SGI machines, and HP9000s700s have built-in support for playing sound files. (On Suns, the sound support is usually found in /usr/demo/SOUND - you may need to install the "SUNWaudmo" package.) */ #undef HAVE_NATIVE_SOUND /* Native sound may be provided via soundcard.h, in various directories */ #undef SOUNDCARD_H_FILE /* Compile in support for NAS (Network Audio System)? NAS_NO_ERROR_JUMP means that the NAS libraries don't include some error handling changes. */ #undef HAVE_NAS_SOUND #undef NAS_NO_ERROR_JUMP /* Compile in support for ESD (Enlightened Sound Daemon)? */ #undef HAVE_ESD_SOUND /* Compile in support for SunPro usage-tracking code? */ #undef USAGE_TRACKING /* Compile in support for Tooltalk? */ #undef TOOLTALK /* tt_c.h might be in "Tt" or "desktop" subdirectories */ #undef TT_C_H_FILE /* Toolkits used by lwlib for various widgets... */ #undef LWLIB_USES_MOTIF #undef LWLIB_USES_ATHENA #undef LWLIB_MENUBARS_LUCID #undef LWLIB_MENUBARS_MOTIF #undef LWLIB_SCROLLBARS_LUCID #undef LWLIB_SCROLLBARS_MOTIF #undef LWLIB_SCROLLBARS_ATHENA #undef LWLIB_SCROLLBARS_ATHENA3D #undef LWLIB_DIALOGS_MOTIF #undef LWLIB_DIALOGS_ATHENA #undef LWLIB_DIALOGS_ATHENA3D #undef LWLIB_TABS_LUCID #undef LWLIB_WIDGETS_MOTIF #undef LWLIB_WIDGETS_ATHENA #undef HAVE_ATHENA_3D /* Other things that can be disabled by configure. */ #undef HAVE_MENUBARS #undef HAVE_SCROLLBARS #undef HAVE_DIALOGS #undef HAVE_TOOLBARS #undef HAVE_WIDGETS #endif /* WIN32_NO_CONFIGURE */ #if defined (HAVE_MENUBARS) || defined (HAVE_SCROLLBARS) || defined (HAVE_DIALOGS) || defined (HAVE_TOOLBARS) || defined (HAVE_WIDGETS) #define HAVE_GUI_OBJECTS #endif /* For the moment, Athena widgets and dialogs may be very unstable and not working well, but things under Windows work much better. configure by default tries to turn Windows widgets and dialogs on, but the Athena ones off, so let's separate the defines. */ #if defined (HAVE_WIDGETS) && (defined (LWLIB_WIDGETS_MOTIF) || defined (LWLIB_WIDGETS_ATHENA)) #define HAVE_X_WIDGETS #endif #if defined (HAVE_DIALOGS) && (defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_DIALOGS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA3D)) #define HAVE_X_DIALOGS #endif #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS) #define HAVE_POPUPS #endif /* If you are using SunOS 4.1.1 and X11r5, then you need this patch. There is a stupid bug in the SunOS libc.a: two functions which X11r5 uses, mbstowcs() and wcstombs(), are unusable when programs are statically linked (as XEmacs must be) because the static version of libc.a contains the *dynamic* versions of these functions. These functions don't seem to be called when XEmacs is running, so it's enough to define stubs for them. This appears to be fixed in SunOS 4.1.2. Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that sometimes reference memory past the end of the string, which can segv. I don't know whether this has been fixed as of 4.1.2 or 4.1.3. */ #if defined (sparc) && !defined (USG) #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o #endif #ifdef HAVE_CANNA # define CANNA2 # define CANNA_MULE # define CANNA_PURESIZE 0 #else /* not CANNA */ # define CANNA_PURESIZE 0 #endif /* not CANNA */ #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY) #define accept Raccept #define bind Rbind #define connect Rconnect #define getsockname Rgetsockname #define listen Rlisten #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */ #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */ #undef SIZEOF_SHORT #undef SIZEOF_INT #undef SIZEOF_LONG #undef SIZEOF_LONG_LONG #undef SIZEOF_VOID_P /* Does the keyword `inline' exist? */ #undef inline #endif /* WIN32_NO_CONFIGURE */ #ifndef BITS_PER_CHAR #define BITS_PER_CHAR 8 #endif #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR) #define INTBITS (SIZEOF_INT * BITS_PER_CHAR) #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR) #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR) #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR) /* Use `INLINE_HEADER' to define inline functions in .h files. Use `inline static' to define inline functions in .c files. See the Internals manual for examples and more information. */ #if defined (__cplusplus) || ! defined (__GNUC__) # define INLINE_HEADER inline static #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS) # define INLINE_HEADER inline #else # define INLINE_HEADER inline extern #endif /* Use DECLARE_INLINE_HEADER() to declare an inline function in a header file, like this: (This avoids the need to write a prototype directly followed by the function header itself.) DECLARE_INLINE_HEADER (int foo (int x)) { return x * x; } */ #define DECLARE_INLINE_HEADER(header) \ INLINE_HEADER header ; INLINE_HEADER header #ifndef NOT_C_CODE /* Actually means C or C++ */ # if defined (__cplusplus) /* Avoid C++ keywords used as ordinary C identifiers */ # define class c_class # define new c_new # define this c_this # define catch c_catch # define EXTERN_C extern "C" # else /* C code */ # define EXTERN_C extern # endif #endif /* C or C++ */ /* Strictly speaking, only int or unsigned int are valid types in a bitfield. In practice, we would like to use enums as bitfields. The following should just result in warning avoidance: warning: nonportable bit-field type */ #ifdef __GNUC__ #define enum_field(enumeration_type) enum enumeration_type #else #define enum_field(enumeration_type) unsigned int #endif /* We want to avoid saving the signal mask if possible, because that necessitates a system call. */ #ifdef HAVE_SIGSETJMP # define SETJMP(x) sigsetjmp (x, 0) # define LONGJMP(x, y) siglongjmp (x, y) # define JMP_BUF sigjmp_buf #else # define SETJMP(x) setjmp (x) # define LONGJMP(x, y) longjmp (x, y) # define JMP_BUF jmp_buf #endif #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */ /* movemail options */ /* Should movemail use POP3 for mail access? */ #undef MAIL_USE_POP /* Should movemail use kerberos for POP authentication? */ #undef KERBEROS /* Should movemail use hesiod for getting POP server host? */ #undef HESIOD /* Determine type of mail locking. */ #undef MAIL_LOCK_LOCKF #undef MAIL_LOCK_FLOCK #undef MAIL_LOCK_DOT #undef MAIL_LOCK_LOCKING #undef MAIL_LOCK_MMDF #undef HAVE_MKSTEMP #undef PREFIX_USER_DEFINED #undef EXEC_PREFIX_USER_DEFINED #undef MODULEDIR_USER_DEFINED #undef SITEMODULEDIR_USER_DEFINED #undef DOCDIR_USER_DEFINED #undef LISPDIR_USER_DEFINED #undef PACKAGE_PATH_USER_DEFINED #undef SITELISPDIR_USER_DEFINED #undef ARCHLIBDIR_USER_DEFINED #undef ETCDIR_USER_DEFINED #undef INFODIR_USER_DEFINED #undef INFOPATH_USER_DEFINED #undef PDUMP #endif /* WIN32_NO_CONFIGURE */ /* For the moment, we go ahead and keep this, since it's used in mouse.el. #### font-lock does its own version using parse-partial-sexp. We should merge the two. */ #define USE_C_FONT_LOCK #if defined (WIN32_NATIVE) || defined (CYGWIN) # define HAVE_WIN32_CODING_SYSTEMS #endif #ifdef ERROR_CHECK_ALL #define ERROR_CHECK_EXTENTS #define ERROR_CHECK_TYPES #define ERROR_CHECK_TEXT #define ERROR_CHECK_GC #define ERROR_CHECK_MALLOC #define ERROR_CHECK_BYTE_CODE #define ERROR_CHECK_GLYPHS #define ERROR_CHECK_DISPLAY #define ERROR_CHECK_STRUCTURES #endif /* ERROR_CHECK_ALL */ /* Move these down here so that the s/m files (esp. windowsnt.h) can set them. */ #ifdef ERROR_CHECK_TYPES #define type_checking_assert(assertion) assert (assertion) #define type_checking_assert_at_line(assertion, file, line) \ assert_at_line (assertion, file, line) #else #define type_checking_assert(assertion) #define type_checking_assert_at_line(assertion, file, line) #endif #ifdef ERROR_CHECK_GC #define gc_checking_assert(assertion) assert (assertion) #define gc_checking_assert_at_line(assertion, file, line) \ assert_at_line (assertion, file, line) #else #define gc_checking_assert(assertion) #define gc_checking_assert_at_line(assertion, file, line) #endif #ifdef ERROR_CHECK_TEXT #define text_checking_assert(assertion) assert (assertion) #define text_checking_assert_at_line(assertion, file, line) \ assert_at_line (assertion, file, line) #else #define text_checking_assert(assertion) #define text_checking_assert_at_line(assertion, file, line) #endif #endif /* _SRC_CONFIG_H_ */