diff options
| author | Eli Zaretskii | 2015-08-15 10:56:51 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-08-15 10:56:51 +0300 |
| commit | 8db2b2a7d3fc3e4475bc4137c11069a69a3234ec (patch) | |
| tree | 9c3141edc2818d2e2909f2ad89a9620a0ec45937 /nt | |
| parent | 8fa49a6786bd71aa91b1e82709bc1852a65c4646 (diff) | |
| download | emacs-8db2b2a7d3fc3e4475bc4137c11069a69a3234ec.tar.gz emacs-8db2b2a7d3fc3e4475bc4137c11069a69a3234ec.zip | |
Remove files used by the old MS-Windows specific build procedure
* nt/configure.bat: Remove everything except the blurb about the
new build procedure.
* make-dist: Remove references to makefile.w32-in in various
directories, and to files in nt/ that were deleted.
* etc/NEWS: Mention the fact that the files were dropped.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/INSTALL.OLD | 752 | ||||
| -rw-r--r-- | nt/config.nt | 1847 | ||||
| -rwxr-xr-x | nt/configure.bat | 954 | ||||
| -rw-r--r-- | nt/emacs-src.tags | 6 | ||||
| -rw-r--r-- | nt/envadd.bat | 43 | ||||
| -rw-r--r-- | nt/gmake.defs | 333 | ||||
| -rw-r--r-- | nt/makefile.w32-in | 465 | ||||
| -rw-r--r-- | nt/multi-install-info.bat | 40 | ||||
| -rw-r--r-- | nt/nmake.defs | 294 | ||||
| -rw-r--r-- | nt/paths.h | 66 |
10 files changed, 3 insertions, 4797 deletions
diff --git a/nt/INSTALL.OLD b/nt/INSTALL.OLD deleted file mode 100644 index 89e87b2d896..00000000000 --- a/nt/INSTALL.OLD +++ /dev/null | |||
| @@ -1,752 +0,0 @@ | |||
| 1 | Building and Installing Emacs on Windows | ||
| 2 | (from 95 to 7 and beyond) | ||
| 3 | |||
| 4 | Copyright (C) 2001-2015 Free Software Foundation, Inc. | ||
| 5 | See the end of the file for license conditions. | ||
| 6 | |||
| 7 | *** This method of building Emacs is no longer supported. *** | ||
| 8 | It may fail to produce a correctly working Emacs. | ||
| 9 | Do not report bugs associated with this build method. | ||
| 10 | Instead, follow the new instructions in INSTALL. | ||
| 11 | |||
| 12 | * For the impatient | ||
| 13 | |||
| 14 | Here are the concise instructions for configuring and building the | ||
| 15 | native Windows binary of Emacs, for those who want to skip the | ||
| 16 | complex explanations and ``just do it'': | ||
| 17 | |||
| 18 | Do not use this recipe with Cygwin. For building on Cygwin, | ||
| 19 | use the normal installation instructions, ../INSTALL. | ||
| 20 | |||
| 21 | Do not use these instructions with MSYS environment. For building | ||
| 22 | the native Windows binary with MinGW and MSYS, follow the | ||
| 23 | instructions in the file INSTALL in this directory. | ||
| 24 | |||
| 25 | For building without MSYS, if you have a Cygwin or MSYS port of Bash | ||
| 26 | on your Path, you will be better off removing it from PATH. (For | ||
| 27 | details, search for "MSYS sh.exe" below.) | ||
| 28 | |||
| 29 | 1. Change to the `nt' directory (the directory of this file): | ||
| 30 | |||
| 31 | cd nt | ||
| 32 | |||
| 33 | 2. Run configure.bat. | ||
| 34 | |||
| 35 | 2a.If you use MSVC, set up the build environment by running the | ||
| 36 | SetEnv.cmd batch file from the appropriate SDK directory. (Skip | ||
| 37 | this step if you are using MinGW.) For example: | ||
| 38 | |||
| 39 | "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86 /Debug | ||
| 40 | |||
| 41 | if you are going to compile a debug version, or | ||
| 42 | |||
| 43 | "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86 /Release | ||
| 44 | |||
| 45 | if you are going to compile an optimized version. | ||
| 46 | |||
| 47 | 2b.From the COMMAND.COM/CMD.EXE command prompt type: | ||
| 48 | |||
| 49 | configure | ||
| 50 | |||
| 51 | From a Unixy shell prompt: | ||
| 52 | |||
| 53 | cmd /c configure.bat | ||
| 54 | or | ||
| 55 | command.com /c configure.bat | ||
| 56 | |||
| 57 | 3. Run the Make utility suitable for your environment. If you build | ||
| 58 | with the Microsoft's Visual C compiler: | ||
| 59 | |||
| 60 | nmake | ||
| 61 | |||
| 62 | For the development environments based on GNU GCC (MinGW, MSYS, | ||
| 63 | Cygwin - but see notes about Cygwin make below), depending on how | ||
| 64 | Make is called, it could be: | ||
| 65 | |||
| 66 | make | ||
| 67 | or | ||
| 68 | mingw32-make | ||
| 69 | or | ||
| 70 | gnumake | ||
| 71 | or | ||
| 72 | gmake | ||
| 73 | |||
| 74 | (If you are building from Bazaar, say "make bootstrap" or "nmake | ||
| 75 | bootstrap" instead, and avoid using Cygwin make.) | ||
| 76 | |||
| 77 | With GNU Make, you can use the -j command-line option to have | ||
| 78 | Make execute several commands at once, like this: | ||
| 79 | |||
| 80 | gmake -j 2 | ||
| 81 | |||
| 82 | (With versions of GNU Make before 3.82, you need also set the | ||
| 83 | XMFLAGS variable, like this: | ||
| 84 | |||
| 85 | gmake -j 2 XMFLAGS="-j 2" | ||
| 86 | |||
| 87 | The XMFLAGS variable overrides the default behavior of version | ||
| 88 | 3.82 and older of GNU Make on Windows, whereby recursive Make | ||
| 89 | invocations reset the maximum number of simultaneous commands to | ||
| 90 | 1. The above command allows up to 4 simultaneous commands at | ||
| 91 | once in the top-level Make, and up to 3 in each one of the | ||
| 92 | recursive Make's.) | ||
| 93 | |||
| 94 | 4. Generate the Info manuals (only if you are building out of Bazaar, | ||
| 95 | and if you have makeinfo.exe installed): | ||
| 96 | |||
| 97 | make info | ||
| 98 | |||
| 99 | (change "make" to "nmake" if you use MSVC). | ||
| 100 | |||
| 101 | 5. Install the produced binaries: | ||
| 102 | |||
| 103 | make install | ||
| 104 | |||
| 105 | That's it! | ||
| 106 | |||
| 107 | If these short instructions somehow fail, read the rest of this | ||
| 108 | file. | ||
| 109 | |||
| 110 | * Preliminaries | ||
| 111 | |||
| 112 | If you want to build a Cygwin port of Emacs, use the instructions in | ||
| 113 | the INSTALL file in the main Emacs directory (the parent of this | ||
| 114 | directory). These instructions are for building a native Windows | ||
| 115 | binary of Emacs. | ||
| 116 | |||
| 117 | If you used WinZip to unpack the distribution, we suggest to | ||
| 118 | remove the files and unpack again with a different program! | ||
| 119 | WinZip is known to create some subtle and hard to debug problems, | ||
| 120 | such as converting files to DOS CR-LF format, not creating empty | ||
| 121 | directories, etc. We suggest to use djtarnt.exe from the GNU FTP | ||
| 122 | site. For modern formats, such as .tar.xz, we suggest bsdtar.exe | ||
| 123 | from the libarchive package; its precompiled Windows binaries are | ||
| 124 | available from this site: | ||
| 125 | |||
| 126 | http://sourceforge.net/projects/ezwinports/files/ | ||
| 127 | |||
| 128 | In addition to this file, if you build a development snapshot, you | ||
| 129 | should also read INSTALL.REPO in the parent directory. | ||
| 130 | |||
| 131 | * Supported development environments | ||
| 132 | |||
| 133 | To compile Emacs, you will need either Microsoft Visual C++ 2.0, or | ||
| 134 | later and nmake, or a Windows port of GCC 2.95 or later with MinGW | ||
| 135 | and Windows API support and a port of GNU Make. You can use the Cygwin | ||
| 136 | ports of GCC, but Emacs requires the MinGW headers and libraries to | ||
| 137 | build (latest versions of the Cygwin toolkit, at least since v1.3.3, | ||
| 138 | include the MinGW headers and libraries as an integral part). | ||
| 139 | |||
| 140 | The rest of this file assumes you have a working development | ||
| 141 | environment. If you just installed such an environment, try | ||
| 142 | building a trivial C "Hello world" program, and see if it works. If | ||
| 143 | it doesn't work, resolve that problem first! If you use Microsoft | ||
| 144 | Visual Studio .NET 2003, don't forget to run the VCVARS32.BAT batch | ||
| 145 | file from the `Bin' subdirectory of the directory where you have | ||
| 146 | installed VS.NET. With other versions of MSVC, run the SetEnv.cmd | ||
| 147 | batch file from the `Bin' subdirectory of the directory where you | ||
| 148 | have the SDK installed. | ||
| 149 | |||
| 150 | If you use the MinGW port of GCC and GNU Make to build Emacs, there | ||
| 151 | are some compatibility issues wrt Make and the shell that is run by | ||
| 152 | Make, either the standard COMMAND.COM/CMD.EXE supplied with Windows | ||
| 153 | or sh.exe, a port of a Unixy shell. For reference, below is a list | ||
| 154 | of which builds of GNU Make are known to work or not, and whether | ||
| 155 | they work in the presence and/or absence of sh.exe, the Cygwin port | ||
| 156 | of Bash. Note that any version of Make that is compiled with Cygwin | ||
| 157 | will only work with Cygwin tools, due to the use of Cygwin style | ||
| 158 | paths. This means Cygwin Make is unsuitable for building parts of | ||
| 159 | Emacs that need to invoke Emacs itself (leim and "make bootstrap", | ||
| 160 | for example). Also see the Trouble-shooting section below if you | ||
| 161 | decide to go ahead and use Cygwin make. | ||
| 162 | |||
| 163 | In addition, using 4NT or TCC as your shell is known to fail the | ||
| 164 | build process, at least since 4NT version 3.01. Use CMD.EXE, the | ||
| 165 | default Windows shell, instead. MSYS sh.exe also appears to cause | ||
| 166 | various problems, e.g., it is known to cause failures in commands | ||
| 167 | like "cmd /c FOO" in the Makefiles, because it thinks "/c" is a | ||
| 168 | Unix-style file name that needs conversion to the Windows format. | ||
| 169 | If you have MSYS installed, try "make SHELL=cmd.exe" to force the | ||
| 170 | use of cmd.exe instead of the MSYS sh.exe. | ||
| 171 | |||
| 172 | sh exists no sh | ||
| 173 | |||
| 174 | cygwin b20.1 make (3.75): fails[1, 5] fails[2, 5] | ||
| 175 | MSVC compiled gmake 3.77: okay okay | ||
| 176 | MSVC compiled gmake 3.78.1: okay okay | ||
| 177 | MSVC compiled gmake 3.79.1: okay okay | ||
| 178 | mingw32/gcc-2.92.2 make (3.77): okay okay[4] | ||
| 179 | cygwin compiled gmake 3.77: fails[1, 5] fails[2, 5] | ||
| 180 | cygwin compiled make 3.78.1: fails[5] fails[2, 5] | ||
| 181 | cygwin compiled make 3.79.1: fails[3, 5] fails[2?, 5] | ||
| 182 | cygwin compiled make 3.80: okay[6] fails?[7] | ||
| 183 | cygwin compiled make 3.81: fails fails?[7] | ||
| 184 | mingw32 compiled make 3.79.1: okay okay | ||
| 185 | mingw32 compiled make 3.80: okay okay[7] | ||
| 186 | mingw32 compiled make 3.81: okay okay[8] | ||
| 187 | |||
| 188 | Notes: | ||
| 189 | |||
| 190 | [1] doesn't cope with makefiles with DOS line endings, so must mount | ||
| 191 | emacs source with text!=binary. | ||
| 192 | [2] fails when needs to invoke shell commands; okay invoking gcc etc. | ||
| 193 | [3] requires LC_MESSAGES support to build; cannot build with early | ||
| 194 | versions of Cygwin. | ||
| 195 | [4] may fail on Windows 9X and Windows ME; if so, install Bash. | ||
| 196 | [5] fails when building leim due to the use of cygwin style paths. | ||
| 197 | May work if building emacs without leim. | ||
| 198 | [6] need to uncomment 3 lines in nt/gmake.defs that invoke `cygpath' | ||
| 199 | (look for "cygpath" near line 85 of gmake.defs). | ||
| 200 | [7] not recommended; please report if you try this combination. | ||
| 201 | [8] tested only on Windows XP. | ||
| 202 | |||
| 203 | Other compilers may work, but specific reports from people that have | ||
| 204 | tried suggest that the Intel C compiler (for example) may produce an | ||
| 205 | Emacs executable with strange filename completion behavior. Unless | ||
| 206 | you would like to assist by finding and fixing the cause of any bugs | ||
| 207 | like this, we recommend the use of the supported compilers mentioned | ||
| 208 | in the previous paragraph. | ||
| 209 | |||
| 210 | You will also need a copy of the POSIX cp, rm and mv programs. These | ||
| 211 | and other useful POSIX utilities can be obtained from one of several | ||
| 212 | projects: | ||
| 213 | |||
| 214 | * http://gnuwin32.sourceforge.net/ ( GnuWin32 ) | ||
| 215 | * http://www.mingw.org/ ( MinGW ) | ||
| 216 | * http://www.cygwin.com/ ( Cygwin ) | ||
| 217 | * http://unxutils.sourceforge.net/ ( UnxUtils ) | ||
| 218 | |||
| 219 | If you build Emacs on 16-bit versions of Windows (9X or ME), we | ||
| 220 | suggest to install the Cygwin port of Bash. That is because the | ||
| 221 | native Windows shell COMMAND.COM is too limited; the Emacs build | ||
| 222 | procedure tries very hard to support even such limited shells, but | ||
| 223 | as none of the Windows developers of Emacs work on Windows 9X, we | ||
| 224 | cannot guarantee that it works without a more powerful shell. | ||
| 225 | |||
| 226 | Additional instructions and help for building Emacs on Windows can be | ||
| 227 | found at the Emacs Wiki: | ||
| 228 | |||
| 229 | http://www.emacswiki.org/cgi-bin/wiki/WThirtyTwoInstallationKit | ||
| 230 | |||
| 231 | and on these URLs: | ||
| 232 | |||
| 233 | http://ourcomments.org/Emacs/w32-build-emacs.html | ||
| 234 | http://derekslager.com/blog/posts/2007/01/emacs-hack-3-compile-emacs-from-cvs-on-windows.ashx | ||
| 235 | |||
| 236 | Both of those pages were written before Emacs switched from CVS to | ||
| 237 | Bazaar, but the parts about building Emacs still apply in Bazaar. | ||
| 238 | The second URL has instructions for building with MSVC, as well as | ||
| 239 | with MinGW, while the first URL covers only MinGW, but has more | ||
| 240 | details about it. | ||
| 241 | |||
| 242 | * Configuring | ||
| 243 | |||
| 244 | Configuration of Emacs is now handled by running configure.bat in the | ||
| 245 | `nt' subdirectory. It will detect which compiler you have available, | ||
| 246 | and generate makefiles accordingly. You can override the compiler | ||
| 247 | detection, and control optimization and debug settings, by specifying | ||
| 248 | options on the command line when invoking configure. | ||
| 249 | |||
| 250 | To configure Emacs to build with GCC or MSVC, whichever is available, | ||
| 251 | simply change to the `nt' subdirectory and run `configure.bat' with no | ||
| 252 | options. To see what options are available, run `configure --help'. | ||
| 253 | Do NOT use the --no-debug option to configure.bat unless you are | ||
| 254 | absolutely sure the produced binaries will never need to be run under | ||
| 255 | a debugger. | ||
| 256 | |||
| 257 | Because of limitations of the stock Windows command shells, special | ||
| 258 | care is needed to pass some characters in the arguments of the | ||
| 259 | --cflags and --ldflags options. Backslashes should not be used in | ||
| 260 | file names passed to the compiler and linker via these options. Use | ||
| 261 | forward slashes instead. If the arguments to these two options | ||
| 262 | include the `=' character, like when passing a -DFOO=bar preprocessor | ||
| 263 | option, the argument with the `=' character should be enclosed in | ||
| 264 | quotes, like this: | ||
| 265 | |||
| 266 | configure --cflags "-DFOO=bar" | ||
| 267 | |||
| 268 | Support for options that include the `=' character require "command | ||
| 269 | extensions" to be enabled. (They are enabled by default, but your | ||
| 270 | system administrator could have changed that. See "cmd /?" for | ||
| 271 | details.) If command extensions are disabled, a warning message might | ||
| 272 | be displayed informing you that "using parameters that include the = | ||
| 273 | character by enclosing them in quotes will not be supported." | ||
| 274 | |||
| 275 | You may also use the --cflags and --ldflags options to pass | ||
| 276 | additional parameters to the compiler and linker, respectively; they | ||
| 277 | are frequently used to pass -I and -L flags to specify supplementary | ||
| 278 | include and library directories. If a directory name includes | ||
| 279 | spaces, you will need to enclose it in quotes, as follows | ||
| 280 | -I"C:/Program Files/GnuTLS-2.10.1/include". Note that only the | ||
| 281 | directory name is enclosed in quotes, not the entire argument. Also | ||
| 282 | note that this functionality is only supported if command extensions | ||
| 283 | are available. If command extensions are disabled and you attempt to | ||
| 284 | use this functionality you may see the following warning message | ||
| 285 | "Error in --cflags argument: ... Backslashes and quotes cannot be | ||
| 286 | used with --cflags. Please use forward slashes for filenames and | ||
| 287 | paths (e.g. when passing directories to -I)." | ||
| 288 | |||
| 289 | N.B. It is normal to see a few error messages output while configure | ||
| 290 | is running, when gcc support is being tested. These cannot be | ||
| 291 | suppressed because of limitations in the Windows 9X command.com shell. | ||
| 292 | |||
| 293 | You are encouraged to look at the file config.log which shows details | ||
| 294 | for failed tests, after configure.bat finishes. Any unexplained failure | ||
| 295 | should be investigated and perhaps reported as a bug (see the section | ||
| 296 | about reporting bugs in the file README in this directory and in the | ||
| 297 | Emacs manual). | ||
| 298 | |||
| 299 | * Optional image library support | ||
| 300 | |||
| 301 | In addition to its "native" image formats (pbm and xbm), Emacs can | ||
| 302 | handle other image types: xpm, tiff, gif, png, jpeg and experimental | ||
| 303 | support for svg. | ||
| 304 | |||
| 305 | To build Emacs with support for them, the corresponding headers must | ||
| 306 | be in the include path when the configure script is run. This can | ||
| 307 | be setup using environment variables, or by specifying --cflags | ||
| 308 | -I... options on the command-line to configure.bat. The configure | ||
| 309 | script will report whether it was able to detect the headers. If | ||
| 310 | the results of this testing appear to be incorrect, please look for | ||
| 311 | details in the file config.log: it will show the failed test | ||
| 312 | programs and compiler error messages that should explain what is | ||
| 313 | wrong. (Usually, any such failures happen because some headers are | ||
| 314 | missing due to bad packaging of the image support libraries.) | ||
| 315 | |||
| 316 | Note that any file path passed to the compiler or linker must use | ||
| 317 | forward slashes; using backslashes will cause compiler warnings or | ||
| 318 | errors about unrecognized escape sequences. | ||
| 319 | |||
| 320 | To use the external image support, the DLLs implementing the | ||
| 321 | functionality must be found when Emacs first needs them, either on the | ||
| 322 | PATH, or in the same directory as emacs.exe. Failure to find a | ||
| 323 | library is not an error; the associated image format will simply be | ||
| 324 | unavailable. Note that once Emacs has determined that a library can | ||
| 325 | not be found, there's no way to force it to try again, other than | ||
| 326 | restarting. See the variable `dynamic-library-alist' to configure the | ||
| 327 | expected names of the libraries. | ||
| 328 | |||
| 329 | Some image libraries have dependencies on one another, or on zlib. | ||
| 330 | For example, tiff support depends on the jpeg library. If you did not | ||
| 331 | compile the libraries yourself, you must make sure that any dependency | ||
| 332 | is in the PATH or otherwise accessible and that the binaries are | ||
| 333 | compatible (for example, that they were built with the same compiler). | ||
| 334 | |||
| 335 | Binaries for the image libraries (among many others) can be found at | ||
| 336 | the GnuWin32 project. PNG, JPEG and TIFF libraries are also | ||
| 337 | included with GTK, which is installed along with other Free Software | ||
| 338 | that requires it. These are built with MinGW, but they can be used | ||
| 339 | with both GCC/MinGW and MSVC builds of Emacs. See the info on | ||
| 340 | http://ourcomments.org/Emacs/w32-build-emacs.html, under "How to Get | ||
| 341 | Images Support", for more details about installing image support | ||
| 342 | libraries. Note specifically that, due to some packaging snafus in | ||
| 343 | the GnuWin32-supplied image libraries, you will need to download | ||
| 344 | _source_ packages for some of the libraries in order to get the | ||
| 345 | header files necessary for building Emacs with image support. | ||
| 346 | |||
| 347 | If GTK 2.0 is installed, addpm will arrange for its image libraries | ||
| 348 | to be on the DLL search path for Emacs. | ||
| 349 | |||
| 350 | For PNG images, we recommend to use versions 1.4.x and later of | ||
| 351 | libpng, because previous versions had security issues. You can find | ||
| 352 | precompiled libraries and headers on the GTK download page for | ||
| 353 | Windows (http://www.gtk.org/download/win32.php). | ||
| 354 | |||
| 355 | Versions 1.4.0 and later of libpng are binary incompatible with | ||
| 356 | earlier versions, so Emacs will only look for libpng libraries which | ||
| 357 | are compatible with the version it was compiled against. That | ||
| 358 | version is given by the value of the Lisp variable `libpng-version'; | ||
| 359 | e.g., 10403 means version 1.4.3. The variable `dynamic-library-alist' | ||
| 360 | is automatically set to name only those DLL names that are known to | ||
| 361 | be compatible with the version given by `libpng-version'. If PNG | ||
| 362 | support does not work for you even though you have the support DLL | ||
| 363 | installed, check the name of the installed DLL against | ||
| 364 | `dynamic-library-alist' and the value of `libpng-version', and | ||
| 365 | download compatible DLLs if needed. | ||
| 366 | |||
| 367 | * Optional GnuTLS support | ||
| 368 | |||
| 369 | If configure.bat finds the gnutls/gnutls.h file in the include path, | ||
| 370 | Emacs is built with GnuTLS support by default; to avoid that you can | ||
| 371 | pass the argument --without-gnutls. | ||
| 372 | |||
| 373 | In order to support GnuTLS at runtime, a GnuTLS-enabled Emacs must | ||
| 374 | be able to find the relevant DLLs during startup; failure to do so | ||
| 375 | is not an error, but GnuTLS won't be available to the running | ||
| 376 | session. | ||
| 377 | |||
| 378 | You can get pre-built binaries (including any required DLL and the | ||
| 379 | header files) at http://sourceforge.net/projects/ezwinports/files/. | ||
| 380 | |||
| 381 | * Optional libxml2 support | ||
| 382 | |||
| 383 | If configure.bat finds the libxml/HTMLparser.h file in the include path, | ||
| 384 | Emacs is built with libxml2 support by default; to avoid that you can | ||
| 385 | pass the argument --without-libxml2. | ||
| 386 | |||
| 387 | In order to support libxml2 at runtime, a libxml2-enabled Emacs must | ||
| 388 | be able to find the relevant DLLs during startup; failure to do so | ||
| 389 | is not an error, but libxml2 features won't be available to the | ||
| 390 | running session. | ||
| 391 | |||
| 392 | One place where you can get pre-built Windows binaries of libxml2 | ||
| 393 | (including any required DLL and the header files) is here: | ||
| 394 | |||
| 395 | http://sourceforge.net/projects/ezwinports/files/ | ||
| 396 | |||
| 397 | To compile Emacs with libxml2 from that site, you will need to pass | ||
| 398 | the "--cflags -I/path/to/include/libxml2" option to configure.bat, | ||
| 399 | because libxml2 header files are installed in the include/libxml2 | ||
| 400 | subdirectory of the directory where you unzip the binary | ||
| 401 | distribution. Other binary distributions might use other | ||
| 402 | directories, although include/libxml2 is the canonical place where | ||
| 403 | libxml2 headers are installed on Posix platforms. | ||
| 404 | |||
| 405 | You will also need to install the libiconv "development" tarball, | ||
| 406 | because the libiconv headers need to be available to the compiler | ||
| 407 | when you compile with libxml2 support. A MinGW port of libiconv can | ||
| 408 | be found on the MinGW site: | ||
| 409 | |||
| 410 | http://sourceforge.net/projects/mingw/files/MinGW/Base/libiconv/ | ||
| 411 | |||
| 412 | You need the libiconv-X.Y.Z-N-mingw32-dev.tar.lzma tarball from that | ||
| 413 | site. | ||
| 414 | |||
| 415 | * Experimental SVG support | ||
| 416 | |||
| 417 | SVG support is currently experimental, and not built by default. | ||
| 418 | Specify --with-svg and ensure you have all the dependencies in your | ||
| 419 | include path. Unless you have built a minimalist librsvg yourself | ||
| 420 | (untested), librsvg depends on a significant chunk of GTK+ to build, | ||
| 421 | plus a few Gnome libraries, libxml2, libbz2 and zlib at runtime. The | ||
| 422 | easiest way to obtain the dependencies required for building is to | ||
| 423 | download a pre-bundled GTK+ development environment for Windows. | ||
| 424 | GTK puts its header files all over the place, so you will need to | ||
| 425 | run pkgconfig to list the include path you will need (either passed | ||
| 426 | to configure.bat as --cflags options, or set in the environment). | ||
| 427 | |||
| 428 | To use librsvg at runtime, ensure that librsvg and its dependencies | ||
| 429 | are on your PATH. If you didn't build librsvg yourself, you will | ||
| 430 | need to check with where you downloaded it from for the | ||
| 431 | dependencies, as there are different build options. If it is a | ||
| 432 | short list, then it most likely only lists the immediate | ||
| 433 | dependencies of librsvg, but the dependencies themselves have | ||
| 434 | dependencies - so don't download individual libraries from GTK+, | ||
| 435 | download and install the whole thing. If you think you've got all | ||
| 436 | the dependencies and SVG support is still not working, check your | ||
| 437 | PATH for other libraries that shadow the ones you downloaded. | ||
| 438 | Libraries of the same name from different sources may not be | ||
| 439 | compatible, this problem was encountered with libbzip2 from GnuWin32 | ||
| 440 | with libcroco from gnome.org. | ||
| 441 | |||
| 442 | If you can see etc/images/splash.svg, then you have managed to get | ||
| 443 | SVG support working. Congratulations for making it through DLL hell | ||
| 444 | to this point. You'll probably find that some SVG images crash | ||
| 445 | Emacs. Problems have been observed in some images that contain | ||
| 446 | text, they seem to be a problem in the Windows port of Pango, or | ||
| 447 | maybe a problem with the way Cairo or librsvg is using it that | ||
| 448 | doesn't show up on other platforms. | ||
| 449 | |||
| 450 | * Optional extra runtime checks | ||
| 451 | |||
| 452 | The configure.bat option --enable-checking builds Emacs with some | ||
| 453 | optional extra runtime checks and assertions enabled. This may be | ||
| 454 | useful for debugging. | ||
| 455 | |||
| 456 | * Optional extra libraries | ||
| 457 | |||
| 458 | You can pass --lib LIBNAME option to configure.bat to cause Emacs to | ||
| 459 | link with the specified library. You can use this option more than once. | ||
| 460 | |||
| 461 | * Building | ||
| 462 | |||
| 463 | After running configure, simply run the appropriate `make' program for | ||
| 464 | your compiler to build Emacs. For MSVC, this is nmake; for GCC, it is | ||
| 465 | GNU make. (If you are building out of Bazaar, say "make bootstrap" or | ||
| 466 | "nmake bootstrap" instead.) | ||
| 467 | |||
| 468 | As the files are compiled, you will see some warning messages | ||
| 469 | declaring that some functions don't return a value, or that some data | ||
| 470 | conversions will be lossy, etc. You can safely ignore these messages. | ||
| 471 | The warnings may be fixed in the main FSF source at some point, but | ||
| 472 | until then we will just live with them. | ||
| 473 | |||
| 474 | With GNU Make, you can use the -j command-line option to have Make | ||
| 475 | execute several commands at once, like this: | ||
| 476 | |||
| 477 | gmake -j 4 XMFLAGS="-j 3" | ||
| 478 | |||
| 479 | The XMFLAGS variable overrides the default behavior of GNU Make on | ||
| 480 | Windows, whereby recursive Make invocations reset the maximum number | ||
| 481 | of simultaneous commands to 1. The above command allows up to 4 | ||
| 482 | simultaneous commands at once in the top-level Make, and up to 3 in | ||
| 483 | each one of the recursive Make's; you can use other numbers of jobs, | ||
| 484 | if you wish. | ||
| 485 | |||
| 486 | If you are building from Bazaar, the following commands will produce | ||
| 487 | the Info manuals (which are not part of the Bazaar sources): | ||
| 488 | |||
| 489 | make info | ||
| 490 | or | ||
| 491 | nmake info | ||
| 492 | |||
| 493 | Note that you will need makeinfo.exe (from the GNU Texinfo package) | ||
| 494 | in order for this command to succeed. | ||
| 495 | |||
| 496 | * Installing | ||
| 497 | |||
| 498 | To install Emacs after it has compiled, simply run `nmake install' | ||
| 499 | or `make install', depending on which version of the Make utility | ||
| 500 | do you have. | ||
| 501 | |||
| 502 | By default, Emacs will be installed in the location where it was | ||
| 503 | built, but a different location can be specified either using the | ||
| 504 | --prefix option to configure, or by setting INSTALL_DIR when running | ||
| 505 | make, like so: | ||
| 506 | |||
| 507 | make install INSTALL_DIR=D:/emacs | ||
| 508 | |||
| 509 | (for `nmake', type "nmake install INSTALL_DIR=D:/emacs" instead). | ||
| 510 | |||
| 511 | The install process will run addpm to setup the registry entries, and | ||
| 512 | to create a Start menu icon for Emacs. | ||
| 513 | |||
| 514 | * Make targets | ||
| 515 | |||
| 516 | The following make targets may be used by users building the source | ||
| 517 | distribution, or users who have checked out of Bazaar after | ||
| 518 | an initial bootstrapping. | ||
| 519 | |||
| 520 | make | ||
| 521 | Builds Emacs from the available sources and pre-compiled lisp files. | ||
| 522 | |||
| 523 | make install | ||
| 524 | Installs programs to the bin directory, and runs addpm to create | ||
| 525 | Start Menu icons. | ||
| 526 | |||
| 527 | make clean | ||
| 528 | Removes object and executable files produced by the build process in | ||
| 529 | the current configuration. After make clean, you can rebuild with | ||
| 530 | the same configuration using make. | ||
| 531 | |||
| 532 | make distclean | ||
| 533 | In addition to the files removed by make clean, this also removes | ||
| 534 | Makefiles and other generated files to get back to the state of a | ||
| 535 | freshly unpacked source distribution. Note that this will not remove | ||
| 536 | installed files, or the results of builds performed with different | ||
| 537 | compiler or optimization options than the current configuration. | ||
| 538 | After make distclean, it is necessary to run configure.bat followed | ||
| 539 | by make to rebuild. | ||
| 540 | |||
| 541 | make cleanall | ||
| 542 | Removes object and executable files that may have been created by | ||
| 543 | previous builds with different configure options, in addition to | ||
| 544 | the files produced by the current configuration. | ||
| 545 | |||
| 546 | make realclean | ||
| 547 | Removes the installed files in the bin subdirectory in addition to | ||
| 548 | the files removed by make cleanall. | ||
| 549 | |||
| 550 | make dist | ||
| 551 | Builds Emacs from the available sources and pre-compiled lisp files. | ||
| 552 | Packages Emacs binaries as full distribution and barebin distribution. | ||
| 553 | |||
| 554 | The following targets are intended only for use with the Bazaar sources. | ||
| 555 | |||
| 556 | make bootstrap | ||
| 557 | Creates a temporary emacs binary with lisp source files and | ||
| 558 | uses it to compile the lisp files. Once the lisp files are built, | ||
| 559 | emacs is redumped with the compiled lisp. | ||
| 560 | |||
| 561 | make recompile | ||
| 562 | Recompiles any changed lisp files after an update. This saves | ||
| 563 | doing a full bootstrap after every update. If this or a subsequent | ||
| 564 | make fail, you probably need to perform a full bootstrap, though | ||
| 565 | running this target multiple times may eventually sort out the | ||
| 566 | interdependencies. | ||
| 567 | |||
| 568 | make maintainer-clean | ||
| 569 | Removes everything that can be recreated, including compiled lisp | ||
| 570 | files, to get back to the state of a fresh Bazaar tree. After make | ||
| 571 | maintainer-clean, it is necessary to run configure.bat and make | ||
| 572 | bootstrap to rebuild. Occasionally it may be necessary to run this | ||
| 573 | target after an update. | ||
| 574 | |||
| 575 | * Creating binary distributions | ||
| 576 | |||
| 577 | Binary distributions (full and barebin distributions) can be | ||
| 578 | automatically built and packaged from source tarballs or a repository | ||
| 579 | checkout. | ||
| 580 | |||
| 581 | When building Emacs binary distributions, the --distfiles argument | ||
| 582 | to configure.bat specifies files to be included in the bin directory | ||
| 583 | of the binary distributions. This is intended for libraries that are | ||
| 584 | not built as part of Emacs, e.g. image libraries. | ||
| 585 | |||
| 586 | For example, specifying | ||
| 587 | |||
| 588 | --distfiles D:\distfiles\libXpm.dll | ||
| 589 | |||
| 590 | results in libXpm.dll being copied from D:\distfiles to the | ||
| 591 | bin directory before packaging starts. | ||
| 592 | |||
| 593 | Multiple files can be specified using multiple --distfiles arguments: | ||
| 594 | |||
| 595 | --distfiles D:\distfiles\libXpm.dll --distfiles C:\jpeglib\jpeg.dll | ||
| 596 | |||
| 597 | For packaging the binary distributions, the 'dist' make target uses | ||
| 598 | 7-Zip (http://www.7-zip.org), which must be installed and available | ||
| 599 | on the Windows Path. | ||
| 600 | |||
| 601 | |||
| 602 | * Trouble-shooting | ||
| 603 | |||
| 604 | The main problems that are likely to be encountered when building | ||
| 605 | Emacs stem from using an old version of GCC, or old MinGW or Windows API | ||
| 606 | headers. Additionally, Cygwin ports of GNU make may require the Emacs | ||
| 607 | source tree to be mounted with text!=binary, because the makefiles | ||
| 608 | generated by configure.bat necessarily use DOS line endings. Also, | ||
| 609 | Cygwin ports of make must run in UNIX mode, either by specifying | ||
| 610 | --unix on the command line, or MAKE_MODE=UNIX in the environment. | ||
| 611 | |||
| 612 | When configure runs, it attempts to detect when GCC itself, or the | ||
| 613 | headers it is using, are not suitable for building Emacs. GCC version | ||
| 614 | 2.95 or later is needed, because that is when the Windows port gained | ||
| 615 | sufficient support for anonymous structs and unions to cope with some | ||
| 616 | definitions from winnt.h that are used by addsection.c. | ||
| 617 | Older versions of the Windows API headers that come with Cygwin and MinGW | ||
| 618 | may be missing some definitions required by Emacs, or broken in other | ||
| 619 | ways. In particular, uniscribe APIs were added to MinGW CVS only on | ||
| 620 | 2006-03-26, so releases from before then cannot be used. | ||
| 621 | |||
| 622 | When in doubt about correctness of what configure did, look at the file | ||
| 623 | config.log, which shows all the failed test programs and compiler | ||
| 624 | messages associated with the failures. If that doesn't give a clue, | ||
| 625 | please report the problems, together with the relevant fragments from | ||
| 626 | config.log, as bugs. | ||
| 627 | |||
| 628 | If configure succeeds, but make fails, install the Cygwin port of | ||
| 629 | Bash, even if the table above indicates that Emacs should be able to | ||
| 630 | build without sh.exe. (Some versions of Windows shells are too dumb | ||
| 631 | for Makefile's used by Emacs.) | ||
| 632 | |||
| 633 | If you are using certain Cygwin builds of GCC, such as Cygwin version | ||
| 634 | 1.1.8, you may need to specify some extra compiler flags like so: | ||
| 635 | |||
| 636 | configure --with-gcc --cflags -mwin32 --cflags -D__MSVCRT__ | ||
| 637 | --ldflags -mwin32 | ||
| 638 | |||
| 639 | However, the latest Cygwin versions, such as 1.3.3, don't need those | ||
| 640 | switches; you can simply use "configure --with-gcc". | ||
| 641 | |||
| 642 | We will attempt to auto-detect the need for these flags in a future | ||
| 643 | release. | ||
| 644 | |||
| 645 | * Debugging | ||
| 646 | |||
| 647 | You should be able to debug Emacs using the debugger that is | ||
| 648 | appropriate for the compiler you used, namely DevStudio or Windbg if | ||
| 649 | compiled with MSVC, or GDB if compiled with GCC. (GDB for Windows | ||
| 650 | is available from the MinGW site, http://www.mingw.org/download.shtml.) | ||
| 651 | |||
| 652 | When Emacs aborts due to a fatal internal error, Emacs on Windows | ||
| 653 | pops up an Emacs Abort Dialog asking you whether you want to debug | ||
| 654 | Emacs or terminate it. If Emacs was built with MSVC, click YES | ||
| 655 | twice, and Windbg or the DevStudio debugger will start up | ||
| 656 | automatically. If Emacs was built with GCC, first start GDB and | ||
| 657 | attach it to the Emacs process with the "gdb -p EMACS-PID" command, | ||
| 658 | where EMACS-PID is the Emacs process ID (which you can see in the | ||
| 659 | Windows Task Manager), type the "continue" command inside GDB, and | ||
| 660 | only then click YES on the abort dialog. This will pass control to | ||
| 661 | the debugger, and you will be able to debug the cause of the fatal | ||
| 662 | error. | ||
| 663 | |||
| 664 | The single most important thing to find out when Emacs aborts or | ||
| 665 | crashes is where did that happen in the Emacs code. This is called | ||
| 666 | "backtrace". | ||
| 667 | |||
| 668 | Emacs on Windows uses more than one thread. When Emacs aborts due | ||
| 669 | to a fatal error, the current thread may not be the application | ||
| 670 | thread running Emacs code. Therefore, to produce a meaningful | ||
| 671 | backtrace from a debugger, you need to instruct it to show the | ||
| 672 | backtrace for every thread. With GDB, you do it like this: | ||
| 673 | |||
| 674 | (gdb) thread apply all backtrace | ||
| 675 | |||
| 676 | To run Emacs under a debugger to begin with, simply start it from | ||
| 677 | the debugger. With GDB, chdir to the `src' directory (if you have | ||
| 678 | the source tree) or to a directory with the `.gdbinit' file (if you | ||
| 679 | don't have the source tree), and type these commands: | ||
| 680 | |||
| 681 | C:\whatever\src> gdb x:\path\to\emacs.exe | ||
| 682 | (gdb) run <ARGUMENTS TO EMACS> | ||
| 683 | |||
| 684 | Thereafter, use Emacs as usual; you can minimize the debugger | ||
| 685 | window, if you like. The debugger will take control if and when | ||
| 686 | Emacs crashes. | ||
| 687 | |||
| 688 | Emacs functions implemented in C use a naming convention that reflects | ||
| 689 | their names in lisp. The names of the C routines are the lisp names | ||
| 690 | prefixed with 'F', and with dashes converted to underscores. For | ||
| 691 | example, the function call-process is implemented in C by | ||
| 692 | Fcall_process. Similarly, lisp variables are prefixed with 'V', again | ||
| 693 | with dashes converted to underscores. These conventions enable you to | ||
| 694 | easily set breakpoints or examine familiar lisp variables by name. | ||
| 695 | |||
| 696 | Since Emacs data is often in the form of a lisp object, and the | ||
| 697 | Lisp_Object type is difficult to examine manually in a debugger, | ||
| 698 | Emacs provides a helper routine called debug_print that prints out a | ||
| 699 | readable representation of a Lisp_Object. If you are using GDB, | ||
| 700 | there is a .gdbinit file in the src directory which provides | ||
| 701 | definitions that are useful for examining lisp objects. Therefore, | ||
| 702 | the following tips are mainly of interest when using MSVC. | ||
| 703 | |||
| 704 | The output from debug_print is sent to stderr, and to the debugger | ||
| 705 | via the OutputDebugString routine. The output sent to stderr should | ||
| 706 | be displayed in the console window that was opened when the | ||
| 707 | emacs.exe executable was started. The output sent to the debugger | ||
| 708 | should be displayed in its "Debug" output window. | ||
| 709 | |||
| 710 | When you are in the process of debugging Emacs and you would like to | ||
| 711 | examine the contents of a Lisp_Object variable, pop up the QuickWatch | ||
| 712 | window (QuickWatch has an eyeglass symbol on its button in the | ||
| 713 | toolbar). In the text field at the top of the window, enter | ||
| 714 | debug_print(<variable>) and hit return. For example, start and run | ||
| 715 | Emacs in the debugger until it is waiting for user input. Then click | ||
| 716 | on the Break button in the debugger to halt execution. Emacs should | ||
| 717 | halt in ZwUserGetMessage waiting for an input event. Use the Call | ||
| 718 | Stack window to select the procedure w32_msp_pump up the call stack | ||
| 719 | (see below for why you have to do this). Open the QuickWatch window | ||
| 720 | and enter debug_print(Vexec_path). Evaluating this expression will | ||
| 721 | then print out the contents of the lisp variable exec-path. | ||
| 722 | |||
| 723 | If QuickWatch reports that the symbol is unknown, then check the call | ||
| 724 | stack in the Call Stack window. If the selected frame in the call | ||
| 725 | stack is not an Emacs procedure, then the debugger won't recognize | ||
| 726 | Emacs symbols. Instead, select a frame that is inside an Emacs | ||
| 727 | procedure and try using debug_print again. | ||
| 728 | |||
| 729 | If QuickWatch invokes debug_print but nothing happens, then check the | ||
| 730 | thread that is selected in the debugger. If the selected thread is | ||
| 731 | not the last thread to run (the "current" thread), then it cannot be | ||
| 732 | used to execute debug_print. Use the Debug menu to select the current | ||
| 733 | thread and try using debug_print again. Note that the debugger halts | ||
| 734 | execution (e.g., due to a breakpoint) in the context of the current | ||
| 735 | thread, so this should only be a problem if you've explicitly switched | ||
| 736 | threads. | ||
| 737 | |||
| 738 | |||
| 739 | This file is part of GNU Emacs. | ||
| 740 | |||
| 741 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 742 | it under the terms of the GNU General Public License as published by | ||
| 743 | the Free Software Foundation, either version 3 of the License, or | ||
| 744 | (at your option) any later version. | ||
| 745 | |||
| 746 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 747 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 748 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 749 | GNU General Public License for more details. | ||
| 750 | |||
| 751 | You should have received a copy of the GNU General Public License | ||
| 752 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
diff --git a/nt/config.nt b/nt/config.nt deleted file mode 100644 index aa4a8bc8cf0..00000000000 --- a/nt/config.nt +++ /dev/null | |||
| @@ -1,1847 +0,0 @@ | |||
| 1 | /* GNU Emacs site configuration template file. | ||
| 2 | |||
| 3 | Copyright (C) 1988, 1993-1994, 2001-2015 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 19 | |||
| 20 | /* NOTE: | ||
| 21 | *** WARNING This file is no longer being updated *** | ||
| 22 | Please do not remove non-Windows related stuff | ||
| 23 | unless strictly necessary. Also, before adding anything here | ||
| 24 | consider whether inc/ms-w32.h would be a better place; this is | ||
| 25 | particularly true for gcc vs. MSVC conditional defines, MinGW or | ||
| 26 | MSVC specific code, and macros not already defined in config.in. */ | ||
| 27 | |||
| 28 | /* No code in Emacs #includes config.h twice, but some bits of code | ||
| 29 | intended to work with other packages as well (like gmalloc.c) | ||
| 30 | think they can include it as many times as they like. */ | ||
| 31 | #ifndef EMACS_CONFIG_H | ||
| 32 | #define EMACS_CONFIG_H | ||
| 33 | |||
| 34 | |||
| 35 | /* Define if building universal (internal helper macro) */ | ||
| 36 | #undef AC_APPLE_UNIVERSAL_BUILD | ||
| 37 | |||
| 38 | /* Define to use the convention that & in the full name stands for the login | ||
| 39 | id. */ | ||
| 40 | #undef AMPERSAND_FULL_NAME | ||
| 41 | |||
| 42 | /* Define to the number of bits in type 'ptrdiff_t'. */ | ||
| 43 | #undef BITSIZEOF_PTRDIFF_T | ||
| 44 | |||
| 45 | /* Define to the number of bits in type 'sig_atomic_t'. */ | ||
| 46 | #undef BITSIZEOF_SIG_ATOMIC_T | ||
| 47 | |||
| 48 | /* Define to the number of bits in type 'size_t'. */ | ||
| 49 | #undef BITSIZEOF_SIZE_T | ||
| 50 | |||
| 51 | /* Define to the number of bits in type 'wchar_t'. */ | ||
| 52 | #undef BITSIZEOF_WCHAR_T | ||
| 53 | |||
| 54 | /* Define to the number of bits in type 'wint_t'. */ | ||
| 55 | #undef BITSIZEOF_WINT_T | ||
| 56 | |||
| 57 | /* Define if get_current_dir_name should not be used. */ | ||
| 58 | #undef BROKEN_GET_CURRENT_DIR_NAME | ||
| 59 | |||
| 60 | /* Define on FreeBSD to work around an issue when reading from a PTY. */ | ||
| 61 | #undef BROKEN_PTY_READ_AFTER_EAGAIN | ||
| 62 | |||
| 63 | /* Define if Emacs cannot be dumped on your system. */ | ||
| 64 | #undef CANNOT_DUMP | ||
| 65 | |||
| 66 | /* Define this to enable compile time checks for the Lisp_Object data type. */ | ||
| 67 | /* #undef CHECK_LISP_OBJECT_TYPE */ | ||
| 68 | |||
| 69 | /* Define if you want lock files to be written, so that Emacs can tell | ||
| 70 | instantly when you try to modify a file that someone else has modified in | ||
| 71 | his/her Emacs. */ | ||
| 72 | #define CLASH_DETECTION 1 | ||
| 73 | |||
| 74 | /* Short copyright string for this version of Emacs. */ | ||
| 75 | #define COPYRIGHT "Copyright (C) 2015 Free Software Foundation, Inc." | ||
| 76 | |||
| 77 | /* Define to one of '_getb67', 'GETB67', 'getb67' for Cray-2 and Cray-YMP | ||
| 78 | systems. This function is required for 'alloca.c' support on those systems. | ||
| 79 | */ | ||
| 80 | #undef CRAY_STACKSEG_END | ||
| 81 | |||
| 82 | /* Define if the system is Cygwin. */ | ||
| 83 | #undef CYGWIN | ||
| 84 | |||
| 85 | /* Define to 1 if using 'alloca.c'. */ | ||
| 86 | #undef C_ALLOCA | ||
| 87 | |||
| 88 | /* Define if the system is Darwin. */ | ||
| 89 | #undef DARWIN_OS | ||
| 90 | |||
| 91 | /* Extra bits to be or'd in with any pointers stored in a Lisp_Object. */ | ||
| 92 | #undef DATA_SEG_BITS | ||
| 93 | |||
| 94 | /* Name of the default sound device. */ | ||
| 95 | #undef DEFAULT_SOUND_DEVICE | ||
| 96 | |||
| 97 | /* Character that separates a device in a file name. */ | ||
| 98 | #define DEVICE_SEP ':' | ||
| 99 | |||
| 100 | /* Define to 1 for DGUX with <sys/dg_sys_info.h>. */ | ||
| 101 | #undef DGUX | ||
| 102 | |||
| 103 | /* Character that separates directories in a file name. */ | ||
| 104 | #define DIRECTORY_SEP '/' | ||
| 105 | |||
| 106 | /* Define if process.c does not need to close a pty to make it a controlling | ||
| 107 | terminal (it is already a controlling terminal of the subprocess, because | ||
| 108 | we did ioctl TIOCSCTTY). */ | ||
| 109 | #undef DONT_REOPEN_PTY | ||
| 110 | |||
| 111 | /* Define if the system is MS DOS or MS Windows. */ | ||
| 112 | #define DOS_NT | ||
| 113 | |||
| 114 | /* Define to 1 if you are using the GNU C Library. */ | ||
| 115 | #undef DOUG_LEA_MALLOC | ||
| 116 | |||
| 117 | /* Define to the canonical Emacs configuration name. */ | ||
| 118 | #undef EMACS_CONFIGURATION | ||
| 119 | |||
| 120 | /* Define to the options passed to configure. */ | ||
| 121 | #undef EMACS_CONFIG_OPTIONS | ||
| 122 | |||
| 123 | /* Define to 1 if expensive run-time data type and consistency checks are | ||
| 124 | enabled. */ | ||
| 125 | #undef ENABLE_CHECKING | ||
| 126 | |||
| 127 | /* Letter to use in finding device name of first PTY, if PTYs are supported. | ||
| 128 | */ | ||
| 129 | #define FIRST_PTY_LETTER 'a' | ||
| 130 | |||
| 131 | /* Enable compile-time and run-time bounds-checking, and some warnings, | ||
| 132 | without upsetting glibc 2.15+. */ | ||
| 133 | #if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__ | ||
| 134 | # define _FORTIFY_SOURCE 2 | ||
| 135 | #endif | ||
| 136 | |||
| 137 | |||
| 138 | /* Define to 1 if futimesat mishandles a NULL file name. */ | ||
| 139 | #undef FUTIMESAT_NULL_BUG | ||
| 140 | |||
| 141 | /* Define this to check for errors in cons list. */ | ||
| 142 | #undef GC_CHECK_CONS_LIST | ||
| 143 | |||
| 144 | /* Define this temporarily to hunt a bug. If defined, the size of strings is | ||
| 145 | redundantly recorded in sdata structures so that it can be compared to the | ||
| 146 | sizes recorded in Lisp strings. */ | ||
| 147 | #undef GC_CHECK_STRING_BYTES | ||
| 148 | |||
| 149 | /* Define this to check the string free list. */ | ||
| 150 | #undef GC_CHECK_STRING_FREE_LIST | ||
| 151 | |||
| 152 | /* Define this to check for short string overrun. */ | ||
| 153 | #undef GC_CHECK_STRING_OVERRUN | ||
| 154 | |||
| 155 | /* Mark a secondary stack, like the register stack on the ia64. */ | ||
| 156 | #undef GC_MARK_SECONDARY_STACK | ||
| 157 | |||
| 158 | /* Define if setjmp is known to save all registers relevant for conservative | ||
| 159 | garbage collection in the jmp_buf. | ||
| 160 | MSVC ignores the "register" keyword, so test fails even though | ||
| 161 | setjmp does work. */ | ||
| 162 | #define GC_SETJMP_WORKS 1 | ||
| 163 | |||
| 164 | /* Define to the type of elements in the array set by `getgroups'. Usually | ||
| 165 | this is either `int' or `gid_t'. */ | ||
| 166 | #undef GETGROUPS_T | ||
| 167 | |||
| 168 | /* Define this to 1 if getgroups(0,NULL) does not return the number of groups. | ||
| 169 | */ | ||
| 170 | #undef GETGROUPS_ZERO_BUG | ||
| 171 | |||
| 172 | /* Define if gettimeofday clobbers the localtime buffer. */ | ||
| 173 | #undef GETTIMEOFDAY_CLOBBERS_LOCALTIME | ||
| 174 | |||
| 175 | /* Define this to 'void' or 'struct timezone' to match the system's | ||
| 176 | declaration of the second argument to gettimeofday. */ | ||
| 177 | #undef GETTIMEOFDAY_TIMEZONE | ||
| 178 | |||
| 179 | /* Define this to enable glyphs debugging code. */ | ||
| 180 | /* #undef GLYPH_DEBUG */ | ||
| 181 | |||
| 182 | /* Define to a C preprocessor expression that evaluates to 1 or 0, depending | ||
| 183 | whether the gnulib module close-stream shall be considered present. */ | ||
| 184 | #undef GNULIB_CLOSE_STREAM | ||
| 185 | |||
| 186 | /* Define to a C preprocessor expression that evaluates to 1 or 0, depending | ||
| 187 | whether the gnulib module faccessat shall be considered present. */ | ||
| 188 | #undef GNULIB_FACCESSAT | ||
| 189 | |||
| 190 | /* Define to a C preprocessor expression that evaluates to 1 or 0, depending | ||
| 191 | whether the gnulib module fdopendir shall be considered present. */ | ||
| 192 | #undef GNULIB_FDOPENDIR | ||
| 193 | |||
| 194 | /* Define to a C preprocessor expression that evaluates to 1 or 0, depending | ||
| 195 | whether the gnulib module fscanf shall be considered present. */ | ||
| 196 | #undef GNULIB_FSCANF | ||
| 197 | |||
| 198 | /* enable some gnulib portability checks */ | ||
| 199 | #undef GNULIB_PORTCHECK | ||
| 200 | |||
| 201 | /* Define to a C preprocessor expression that evaluates to 1 or 0, depending | ||
| 202 | whether the gnulib module scanf shall be considered present. */ | ||
| 203 | #undef GNULIB_SCANF | ||
| 204 | |||
| 205 | /* Define if ths system is compatible with GNU/Linux. */ | ||
| 206 | #undef GNU_LINUX | ||
| 207 | |||
| 208 | /* Define to 1 if you want to use the GNU memory allocator. */ | ||
| 209 | #define GNU_MALLOC 1 | ||
| 210 | |||
| 211 | /* Define to set the G_SLICE environment variable to "always-malloc" at | ||
| 212 | startup, if using GTK. */ | ||
| 213 | #undef G_SLICE_ALWAYS_MALLOC | ||
| 214 | |||
| 215 | /* Define to 1 if you have the `access' function. */ | ||
| 216 | #undef HAVE_ACCESS | ||
| 217 | |||
| 218 | /* Define to 1 if you have the `aclsort' function. */ | ||
| 219 | #undef HAVE_ACLSORT | ||
| 220 | |||
| 221 | /* Define to 1 if you have the <aclv.h> header file. */ | ||
| 222 | #undef HAVE_ACLV_H | ||
| 223 | |||
| 224 | /* Define to 1 if you have the `aclx_get' function. */ | ||
| 225 | #undef HAVE_ACLX_GET | ||
| 226 | |||
| 227 | /* Define to 1 if you have the `acl_copy_ext_native' function. */ | ||
| 228 | #undef HAVE_ACL_COPY_EXT_NATIVE | ||
| 229 | |||
| 230 | /* Define to 1 if you have the `acl_create_entry_np' function. */ | ||
| 231 | #undef HAVE_ACL_CREATE_ENTRY_NP | ||
| 232 | |||
| 233 | /* Define to 1 if you have the `acl_delete_def_file' function. */ | ||
| 234 | #undef HAVE_ACL_DELETE_DEF_FILE | ||
| 235 | |||
| 236 | /* Define to 1 if you have the `acl_delete_fd_np' function. */ | ||
| 237 | #undef HAVE_ACL_DELETE_FD_NP | ||
| 238 | |||
| 239 | /* Define to 1 if you have the `acl_delete_file_np' function. */ | ||
| 240 | #undef HAVE_ACL_DELETE_FILE_NP | ||
| 241 | |||
| 242 | /* Define to 1 if you have the `acl_entries' function. */ | ||
| 243 | #undef HAVE_ACL_ENTRIES | ||
| 244 | |||
| 245 | /* Define to 1 if you have the `acl_extended_file' function. */ | ||
| 246 | #undef HAVE_ACL_EXTENDED_FILE | ||
| 247 | |||
| 248 | /* Define to 1 if the constant ACL_FIRST_ENTRY exists. */ | ||
| 249 | #undef HAVE_ACL_FIRST_ENTRY | ||
| 250 | |||
| 251 | /* Define to 1 if you have the `acl_free' function. */ | ||
| 252 | #define HAVE_ACL_FREE 1 | ||
| 253 | |||
| 254 | /* Define to 1 if you have the `acl_free_text' function. */ | ||
| 255 | #undef HAVE_ACL_FREE_TEXT | ||
| 256 | |||
| 257 | /* Define to 1 if you have the `acl_from_mode' function. */ | ||
| 258 | #undef HAVE_ACL_FROM_MODE | ||
| 259 | |||
| 260 | /* Define to 1 if you have the `acl_from_text' function. */ | ||
| 261 | #define HAVE_ACL_FROM_TEXT 1 | ||
| 262 | |||
| 263 | /* Define to 1 if you have the `acl_get_fd' function. */ | ||
| 264 | #undef HAVE_ACL_GET_FD | ||
| 265 | |||
| 266 | /* Define to 1 if you have the `acl_get_file' function. */ | ||
| 267 | #define HAVE_ACL_GET_FILE 1 | ||
| 268 | |||
| 269 | /* Define to 1 if you have the <acl/libacl.h> header file. */ | ||
| 270 | #undef HAVE_ACL_LIBACL_H | ||
| 271 | |||
| 272 | /* Define to 1 if you have the `acl_set_fd' function. */ | ||
| 273 | #undef HAVE_ACL_SET_FD | ||
| 274 | |||
| 275 | /* Define to 1 if you have the `acl_set_file' function. */ | ||
| 276 | #define HAVE_ACL_SET_FILE 1 | ||
| 277 | |||
| 278 | /* Define to 1 if you have the `acl_to_short_text' function. */ | ||
| 279 | #undef HAVE_ACL_TO_SHORT_TEXT | ||
| 280 | |||
| 281 | /* Define to 1 if you have the `acl_trivial' function. */ | ||
| 282 | #undef HAVE_ACL_TRIVIAL | ||
| 283 | |||
| 284 | /* Define to 1 if the ACL type ACL_TYPE_EXTENDED exists. */ | ||
| 285 | #undef HAVE_ACL_TYPE_EXTENDED | ||
| 286 | |||
| 287 | /* Define to 1 if the file /usr/lpp/X11/bin/smt.exp exists. */ | ||
| 288 | #undef HAVE_AIX_SMT_EXP | ||
| 289 | |||
| 290 | /* Define to 1 if you have 'alloca' after including <alloca.h>, a header that | ||
| 291 | may be supplied by this distribution. */ | ||
| 292 | #undef HAVE_ALLOCA | ||
| 293 | |||
| 294 | /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). | ||
| 295 | */ | ||
| 296 | #undef HAVE_ALLOCA_H | ||
| 297 | |||
| 298 | /* Define to 1 if ALSA is available. */ | ||
| 299 | #undef HAVE_ALSA | ||
| 300 | |||
| 301 | /* Define to 1 if strtold conforms to C99. */ | ||
| 302 | #undef HAVE_C99_STRTOLD | ||
| 303 | |||
| 304 | /* Define to 1 if you have the `cfmakeraw' function. */ | ||
| 305 | #undef HAVE_CFMAKERAW | ||
| 306 | |||
| 307 | /* Define to 1 if you have the `cfsetspeed' function. */ | ||
| 308 | #undef HAVE_CFSETSPEED | ||
| 309 | |||
| 310 | /* Define to 1 if you have the `clock_gettime' function. */ | ||
| 311 | #undef HAVE_CLOCK_GETTIME | ||
| 312 | |||
| 313 | /* Define to 1 if you have the `clock_settime' function. */ | ||
| 314 | #undef HAVE_CLOCK_SETTIME | ||
| 315 | |||
| 316 | /* Define to 1 if you have the <coff.h> header file. */ | ||
| 317 | #undef HAVE_COFF_H | ||
| 318 | |||
| 319 | /* Define to 1 if you have the <com_err.h> header file. */ | ||
| 320 | #undef HAVE_COM_ERR_H | ||
| 321 | |||
| 322 | /* Define to 1 if you have the `copysign' function. */ | ||
| 323 | #define HAVE_COPYSIGN 1 | ||
| 324 | |||
| 325 | /* Define to 1 if data_start is the address of the start of the main data | ||
| 326 | segment. */ | ||
| 327 | #undef HAVE_DATA_START | ||
| 328 | |||
| 329 | /* Define to 1 if using D-Bus. */ | ||
| 330 | #undef HAVE_DBUS | ||
| 331 | |||
| 332 | /* Define to 1 if you have the `dbus_type_is_valid' function. */ | ||
| 333 | #undef HAVE_DBUS_TYPE_IS_VALID | ||
| 334 | |||
| 335 | /* Define to 1 if you have the `dbus_validate_bus_name' function. */ | ||
| 336 | #undef HAVE_DBUS_VALIDATE_BUS_NAME | ||
| 337 | |||
| 338 | /* Define to 1 if you have the `dbus_validate_interface' function. */ | ||
| 339 | #undef HAVE_DBUS_VALIDATE_INTERFACE | ||
| 340 | |||
| 341 | /* Define to 1 if you have the `dbus_validate_member' function. */ | ||
| 342 | #undef HAVE_DBUS_VALIDATE_MEMBER | ||
| 343 | |||
| 344 | /* Define to 1 if you have the `dbus_validate_path' function. */ | ||
| 345 | #undef HAVE_DBUS_VALIDATE_PATH | ||
| 346 | |||
| 347 | /* Define to 1 if you have the `dbus_watch_get_unix_fd' function. */ | ||
| 348 | #undef HAVE_DBUS_WATCH_GET_UNIX_FD | ||
| 349 | |||
| 350 | /* Define to 1 if you have the declaration of `alarm', and to 0 if you don't. | ||
| 351 | */ | ||
| 352 | #undef HAVE_DECL_ALARM | ||
| 353 | |||
| 354 | /* Define to 1 if you have the declaration of `fdatasync', and to 0 if you | ||
| 355 | don't. */ | ||
| 356 | #undef HAVE_DECL_FDATASYNC | ||
| 357 | |||
| 358 | /* Define to 1 if you have the declaration of `fdopendir', and to 0 if you | ||
| 359 | don't. */ | ||
| 360 | #undef HAVE_DECL_FDOPENDIR | ||
| 361 | |||
| 362 | /* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. | ||
| 363 | */ | ||
| 364 | #define HAVE_DECL_GETENV 1 | ||
| 365 | |||
| 366 | /* Define to 1 if you have the declaration of `localtime_r', and to 0 if you | ||
| 367 | don't. */ | ||
| 368 | #undef HAVE_DECL_LOCALTIME_R | ||
| 369 | |||
| 370 | /* Define to 1 if you have the declaration of `memrchr', and to 0 if you | ||
| 371 | don't. */ | ||
| 372 | #undef HAVE_DECL_MEMRCHR | ||
| 373 | |||
| 374 | /* Define to 1 if you have the declaration of `strmode', and to 0 if you | ||
| 375 | don't. */ | ||
| 376 | #undef HAVE_DECL_STRMODE | ||
| 377 | |||
| 378 | /* Define to 1 if you have the declaration of `strtoimax', and to 0 if you | ||
| 379 | don't. */ | ||
| 380 | #undef HAVE_DECL_STRTOIMAX | ||
| 381 | |||
| 382 | /* Define to 1 if you have the declaration of `strtoll', and to 0 if you | ||
| 383 | don't. */ | ||
| 384 | #define HAVE_DECL_STRTOLL 1 | ||
| 385 | |||
| 386 | /* Define to 1 if you have the declaration of `strtoull', and to 0 if you | ||
| 387 | don't. */ | ||
| 388 | #define HAVE_DECL_STRTOULL 1 | ||
| 389 | |||
| 390 | /* Define to 1 if you have the declaration of `strtoumax', and to 0 if you | ||
| 391 | don't. */ | ||
| 392 | #define HAVE_DECL_STRTOUMAX 1 | ||
| 393 | |||
| 394 | /* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you | ||
| 395 | don't. */ | ||
| 396 | #undef HAVE_DECL_SYS_SIGLIST | ||
| 397 | |||
| 398 | /* Define to 1 if you have the declaration of `tzname', and to 0 if you don't. | ||
| 399 | */ | ||
| 400 | #define HAVE_DECL_TZNAME 1 | ||
| 401 | |||
| 402 | /* Define to 1 if you have the declaration of `unsetenv', and to 0 if you | ||
| 403 | don't. */ | ||
| 404 | #undef HAVE_DECL_UNSETENV | ||
| 405 | |||
| 406 | /* Define to 1 if you have the declaration of `_putenv', and to 0 if you | ||
| 407 | don't. */ | ||
| 408 | #undef HAVE_DECL__PUTENV | ||
| 409 | |||
| 410 | /* Define to 1 if you have the declaration of `__fpending', and to 0 if you | ||
| 411 | don't. */ | ||
| 412 | #undef HAVE_DECL___FPENDING | ||
| 413 | |||
| 414 | /* Define to 1 if you have the declaration of `__sys_siglist', and to 0 if you | ||
| 415 | don't. */ | ||
| 416 | #undef HAVE_DECL___SYS_SIGLIST | ||
| 417 | |||
| 418 | /* Define to 1 if you have the <des.h> header file. */ | ||
| 419 | #undef HAVE_DES_H | ||
| 420 | |||
| 421 | /* Define to 1 if dynamic ptys are supported. */ | ||
| 422 | #undef HAVE_DEV_PTMX | ||
| 423 | |||
| 424 | /* Define to 1 if you have the `difftime' function. */ | ||
| 425 | #undef HAVE_DIFFTIME | ||
| 426 | |||
| 427 | /* Define to 1 if you have the <dirent.h> header file. */ | ||
| 428 | #undef HAVE_DIRENT_H | ||
| 429 | |||
| 430 | /* Define to 1 if you have the 'dup2' function. */ | ||
| 431 | #define HAVE_DUP2 1 | ||
| 432 | |||
| 433 | /* Define to 1 if you have the `eaccess' function. */ | ||
| 434 | #undef HAVE_EACCESS | ||
| 435 | |||
| 436 | /* Define to 1 if you have the `endgrent' function. */ | ||
| 437 | #undef HAVE_ENDGRENT | ||
| 438 | |||
| 439 | /* Define to 1 if you have the `endpwent' function. */ | ||
| 440 | #undef HAVE_ENDPWENT | ||
| 441 | |||
| 442 | /* Define if you have the declaration of environ. */ | ||
| 443 | #undef HAVE_ENVIRON_DECL | ||
| 444 | |||
| 445 | /* Define to 1 if you have the `euidaccess' function. */ | ||
| 446 | #undef HAVE_EUIDACCESS | ||
| 447 | |||
| 448 | /* Define to 1 if you have the <execinfo.h> header file. */ | ||
| 449 | #define HAVE_EXECINFO_H 1 | ||
| 450 | |||
| 451 | /* Define to 1 if you have the `faccessat' function. */ | ||
| 452 | #undef HAVE_FACCESSAT | ||
| 453 | |||
| 454 | /* Define to 1 if you have the `facl' function. */ | ||
| 455 | #undef HAVE_FACL | ||
| 456 | |||
| 457 | /* Define to 1 if you have the `fdatasync' function. */ | ||
| 458 | #undef HAVE_FDATASYNC | ||
| 459 | |||
| 460 | /* Define to 1 if you have the `fdopendir' function. */ | ||
| 461 | #undef HAVE_FDOPENDIR | ||
| 462 | |||
| 463 | /* Define to 1 if you have the `fork' function. */ | ||
| 464 | #undef HAVE_FORK | ||
| 465 | |||
| 466 | /* Define to 1 if you have the `freeifaddrs' function. */ | ||
| 467 | #undef HAVE_FREEIFADDRS | ||
| 468 | |||
| 469 | /* Define to 1 if using the freetype and fontconfig libraries. */ | ||
| 470 | #undef HAVE_FREETYPE | ||
| 471 | |||
| 472 | /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ | ||
| 473 | #undef HAVE_FSEEKO | ||
| 474 | |||
| 475 | /* Define to 1 if you have the `fstatat' function. */ | ||
| 476 | #undef HAVE_FSTATAT | ||
| 477 | |||
| 478 | /* Define to 1 if you have the `fsync' function. */ | ||
| 479 | #define HAVE_FSYNC 1 | ||
| 480 | |||
| 481 | /* Define to 1 if you have the `futimens' function. */ | ||
| 482 | #undef HAVE_FUTIMENS | ||
| 483 | |||
| 484 | /* Define to 1 if you have the `futimes' function. */ | ||
| 485 | #undef HAVE_FUTIMES | ||
| 486 | |||
| 487 | /* Define to 1 if you have the `futimesat' function. */ | ||
| 488 | #undef HAVE_FUTIMESAT | ||
| 489 | |||
| 490 | /* Define to 1 if you have the `gai_strerror' function. */ | ||
| 491 | #undef HAVE_GAI_STRERROR | ||
| 492 | |||
| 493 | /* Define to 1 if using GConf. */ | ||
| 494 | #undef HAVE_GCONF | ||
| 495 | |||
| 496 | /* Define to 1 if you have the `getacl' function. */ | ||
| 497 | #undef HAVE_GETACL | ||
| 498 | |||
| 499 | /* Define to 1 if you have the `getaddrinfo' function. */ | ||
| 500 | #undef HAVE_GETADDRINFO | ||
| 501 | |||
| 502 | /* Define to 1 if you have the `getdelim' function. */ | ||
| 503 | #undef HAVE_GETDELIM | ||
| 504 | |||
| 505 | /* Define to 1 if you have the `getgrent' function. */ | ||
| 506 | #undef HAVE_GETGRENT | ||
| 507 | |||
| 508 | /* Define to 1 if your system has a working `getgroups' function. */ | ||
| 509 | #undef HAVE_GETGROUPS | ||
| 510 | |||
| 511 | /* Define to 1 if you have the `gethostname' function. */ | ||
| 512 | #define HAVE_GETHOSTNAME 1 | ||
| 513 | |||
| 514 | /* Define to 1 if you have the `getifaddrs' function. */ | ||
| 515 | #undef HAVE_GETIFADDRS | ||
| 516 | |||
| 517 | /* Define to 1 if you have the `getline' function. */ | ||
| 518 | #undef HAVE_GETLINE | ||
| 519 | |||
| 520 | /* Define to 1 if you have the <getopt.h> header file. */ | ||
| 521 | #undef HAVE_GETOPT_H | ||
| 522 | |||
| 523 | /* Define to 1 if you have the `getopt_long_only' function. */ | ||
| 524 | #undef HAVE_GETOPT_LONG_ONLY | ||
| 525 | |||
| 526 | /* Define to 1 if you have the `getpagesize' function. */ | ||
| 527 | #define HAVE_GETPAGESIZE 1 | ||
| 528 | |||
| 529 | /* Define to 1 if you have the `getpeername' function. */ | ||
| 530 | #define HAVE_GETPEERNAME 1 | ||
| 531 | |||
| 532 | /* Define to 1 if you have the `getpt' function. */ | ||
| 533 | #undef HAVE_GETPT | ||
| 534 | |||
| 535 | /* Define to 1 if you have the `getpwent' function. */ | ||
| 536 | #undef HAVE_GETPWENT | ||
| 537 | |||
| 538 | /* Define to 1 if you have the `getrlimit' function. */ | ||
| 539 | #undef HAVE_GETRLIMIT | ||
| 540 | |||
| 541 | /* Define to 1 if you have the `getrusage' function. */ | ||
| 542 | #undef HAVE_GETRUSAGE | ||
| 543 | |||
| 544 | /* Define to 1 if you have the `getsockname' function. */ | ||
| 545 | #define HAVE_GETSOCKNAME 1 | ||
| 546 | |||
| 547 | /* Define to 1 if you have the `gettimeofday' function. */ | ||
| 548 | #define HAVE_GETTIMEOFDAY 1 | ||
| 549 | |||
| 550 | /* Define to 1 if using GFile. */ | ||
| 551 | #undef HAVE_GFILENOTIFY | ||
| 552 | |||
| 553 | /* Define to 1 if you have the `get_current_dir_name' function. */ | ||
| 554 | #undef HAVE_GET_CURRENT_DIR_NAME | ||
| 555 | |||
| 556 | /* Define to 1 if you have a gif (or ungif) library. */ | ||
| 557 | #undef HAVE_GIF | ||
| 558 | |||
| 559 | /* Define if using GnuTLS. */ | ||
| 560 | #undef HAVE_GNUTLS | ||
| 561 | |||
| 562 | /* Define if using GnuTLS certificate verification callbacks. */ | ||
| 563 | #undef HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY | ||
| 564 | |||
| 565 | /* Define to 1 if you have the `gnutls_certificate_set_verify_function' | ||
| 566 | function. */ | ||
| 567 | #undef HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION | ||
| 568 | |||
| 569 | /* Define to 1 if you have the gpm library (-lgpm). */ | ||
| 570 | #undef HAVE_GPM | ||
| 571 | |||
| 572 | /* Define to 1 if you have the `grantpt' function. */ | ||
| 573 | #undef HAVE_GRANTPT | ||
| 574 | |||
| 575 | /* Define to 1 if using GSettings. */ | ||
| 576 | #undef HAVE_GSETTINGS | ||
| 577 | |||
| 578 | /* Define to 1 if using GTK 3 or later. */ | ||
| 579 | #undef HAVE_GTK3 | ||
| 580 | |||
| 581 | /* Define to 1 if you have the `gtk_adjustment_get_page_size' function. */ | ||
| 582 | #undef HAVE_GTK_ADJUSTMENT_GET_PAGE_SIZE | ||
| 583 | |||
| 584 | /* Define to 1 if you have the `gtk_dialog_get_action_area' function. */ | ||
| 585 | #undef HAVE_GTK_DIALOG_GET_ACTION_AREA | ||
| 586 | |||
| 587 | /* Define to 1 if you have the `gtk_file_selection_new' function. */ | ||
| 588 | #undef HAVE_GTK_FILE_SELECTION_NEW | ||
| 589 | |||
| 590 | /* Define to 1 if you have the `gtk_handle_box_new' function. */ | ||
| 591 | #undef HAVE_GTK_HANDLE_BOX_NEW | ||
| 592 | |||
| 593 | /* Define to 1 if you have the `gtk_main' function. */ | ||
| 594 | #undef HAVE_GTK_MAIN | ||
| 595 | |||
| 596 | /* Define to 1 if you have the `gtk_orientable_set_orientation' function. */ | ||
| 597 | #undef HAVE_GTK_ORIENTABLE_SET_ORIENTATION | ||
| 598 | |||
| 599 | /* Define to 1 if you have the `gtk_tearoff_menu_item_new' function. */ | ||
| 600 | #undef HAVE_GTK_TEAROFF_MENU_ITEM_NEW | ||
| 601 | |||
| 602 | /* Define to 1 if you have the `gtk_widget_get_mapped' function. */ | ||
| 603 | #undef HAVE_GTK_WIDGET_GET_MAPPED | ||
| 604 | |||
| 605 | /* Define to 1 if you have the `gtk_widget_get_sensitive' function. */ | ||
| 606 | #undef HAVE_GTK_WIDGET_GET_SENSITIVE | ||
| 607 | |||
| 608 | /* Define to 1 if you have the `gtk_widget_get_window' function. */ | ||
| 609 | #undef HAVE_GTK_WIDGET_GET_WINDOW | ||
| 610 | |||
| 611 | /* Define to 1 if you have the `gtk_widget_set_has_window' function. */ | ||
| 612 | #undef HAVE_GTK_WIDGET_SET_HAS_WINDOW | ||
| 613 | |||
| 614 | /* Define to 1 if you have the `gtk_window_set_has_resize_grip' function. */ | ||
| 615 | #undef HAVE_GTK_WINDOW_SET_HAS_RESIZE_GRIP | ||
| 616 | |||
| 617 | /* Define to 1 if you have the `g_type_init' function. */ | ||
| 618 | #undef HAVE_G_TYPE_INIT | ||
| 619 | |||
| 620 | /* Define to 1 if netdb.h declares h_errno. */ | ||
| 621 | #define HAVE_H_ERRNO 1 | ||
| 622 | |||
| 623 | /* Define to 1 if you have the <ifaddrs.h> header file. */ | ||
| 624 | #undef HAVE_IFADDRS_H | ||
| 625 | |||
| 626 | /* Define to 1 if using imagemagick. */ | ||
| 627 | #undef HAVE_IMAGEMAGICK | ||
| 628 | |||
| 629 | /* Define to 1 if you have inet sockets. */ | ||
| 630 | #define HAVE_INET_SOCKETS 1 | ||
| 631 | |||
| 632 | /* Define to 1 to use inotify. */ | ||
| 633 | #undef HAVE_INOTIFY | ||
| 634 | |||
| 635 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
| 636 | #undef HAVE_INTTYPES_H | ||
| 637 | |||
| 638 | /* Define to 1 if you have the jpeg library (-ljpeg). */ | ||
| 639 | #undef HAVE_JPEG | ||
| 640 | |||
| 641 | /* Define to 1 if you have the <kerberosIV/des.h> header file. */ | ||
| 642 | #undef HAVE_KERBEROSIV_DES_H | ||
| 643 | |||
| 644 | /* Define to 1 if you have the <kerberosIV/krb.h> header file. */ | ||
| 645 | #undef HAVE_KERBEROSIV_KRB_H | ||
| 646 | |||
| 647 | /* Define to 1 if you have the <kerberos/des.h> header file. */ | ||
| 648 | #undef HAVE_KERBEROS_DES_H | ||
| 649 | |||
| 650 | /* Define to 1 if you have the <kerberos/krb.h> header file. */ | ||
| 651 | #undef HAVE_KERBEROS_KRB_H | ||
| 652 | |||
| 653 | /* Define to 1 if `e_text' is a member of `krb5_error'. */ | ||
| 654 | #undef HAVE_KRB5_ERROR_E_TEXT | ||
| 655 | |||
| 656 | /* Define to 1 if `text' is a member of `krb5_error'. */ | ||
| 657 | #undef HAVE_KRB5_ERROR_TEXT | ||
| 658 | |||
| 659 | /* Define to 1 if you have the <krb5.h> header file. */ | ||
| 660 | #undef HAVE_KRB5_H | ||
| 661 | |||
| 662 | /* Define to 1 if you have the <krb.h> header file. */ | ||
| 663 | #undef HAVE_KRB_H | ||
| 664 | |||
| 665 | /* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ | ||
| 666 | #define HAVE_LANGINFO_CODESET 1 | ||
| 667 | |||
| 668 | /* Define to 1 if you have the `com_err' library (-lcom_err). */ | ||
| 669 | #undef HAVE_LIBCOM_ERR | ||
| 670 | |||
| 671 | /* Define to 1 if you have the `crypto' library (-lcrypto). */ | ||
| 672 | #undef HAVE_LIBCRYPTO | ||
| 673 | |||
| 674 | /* Define to 1 if you have the `des' library (-ldes). */ | ||
| 675 | #undef HAVE_LIBDES | ||
| 676 | |||
| 677 | /* Define to 1 if you have the `des425' library (-ldes425). */ | ||
| 678 | #undef HAVE_LIBDES425 | ||
| 679 | |||
| 680 | /* Define to 1 if you have the `dgc' library (-ldgc). */ | ||
| 681 | #undef HAVE_LIBDGC | ||
| 682 | |||
| 683 | /* Define to 1 if you have the `dnet' library (-ldnet). */ | ||
| 684 | #undef HAVE_LIBDNET | ||
| 685 | |||
| 686 | /* Define to 1 if you have the <libgen.h> header file. */ | ||
| 687 | #undef HAVE_LIBGEN_H | ||
| 688 | |||
| 689 | /* Define to 1 if you have the hesiod library (-lhesiod). */ | ||
| 690 | #undef HAVE_LIBHESIOD | ||
| 691 | |||
| 692 | /* Define to 1 if you have the `k5crypto' library (-lk5crypto). */ | ||
| 693 | #undef HAVE_LIBK5CRYPTO | ||
| 694 | |||
| 695 | /* Define to 1 if you have the `krb' library (-lkrb). */ | ||
| 696 | #undef HAVE_LIBKRB | ||
| 697 | |||
| 698 | /* Define to 1 if you have the `krb4' library (-lkrb4). */ | ||
| 699 | #undef HAVE_LIBKRB4 | ||
| 700 | |||
| 701 | /* Define to 1 if you have the `krb5' library (-lkrb5). */ | ||
| 702 | #undef HAVE_LIBKRB5 | ||
| 703 | |||
| 704 | /* Define to 1 if you have the `kstat' library (-lkstat). */ | ||
| 705 | #undef HAVE_LIBKSTAT | ||
| 706 | |||
| 707 | /* Define to 1 if you have the `lockfile' library (-llockfile). */ | ||
| 708 | #undef HAVE_LIBLOCKFILE | ||
| 709 | |||
| 710 | /* Define to 1 if you have the `m' library (-lm). */ | ||
| 711 | #undef HAVE_LIBM | ||
| 712 | |||
| 713 | /* Define to 1 if you have the `mail' library (-lmail). */ | ||
| 714 | #undef HAVE_LIBMAIL | ||
| 715 | |||
| 716 | /* Define to 1 if using libotf. */ | ||
| 717 | #undef HAVE_LIBOTF | ||
| 718 | |||
| 719 | /* Define to 1 if you have the `perfstat' library (-lperfstat). */ | ||
| 720 | #undef HAVE_LIBPERFSTAT | ||
| 721 | |||
| 722 | /* Define to 1 if you have the <libpng/png.h> header file. */ | ||
| 723 | #undef HAVE_LIBPNG_PNG_H | ||
| 724 | |||
| 725 | /* Define to 1 if you have the `pthreads' library (-lpthreads). */ | ||
| 726 | #undef HAVE_LIBPTHREADS | ||
| 727 | |||
| 728 | /* Define to 1 if you have the resolv library (-lresolv). */ | ||
| 729 | #undef HAVE_LIBRESOLV | ||
| 730 | |||
| 731 | /* Define to 1 if using SELinux. */ | ||
| 732 | #undef HAVE_LIBSELINUX | ||
| 733 | |||
| 734 | /* Define to 1 if you have the `Xext' library (-lXext). */ | ||
| 735 | #undef HAVE_LIBXEXT | ||
| 736 | |||
| 737 | /* Define to 1 if you have the libxml library (-lxml2). */ | ||
| 738 | #undef HAVE_LIBXML2 | ||
| 739 | |||
| 740 | /* Define to 1 if you have the `Xmu' library (-lXmu). */ | ||
| 741 | #undef HAVE_LIBXMU | ||
| 742 | |||
| 743 | /* Define to 1 if you have the <linux/version.h> header file. */ | ||
| 744 | #undef HAVE_LINUX_VERSION_H | ||
| 745 | |||
| 746 | /* Define to 1 if you have the `localtime_r' function. */ | ||
| 747 | #undef HAVE_LOCALTIME_R | ||
| 748 | |||
| 749 | /* Define to 1 if you support file names longer than 14 characters. */ | ||
| 750 | #define HAVE_LONG_FILE_NAMES 1 | ||
| 751 | |||
| 752 | /* Define to 1 if the system has the type 'long long int'. */ | ||
| 753 | #undef HAVE_LONG_LONG_INT | ||
| 754 | |||
| 755 | /* Define to 1 if you have the `lrand48' function. */ | ||
| 756 | #undef HAVE_LRAND48 | ||
| 757 | |||
| 758 | /* Define to 1 if you have the `lstat' function. */ | ||
| 759 | #undef HAVE_LSTAT | ||
| 760 | |||
| 761 | /* Define to 1 if you have the `lutimes' function. */ | ||
| 762 | #undef HAVE_LUTIMES | ||
| 763 | |||
| 764 | /* Define to 1 if using libm17n-flt. */ | ||
| 765 | #undef HAVE_M17N_FLT | ||
| 766 | |||
| 767 | /* Define to 1 if you have the <machine/soundcard.h> header file. */ | ||
| 768 | #undef HAVE_MACHINE_SOUNDCARD_H | ||
| 769 | |||
| 770 | /* Define to 1 if you have the <mach/mach.h> header file. */ | ||
| 771 | #undef HAVE_MACH_MACH_H | ||
| 772 | |||
| 773 | /* Define to 1 if you have the `MagickExportImagePixels' function. */ | ||
| 774 | #undef HAVE_MAGICKEXPORTIMAGEPIXELS | ||
| 775 | |||
| 776 | /* Define to 1 if you have the `MagickMergeImageLayers' function. */ | ||
| 777 | #undef HAVE_MAGICKMERGEIMAGELAYERS | ||
| 778 | |||
| 779 | /* Define to 1 if you have the <maillock.h> header file. */ | ||
| 780 | #undef HAVE_MAILLOCK_H | ||
| 781 | |||
| 782 | /* Define to 1 if you have the <malloc/malloc.h> header file. */ | ||
| 783 | #undef HAVE_MALLOC_MALLOC_H | ||
| 784 | |||
| 785 | /* Define to 1 if <wchar.h> declares mbstate_t. */ | ||
| 786 | #undef HAVE_MBSTATE_T | ||
| 787 | |||
| 788 | /* Define to 1 if you have the <memory.h> header file. */ | ||
| 789 | #undef HAVE_MEMORY_H | ||
| 790 | |||
| 791 | /* Define to 1 if you have the `memrchr' function. */ | ||
| 792 | #undef HAVE_MEMRCHR | ||
| 793 | |||
| 794 | /* Define to 1 if you have mouse menus. (This is automatic if you use X, but | ||
| 795 | the option to specify it remains.) It is also defined with other window | ||
| 796 | systems that support xmenu.c. */ | ||
| 797 | #undef HAVE_MENUS | ||
| 798 | |||
| 799 | /* Define to 1 if you have the `mkostemp' function. */ | ||
| 800 | #define HAVE_MKOSTEMP 1 | ||
| 801 | |||
| 802 | /* Define to 1 if you have the `mkstemp' function. */ | ||
| 803 | #undef HAVE_MKSTEMP | ||
| 804 | |||
| 805 | /* Define to 1 if you have a working `mmap' system call. */ | ||
| 806 | #undef HAVE_MMAP | ||
| 807 | |||
| 808 | /* Define to 1 if you have the `nanotime' function. */ | ||
| 809 | #undef HAVE_NANOTIME | ||
| 810 | |||
| 811 | /* Define to 1 if you have the <net/if_dl.h> header file. */ | ||
| 812 | #undef HAVE_NET_IF_DL_H | ||
| 813 | |||
| 814 | /* Define to 1 if you have the <net/if.h> header file. */ | ||
| 815 | #undef HAVE_NET_IF_H | ||
| 816 | |||
| 817 | /* Define to 1 if you have the <nlist.h> header file. */ | ||
| 818 | #undef HAVE_NLIST_H | ||
| 819 | |||
| 820 | /* Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on | ||
| 821 | Mac OS X. */ | ||
| 822 | #undef HAVE_NS | ||
| 823 | |||
| 824 | /* Define to use native MS Windows GUI. */ | ||
| 825 | #define HAVE_NTGUI 1 | ||
| 826 | |||
| 827 | /* Define to 1 if libotf has OTF_get_variation_glyphs. */ | ||
| 828 | #undef HAVE_OTF_GET_VARIATION_GLYPHS | ||
| 829 | |||
| 830 | /* Define to 1 if personality LINUX32 can be set. */ | ||
| 831 | #undef HAVE_PERSONALITY_LINUX32 | ||
| 832 | |||
| 833 | /* Define to 1 if you have the png library (-lpng). */ | ||
| 834 | #undef HAVE_PNG | ||
| 835 | |||
| 836 | /* Define to 1 if you have the <png.h> header file. */ | ||
| 837 | #undef HAVE_PNG_H | ||
| 838 | |||
| 839 | /* Define to 1 if you have the `posix_memalign' function. */ | ||
| 840 | #undef HAVE_POSIX_MEMALIGN | ||
| 841 | |||
| 842 | /* Define to 1 if you have the `posix_openpt' function. */ | ||
| 843 | #undef HAVE_POSIX_OPENPT | ||
| 844 | |||
| 845 | /* Define if you have the /proc filesystem. */ | ||
| 846 | #undef HAVE_PROCFS | ||
| 847 | |||
| 848 | /* Define to 1 if you have the `pselect' function. */ | ||
| 849 | #undef HAVE_PSELECT | ||
| 850 | |||
| 851 | /* Define to 1 if you have the `pstat_getdynamic' function. */ | ||
| 852 | #undef HAVE_PSTAT_GETDYNAMIC | ||
| 853 | |||
| 854 | /* Define to 1 if you have pthread (-lpthread). */ | ||
| 855 | #undef HAVE_PTHREAD | ||
| 856 | |||
| 857 | /* Define to 1 if you have the <pthread.h> header file. */ | ||
| 858 | #undef HAVE_PTHREAD_H | ||
| 859 | |||
| 860 | /* Define to 1 if the pthread_sigmask function can be used (despite bugs). */ | ||
| 861 | #undef HAVE_PTHREAD_SIGMASK | ||
| 862 | |||
| 863 | /* Define if the system supports pty devices. */ | ||
| 864 | #undef HAVE_PTYS | ||
| 865 | |||
| 866 | /* Define to 1 if you have the <pty.h> header file. */ | ||
| 867 | #undef HAVE_PTY_H | ||
| 868 | |||
| 869 | /* Define to 1 if you have the <pwd.h> header file. */ | ||
| 870 | #define HAVE_PWD_H 1 | ||
| 871 | |||
| 872 | /* Define to 1 if you have the `random' function. */ | ||
| 873 | #define HAVE_RANDOM 1 | ||
| 874 | |||
| 875 | /* Define to 1 if you have the `readlink' function. */ | ||
| 876 | #undef HAVE_READLINK | ||
| 877 | |||
| 878 | /* Define to 1 if you have the `readlinkat' function. */ | ||
| 879 | #undef HAVE_READLINKAT | ||
| 880 | |||
| 881 | /* Define to 1 if you have the `recvfrom' function. */ | ||
| 882 | #define HAVE_RECVFROM 1 | ||
| 883 | |||
| 884 | /* Define to 1 if res_init is available. */ | ||
| 885 | #undef HAVE_RES_INIT | ||
| 886 | |||
| 887 | /* Define to 1 if you have the `rint' function. */ | ||
| 888 | #undef HAVE_RINT | ||
| 889 | |||
| 890 | /* Define to 1 if using librsvg. */ | ||
| 891 | #undef HAVE_RSVG | ||
| 892 | |||
| 893 | /* Define to 1 if you have the `select' function. */ | ||
| 894 | #define HAVE_SELECT 1 | ||
| 895 | |||
| 896 | /* Define to 1 if you have the `sendto' function. */ | ||
| 897 | #define HAVE_SENDTO 1 | ||
| 898 | |||
| 899 | /* Define to 1 if you have the `setitimer' function. */ | ||
| 900 | #define HAVE_SETITIMER 1 | ||
| 901 | |||
| 902 | /* Define to 1 if you have the `setlocale' function. */ | ||
| 903 | #define HAVE_SETLOCALE 1 | ||
| 904 | |||
| 905 | /* Define to 1 if you have the `setrlimit' function. */ | ||
| 906 | #undef HAVE_SETRLIMIT | ||
| 907 | |||
| 908 | /* Define to 1 if you have the `shutdown' function. */ | ||
| 909 | #define HAVE_SHUTDOWN 1 | ||
| 910 | |||
| 911 | /* Define to 1 if you have the `sig2str' function. */ | ||
| 912 | #undef HAVE_SIG2STR | ||
| 913 | |||
| 914 | /* Define to 1 if 'sig_atomic_t' is a signed integer type. */ | ||
| 915 | #undef HAVE_SIGNED_SIG_ATOMIC_T | ||
| 916 | |||
| 917 | /* Define to 1 if 'wchar_t' is a signed integer type. */ | ||
| 918 | #undef HAVE_SIGNED_WCHAR_T | ||
| 919 | |||
| 920 | /* Define to 1 if 'wint_t' is a signed integer type. */ | ||
| 921 | #undef HAVE_SIGNED_WINT_T | ||
| 922 | |||
| 923 | /* Define to 1 if sigsetjmp and siglongjmp work. The value of this symbol is | ||
| 924 | irrelevant if HAVE__SETJMP is defined. */ | ||
| 925 | #undef HAVE_SIGSETJMP | ||
| 926 | |||
| 927 | /* Define to 1 if the system has the type `sigset_t'. */ | ||
| 928 | #undef HAVE_SIGSET_T | ||
| 929 | |||
| 930 | /* Define to 1 if you have the `snprintf' function. */ | ||
| 931 | #define HAVE_SNPRINTF 1 | ||
| 932 | |||
| 933 | /* Define if the system supports 4.2-compatible sockets. | ||
| 934 | NT supports Winsock which is close enough (with some hacks). */ | ||
| 935 | #define HAVE_SOCKETS 1 | ||
| 936 | |||
| 937 | /* Define to 1 if you have sound support. */ | ||
| 938 | #define HAVE_SOUND 1 | ||
| 939 | |||
| 940 | /* Define to 1 if you have the <soundcard.h> header file. */ | ||
| 941 | #undef HAVE_SOUNDCARD_H | ||
| 942 | |||
| 943 | /* Define to 1 if `speed_t' is declared by <termios.h>. */ | ||
| 944 | #undef HAVE_SPEED_T | ||
| 945 | |||
| 946 | /* Define to 1 if you have the `statacl' function. */ | ||
| 947 | #undef HAVE_STATACL | ||
| 948 | |||
| 949 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
| 950 | #undef HAVE_STDINT_H | ||
| 951 | |||
| 952 | /* Define to 1 if you have the <stdio_ext.h> header file. */ | ||
| 953 | #undef HAVE_STDIO_EXT_H | ||
| 954 | |||
| 955 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
| 956 | #undef HAVE_STDLIB_H | ||
| 957 | |||
| 958 | /* Define to 1 if you have the <strings.h> header file. */ | ||
| 959 | #undef HAVE_STRINGS_H | ||
| 960 | |||
| 961 | /* Define to 1 if you have the <string.h> header file. */ | ||
| 962 | #undef HAVE_STRING_H | ||
| 963 | |||
| 964 | /* Define to 1 if you have the `strsignal' function. */ | ||
| 965 | #undef HAVE_STRSIGNAL | ||
| 966 | |||
| 967 | /* Define to 1 if you have the `strtoimax' function. */ | ||
| 968 | #undef HAVE_STRTOIMAX | ||
| 969 | |||
| 970 | /* Define to 1 if you have the `strtoll' function. */ | ||
| 971 | #undef HAVE_STRTOLL | ||
| 972 | |||
| 973 | /* Define to 1 if you have the `strtoull' function. */ | ||
| 974 | #define HAVE_STRTOULL 1 | ||
| 975 | |||
| 976 | /* Define to 1 if you have the `strtoumax' function. */ | ||
| 977 | #define HAVE_STRTOUMAX 1 | ||
| 978 | |||
| 979 | /* Define to 1 if `ifr_addr' is a member of `struct ifreq'. */ | ||
| 980 | #undef HAVE_STRUCT_IFREQ_IFR_ADDR | ||
| 981 | |||
| 982 | /* Define to 1 if `ifr_addr.sa_len' is a member of `struct ifreq'. */ | ||
| 983 | #undef HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN | ||
| 984 | |||
| 985 | /* Define to 1 if `ifr_broadaddr' is a member of `struct ifreq'. */ | ||
| 986 | #undef HAVE_STRUCT_IFREQ_IFR_BROADADDR | ||
| 987 | |||
| 988 | /* Define to 1 if `ifr_flags' is a member of `struct ifreq'. */ | ||
| 989 | #undef HAVE_STRUCT_IFREQ_IFR_FLAGS | ||
| 990 | |||
| 991 | /* Define to 1 if `ifr_hwaddr' is a member of `struct ifreq'. */ | ||
| 992 | #undef HAVE_STRUCT_IFREQ_IFR_HWADDR | ||
| 993 | |||
| 994 | /* Define to 1 if `ifr_netmask' is a member of `struct ifreq'. */ | ||
| 995 | #undef HAVE_STRUCT_IFREQ_IFR_NETMASK | ||
| 996 | |||
| 997 | /* Define to 1 if `n_un.n_name' is a member of `struct nlist'. */ | ||
| 998 | #undef HAVE_STRUCT_NLIST_N_UN_N_NAME | ||
| 999 | |||
| 1000 | /* Define to 1 if `st_atimensec' is a member of `struct stat'. */ | ||
| 1001 | #undef HAVE_STRUCT_STAT_ST_ATIMENSEC | ||
| 1002 | |||
| 1003 | /* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ | ||
| 1004 | #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC | ||
| 1005 | |||
| 1006 | /* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ | ||
| 1007 | #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC | ||
| 1008 | |||
| 1009 | /* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ | ||
| 1010 | #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC | ||
| 1011 | |||
| 1012 | /* Define to 1 if `st_birthtimensec' is a member of `struct stat'. */ | ||
| 1013 | #undef HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC | ||
| 1014 | |||
| 1015 | /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ | ||
| 1016 | #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC | ||
| 1017 | |||
| 1018 | /* Define to 1 if `st_birthtim.tv_nsec' is a member of `struct stat'. */ | ||
| 1019 | #undef HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC | ||
| 1020 | |||
| 1021 | /* Define to 1 if `tm_zone' is a member of `struct tm'. */ | ||
| 1022 | #undef HAVE_STRUCT_TM_TM_ZONE | ||
| 1023 | |||
| 1024 | /* Define if struct utimbuf is declared -- usually in <utime.h>. Some systems | ||
| 1025 | have utime.h but don't declare the struct anywhere. */ | ||
| 1026 | #undef HAVE_STRUCT_UTIMBUF | ||
| 1027 | |||
| 1028 | /* Define if struct stat has an st_dm_mode member. */ | ||
| 1029 | #undef HAVE_ST_DM_MODE | ||
| 1030 | |||
| 1031 | /* Define to 1 if you have the `symlink' function. */ | ||
| 1032 | #undef HAVE_SYMLINK | ||
| 1033 | |||
| 1034 | /* Define to 1 if you have the `sync' function. */ | ||
| 1035 | #undef HAVE_SYNC | ||
| 1036 | |||
| 1037 | /* Define to 1 if you have the <sys/acl.h> header file. */ | ||
| 1038 | #define HAVE_SYS_ACL_H 1 | ||
| 1039 | |||
| 1040 | /* Define to 1 if you have the <sys/bitypes.h> header file. */ | ||
| 1041 | #undef HAVE_SYS_BITYPES_H | ||
| 1042 | |||
| 1043 | /* Define to 1 if you have the <sys/inotify.h> header file. */ | ||
| 1044 | #undef HAVE_SYS_INOTIFY_H | ||
| 1045 | |||
| 1046 | /* Define to 1 if you have the <sys/inttypes.h> header file. */ | ||
| 1047 | #undef HAVE_SYS_INTTYPES_H | ||
| 1048 | |||
| 1049 | /* Define to 1 if you have the <sys/loadavg.h> header file. */ | ||
| 1050 | #undef HAVE_SYS_LOADAVG_H | ||
| 1051 | |||
| 1052 | /* Define to 1 if you have the <sys/param.h> header file. */ | ||
| 1053 | #undef HAVE_SYS_PARAM_H | ||
| 1054 | |||
| 1055 | /* Define to 1 if you have the <sys/resource.h> header file. */ | ||
| 1056 | #undef HAVE_SYS_RESOURCE_H | ||
| 1057 | |||
| 1058 | /* Define to 1 if you have the <sys/select.h> header file. */ | ||
| 1059 | #undef HAVE_SYS_SELECT_H | ||
| 1060 | |||
| 1061 | /* Define to 1 if you have the <sys/socket.h> header file. */ | ||
| 1062 | #undef HAVE_SYS_SOCKET_H | ||
| 1063 | |||
| 1064 | /* Define to 1 if you have the <sys/soundcard.h> header file. */ | ||
| 1065 | #undef HAVE_SYS_SOUNDCARD_H | ||
| 1066 | |||
| 1067 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
| 1068 | #undef HAVE_SYS_STAT_H | ||
| 1069 | |||
| 1070 | /* Define to 1 if you have the <sys/systeminfo.h> header file. */ | ||
| 1071 | #undef HAVE_SYS_SYSTEMINFO_H | ||
| 1072 | |||
| 1073 | /* Define to 1 if you have the <sys/timeb.h> header file. */ | ||
| 1074 | #define HAVE_SYS_TIMEB_H 1 | ||
| 1075 | |||
| 1076 | /* Define to 1 if you have the <sys/time.h> header file. */ | ||
| 1077 | #define HAVE_SYS_TIME_H 1 | ||
| 1078 | |||
| 1079 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
| 1080 | #undef HAVE_SYS_TYPES_H | ||
| 1081 | |||
| 1082 | /* Define to 1 if you have the <sys/un.h> header file. */ | ||
| 1083 | #undef HAVE_SYS_UN_H | ||
| 1084 | |||
| 1085 | /* Define to 1 if you have the <sys/utsname.h> header file. */ | ||
| 1086 | #undef HAVE_SYS_UTSNAME_H | ||
| 1087 | |||
| 1088 | /* Define to 1 if you have the <sys/vlimit.h> header file. */ | ||
| 1089 | #undef HAVE_SYS_VLIMIT_H | ||
| 1090 | |||
| 1091 | /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ | ||
| 1092 | #define HAVE_SYS_WAIT_H 1 | ||
| 1093 | |||
| 1094 | /* Define to 1 if you have the <term.h> header file. */ | ||
| 1095 | #undef HAVE_TERM_H | ||
| 1096 | |||
| 1097 | /* Define to 1 if you have the tiff library (-ltiff). */ | ||
| 1098 | #undef HAVE_TIFF | ||
| 1099 | |||
| 1100 | /* Define to 1 if you have the `timer_settime' function. */ | ||
| 1101 | #undef HAVE_TIMER_SETTIME | ||
| 1102 | |||
| 1103 | /* Define if struct tm has the tm_gmtoff member. */ | ||
| 1104 | #undef HAVE_TM_GMTOFF | ||
| 1105 | |||
| 1106 | /* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use | ||
| 1107 | `HAVE_STRUCT_TM_TM_ZONE' instead. */ | ||
| 1108 | #undef HAVE_TM_ZONE | ||
| 1109 | |||
| 1110 | /* Define to 1 if you have the `touchlock' function. */ | ||
| 1111 | #undef HAVE_TOUCHLOCK | ||
| 1112 | |||
| 1113 | /* Define to 1 if you don't have `tm_zone' but do have the external array | ||
| 1114 | `tzname'. */ | ||
| 1115 | #define HAVE_TZNAME 1 | ||
| 1116 | |||
| 1117 | /* Define to 1 if you have the `tzset' function. */ | ||
| 1118 | #define HAVE_TZSET 1 | ||
| 1119 | |||
| 1120 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
| 1121 | #define HAVE_UNISTD_H 1 | ||
| 1122 | |||
| 1123 | /* Define to 1 if you have the `unsetenv' function. */ | ||
| 1124 | #define HAVE_UNSETENV 1 | ||
| 1125 | |||
| 1126 | /* Define to 1 if the system has the type 'unsigned long long int'. */ | ||
| 1127 | #undef HAVE_UNSIGNED_LONG_LONG_INT | ||
| 1128 | |||
| 1129 | /* Define to 1 if you have the <util.h> header file. */ | ||
| 1130 | #undef HAVE_UTIL_H | ||
| 1131 | |||
| 1132 | /* Define to 1 if you have the `utimensat' function. */ | ||
| 1133 | #undef HAVE_UTIMENSAT | ||
| 1134 | |||
| 1135 | /* Define to 1 if you have the `utimes' function. */ | ||
| 1136 | #undef HAVE_UTIMES | ||
| 1137 | |||
| 1138 | /* Define to 1 if you have the <utime.h> header file. */ | ||
| 1139 | #undef HAVE_UTIME_H | ||
| 1140 | |||
| 1141 | /* Define to 1 if you have the <utmp.h> header file. */ | ||
| 1142 | #undef HAVE_UTMP_H | ||
| 1143 | |||
| 1144 | /* Define to 1 if you have the `vfork' function. */ | ||
| 1145 | #undef HAVE_VFORK | ||
| 1146 | |||
| 1147 | /* Define to 1 if you have the <vfork.h> header file. */ | ||
| 1148 | #undef HAVE_VFORK_H | ||
| 1149 | |||
| 1150 | /* Define to 1 to use w32notify. */ | ||
| 1151 | #define HAVE_W32NOTIFY 1 | ||
| 1152 | |||
| 1153 | /* Define to 1 if you have the <wchar.h> header file. */ | ||
| 1154 | #undef HAVE_WCHAR_H | ||
| 1155 | |||
| 1156 | /* Define if you have the 'wchar_t' type. */ | ||
| 1157 | #define HAVE_WCHAR_T 1 | ||
| 1158 | |||
| 1159 | /* Define if you have a window system. */ | ||
| 1160 | #undef HAVE_WINDOW_SYSTEM | ||
| 1161 | |||
| 1162 | /* Define to 1 if you have the <winsock2.h> header file. */ | ||
| 1163 | #undef HAVE_WINSOCK2_H | ||
| 1164 | |||
| 1165 | /* Define to 1 if `fork' works. */ | ||
| 1166 | #undef HAVE_WORKING_FORK | ||
| 1167 | |||
| 1168 | /* Define to 1 if fstatat (..., 0) works. For example, it does not work in AIX | ||
| 1169 | 7.1. */ | ||
| 1170 | #undef HAVE_WORKING_FSTATAT_ZERO_FLAG | ||
| 1171 | |||
| 1172 | /* Define if utimes works properly. */ | ||
| 1173 | #undef HAVE_WORKING_UTIMES | ||
| 1174 | |||
| 1175 | /* Define to 1 if `vfork' works. */ | ||
| 1176 | #undef HAVE_WORKING_VFORK | ||
| 1177 | |||
| 1178 | /* Define to 1 if you have the <ws2tcpip.h> header file. */ | ||
| 1179 | #undef HAVE_WS2TCPIP_H | ||
| 1180 | |||
| 1181 | /* Define to 1 if you want to use version 11 of X windows. Otherwise, Emacs | ||
| 1182 | expects to use version 10. */ | ||
| 1183 | #undef HAVE_X11 | ||
| 1184 | |||
| 1185 | /* Define to 1 if you have the X11R6 or newer version of Xlib. */ | ||
| 1186 | #undef HAVE_X11R6 | ||
| 1187 | |||
| 1188 | /* Define if you have usable X11R6-style XIM support. */ | ||
| 1189 | #undef HAVE_X11R6_XIM | ||
| 1190 | |||
| 1191 | /* Define to 1 if you have the X11R6 or newer version of Xt. */ | ||
| 1192 | #undef HAVE_X11XTR6 | ||
| 1193 | |||
| 1194 | /* Define to 1 if you have the Xaw3d library (-lXaw3d). */ | ||
| 1195 | #undef HAVE_XAW3D | ||
| 1196 | |||
| 1197 | /* Define to 1 if you have the Xft library. */ | ||
| 1198 | #undef HAVE_XFT | ||
| 1199 | |||
| 1200 | /* Define to 1 if XIM is available */ | ||
| 1201 | #undef HAVE_XIM | ||
| 1202 | |||
| 1203 | /* Define to 1 if you have the Xinerama extension. */ | ||
| 1204 | #undef HAVE_XINERAMA | ||
| 1205 | |||
| 1206 | /* Define to 1 if you have the Xkb extension. */ | ||
| 1207 | #undef HAVE_XKB | ||
| 1208 | |||
| 1209 | /* Define to 1 if you have the Xpm library (-lXpm). */ | ||
| 1210 | #undef HAVE_XPM | ||
| 1211 | |||
| 1212 | /* Define to 1 if you have the XRandr extension. */ | ||
| 1213 | #undef HAVE_XRANDR | ||
| 1214 | |||
| 1215 | /* Define to 1 if you have the `XrmSetDatabase' function. */ | ||
| 1216 | #undef HAVE_XRMSETDATABASE | ||
| 1217 | |||
| 1218 | /* Define to 1 if you have the `XRRGetOutputPrimary' function. */ | ||
| 1219 | #undef HAVE_XRRGETOUTPUTPRIMARY | ||
| 1220 | |||
| 1221 | /* Define to 1 if you have the `XRRGetScreenResourcesCurrent' function. */ | ||
| 1222 | #undef HAVE_XRRGETSCREENRESOURCESCURRENT | ||
| 1223 | |||
| 1224 | /* Define to 1 if you have the `XScreenNumberOfScreen' function. */ | ||
| 1225 | #undef HAVE_XSCREENNUMBEROFSCREEN | ||
| 1226 | |||
| 1227 | /* Define to 1 if you have the `XScreenResourceString' function. */ | ||
| 1228 | #undef HAVE_XSCREENRESOURCESTRING | ||
| 1229 | |||
| 1230 | /* Define if you have usable i18n support. */ | ||
| 1231 | #undef HAVE_X_I18N | ||
| 1232 | |||
| 1233 | /* Define to 1 if you have the SM library (-lSM). */ | ||
| 1234 | #undef HAVE_X_SM | ||
| 1235 | |||
| 1236 | /* Define to 1 if you want to use the X window system. */ | ||
| 1237 | #undef HAVE_X_WINDOWS | ||
| 1238 | |||
| 1239 | /* Define to 1 if the system has the type `_Bool'. */ | ||
| 1240 | #undef HAVE__BOOL | ||
| 1241 | |||
| 1242 | /* Define to 1 if you have the `_ftime' function. */ | ||
| 1243 | #undef HAVE__FTIME | ||
| 1244 | |||
| 1245 | /* Define to 1 if _setjmp and _longjmp work. */ | ||
| 1246 | #define HAVE__SETJMP 1 | ||
| 1247 | |||
| 1248 | /* Define to 1 if you have the `__builtin_unwind_init' function. */ | ||
| 1249 | #undef HAVE___BUILTIN_UNWIND_INIT | ||
| 1250 | |||
| 1251 | /* Define to 1 if you have the `__executable_start' function. */ | ||
| 1252 | #undef HAVE___EXECUTABLE_START | ||
| 1253 | |||
| 1254 | /* Define to 1 if you have the `__fpending' function. */ | ||
| 1255 | #undef HAVE___FPENDING | ||
| 1256 | |||
| 1257 | /* Define to support using a Hesiod database to find the POP server. */ | ||
| 1258 | #undef HESIOD | ||
| 1259 | |||
| 1260 | /* Define if the system is HPUX. */ | ||
| 1261 | #undef HPUX | ||
| 1262 | |||
| 1263 | /* This is substituted when $TERM is "internal". */ | ||
| 1264 | #undef INTERNAL_TERMINAL | ||
| 1265 | |||
| 1266 | /* Define to read input using SIGIO. */ | ||
| 1267 | #undef INTERRUPT_INPUT | ||
| 1268 | |||
| 1269 | /* Define if the system is IRIX. */ | ||
| 1270 | #undef IRIX6_5 | ||
| 1271 | |||
| 1272 | /* Returns true if character is any form of separator. */ | ||
| 1273 | #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) | ||
| 1274 | |||
| 1275 | /* Returns true if character is a device separator. */ | ||
| 1276 | #define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP) | ||
| 1277 | |||
| 1278 | /* Returns true if character is a directory separator. */ | ||
| 1279 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') | ||
| 1280 | |||
| 1281 | /* Define to support Kerberos-authenticated POP mail retrieval. */ | ||
| 1282 | #undef KERBEROS | ||
| 1283 | |||
| 1284 | /* Define to use Kerberos 5 instead of Kerberos 4. */ | ||
| 1285 | #undef KERBEROS5 | ||
| 1286 | |||
| 1287 | /* Define to 1 if localtime caches TZ. */ | ||
| 1288 | #define LOCALTIME_CACHE 1 | ||
| 1289 | |||
| 1290 | /* Define to 1 if 'lstat' dereferences a symlink specified with a trailing | ||
| 1291 | slash. */ | ||
| 1292 | #undef LSTAT_FOLLOWS_SLASHED_SYMLINK | ||
| 1293 | |||
| 1294 | /* String giving fallback POP mail host. */ | ||
| 1295 | #undef MAILHOST | ||
| 1296 | |||
| 1297 | /* Define to unlink, rather than empty, mail spool after reading. */ | ||
| 1298 | #undef MAIL_UNLINK_SPOOL | ||
| 1299 | |||
| 1300 | /* Define if the mailer uses flock to interlock the mail spool. */ | ||
| 1301 | #undef MAIL_USE_FLOCK | ||
| 1302 | |||
| 1303 | /* Define if the mailer uses lockf to interlock the mail spool. */ | ||
| 1304 | #undef MAIL_USE_LOCKF | ||
| 1305 | |||
| 1306 | /* Define to support MMDF mailboxes in movemail. */ | ||
| 1307 | #undef MAIL_USE_MMDF | ||
| 1308 | |||
| 1309 | /* Define to support POP mail retrieval. */ | ||
| 1310 | #define MAIL_USE_POP 1 | ||
| 1311 | |||
| 1312 | /* Define if the system is MS DOS. */ | ||
| 1313 | #undef MSDOS | ||
| 1314 | |||
| 1315 | /* Define if system's imake configuration file defines `NeedWidePrototypes' as | ||
| 1316 | `NO'. */ | ||
| 1317 | #undef NARROWPROTO | ||
| 1318 | |||
| 1319 | /* Define if XEditRes should not be used. */ | ||
| 1320 | #undef NO_EDITRES | ||
| 1321 | |||
| 1322 | /* Define to 1 if your C compiler doesn't accept -c and -o together. */ | ||
| 1323 | #undef NO_MINUS_C_MINUS_O | ||
| 1324 | |||
| 1325 | /* Minimum value of NSIG. */ | ||
| 1326 | #undef NSIG_MINIMUM | ||
| 1327 | |||
| 1328 | /* Define to 1 if `NSInteger' is defined. */ | ||
| 1329 | #undef NS_HAVE_NSINTEGER | ||
| 1330 | |||
| 1331 | /* Define to 1 if you are using NS windowing under MacOS X. */ | ||
| 1332 | #undef NS_IMPL_COCOA | ||
| 1333 | |||
| 1334 | /* Define to 1 if you are using NS windowing under GNUstep. */ | ||
| 1335 | #undef NS_IMPL_GNUSTEP | ||
| 1336 | |||
| 1337 | /* Name of the file to open to get a null file, or a data sink. */ | ||
| 1338 | #define NULL_DEVICE "NUL:" | ||
| 1339 | |||
| 1340 | /* Define to 1 if the nlist n_name member is a pointer */ | ||
| 1341 | #undef N_NAME_POINTER | ||
| 1342 | |||
| 1343 | /* Name of package */ | ||
| 1344 | #define PACKAGE "emacs" | ||
| 1345 | |||
| 1346 | /* Define to the address where bug reports for this package should be sent. */ | ||
| 1347 | #undef PACKAGE_BUGREPORT | ||
| 1348 | |||
| 1349 | /* Define to the full name of this package. */ | ||
| 1350 | #undef PACKAGE_NAME | ||
| 1351 | |||
| 1352 | /* Define to the full name and version of this package. */ | ||
| 1353 | #undef PACKAGE_STRING | ||
| 1354 | |||
| 1355 | /* Define to the one symbol short name of this package. */ | ||
| 1356 | #undef PACKAGE_TARNAME | ||
| 1357 | |||
| 1358 | /* Define to the home page for this package. */ | ||
| 1359 | #undef PACKAGE_URL | ||
| 1360 | |||
| 1361 | /* Define to the version of this package. */ | ||
| 1362 | #undef PACKAGE_VERSION | ||
| 1363 | |||
| 1364 | /* the number of pending output bytes on stream 'fp' */ | ||
| 1365 | #define PENDING_OUTPUT_N_BYTES (fp->_ptr - fp->_base) | ||
| 1366 | |||
| 1367 | /* Define to empty to suppress deprecation warnings when building with | ||
| 1368 | --enable-gcc-warnings and with libpng versions before 1.5, which lack | ||
| 1369 | png_longjmp. */ | ||
| 1370 | #undef PNG_DEPSTRUCT | ||
| 1371 | |||
| 1372 | /* Define if process_send_signal should use VSUSP instead of VSWTCH. */ | ||
| 1373 | #undef PREFER_VSUSP | ||
| 1374 | |||
| 1375 | /* Define to 1 if pthread_sigmask(), when it fails, returns -1 and sets errno. | ||
| 1376 | */ | ||
| 1377 | #undef PTHREAD_SIGMASK_FAILS_WITH_ERRNO | ||
| 1378 | |||
| 1379 | /* Define to 1 if pthread_sigmask() may returns 0 and have no effect. */ | ||
| 1380 | #undef PTHREAD_SIGMASK_INEFFECTIVE | ||
| 1381 | |||
| 1382 | /* Define to 1 if pthread_sigmask() unblocks signals incorrectly. */ | ||
| 1383 | #undef PTHREAD_SIGMASK_UNBLOCK_BUG | ||
| 1384 | |||
| 1385 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 1386 | 'ptrdiff_t'. */ | ||
| 1387 | #undef PTRDIFF_T_SUFFIX | ||
| 1388 | |||
| 1389 | /* How to iterate over PTYs. */ | ||
| 1390 | #undef PTY_ITERATION | ||
| 1391 | |||
| 1392 | /* How to get the device name of the control end of a PTY, if non-standard. */ | ||
| 1393 | #undef PTY_NAME_SPRINTF | ||
| 1394 | |||
| 1395 | /* How to open a PTY, if non-standard. */ | ||
| 1396 | #undef PTY_OPEN | ||
| 1397 | |||
| 1398 | /* How to get device name of the tty end of a PTY, if non-standard. */ | ||
| 1399 | #undef PTY_TTY_NAME_SPRINTF | ||
| 1400 | |||
| 1401 | /* Define to 1 if readlink fails to recognize a trailing slash. */ | ||
| 1402 | #undef READLINK_TRAILING_SLASH_BUG | ||
| 1403 | |||
| 1404 | /* Define REL_ALLOC if you want to use the relocating allocator for buffer | ||
| 1405 | space. */ | ||
| 1406 | #define REL_ALLOC 1 | ||
| 1407 | |||
| 1408 | /* Define to 1 if stat needs help when passed a directory name with a trailing | ||
| 1409 | slash */ | ||
| 1410 | #undef REPLACE_FUNC_STAT_DIR | ||
| 1411 | |||
| 1412 | /* Define to 1 if stat needs help when passed a file name with a trailing | ||
| 1413 | slash */ | ||
| 1414 | #undef REPLACE_FUNC_STAT_FILE | ||
| 1415 | |||
| 1416 | /* Define if emacs.c needs to call run_time_remap; for HPUX. */ | ||
| 1417 | #undef RUN_TIME_REMAP | ||
| 1418 | |||
| 1419 | /* Character that separates PATH elements. */ | ||
| 1420 | #define SEPCHAR ';' | ||
| 1421 | |||
| 1422 | /* How to set up a slave PTY, if needed. */ | ||
| 1423 | #undef SETUP_SLAVE_PTY | ||
| 1424 | |||
| 1425 | /* Make process_send_signal work by "typing" a signal character on the pty. */ | ||
| 1426 | #undef SIGNALS_VIA_CHARACTERS | ||
| 1427 | |||
| 1428 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 1429 | 'sig_atomic_t'. */ | ||
| 1430 | #undef SIG_ATOMIC_T_SUFFIX | ||
| 1431 | |||
| 1432 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 1433 | 'size_t'. */ | ||
| 1434 | #undef SIZE_T_SUFFIX | ||
| 1435 | |||
| 1436 | /* Define if the system is Solaris. */ | ||
| 1437 | #undef SOLARIS2 | ||
| 1438 | |||
| 1439 | /* If using the C implementation of alloca, define if you know the | ||
| 1440 | direction of stack growth for your system; otherwise it will be | ||
| 1441 | automatically deduced at runtime. | ||
| 1442 | STACK_DIRECTION > 0 => grows toward higher addresses | ||
| 1443 | STACK_DIRECTION < 0 => grows toward lower addresses | ||
| 1444 | STACK_DIRECTION = 0 => direction of growth unknown */ | ||
| 1445 | #undef STACK_DIRECTION | ||
| 1446 | |||
| 1447 | /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ | ||
| 1448 | #undef STAT_MACROS_BROKEN | ||
| 1449 | |||
| 1450 | /* Define to 1 if you have the ANSI C header files. */ | ||
| 1451 | #undef STDC_HEADERS | ||
| 1452 | |||
| 1453 | /* Define to 1 on System V Release 4. */ | ||
| 1454 | #undef SVR4 | ||
| 1455 | |||
| 1456 | /* Define to use system malloc. */ | ||
| 1457 | #undef SYSTEM_MALLOC | ||
| 1458 | |||
| 1459 | /* The type of system you are compiling for; sets `system-type'. */ | ||
| 1460 | #define SYSTEM_TYPE "windows-nt" | ||
| 1461 | |||
| 1462 | /* Undocumented. */ | ||
| 1463 | #undef TAB3 | ||
| 1464 | |||
| 1465 | /* Undocumented. */ | ||
| 1466 | #undef TABDLY | ||
| 1467 | |||
| 1468 | /* Define to 1 if you use terminfo instead of termcap. */ | ||
| 1469 | #undef TERMINFO | ||
| 1470 | |||
| 1471 | /* Define to the header for the built-in window system. */ | ||
| 1472 | #define TERM_HEADER "w32term.h" | ||
| 1473 | |||
| 1474 | /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ | ||
| 1475 | #define TIME_WITH_SYS_TIME 1 | ||
| 1476 | |||
| 1477 | /* Some platforms redefine this. */ | ||
| 1478 | #undef TIOCSIGSEND | ||
| 1479 | |||
| 1480 | /* Define to 1 if your <sys/time.h> declares `struct tm'. */ | ||
| 1481 | #undef TM_IN_SYS_TIME | ||
| 1482 | |||
| 1483 | /* Define to 1 if the type of the st_atim member of a struct stat is struct | ||
| 1484 | timespec. */ | ||
| 1485 | #undef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC | ||
| 1486 | |||
| 1487 | /* Define to 1 for Encore UMAX. */ | ||
| 1488 | #undef UMAX | ||
| 1489 | |||
| 1490 | /* Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h> instead of | ||
| 1491 | <sys/cpustats.h>. */ | ||
| 1492 | #undef UMAX4_3 | ||
| 1493 | |||
| 1494 | /* Define if the system has Unix98 PTYs. */ | ||
| 1495 | #undef UNIX98_PTYS | ||
| 1496 | |||
| 1497 | /* Define to 1 if FIONREAD is usable. */ | ||
| 1498 | #define USABLE_FIONREAD 1 | ||
| 1499 | |||
| 1500 | /* Define to 1 if SIGIO is usable. */ | ||
| 1501 | #undef USABLE_SIGIO | ||
| 1502 | |||
| 1503 | /* How to get a user's full name. */ | ||
| 1504 | #define USER_FULL_NAME pw->pw_gecos | ||
| 1505 | |||
| 1506 | /* Define to nonzero if you want access control list support. */ | ||
| 1507 | #undef USE_ACL | ||
| 1508 | |||
| 1509 | /* Define to 1 if using file notifications. */ | ||
| 1510 | #define USE_FILE_NOTIFY 1 | ||
| 1511 | |||
| 1512 | /* Define to 1 if using GTK. */ | ||
| 1513 | #undef USE_GTK | ||
| 1514 | |||
| 1515 | /* Define to 1 if using the Lucid X toolkit. */ | ||
| 1516 | #undef USE_LUCID | ||
| 1517 | |||
| 1518 | /* Define to use mmap to allocate buffer text. */ | ||
| 1519 | #undef USE_MMAP_FOR_BUFFERS | ||
| 1520 | |||
| 1521 | /* Define to 1 if using the Motif X toolkit. */ | ||
| 1522 | #undef USE_MOTIF | ||
| 1523 | |||
| 1524 | /* Enable extensions on AIX 3, Interix. */ | ||
| 1525 | #ifndef _ALL_SOURCE | ||
| 1526 | # undef _ALL_SOURCE | ||
| 1527 | #endif | ||
| 1528 | /* Enable general extensions on OS X. */ | ||
| 1529 | #ifndef _DARWIN_C_SOURCE | ||
| 1530 | # undef _DARWIN_C_SOURCE | ||
| 1531 | #endif | ||
| 1532 | /* Enable GNU extensions on systems that have them. */ | ||
| 1533 | #ifndef _GNU_SOURCE | ||
| 1534 | # undef _GNU_SOURCE | ||
| 1535 | #endif | ||
| 1536 | /* Enable threading extensions on Solaris. */ | ||
| 1537 | #ifndef _POSIX_PTHREAD_SEMANTICS | ||
| 1538 | # undef _POSIX_PTHREAD_SEMANTICS | ||
| 1539 | #endif | ||
| 1540 | /* Enable extensions on HP NonStop. */ | ||
| 1541 | #ifndef _TANDEM_SOURCE | ||
| 1542 | # undef _TANDEM_SOURCE | ||
| 1543 | #endif | ||
| 1544 | /* Enable X/Open extensions if necessary. HP-UX 11.11 defines | ||
| 1545 | mbstate_t only if _XOPEN_SOURCE is defined to 500, regardless of | ||
| 1546 | whether compiling with -Ae or -D_HPUX_SOURCE=1. */ | ||
| 1547 | #ifndef _XOPEN_SOURCE | ||
| 1548 | # undef _XOPEN_SOURCE | ||
| 1549 | #endif | ||
| 1550 | /* Enable general extensions on Solaris. */ | ||
| 1551 | #ifndef __EXTENSIONS__ | ||
| 1552 | # undef __EXTENSIONS__ | ||
| 1553 | #endif | ||
| 1554 | |||
| 1555 | |||
| 1556 | /* Define to 1 if we should use toolkit scroll bars. */ | ||
| 1557 | #define USE_TOOLKIT_SCROLL_BARS 1 | ||
| 1558 | |||
| 1559 | /* Define to 1 if we should use XIM, if it is available. */ | ||
| 1560 | #undef USE_XIM | ||
| 1561 | |||
| 1562 | /* Define to 1 if using an X toolkit. */ | ||
| 1563 | #undef USE_X_TOOLKIT | ||
| 1564 | |||
| 1565 | /* Define if the system is compatible with System III. */ | ||
| 1566 | #undef USG | ||
| 1567 | |||
| 1568 | /* Define if the system is compatible with System V. */ | ||
| 1569 | #undef USG5 | ||
| 1570 | |||
| 1571 | /* Define if the system is compatible with System V Release 4. */ | ||
| 1572 | #undef USG5_4 | ||
| 1573 | |||
| 1574 | /* Define for USG systems where it works to open a pty's tty in the parent | ||
| 1575 | process, then close and reopen it in the child. */ | ||
| 1576 | #undef USG_SUBTTY_WORKS | ||
| 1577 | |||
| 1578 | /* Version number of package */ | ||
| 1579 | #define VERSION "25.0.50" | ||
| 1580 | |||
| 1581 | /* Define to 1 if unsetenv returns void instead of int. */ | ||
| 1582 | #undef VOID_UNSETENV | ||
| 1583 | |||
| 1584 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 1585 | 'wchar_t'. */ | ||
| 1586 | #undef WCHAR_T_SUFFIX | ||
| 1587 | |||
| 1588 | /* Use long long for EMACS_INT if available. */ | ||
| 1589 | /* #undef WIDE_EMACS_INT */ | ||
| 1590 | |||
| 1591 | /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type | ||
| 1592 | 'wint_t'. */ | ||
| 1593 | #undef WINT_T_SUFFIX | ||
| 1594 | |||
| 1595 | /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most | ||
| 1596 | significant byte first (like Motorola and SPARC, unlike Intel). */ | ||
| 1597 | #if defined AC_APPLE_UNIVERSAL_BUILD | ||
| 1598 | # if defined __BIG_ENDIAN__ | ||
| 1599 | # define WORDS_BIGENDIAN 1 | ||
| 1600 | # endif | ||
| 1601 | #else | ||
| 1602 | # ifndef WORDS_BIGENDIAN | ||
| 1603 | # undef WORDS_BIGENDIAN | ||
| 1604 | # endif | ||
| 1605 | #endif | ||
| 1606 | |||
| 1607 | /* Define this to check for malloc buffer overrun. */ | ||
| 1608 | #undef XMALLOC_OVERRUN_CHECK | ||
| 1609 | |||
| 1610 | /* Compensate for a bug in Xos.h on some systems, where it requires time.h. */ | ||
| 1611 | #undef XOS_NEEDS_TIME_H | ||
| 1612 | |||
| 1613 | /* Define to the type of the 6th arg of XRegisterIMInstantiateCallback, either | ||
| 1614 | XPointer or XPointer*. */ | ||
| 1615 | #undef XRegisterIMInstantiateCallback_arg6 | ||
| 1616 | |||
| 1617 | /* Define if the system is AIX. */ | ||
| 1618 | #undef _AIX | ||
| 1619 | |||
| 1620 | /* Enable large inode numbers on Mac OS X 10.5. */ | ||
| 1621 | #undef _DARWIN_USE_64_BIT_INODE | ||
| 1622 | |||
| 1623 | /* Number of bits in a file offset, on hosts where this is settable. */ | ||
| 1624 | #undef _FILE_OFFSET_BITS | ||
| 1625 | |||
| 1626 | /* Define to 1 if Gnulib overrides 'struct stat' on Windows so that struct | ||
| 1627 | stat.st_size becomes 64-bit. */ | ||
| 1628 | #undef _GL_WINDOWS_64_BIT_ST_SIZE | ||
| 1629 | |||
| 1630 | /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ | ||
| 1631 | #undef _LARGEFILE_SOURCE | ||
| 1632 | |||
| 1633 | /* Define for large files, on AIX-style hosts. */ | ||
| 1634 | #undef _LARGE_FILES | ||
| 1635 | |||
| 1636 | /* Define to 1 if on MINIX. */ | ||
| 1637 | #undef _MINIX | ||
| 1638 | |||
| 1639 | /* Define if GNUstep uses ObjC exceptions. */ | ||
| 1640 | #undef _NATIVE_OBJC_EXCEPTIONS | ||
| 1641 | |||
| 1642 | /* Define to 1 to make NetBSD features available. MINIX 3 needs this. */ | ||
| 1643 | #undef _NETBSD_SOURCE | ||
| 1644 | |||
| 1645 | /* The _Noreturn keyword of C11. */ | ||
| 1646 | #if ! (defined _Noreturn \ | ||
| 1647 | || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__)) | ||
| 1648 | # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__)) | ||
| 1649 | # define _Noreturn __attribute__ ((__noreturn__)) | ||
| 1650 | # elif defined _MSC_VER && 1200 <= _MSC_VER | ||
| 1651 | # define _Noreturn __declspec (noreturn) | ||
| 1652 | # else | ||
| 1653 | # define _Noreturn | ||
| 1654 | # endif | ||
| 1655 | #endif | ||
| 1656 | |||
| 1657 | |||
| 1658 | /* Define to 2 if the system does not provide POSIX.1 features except with | ||
| 1659 | this defined. */ | ||
| 1660 | #undef _POSIX_1_SOURCE | ||
| 1661 | |||
| 1662 | /* Define to 1 if you need to in order for 'stat' and other things to work. */ | ||
| 1663 | #undef _POSIX_SOURCE | ||
| 1664 | |||
| 1665 | /* Needed for system_process_attributes on Solaris. */ | ||
| 1666 | #undef _STRUCTURED_PROC | ||
| 1667 | |||
| 1668 | /* Define to rpl_ if the getopt replacement functions and variables should be | ||
| 1669 | used. */ | ||
| 1670 | #undef __GETOPT_PREFIX | ||
| 1671 | |||
| 1672 | /* Define to compiler's equivalent of C99 restrict keyword in array | ||
| 1673 | declarations. Define as empty for no equivalent. */ | ||
| 1674 | #undef __restrict_arr | ||
| 1675 | |||
| 1676 | /* Some platforms that do not use configure define this to include extra | ||
| 1677 | configuration information. */ | ||
| 1678 | #define config_opsysfile <ms-w32.h> | ||
| 1679 | |||
| 1680 | /* _GL_INLINE is a portable alternative to ISO C99 plain 'inline'. | ||
| 1681 | _GL_EXTERN_INLINE is a portable alternative to 'extern inline'. | ||
| 1682 | _GL_INLINE_HEADER_BEGIN contains useful stuff to put | ||
| 1683 | in an include file, before uses of _GL_INLINE. | ||
| 1684 | It suppresses GCC's bogus "no previous prototype for 'FOO'" diagnostic, | ||
| 1685 | when FOO is an inline function in the header; see | ||
| 1686 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>. | ||
| 1687 | _GL_INLINE_HEADER_END contains useful stuff to put | ||
| 1688 | in the same include file, after uses of _GL_INLINE. | ||
| 1689 | |||
| 1690 | Suppress extern inline with HP-UX cc, as it appears to be broken; see | ||
| 1691 | <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. | ||
| 1692 | |||
| 1693 | Suppress extern inline with Sun C in standards-conformance mode, as it | ||
| 1694 | mishandles inline functions that call each other. E.g., for 'inline void f | ||
| 1695 | (void) { } inline void g (void) { f (); }', c99 incorrectly complains | ||
| 1696 | 'reference to static identifier "f" in extern inline function'. | ||
| 1697 | This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16. | ||
| 1698 | |||
| 1699 | Suppress the use of extern inline on Apple's platforms, as Libc at least | ||
| 1700 | through Libc-825.26 (2013-04-09) is incompatible with it; see, e.g., | ||
| 1701 | <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. | ||
| 1702 | Perhaps Apple will fix this some day. */ | ||
| 1703 | #if ((__GNUC__ \ | ||
| 1704 | ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ | ||
| 1705 | : (199901L <= __STDC_VERSION__ \ | ||
| 1706 | && !defined __HP_cc \ | ||
| 1707 | && !(defined __SUNPRO_C && __STDC__))) \ | ||
| 1708 | && !defined __APPLE__) | ||
| 1709 | # define _GL_INLINE inline | ||
| 1710 | # define _GL_EXTERN_INLINE extern inline | ||
| 1711 | #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__ | ||
| 1712 | # if __GNUC_GNU_INLINE__ | ||
| 1713 | /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ | ||
| 1714 | # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) | ||
| 1715 | # else | ||
| 1716 | # define _GL_INLINE extern inline | ||
| 1717 | # endif | ||
| 1718 | # define _GL_EXTERN_INLINE extern | ||
| 1719 | #else | ||
| 1720 | # define _GL_INLINE static _GL_UNUSED | ||
| 1721 | # define _GL_EXTERN_INLINE static _GL_UNUSED | ||
| 1722 | #endif | ||
| 1723 | |||
| 1724 | #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) | ||
| 1725 | # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ | ||
| 1726 | # define _GL_INLINE_HEADER_CONST_PRAGMA | ||
| 1727 | # else | ||
| 1728 | # define _GL_INLINE_HEADER_CONST_PRAGMA \ | ||
| 1729 | _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"") | ||
| 1730 | # endif | ||
| 1731 | # define _GL_INLINE_HEADER_BEGIN \ | ||
| 1732 | _Pragma ("GCC diagnostic push") \ | ||
| 1733 | _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \ | ||
| 1734 | _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \ | ||
| 1735 | _GL_INLINE_HEADER_CONST_PRAGMA | ||
| 1736 | # define _GL_INLINE_HEADER_END \ | ||
| 1737 | _Pragma ("GCC diagnostic pop") | ||
| 1738 | #else | ||
| 1739 | # define _GL_INLINE_HEADER_BEGIN | ||
| 1740 | # define _GL_INLINE_HEADER_END | ||
| 1741 | #endif | ||
| 1742 | |||
| 1743 | /* A replacement for va_copy, if needed. */ | ||
| 1744 | #define gl_va_copy(a,b) ((a) = (b)) | ||
| 1745 | |||
| 1746 | /* Define to rpl_gmtime if the replacement function should be used. */ | ||
| 1747 | #undef gmtime | ||
| 1748 | |||
| 1749 | /* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports | ||
| 1750 | the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of | ||
| 1751 | earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. | ||
| 1752 | __APPLE__ && __MACH__ test for Mac OS X. | ||
| 1753 | __APPLE_CC__ tests for the Apple compiler and its version. | ||
| 1754 | __STDC_VERSION__ tests for the C99 mode. */ | ||
| 1755 | #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ | ||
| 1756 | # define __GNUC_STDC_INLINE__ 1 | ||
| 1757 | #endif | ||
| 1758 | |||
| 1759 | /* Define to 1 if the compiler is checking for lint. */ | ||
| 1760 | #undef lint | ||
| 1761 | |||
| 1762 | /* Define to rpl_localtime if the replacement function should be used. */ | ||
| 1763 | #undef localtime | ||
| 1764 | |||
| 1765 | /* Define to a type if <wchar.h> does not define. */ | ||
| 1766 | #undef mbstate_t | ||
| 1767 | |||
| 1768 | /* Define to `int' if <sys/types.h> does not define. */ | ||
| 1769 | #undef mode_t | ||
| 1770 | |||
| 1771 | /* Define to the name of the strftime replacement function. */ | ||
| 1772 | #define my_strftime nstrftime | ||
| 1773 | |||
| 1774 | /* Define to the type of st_nlink in struct stat, or a supertype. */ | ||
| 1775 | #define nlink_t short | ||
| 1776 | |||
| 1777 | /* Define to `int' if <sys/types.h> does not define. */ | ||
| 1778 | #undef pid_t | ||
| 1779 | |||
| 1780 | /* Define to the equivalent of the C99 'restrict' keyword, or to | ||
| 1781 | nothing if this is not supported. Do not define if restrict is | ||
| 1782 | supported directly. */ | ||
| 1783 | #undef restrict | ||
| 1784 | /* Work around a bug in Sun C++: it does not support _Restrict or | ||
| 1785 | __restrict__, even though the corresponding Sun C compiler ends up with | ||
| 1786 | "#define restrict _Restrict" or "#define restrict __restrict__" in the | ||
| 1787 | previous line. Perhaps some future version of Sun C++ will work with | ||
| 1788 | restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ | ||
| 1789 | #if defined __SUNPRO_CC && !defined __RESTRICT | ||
| 1790 | # define _Restrict | ||
| 1791 | # define __restrict__ | ||
| 1792 | #endif | ||
| 1793 | |||
| 1794 | /* type to use in place of socklen_t if not defined */ | ||
| 1795 | #undef socklen_t | ||
| 1796 | |||
| 1797 | /* Define as a signed type of the same size as size_t. */ | ||
| 1798 | #undef ssize_t | ||
| 1799 | |||
| 1800 | /* Define to enable asynchronous subprocesses. */ | ||
| 1801 | #define subprocesses | ||
| 1802 | |||
| 1803 | /* Define to any substitute for sys_siglist. */ | ||
| 1804 | #undef sys_siglist | ||
| 1805 | |||
| 1806 | /* Define as a marker that can be attached to declarations that might not | ||
| 1807 | be used. This helps to reduce warnings, such as from | ||
| 1808 | GCC -Wunused-parameter. */ | ||
| 1809 | #if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) | ||
| 1810 | # define _GL_UNUSED __attribute__ ((__unused__)) | ||
| 1811 | #else | ||
| 1812 | # define _GL_UNUSED | ||
| 1813 | #endif | ||
| 1814 | /* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name | ||
| 1815 | is a misnomer outside of parameter lists. */ | ||
| 1816 | #define _UNUSED_PARAMETER_ _GL_UNUSED | ||
| 1817 | |||
| 1818 | /* The __pure__ attribute was added in gcc 2.96. */ | ||
| 1819 | #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) | ||
| 1820 | # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) | ||
| 1821 | #else | ||
| 1822 | # define _GL_ATTRIBUTE_PURE /* empty */ | ||
| 1823 | #endif | ||
| 1824 | |||
| 1825 | /* The __const__ attribute was added in gcc 2.95. */ | ||
| 1826 | #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) | ||
| 1827 | # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__)) | ||
| 1828 | #else | ||
| 1829 | # define _GL_ATTRIBUTE_CONST /* empty */ | ||
| 1830 | #endif | ||
| 1831 | |||
| 1832 | |||
| 1833 | /* Define as a macro for copying va_list variables. */ | ||
| 1834 | #undef va_copy | ||
| 1835 | |||
| 1836 | /* Define as `fork' if `vfork' does not work. */ | ||
| 1837 | #undef vfork | ||
| 1838 | |||
| 1839 | #include <conf_post.h> | ||
| 1840 | |||
| 1841 | #endif /* EMACS_CONFIG_H */ | ||
| 1842 | |||
| 1843 | /* | ||
| 1844 | Local Variables: | ||
| 1845 | mode: c | ||
| 1846 | End: | ||
| 1847 | */ | ||
diff --git a/nt/configure.bat b/nt/configure.bat index f6ac8fccc77..629bcc84498 100755 --- a/nt/configure.bat +++ b/nt/configure.bat | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | @echo off | 1 | @echo off |
| 2 | rem ---------------------------------------------------------------------- | 2 | rem ---------------------------------------------------------------------- |
| 3 | rem Configuration script for MS Windows operating systems | 3 | rem This was the old configuration script for MS Windows operating systems |
| 4 | rem Copyright (C) 1999-2015 Free Software Foundation, Inc. | 4 | rem Copyright (C) 1999-2015 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | rem This file is part of GNU Emacs. | 6 | rem This file is part of GNU Emacs. |
| @@ -19,956 +19,8 @@ rem You should have received a copy of the GNU General Public License | |||
| 19 | rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/. | 19 | rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/. |
| 20 | 20 | ||
| 21 | rem ---------------------------------------------------------------------- | 21 | rem ---------------------------------------------------------------------- |
| 22 | rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: | ||
| 23 | rem | ||
| 24 | rem + MS Windows 95, NT or later | ||
| 25 | rem + either MSVC 2.x or later, or gcc-2.95 or later (with GNU make 3.75 | ||
| 26 | rem or later) and the Mingw32 and Windows API headers and libraries. | ||
| 27 | rem + Visual Studio 2005 is not supported at this time. | ||
| 28 | rem | ||
| 29 | rem For reference, here is a list of which builds of GNU make are known to | ||
| 30 | rem work or not, and whether they work in the presence and/or absence of | ||
| 31 | rem sh.exe. | ||
| 32 | rem | ||
| 33 | rem sh exists no sh | ||
| 34 | rem cygwin b20.1 make (3.75): fails[1,5] fails[2,5] | ||
| 35 | rem MSVC compiled gmake 3.77: okay okay | ||
| 36 | rem MSVC compiled gmake 3.78.1: okay okay | ||
| 37 | rem MSVC compiled gmake 3.79.1: okay okay | ||
| 38 | rem mingw32/gcc-2.92.2 make (3.77): okay okay[4] | ||
| 39 | rem cygwin compiled gmake 3.77: fails[1,5] fails[2,5] | ||
| 40 | rem cygwin compiled gmake 3.78.1: fails[5] fails[2,5] | ||
| 41 | rem cygwin compiled gmake 3.79.1: fails[3,5] fails[2?,5] | ||
| 42 | rem cygwin compiled make 3.80: okay[6] fails?[7] | ||
| 43 | rem cygwin compiled make 3.81: fails fails?[7] | ||
| 44 | rem mingw32 compiled make 3.79.1: okay okay | ||
| 45 | rem mingw32 compiled make 3.80: okay okay?[7] | ||
| 46 | rem mingw32 compiled make 3.81: okay okay[8] | ||
| 47 | rem | ||
| 48 | rem [1] doesn't cope with makefiles with DOS line endings, so must mount | ||
| 49 | rem emacs source with text!=binary. | ||
| 50 | rem [2] fails when needs to invoke shell commands; okay invoking gcc etc. | ||
| 51 | rem [3] requires LC_MESSAGES support to build; cannot build with early | ||
| 52 | rem versions of cygwin. | ||
| 53 | rem [4] may fail on Windows 9X and Windows ME; if so, install Bash. | ||
| 54 | rem [5] fails when building leim due to the use of cygwin style paths. | ||
| 55 | rem May work if building emacs without leim. | ||
| 56 | rem [6] need to uncomment 3 lines in nt/gmake.defs that invoke `cygpath'; | ||
| 57 | rem look for "cygpath" near line 85 of gmake.defs. | ||
| 58 | rem [7] not recommended; please report if you try this combination. | ||
| 59 | rem [8] tested only on Windows XP. | ||
| 60 | rem | ||
| 61 | echo **************************************************************** | 22 | echo **************************************************************** |
| 62 | echo *** THIS METHOD OF BUILDING EMACS IS NO LONGER SUPPORTED. ** | 23 | echo *** THIS METHOD OF BUILDING EMACS IS NO LONGER SUPPORTED. ** |
| 63 | echo *** INSTEAD, FOLLOW THE INSTRUCTIONS FROM INSTALL. ** | 24 | echo *** INSTEAD, FOLLOW THE INSTRUCTIONS IN THE FILE INSTALL. ** |
| 25 | echo *** IN THE SAME DIRECTORY AS THIS BATCH FILE. ** | ||
| 64 | echo **************************************************************** | 26 | echo **************************************************************** |
| 65 | :confirm_continue | ||
| 66 | set /p answer=Continue running this script at your own risks ? (Y/N) | ||
| 67 | if x%answer% == xy (goto confirm_continue_y) | ||
| 68 | if x%answer% == xY (goto confirm_continue_y) | ||
| 69 | if x%answer% == xn (goto end) | ||
| 70 | if x%answer% == xN (goto end) | ||
| 71 | echo Please answer by Y or N | ||
| 72 | goto confirm_continue | ||
| 73 | |||
| 74 | :confirm_continue_y | ||
| 75 | if exist config.log del config.log | ||
| 76 | |||
| 77 | rem ---------------------------------------------------------------------- | ||
| 78 | rem See if the environment is large enough. We need 43 (?) bytes. | ||
| 79 | set $foo$=123456789_123456789_123456789_123456789_123 | ||
| 80 | if not "%$foo$%" == "123456789_123456789_123456789_123456789_123" goto SmallEnv | ||
| 81 | set $foo$= | ||
| 82 | |||
| 83 | rem ---------------------------------------------------------------------- | ||
| 84 | rem Make sure we are running in the nt subdir | ||
| 85 | if exist configure.bat goto start | ||
| 86 | echo You must run configure from the nt subdirectory. | ||
| 87 | goto end | ||
| 88 | |||
| 89 | :start | ||
| 90 | rem ---------------------------------------------------------------------- | ||
| 91 | rem Attempt to enable command extensions. Set use_extensions to 1 if | ||
| 92 | rem they are available and 0 if they are not available. | ||
| 93 | set use_extensions=1 | ||
| 94 | setlocal ENABLEEXTENSIONS | ||
| 95 | if "%CMDEXTVERSION%" == "" set use_extensions=0 | ||
| 96 | if "%use_extensions%" == "1" goto afterext | ||
| 97 | |||
| 98 | echo. Command extensions are not available. Using parameters that include the = | ||
| 99 | echo. character by enclosing them in quotes will not be supported. | ||
| 100 | |||
| 101 | :afterext | ||
| 102 | |||
| 103 | rem ---------------------------------------------------------------------- | ||
| 104 | rem Default settings. | ||
| 105 | set prefix= | ||
| 106 | set nodebug=N | ||
| 107 | set noopt=N | ||
| 108 | set enablechecking=N | ||
| 109 | set profile=N | ||
| 110 | set nocygwin=N | ||
| 111 | set COMPILER= | ||
| 112 | set usercflags= | ||
| 113 | set escusercflags= | ||
| 114 | set docflags= | ||
| 115 | set userldflags= | ||
| 116 | set escuserldflags= | ||
| 117 | set extrauserlibs= | ||
| 118 | set doldflags= | ||
| 119 | set doextralibs= | ||
| 120 | set sep1= | ||
| 121 | set sep2= | ||
| 122 | set sep3= | ||
| 123 | set sep4= | ||
| 124 | set distfiles= | ||
| 125 | |||
| 126 | rem ---------------------------------------------------------------------- | ||
| 127 | rem Handle arguments. | ||
| 128 | :again | ||
| 129 | if "%1" == "-h" goto usage | ||
| 130 | if "%1" == "--help" goto usage | ||
| 131 | if "%1" == "--prefix" goto setprefix | ||
| 132 | if "%1" == "--with-gcc" goto withgcc | ||
| 133 | if "%1" == "--with-msvc" goto withmsvc | ||
| 134 | if "%1" == "--no-debug" goto nodebug | ||
| 135 | if "%1" == "--no-opt" goto noopt | ||
| 136 | if "%1" == "--enable-checking" goto enablechecking | ||
| 137 | if "%1" == "--profile" goto profile | ||
| 138 | if "%1" == "--no-cygwin" goto nocygwin | ||
| 139 | if "%1" == "--cflags" goto usercflags | ||
| 140 | if "%1" == "--ldflags" goto userldflags | ||
| 141 | if "%1" == "--lib" goto extrauserlibs | ||
| 142 | if "%1" == "--without-png" goto withoutpng | ||
| 143 | if "%1" == "--without-jpeg" goto withoutjpeg | ||
| 144 | if "%1" == "--without-gif" goto withoutgif | ||
| 145 | if "%1" == "--without-tiff" goto withouttiff | ||
| 146 | if "%1" == "--without-gnutls" goto withoutgnutls | ||
| 147 | if "%1" == "--without-libxml2" goto withoutlibxml2 | ||
| 148 | if "%1" == "--without-xpm" goto withoutxpm | ||
| 149 | if "%1" == "--with-svg" goto withsvg | ||
| 150 | if "%1" == "--distfiles" goto distfiles | ||
| 151 | if "%1" == "" goto checkutils | ||
| 152 | |||
| 153 | :usage | ||
| 154 | echo Usage: configure [options] | ||
| 155 | echo Options: | ||
| 156 | echo. --prefix PREFIX install Emacs in directory PREFIX | ||
| 157 | echo. --with-gcc use GCC to compile Emacs | ||
| 158 | echo. --with-msvc use MSVC to compile Emacs | ||
| 159 | echo. --no-debug exclude debug info from executables | ||
| 160 | echo. --no-opt disable optimization | ||
| 161 | echo. --enable-checking enable additional run-time checks | ||
| 162 | echo. --profile enable profiling | ||
| 163 | echo. --no-cygwin use -mno-cygwin option with GCC | ||
| 164 | echo. --cflags FLAG pass FLAG to compiler | ||
| 165 | echo. --ldflags FLAG pass FLAG to compiler when linking | ||
| 166 | echo. --lib LIB link to extra library LIB | ||
| 167 | echo. --without-png do not use PNG library even if it is installed | ||
| 168 | echo. --without-jpeg do not use JPEG library even if it is installed | ||
| 169 | echo. --without-gif do not use GIF library even if it is installed | ||
| 170 | echo. --without-tiff do not use TIFF library even if it is installed | ||
| 171 | echo. --without-xpm do not use XPM library even if it is installed | ||
| 172 | echo. --without-gnutls do not use GnuTLS library even if it is installed | ||
| 173 | echo. --without-libxml2 do not use libxml2 library even if it is installed | ||
| 174 | echo. --with-svg use the RSVG library (experimental) | ||
| 175 | echo. --distfiles path to files for make dist, e.g. libXpm.dll | ||
| 176 | if "%use_extensions%" == "0" goto end | ||
| 177 | echo. | ||
| 178 | echo. The cflags and ldflags arguments support parameters that include the = | ||
| 179 | echo. character. However, since the = character is normally treated as a | ||
| 180 | echo. separator character you will need to enclose any parameter that includes | ||
| 181 | echo. the = character in quotes. For example, to include | ||
| 182 | echo. -DSITELOAD_PURESIZE_EXTRA=100000 as one of the cflags you would run | ||
| 183 | echo. configure.bat as follows: | ||
| 184 | echo. configure.bat --cflags "-DSITELOAD_PURESIZE_EXTRA=100000" | ||
| 185 | echo. | ||
| 186 | echo. Note that this capability of processing parameters that include the = | ||
| 187 | echo. character depends on command extensions. This batch file attempts to | ||
| 188 | echo. enable command extensions. If command extensions cannot be enabled, a | ||
| 189 | echo. warning message will be displayed. | ||
| 190 | echo. | ||
| 191 | echo. IMPORTANT: This method of building Emacs for MS-Windows is deprecated, | ||
| 192 | echo. and could be removed in a future version of Emacs. The preferred way | ||
| 193 | echo to build Emacs for MS-Windows from now on is using the MSYS environment | ||
| 194 | echo. and MinGW development tools. Please see nt/INSTALL for details. | ||
| 195 | goto end | ||
| 196 | |||
| 197 | rem ---------------------------------------------------------------------- | ||
| 198 | |||
| 199 | :setprefix | ||
| 200 | shift | ||
| 201 | set prefix=%1 | ||
| 202 | shift | ||
| 203 | goto again | ||
| 204 | |||
| 205 | rem ---------------------------------------------------------------------- | ||
| 206 | |||
| 207 | :withgcc | ||
| 208 | set COMPILER=gcc | ||
| 209 | shift | ||
| 210 | goto again | ||
| 211 | |||
| 212 | rem ---------------------------------------------------------------------- | ||
| 213 | |||
| 214 | :withmsvc | ||
| 215 | set COMPILER=cl | ||
| 216 | shift | ||
| 217 | goto again | ||
| 218 | |||
| 219 | rem ---------------------------------------------------------------------- | ||
| 220 | |||
| 221 | :nodebug | ||
| 222 | set nodebug=Y | ||
| 223 | shift | ||
| 224 | goto again | ||
| 225 | |||
| 226 | rem ---------------------------------------------------------------------- | ||
| 227 | |||
| 228 | :noopt | ||
| 229 | set noopt=Y | ||
| 230 | shift | ||
| 231 | goto again | ||
| 232 | |||
| 233 | rem ---------------------------------------------------------------------- | ||
| 234 | |||
| 235 | :enablechecking | ||
| 236 | set enablechecking=Y | ||
| 237 | shift | ||
| 238 | goto again | ||
| 239 | |||
| 240 | rem ---------------------------------------------------------------------- | ||
| 241 | |||
| 242 | :profile | ||
| 243 | set profile=Y | ||
| 244 | shift | ||
| 245 | goto again | ||
| 246 | |||
| 247 | rem ---------------------------------------------------------------------- | ||
| 248 | |||
| 249 | :nocygwin | ||
| 250 | set nocygwin=Y | ||
| 251 | shift | ||
| 252 | goto again | ||
| 253 | |||
| 254 | rem ---------------------------------------------------------------------- | ||
| 255 | |||
| 256 | :usercflags | ||
| 257 | if "%use_extensions%" == "1" goto ucflagex | ||
| 258 | goto ucflagne | ||
| 259 | |||
| 260 | :ucflagex | ||
| 261 | shift | ||
| 262 | set usercflags=%usercflags%%sep1%%~1 | ||
| 263 | set escusercflags=%usercflags:"=\"% | ||
| 264 | set sep1= %nothing% | ||
| 265 | shift | ||
| 266 | goto again | ||
| 267 | |||
| 268 | :ucflagne | ||
| 269 | shift | ||
| 270 | set usercflags=%usercflags%%sep1%%1 | ||
| 271 | set escusercflags=%usercflags% | ||
| 272 | set sep1= %nothing% | ||
| 273 | shift | ||
| 274 | goto again | ||
| 275 | |||
| 276 | :extrauserlibs | ||
| 277 | shift | ||
| 278 | echo. extrauserlibs: %extrauserlibs% | ||
| 279 | set extrauserlibs=%extrauserlibs%%sep4%%1 | ||
| 280 | set sep4= %nothing% | ||
| 281 | shift | ||
| 282 | goto again | ||
| 283 | |||
| 284 | rem ---------------------------------------------------------------------- | ||
| 285 | |||
| 286 | :userldflags | ||
| 287 | if "%use_extensions%" == "1" goto ulflagex | ||
| 288 | goto ulflagne | ||
| 289 | |||
| 290 | :ulflagex | ||
| 291 | shift | ||
| 292 | set userldflags=%userldflags%%sep2%%~1 | ||
| 293 | set escuserldflags=%userldflags:"=\"% | ||
| 294 | set sep2= %nothing% | ||
| 295 | shift | ||
| 296 | goto again | ||
| 297 | |||
| 298 | :ulflagne | ||
| 299 | shift | ||
| 300 | set userldflags=%userldflags%%sep2%%1 | ||
| 301 | set escuserldflags=%userldflags% | ||
| 302 | set sep2= %nothing% | ||
| 303 | shift | ||
| 304 | goto again | ||
| 305 | |||
| 306 | rem ---------------------------------------------------------------------- | ||
| 307 | |||
| 308 | :withoutpng | ||
| 309 | set pngsupport=N | ||
| 310 | set HAVE_PNG= | ||
| 311 | shift | ||
| 312 | goto again | ||
| 313 | |||
| 314 | rem ---------------------------------------------------------------------- | ||
| 315 | |||
| 316 | :withoutjpeg | ||
| 317 | set jpegsupport=N | ||
| 318 | set HAVE_JPEG= | ||
| 319 | shift | ||
| 320 | goto again | ||
| 321 | |||
| 322 | rem ---------------------------------------------------------------------- | ||
| 323 | |||
| 324 | :withoutgif | ||
| 325 | set gifsupport=N | ||
| 326 | set HAVE_GIF= | ||
| 327 | shift | ||
| 328 | goto again | ||
| 329 | |||
| 330 | rem ---------------------------------------------------------------------- | ||
| 331 | |||
| 332 | :withoutgnutls | ||
| 333 | set tlssupport=N | ||
| 334 | set HAVE_GNUTLS= | ||
| 335 | shift | ||
| 336 | goto again | ||
| 337 | |||
| 338 | rem ---------------------------------------------------------------------- | ||
| 339 | |||
| 340 | :withoutlibxml2 | ||
| 341 | set libxml2support=N | ||
| 342 | set HAVE_LIBXML2= | ||
| 343 | shift | ||
| 344 | goto again | ||
| 345 | |||
| 346 | rem ---------------------------------------------------------------------- | ||
| 347 | |||
| 348 | :withouttiff | ||
| 349 | set tiffsupport=N | ||
| 350 | set HAVE_TIFF= | ||
| 351 | shift | ||
| 352 | goto again | ||
| 353 | |||
| 354 | rem ---------------------------------------------------------------------- | ||
| 355 | |||
| 356 | :withoutxpm | ||
| 357 | set xpmsupport=N | ||
| 358 | set HAVE_XPM= | ||
| 359 | shift | ||
| 360 | goto again | ||
| 361 | |||
| 362 | :withsvg | ||
| 363 | shift | ||
| 364 | set svgsupport=Y | ||
| 365 | goto again | ||
| 366 | |||
| 367 | rem ---------------------------------------------------------------------- | ||
| 368 | |||
| 369 | :distfiles | ||
| 370 | set HAVE_DISTFILES=1 | ||
| 371 | shift | ||
| 372 | set distfiles=%distfiles%%sep3%%1 | ||
| 373 | set sep3= %nothing% | ||
| 374 | shift | ||
| 375 | goto again | ||
| 376 | |||
| 377 | rem ---------------------------------------------------------------------- | ||
| 378 | rem Check that necessary utilities (cp and rm) are present. | ||
| 379 | |||
| 380 | :checkutils | ||
| 381 | echo Checking for 'cp'... | ||
| 382 | cp configure.bat junk.bat | ||
| 383 | if not exist junk.bat goto needcp | ||
| 384 | echo Checking for 'rm'... | ||
| 385 | rm junk.bat | ||
| 386 | if exist junk.bat goto needrm | ||
| 387 | goto checkcompiler | ||
| 388 | |||
| 389 | :needcp | ||
| 390 | echo You need 'cp' (the Unix file copy program) to build Emacs. | ||
| 391 | goto end | ||
| 392 | |||
| 393 | :needrm | ||
| 394 | del junk.bat | ||
| 395 | echo You need 'rm' (the Unix file delete program) to build Emacs. | ||
| 396 | goto end | ||
| 397 | |||
| 398 | rem ---------------------------------------------------------------------- | ||
| 399 | rem Auto-detect compiler if not specified, and validate GCC if chosen. | ||
| 400 | |||
| 401 | :checkcompiler | ||
| 402 | if (%COMPILER%)==(cl) goto compilercheckdone | ||
| 403 | if (%COMPILER%)==(gcc) goto checkgcc | ||
| 404 | |||
| 405 | echo Checking whether 'gcc' is available... | ||
| 406 | echo main(){} >junk.c | ||
| 407 | gcc -c junk.c | ||
| 408 | if exist junk.o goto checkgcc | ||
| 409 | |||
| 410 | echo Checking whether 'cl' is available... | ||
| 411 | cl -nologo -c junk.c | ||
| 412 | if exist junk.obj goto clOK | ||
| 413 | goto nocompiler | ||
| 414 | |||
| 415 | :checkgcc | ||
| 416 | if exist junk.o del junk.o | ||
| 417 | Rem WARNING -- COMMAND.COM on some systems only looks at the first | ||
| 418 | Rem 8 characters of a label. So do NOT be tempted to change | ||
| 419 | Rem chkapi* into something fancier like checkw32api | ||
| 420 | Rem You HAVE been warned! | ||
| 421 | if (%nocygwin%) == (Y) goto chkapiN | ||
| 422 | echo Checking whether gcc requires '-mno-cygwin'... | ||
| 423 | echo #include "cygwin/version.h" >junk.c | ||
| 424 | echo main(){} >>junk.c | ||
| 425 | echo gcc -c junk.c >>config.log | ||
| 426 | gcc -c junk.c >>config.log 2>&1 | ||
| 427 | if not exist junk.o goto chkapi | ||
| 428 | echo gcc -mno-cygwin -c junk.c >>config.log | ||
| 429 | gcc -mno-cygwin -c junk.c >>config.log 2>&1 | ||
| 430 | if exist junk.o set nocygwin=Y | ||
| 431 | |||
| 432 | :chkapi | ||
| 433 | echo The failed program was: >>config.log | ||
| 434 | type junk.c >>config.log | ||
| 435 | |||
| 436 | :chkapiN | ||
| 437 | rm -f junk.c junk.o | ||
| 438 | rem ---------------------------------------------------------------------- | ||
| 439 | rem Older versions of the Windows API headers either don't have any of | ||
| 440 | rem the IMAGE_xxx definitions (the headers that come with Cygwin b20.1 | ||
| 441 | rem are like this), or have a typo in the definition of | ||
| 442 | rem IMAGE_FIRST_SECTION (the headers with gcc/mingw32 2.95 have this | ||
| 443 | rem problem). The gcc/mingw32 2.95.2 headers are okay, as are distros | ||
| 444 | rem of w32api-xxx.zip from Anders Norlander since 1999-11-18 at least. | ||
| 445 | rem Beginning with Emacs 23, we need usp10.h. | ||
| 446 | rem | ||
| 447 | echo Checking whether Windows API headers are too old... | ||
| 448 | echo #include "windows.h" >junk.c | ||
| 449 | echo #include "usp10.h" >>junk.c | ||
| 450 | echo void test(PIMAGE_NT_HEADERS pHeader) >>junk.c | ||
| 451 | echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c | ||
| 452 | if (%nocygwin%) == (Y) goto chkapi1 | ||
| 453 | set cf=%usercflags% | ||
| 454 | goto chkapi2 | ||
| 455 | |||
| 456 | :chkapi1 | ||
| 457 | set cf=%usercflags% -mno-cygwin | ||
| 458 | |||
| 459 | :chkapi2 | ||
| 460 | echo on | ||
| 461 | gcc %cf% -c junk.c | ||
| 462 | @echo off | ||
| 463 | @echo gcc %cf% -c junk.c >>config.log | ||
| 464 | gcc %cf% -c junk.c >>config.log 2>&1 | ||
| 465 | set cf= | ||
| 466 | if exist junk.o goto chkuser | ||
| 467 | echo The failed program was: >>config.log | ||
| 468 | type junk.c >>config.log | ||
| 469 | goto nocompiler | ||
| 470 | |||
| 471 | :chkuser | ||
| 472 | rm -f junk.o | ||
| 473 | echo int main (int argc, char *argv[]) {>junk.c | ||
| 474 | echo char *usercflags = "%escusercflags%";>>junk.c | ||
| 475 | echo }>>junk.c | ||
| 476 | echo gcc -Werror -c junk.c >>config.log | ||
| 477 | gcc -Werror -c junk.c >>config.log 2>&1 | ||
| 478 | if exist junk.o goto gccOk | ||
| 479 | echo. | ||
| 480 | echo Error in --cflags argument: %usercflags% | ||
| 481 | echo Backslashes and quotes cannot be used with --cflags. Please use forward | ||
| 482 | echo slashes for filenames and paths (e.g. when passing directories to -I). | ||
| 483 | rm -f junk.c | ||
| 484 | goto end | ||
| 485 | |||
| 486 | :nocompiler | ||
| 487 | echo. | ||
| 488 | echo Configure failed. | ||
| 489 | echo To configure Emacs for Windows, you need to have either | ||
| 490 | echo gcc-2.95 or later with Mingw32 and the Windows API headers, | ||
| 491 | echo or MSVC 2.x or later. | ||
| 492 | del junk.c | ||
| 493 | goto end | ||
| 494 | |||
| 495 | :gccOk | ||
| 496 | set COMPILER=gcc | ||
| 497 | echo Using 'gcc' | ||
| 498 | rm -f junk.c junk.o | ||
| 499 | Rem It is not clear what GCC version began supporting -mtune | ||
| 500 | Rem and pentium4 on x86, so check this explicitly. | ||
| 501 | echo main(){} >junk.c | ||
| 502 | echo gcc -c -O2 -mtune=pentium4 junk.c >>config.log | ||
| 503 | gcc -c -O2 -mtune=pentium4 junk.c >>config.log 2>&1 | ||
| 504 | if not errorlevel 1 goto gccMtuneOk | ||
| 505 | echo The failed program was: >>config.log | ||
| 506 | type junk.c >>config.log | ||
| 507 | set mf=-mcpu=i686 | ||
| 508 | rm -f junk.c junk.o | ||
| 509 | goto gccdebug | ||
| 510 | |||
| 511 | :gccMtuneOk | ||
| 512 | echo GCC supports -mtune=pentium4 >>config.log | ||
| 513 | set mf=-mtune=pentium4 | ||
| 514 | rm -f junk.c junk.o | ||
| 515 | |||
| 516 | :gccdebug | ||
| 517 | rem Check for DWARF-2 debug info support, else default to stabs | ||
| 518 | echo main(){} >junk.c | ||
| 519 | echo gcc -c -gdwarf-2 -g3 junk.c >>config.log | ||
| 520 | gcc -c -gdwarf-2 -g3 junk.c >>config.log 2>&1 | ||
| 521 | if not errorlevel 1 goto gccdwarf | ||
| 522 | echo The failed program was: >>config.log | ||
| 523 | type junk.c >>config.log | ||
| 524 | set dbginfo=-gstabs+ | ||
| 525 | rm -f junk.c junk.o | ||
| 526 | goto compilercheckdone | ||
| 527 | |||
| 528 | :gccdwarf | ||
| 529 | echo GCC supports DWARF-2 >>config.log | ||
| 530 | set dbginfo=-gdwarf-2 -g3 | ||
| 531 | rm -f junk.c junk.o | ||
| 532 | goto compilercheckdone | ||
| 533 | |||
| 534 | :clOk | ||
| 535 | set COMPILER=cl | ||
| 536 | rm -f junk.c junk.obj | ||
| 537 | echo Using 'MSVC' | ||
| 538 | |||
| 539 | :compilercheckdone | ||
| 540 | |||
| 541 | rem ---------------------------------------------------------------------- | ||
| 542 | rem Check for external image libraries. Since they are loaded | ||
| 543 | rem dynamically, the libraries themselves do not need to be present | ||
| 544 | rem at compile time, but the header files are required. | ||
| 545 | |||
| 546 | set mingwflag= | ||
| 547 | |||
| 548 | if (%nocygwin%) == (N) goto flagsOK | ||
| 549 | set mingwflag=-mno-cygwin | ||
| 550 | |||
| 551 | :flagsOK | ||
| 552 | |||
| 553 | if (%pngsupport%) == (N) goto pngDone | ||
| 554 | |||
| 555 | echo Checking for libpng... | ||
| 556 | echo #include "png.h" >junk.c | ||
| 557 | echo main (){} >>junk.c | ||
| 558 | rem -o option is ignored with cl, but allows result to be consistent. | ||
| 559 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log | ||
| 560 | %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log | ||
| 561 | if exist junk.obj goto havePng | ||
| 562 | |||
| 563 | echo ...png.h not found, building without PNG support. | ||
| 564 | echo The failed program was: >>config.log | ||
| 565 | type junk.c >>config.log | ||
| 566 | set HAVE_PNG= | ||
| 567 | goto :pngDone | ||
| 568 | |||
| 569 | :havePng | ||
| 570 | echo ...PNG header available, building with PNG support. | ||
| 571 | set HAVE_PNG=1 | ||
| 572 | |||
| 573 | :pngDone | ||
| 574 | rm -f junk.c junk.obj | ||
| 575 | |||
| 576 | if (%tlssupport%) == (N) goto tlsDone | ||
| 577 | |||
| 578 | rem this is a copy of the PNG detection | ||
| 579 | echo Checking for libgnutls... | ||
| 580 | echo #include "gnutls/gnutls.h" >junk.c | ||
| 581 | echo main (){} >>junk.c | ||
| 582 | rem -o option is ignored with cl, but allows result to be consistent. | ||
| 583 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log | ||
| 584 | %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log | ||
| 585 | if exist junk.obj goto haveTls | ||
| 586 | |||
| 587 | echo ...gnutls.h not found, building without TLS support. | ||
| 588 | echo The failed program was: >>config.log | ||
| 589 | type junk.c >>config.log | ||
| 590 | set HAVE_GNUTLS= | ||
| 591 | goto :tlsDone | ||
| 592 | |||
| 593 | :haveTls | ||
| 594 | echo ...GnuTLS header available, building with GnuTLS support. | ||
| 595 | set HAVE_GNUTLS=1 | ||
| 596 | |||
| 597 | :tlsDone | ||
| 598 | rm -f junk.c junk.obj | ||
| 599 | |||
| 600 | if (%libxml2support%) == (N) goto xml2Done | ||
| 601 | |||
| 602 | echo Checking for libxml2.... | ||
| 603 | echo #include "libxml/HTMLparser.h" >junk.c | ||
| 604 | echo main(){} >>junk.c | ||
| 605 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log | ||
| 606 | %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log | ||
| 607 | if exist junk.obj goto havelibxml2 | ||
| 608 | |||
| 609 | echo ...libxml/HTMLparser.h not found, building without libxml2 support | ||
| 610 | echo The failed program was: >>config.log | ||
| 611 | type junk.c >>config.log | ||
| 612 | set HAVE_LIBXML2= | ||
| 613 | goto xml2Done | ||
| 614 | |||
| 615 | :havelibxml2 | ||
| 616 | echo ...libxml2 header available, building with libxml2 support | ||
| 617 | set HAVE_LIBXML2=1 | ||
| 618 | |||
| 619 | :xml2Done | ||
| 620 | rm -f junk.c junk.obj | ||
| 621 | |||
| 622 | if (%jpegsupport%) == (N) goto jpegDone | ||
| 623 | |||
| 624 | echo Checking for jpeg-6b... | ||
| 625 | echo #include "jconfig.h" >junk.c | ||
| 626 | echo main (){} >>junk.c | ||
| 627 | rem -o option is ignored with cl, but allows result to be consistent. | ||
| 628 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log | ||
| 629 | %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log | ||
| 630 | if exist junk.obj goto haveJpeg | ||
| 631 | |||
| 632 | echo ...jconfig.h not found, building without JPEG support. | ||
| 633 | echo The failed program was: >>config.log | ||
| 634 | type junk.c >>config.log | ||
| 635 | set HAVE_JPEG= | ||
| 636 | goto :jpegDone | ||
| 637 | |||
| 638 | :haveJpeg | ||
| 639 | echo ...JPEG header available, building with JPEG support. | ||
| 640 | set HAVE_JPEG=1 | ||
| 641 | |||
| 642 | :jpegDone | ||
| 643 | rm -f junk.c junk.obj | ||
| 644 | |||
| 645 | if (%gifsupport%) == (N) goto gifDone | ||
| 646 | |||
| 647 | echo Checking for libgif... | ||
| 648 | rem giflib-5.0.0 needs size_t defined before gif_lib.h is included | ||
| 649 | rem redirection characters need to be protected from the shell | ||
| 650 | echo #include ^<stddef.h^> >junk.c | ||
| 651 | echo #include "gif_lib.h" >>junk.c | ||
| 652 | echo main (){} >>junk.c | ||
| 653 | rem -o option is ignored with cl, but allows result to be consistent. | ||
| 654 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log | ||
| 655 | %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log | ||
| 656 | if exist junk.obj goto haveGif | ||
| 657 | |||
| 658 | echo ...gif_lib.h not found, building without GIF support. | ||
| 659 | echo The failed program was: >>config.log | ||
| 660 | type junk.c >>config.log | ||
| 661 | set HAVE_GIF= | ||
| 662 | goto :gifDone | ||
| 663 | |||
| 664 | :haveGif | ||
| 665 | echo ...GIF header available, building with GIF support. | ||
| 666 | set HAVE_GIF=1 | ||
| 667 | |||
| 668 | :gifDone | ||
| 669 | rm -f junk.c junk.obj | ||
| 670 | |||
| 671 | if (%tiffsupport%) == (N) goto tiffDone | ||
| 672 | |||
| 673 | echo Checking for tiff... | ||
| 674 | echo #include "tiffio.h" >junk.c | ||
| 675 | echo main (){} >>junk.c | ||
| 676 | rem -o option is ignored with cl, but allows result to be consistent. | ||
| 677 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log | ||
| 678 | %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log | ||
| 679 | if exist junk.obj goto haveTiff | ||
| 680 | |||
| 681 | echo ...tiffio.h not found, building without TIFF support. | ||
| 682 | echo The failed program was: >>config.log | ||
| 683 | type junk.c >>config.log | ||
| 684 | set HAVE_TIFF= | ||
| 685 | goto :tiffDone | ||
| 686 | |||
| 687 | :haveTiff | ||
| 688 | echo ...TIFF header available, building with TIFF support. | ||
| 689 | set HAVE_TIFF=1 | ||
| 690 | |||
| 691 | :tiffDone | ||
| 692 | rm -f junk.c junk.obj | ||
| 693 | |||
| 694 | if (%xpmsupport%) == (N) goto xpmDone | ||
| 695 | |||
| 696 | echo Checking for libXpm... | ||
| 697 | echo #define FOR_MSW 1 >junk.c | ||
| 698 | echo #include "X11/xpm.h" >>junk.c | ||
| 699 | echo main (){} >>junk.c | ||
| 700 | rem -o option is ignored with cl, but allows result to be consistent. | ||
| 701 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log | ||
| 702 | %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log | ||
| 703 | if exist junk.obj goto haveXpm | ||
| 704 | |||
| 705 | echo ...X11/xpm.h not found, building without XPM support. | ||
| 706 | echo The failed program was: >>config.log | ||
| 707 | type junk.c >>config.log | ||
| 708 | set HAVE_XPM= | ||
| 709 | goto :xpmDone | ||
| 710 | |||
| 711 | :haveXpm | ||
| 712 | echo ...XPM header available, building with XPM support. | ||
| 713 | set HAVE_XPM=1 | ||
| 714 | |||
| 715 | :xpmDone | ||
| 716 | rm -f junk.c junk.obj | ||
| 717 | |||
| 718 | if not (%svgsupport%) == (Y) goto :svgDone | ||
| 719 | echo Checking for librsvg... | ||
| 720 | echo #include "librsvg/rsvg.h" >junk.c | ||
| 721 | echo main (){} >>junk.c | ||
| 722 | rem -o option is ignored with cl, but allows result to be consistent. | ||
| 723 | echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log | ||
| 724 | %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log | ||
| 725 | if exist junk.obj goto haveSvg | ||
| 726 | |||
| 727 | echo ...librsvg/rsvg.h or dependencies not found, building without SVG support. | ||
| 728 | echo The failed program was: >>config.log | ||
| 729 | type junk.c >>config.log | ||
| 730 | set HAVE_RSVG= | ||
| 731 | goto :svgDone | ||
| 732 | |||
| 733 | :haveSvg | ||
| 734 | echo ...librsvg header available, building with SVG support (EXPERIMENTAL). | ||
| 735 | set HAVE_RSVG=1 | ||
| 736 | |||
| 737 | :svgDone | ||
| 738 | rm -f junk.c junk.obj junk.err junk.out | ||
| 739 | |||
| 740 | rem Any distfiles provided for building distribution? If no, we're done. | ||
| 741 | if "(%HAVE_DISTFILES%)"=="()" goto :distFilesDone | ||
| 742 | |||
| 743 | rem Any arguments to --distfiles specified? If no, we're done. | ||
| 744 | if not "%distfiles%"=="" goto :checkDistFiles | ||
| 745 | set distFilesOk=0 | ||
| 746 | echo No arguments specified for option --distfiles! | ||
| 747 | goto distfilesDone | ||
| 748 | |||
| 749 | :checkDistFiles | ||
| 750 | echo Checking for distfiles... | ||
| 751 | rem Check if all specified distfiles exist | ||
| 752 | set fileNotFound= | ||
| 753 | for %%d in (%distfiles%) do if not exist %%d set fileNotFound=%%d | ||
| 754 | if not "%fileNotFound%"=="" goto distFilesNotFound | ||
| 755 | |||
| 756 | set distFilesOK=1 | ||
| 757 | echo ...all distfiles found. | ||
| 758 | goto :distFilesDone | ||
| 759 | |||
| 760 | :distFilesNotFound | ||
| 761 | set distFilesOk=0 | ||
| 762 | echo ...%fileNotFound% not found. | ||
| 763 | set distfiles= | ||
| 764 | goto :distfilesDone | ||
| 765 | |||
| 766 | :distFilesDone | ||
| 767 | set fileNotFound= | ||
| 768 | |||
| 769 | rem ---------------------------------------------------------------------- | ||
| 770 | |||
| 771 | :genmakefiles | ||
| 772 | echo Generating makefiles | ||
| 773 | if %COMPILER% == gcc set MAKECMD=gmake | ||
| 774 | if %COMPILER% == cl set MAKECMD=nmake | ||
| 775 | |||
| 776 | rem Pass on chosen settings to makefiles. | ||
| 777 | rem | ||
| 778 | rem The weird place we put the redirection is to make sure no extra | ||
| 779 | rem whitespace winds up at the end of the Make variables, since some | ||
| 780 | rem variables, e.g. INSTALL_DIR, cannot stand that. Yes, echo will | ||
| 781 | rem write the blanks between the end of command arguments and the | ||
| 782 | rem redirection symbol to the file. OTOH, we cannot put the | ||
| 783 | rem redirection immediately after the last character of the command, | ||
| 784 | rem because environment variable expansion can yield a digit there, | ||
| 785 | rem which will then be misinterpreted as the file descriptor to | ||
| 786 | rem redirect... | ||
| 787 | echo # Start of settings from configure.bat >config.settings | ||
| 788 | >>config.settings echo COMPILER=%COMPILER% | ||
| 789 | if not "(%mf%)" == "()" >>config.settings echo MCPU_FLAG=%mf% | ||
| 790 | if not "(%dbginfo%)" == "()" >>config.settings echo DEBUG_INFO=%dbginfo% | ||
| 791 | if (%nodebug%) == (Y) >>config.settings echo NODEBUG=1 | ||
| 792 | if (%noopt%) == (Y) >>config.settings echo NOOPT=1 | ||
| 793 | if (%profile%) == (Y) >>config.settings echo PROFILE=1 | ||
| 794 | if (%nocygwin%) == (Y) >>config.settings echo NOCYGWIN=1 | ||
| 795 | if not "(%prefix%)" == "()" >>config.settings echo INSTALL_DIR=%prefix% | ||
| 796 | if not "(%distfiles%)" == "()" >>config.settings echo DIST_FILES=%distfiles% | ||
| 797 | rem We go thru docflags because usercflags could be "-DFOO=bar" -something | ||
| 798 | rem and the if command cannot cope with this | ||
| 799 | for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y | ||
| 800 | if (%docflags%)==(Y) >>config.settings echo USER_CFLAGS=%usercflags% | ||
| 801 | if (%docflags%)==(Y) >>config.settings echo ESC_USER_CFLAGS=%escusercflags% | ||
| 802 | for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y | ||
| 803 | if (%doldflags%)==(Y) >>config.settings echo USER_LDFLAGS=%userldflags% | ||
| 804 | for %%v in (%extrauserlibs%) do if not (%%v)==() set doextralibs=Y | ||
| 805 | if (%doextralibs%)==(Y) >>config.settings echo USER_LIBS=%extrauserlibs% | ||
| 806 | echo # End of settings from configure.bat>>config.settings | ||
| 807 | echo. >>config.settings | ||
| 808 | |||
| 809 | copy config.nt config.tmp | ||
| 810 | echo. >>config.tmp | ||
| 811 | echo /* Start of settings from configure.bat. */ >>config.tmp | ||
| 812 | rem We write USER_CFLAGS and USER_LDFLAGS starting with a space to simplify | ||
| 813 | rem processing of compiler options in w32.c:get_emacs_configuration_options | ||
| 814 | if (%docflags%) == (Y) echo #define USER_CFLAGS " %escusercflags%" >>config.tmp | ||
| 815 | if (%doldflags%) == (Y) echo #define USER_LDFLAGS " %escuserldflags%" >>config.tmp | ||
| 816 | if (%profile%) == (Y) echo #define PROFILING 1 >>config.tmp | ||
| 817 | if (%enablechecking%) == (Y) echo #define ENABLE_CHECKING 1 >>config.tmp | ||
| 818 | if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>config.tmp | ||
| 819 | if not "(%HAVE_GNUTLS%)" == "()" echo #define HAVE_GNUTLS 1 >>config.tmp | ||
| 820 | if not "(%HAVE_LIBXML2%)" == "()" echo #define HAVE_LIBXML2 1 >>config.tmp | ||
| 821 | if not "(%HAVE_JPEG%)" == "()" echo #define HAVE_JPEG 1 >>config.tmp | ||
| 822 | if not "(%HAVE_GIF%)" == "()" echo #define HAVE_GIF 1 >>config.tmp | ||
| 823 | if not "(%HAVE_TIFF%)" == "()" echo #define HAVE_TIFF 1 >>config.tmp | ||
| 824 | if not "(%HAVE_XPM%)" == "()" echo #define HAVE_XPM 1 >>config.tmp | ||
| 825 | if "(%HAVE_RSVG%)" == "(1)" echo #define HAVE_RSVG 1 >>config.tmp | ||
| 826 | |||
| 827 | echo /* End of settings from configure.bat. */ >>config.tmp | ||
| 828 | |||
| 829 | Rem See if fc.exe returns a meaningful exit status. If it does, we | ||
| 830 | Rem might as well avoid unnecessary overwriting of config.h and epaths.h, | ||
| 831 | Rem since this forces recompilation of every source file. | ||
| 832 | if exist foo.bar del foo.bar | ||
| 833 | fc /b foo.bar foo.bar >nul 2>&1 | ||
| 834 | if not errorlevel 2 goto doCopy | ||
| 835 | fc /b config.tmp ..\src\config.h >nul 2>&1 | ||
| 836 | if errorlevel 1 goto doCopy | ||
| 837 | fc /b paths.h ..\src\epaths.h >nul 2>&1 | ||
| 838 | if not errorlevel 1 goto dontCopy | ||
| 839 | |||
| 840 | :doCopy | ||
| 841 | copy config.tmp ..\src\config.h | ||
| 842 | copy paths.h ..\src\epaths.h | ||
| 843 | |||
| 844 | :dontCopy | ||
| 845 | if exist config.tmp del config.tmp | ||
| 846 | copy /b config.settings+%MAKECMD%.defs+..\nt\makefile.w32-in ..\nt\makefile | ||
| 847 | if exist ..\admin\unidata copy /b config.settings+%MAKECMD%.defs+..\admin\unidata\makefile.w32-in ..\admin\unidata\makefile | ||
| 848 | copy /b config.settings+%MAKECMD%.defs+..\lib-src\makefile.w32-in ..\lib-src\makefile | ||
| 849 | copy /b config.settings+%MAKECMD%.defs+..\lib\makefile.w32-in ..\lib\makefile | ||
| 850 | copy /b config.settings+%MAKECMD%.defs+..\src\makefile.w32-in ..\src\makefile | ||
| 851 | copy /b config.settings+%MAKECMD%.defs+..\doc\emacs\makefile.w32-in ..\doc\emacs\makefile | ||
| 852 | copy /b config.settings+%MAKECMD%.defs+..\doc\misc\makefile.w32-in ..\doc\misc\makefile | ||
| 853 | copy /b config.settings+%MAKECMD%.defs+..\doc\lispref\makefile.w32-in ..\doc\lispref\makefile | ||
| 854 | copy /b config.settings+%MAKECMD%.defs+..\doc\lispintro\makefile.w32-in ..\doc\lispintro\makefile | ||
| 855 | if exist ..\lisp\makefile rm -f ../lisp/[Mm]akefile | ||
| 856 | copy /b config.settings+%MAKECMD%.defs+..\lisp\makefile.w32-in ..\lisp\makefile | ||
| 857 | rem Use the default (no-op) Makefile.in if the nt version is not present. | ||
| 858 | if exist ..\leim\makefile.w32-in copy /b config.settings+%MAKECMD%.defs+..\leim\makefile.w32-in ..\leim\makefile | ||
| 859 | if not exist ..\leim\makefile.w32-in copy /b config.settings+%MAKECMD%.defs+..\leim\Makefile.in ..\leim\makefile | ||
| 860 | del config.settings | ||
| 861 | |||
| 862 | Rem Some people use WinZip which doesn't create empty directories! | ||
| 863 | if not exist ..\site-lisp\nul mkdir ..\site-lisp\ | ||
| 864 | Rem Update subdirs.el only if it is different or fc.exe doesn't work. | ||
| 865 | if exist foo.bar del foo.bar | ||
| 866 | fc /b foo.bar foo.bar >nul 2>&1 | ||
| 867 | if not errorlevel 2 goto doUpdateSubdirs | ||
| 868 | fc /b subdirs.el ..\site-lisp\subdirs.el >nul 2>&1 | ||
| 869 | if not errorlevel 1 goto dontUpdateSubdirs | ||
| 870 | |||
| 871 | :doUpdateSubdirs | ||
| 872 | if exist ..\site-lisp\subdirs.el del ..\site-lisp\subdirs.el | ||
| 873 | copy subdirs.el ..\site-lisp\subdirs.el | ||
| 874 | |||
| 875 | :dontUpdateSubdirs | ||
| 876 | echo. | ||
| 877 | |||
| 878 | rem check that we have all the libraries we need. | ||
| 879 | set libsOK=1 | ||
| 880 | |||
| 881 | if not "(%HAVE_XPM%)" == "()" goto checkpng | ||
| 882 | if (%xpmsupport%) == (N) goto checkpng | ||
| 883 | set libsOK=0 | ||
| 884 | echo XPM support is missing. It is required for color icons in the toolbar. | ||
| 885 | echo Install libXpm development files or use --without-xpm | ||
| 886 | |||
| 887 | :checkpng | ||
| 888 | if not "(%HAVE_PNG%)" == "()" goto checkjpeg | ||
| 889 | if (%pngsupport%) == (N) goto checkjpeg | ||
| 890 | set libsOK=0 | ||
| 891 | echo PNG support is missing. | ||
| 892 | echo Install libpng development files or use --without-png | ||
| 893 | |||
| 894 | :checkjpeg | ||
| 895 | if not "(%HAVE_JPEG%)" == "()" goto checktiff | ||
| 896 | if (%jpegsupport%) == (N) goto checktiff | ||
| 897 | set libsOK=0 | ||
| 898 | echo JPEG support is missing. | ||
| 899 | echo Install jpeg development files or use --without-jpeg | ||
| 900 | |||
| 901 | :checktiff | ||
| 902 | if not "(%HAVE_TIFF%)" == "()" goto checkgif | ||
| 903 | if (%tiffsupport%) == (N) goto checkgif | ||
| 904 | set libsOK=0 | ||
| 905 | echo TIFF support is missing. | ||
| 906 | echo Install libtiff development files or use --without-tiff | ||
| 907 | |||
| 908 | :checkgif | ||
| 909 | if not "(%HAVE_GIF%)" == "()" goto checkdistfiles | ||
| 910 | if (%gifsupport%) == (N) goto checkdistfiles | ||
| 911 | set libsOK=0 | ||
| 912 | echo GIF support is missing. | ||
| 913 | echo Install giflib or libungif development files or use --without-gif | ||
| 914 | |||
| 915 | :checkdistfiles | ||
| 916 | if "(%HAVE_DISTFILES%)" == "()" goto donelibchecks | ||
| 917 | if (%distFilesOk%) == (1) goto donelibchecks | ||
| 918 | echo. | ||
| 919 | echo Files specified with option --distfiles could not be found. | ||
| 920 | echo Fix these issues before running make dist | ||
| 921 | |||
| 922 | :donelibchecks | ||
| 923 | if (%libsOK%) == (1) goto success | ||
| 924 | echo. | ||
| 925 | echo Important libraries are missing. Fix these issues before running make. | ||
| 926 | goto end | ||
| 927 | |||
| 928 | :success | ||
| 929 | echo Emacs successfully configured. | ||
| 930 | echo Emacs successfully configured. >>config.log | ||
| 931 | if (%MAKECMD%) == (gmake) set MAKECMD=make | ||
| 932 | echo Run `%MAKECMD%' to build, then run `%MAKECMD% install' to install. | ||
| 933 | goto end | ||
| 934 | |||
| 935 | :SmallEnv | ||
| 936 | echo Your environment size is too small. Please enlarge it and rerun configure. | ||
| 937 | echo For example, type "command.com /e:2048" to have 2048 bytes available. | ||
| 938 | set $foo$= | ||
| 939 | |||
| 940 | :end | ||
| 941 | set prefix= | ||
| 942 | set nodebug= | ||
| 943 | set noopt= | ||
| 944 | set enablechecking= | ||
| 945 | set profile= | ||
| 946 | set nocygwin= | ||
| 947 | set COMPILER= | ||
| 948 | set MAKECMD= | ||
| 949 | set usercflags= | ||
| 950 | set docflags= | ||
| 951 | set userldflags= | ||
| 952 | set doldflags= | ||
| 953 | set mingwflag= | ||
| 954 | set mf= | ||
| 955 | set distfiles= | ||
| 956 | set HAVE_DISTFILES= | ||
| 957 | set distFilesOk= | ||
| 958 | set pngsupport= | ||
| 959 | set tlssupport= | ||
| 960 | set libxml2support= | ||
| 961 | set jpegsupport= | ||
| 962 | set gifsupport= | ||
| 963 | set tiffsupport= | ||
| 964 | set xpmsupport= | ||
| 965 | set svgsupport= | ||
| 966 | set libsOK= | ||
| 967 | set HAVE_GIF= | ||
| 968 | set HAVE_JPEG= | ||
| 969 | set HAVE_PNG= | ||
| 970 | set HAVE_TIFF= | ||
| 971 | set HAVE_XPM= | ||
| 972 | set dbginfo= | ||
| 973 | endlocal | ||
| 974 | set use_extensions= | ||
diff --git a/nt/emacs-src.tags b/nt/emacs-src.tags deleted file mode 100644 index 8c187133454..00000000000 --- a/nt/emacs-src.tags +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | This file defines the regular expressions for etags to look for | ||
| 2 | in the src directory. It is used by the w32 build to work around | ||
| 3 | the annoyances of quoting command-line arguments with various | ||
| 4 | w32 shell. | ||
| 5 | |||
| 6 | /[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/ | ||
diff --git a/nt/envadd.bat b/nt/envadd.bat deleted file mode 100644 index 21f0f4b08f0..00000000000 --- a/nt/envadd.bat +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | rem Hack to change/add environment variables in the makefiles for the | ||
| 2 | rem Windows platform. | ||
| 3 | |||
| 4 | rem Copyright (C) 2003-2015 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | rem This file is part of GNU Emacs. | ||
| 7 | |||
| 8 | rem GNU Emacs is free software: you can redistribute it and/or modify | ||
| 9 | rem it under the terms of the GNU General Public License as published by | ||
| 10 | rem the Free Software Foundation, either version 3 of the License, or | ||
| 11 | rem (at your option) any later version. | ||
| 12 | |||
| 13 | rem GNU Emacs is distributed in the hope that it will be useful, | ||
| 14 | rem but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | rem GNU General Public License for more details. | ||
| 17 | |||
| 18 | rem You should have received a copy of the GNU General Public License | ||
| 19 | rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/. | ||
| 20 | |||
| 21 | |||
| 22 | rem Usage: | ||
| 23 | rem envadd "ENV1=VAL1" "ENV2=VAL2" ... /C <command line> | ||
| 24 | rem | ||
| 25 | rem The "/C" switch marks the end of environment variables, and the | ||
| 26 | rem beginning of the command line. | ||
| 27 | rem | ||
| 28 | rem By Peter 'Luna' Runestig <peter@runestig.com> 2003 | ||
| 29 | |||
| 30 | :Loop | ||
| 31 | if .%1% == ./C goto EndLoop | ||
| 32 | rem just to avoid an endless loop: | ||
| 33 | if .%1% == . goto EndLoop | ||
| 34 | set %1 | ||
| 35 | shift | ||
| 36 | goto Loop | ||
| 37 | :EndLoop | ||
| 38 | |||
| 39 | rem Eat the "/C" | ||
| 40 | shift | ||
| 41 | rem Now, run the command line | ||
| 42 | %1 %2 %3 %4 %5 %6 %7 %8 %9 | ||
| 43 | |||
diff --git a/nt/gmake.defs b/nt/gmake.defs deleted file mode 100644 index 90a3709da4a..00000000000 --- a/nt/gmake.defs +++ /dev/null | |||
| @@ -1,333 +0,0 @@ | |||
| 1 | # -*- Makefile -*- definition file for building GNU Emacs on Windows NT. | ||
| 2 | # Copyright (C) 2000-2015 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 3 of the License, or | ||
| 9 | # (at your option) 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. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | # Ensure 'all' is the default target | ||
| 20 | all: | ||
| 21 | |||
| 22 | # NOTES | ||
| 23 | # | ||
| 24 | # I tried to force gmake to use the native shell for simplicity, by | ||
| 25 | # setting SHELL as below, but this didn't work reliably because of | ||
| 26 | # various case sensitivity niggles. Specifically, COMSPEC (which is in | ||
| 27 | # fact usually spelled ComSpec on NT, to make life difficult) typically | ||
| 28 | # references "cmd.exe" (on NT) when the file is actually called | ||
| 29 | # "CMD.EXE" on disk for hysterical raisons. As a result, GNU make | ||
| 30 | # thinks it doesn't exist (unless compiled with a switch to ignore | ||
| 31 | # case), and so doesn't change which shell it will invoke to execute | ||
| 32 | # commands. | ||
| 33 | # | ||
| 34 | # It would be possible, though very tedious using just gmake facilities, | ||
| 35 | # to convert the COMSPEC value to uppercase to solve this problem, but | ||
| 36 | # it isn't worth it. That is partly because, even when using the native | ||
| 37 | # shell, gmake tends to not be happy with backslashes in command | ||
| 38 | # strings. The obvious solution is to use forward slashes as much as | ||
| 39 | # possible, which can be made to work most of the time (putting | ||
| 40 | # filenames in quotes often helps), but there are still some internal | ||
| 41 | # cmd.exe commands like `del' and `copy' that won't work with them. | ||
| 42 | # Although it is possible to convert slashes to backslashes when | ||
| 43 | # necessary, gmake requires explicitly calling its subst function, which | ||
| 44 | # nmake does not understand). For this reason, it is simplest to | ||
| 45 | # mandate that rm and cp be available, so we can use Unix-format file | ||
| 46 | # names everywhere. (Fortunately both MS and GNU make, and the | ||
| 47 | # respective compilers, are happy with Unix-format names.) | ||
| 48 | # | ||
| 49 | # Since we cannot easily force the choice of a particular shell, we must | ||
| 50 | # make the effort to cope with whichever shell is being used. | ||
| 51 | # Fortunately, the only command we need to use that is shell specific is | ||
| 52 | # the testing of a file's existence for the purpose of working out when | ||
| 53 | # we are copying files to their original location. That particular | ||
| 54 | # requirement is abstracted easily enough. | ||
| 55 | # | ||
| 56 | # The only other problem area was the change of directory when running | ||
| 57 | # temacs to dump emacs.exe (where gmake doesn't support cd foo in any | ||
| 58 | # useful way), but that has been resolved by modifying the Windows | ||
| 59 | # unexec function slightly to not require the directory change while | ||
| 60 | # still allowing objects and binaries to be in subdirectories. | ||
| 61 | |||
| 62 | # This doesn't work. | ||
| 63 | #SHELL:=$(COMSPEC) | ||
| 64 | |||
| 65 | # Determine whether make is using sh or cmd/command as shell; cmd.exe | ||
| 66 | # will output "ECHO is on" when echo is given by itself, while sh will | ||
| 67 | # not produce any output. | ||
| 68 | sh_output := $(shell echo) | ||
| 69 | ifeq "$(findstring ECHO, $(sh_output))" "ECHO" | ||
| 70 | THE_SHELL = $(COMSPEC)$(ComSpec) | ||
| 71 | SHELLTYPE=CMD | ||
| 72 | SWITCHCHAR=/ | ||
| 73 | else | ||
| 74 | USING_SH = 1 | ||
| 75 | THE_SHELL = $(SHELL) | ||
| 76 | SHELLTYPE=SH | ||
| 77 | # MSYS needs to double the slash in cmd-style switches to avoid | ||
| 78 | # interpreting /x as a Posix style file name reference | ||
| 79 | ifneq ($(MSYSTEM),) | ||
| 80 | SWITCHCHAR=// | ||
| 81 | else | ||
| 82 | SWITCHCHAR=/ | ||
| 83 | endif | ||
| 84 | endif | ||
| 85 | |||
| 86 | MAKETYPE=gmake | ||
| 87 | |||
| 88 | # The following "ifeq" does not appear to DTRT, and therefore breaks | ||
| 89 | # the build on mingw32. Also the -m option does not exist in many | ||
| 90 | # (reasonably recent even) versions of Cygwin. These issues need to be | ||
| 91 | # remedied before putting this cygpath kludge back in. | ||
| 92 | |||
| 93 | # Convert CURDIR to native file name, if in Cygwin format | ||
| 94 | #ifeq "$(shell cygpath $(CURDIR))" "$(CURDIR)" | ||
| 95 | #CURDIR := $(shell cygpath -m $(CURDIR)) | ||
| 96 | #endif | ||
| 97 | |||
| 98 | THISDIR = . | ||
| 99 | |||
| 100 | # Cygwin has changed quoting rules somewhat since b20, in a way that | ||
| 101 | # affects makefiles using sh as the command processor, so we need to | ||
| 102 | # detect which rules to use. | ||
| 103 | ifdef USING_SH | ||
| 104 | sh_output := $(shell echo [Please ignore a syntax error on the next line - it is intentional] 1>&2) | ||
| 105 | sh_output := $(shell echo foo") | ||
| 106 | # This single quote " is to fix fontification due to previous line | ||
| 107 | ifeq "$(sh_output)" "" | ||
| 108 | NEW_CYGWIN = 1 | ||
| 109 | endif | ||
| 110 | |||
| 111 | # By default, newer versions of Cygwin mess with NTFS ACLs in an | ||
| 112 | # attempt to emulate traditional posix file permissions. This can | ||
| 113 | # cause bad effects, such as .exe files that are missing the | ||
| 114 | # FILE_EXECUTE/FILE_GENERIC_EXECUTE permissions when they are created | ||
| 115 | # with Cygwin commands that don't expect to be creating executable | ||
| 116 | # files. Then when we later use a non-Cygwin program to create the | ||
| 117 | # real .exe, the previous Cygwin defined ACL sticks. | ||
| 118 | CYGWIN=nontsec | ||
| 119 | export CYGWIN | ||
| 120 | endif | ||
| 121 | |||
| 122 | ALL_DEPS = $^ | ||
| 123 | EMPTY = | ||
| 124 | SPACE = $(EMPTY) $(EMPTY) | ||
| 125 | |||
| 126 | SUBSYSTEM_WINDOWS=-Wl,-subsystem,windows | ||
| 127 | SUBSYSTEM_CONSOLE=-Wl,-subsystem,console | ||
| 128 | |||
| 129 | # INSTALL_DIR is the directory into which emacs will be installed. | ||
| 130 | # | ||
| 131 | ifndef INSTALL_DIR | ||
| 132 | INSTALL_DIR = $(CURDIR)/.. | ||
| 133 | endif | ||
| 134 | |||
| 135 | export EMACSLOADPATH | ||
| 136 | |||
| 137 | # Determine the architecture we're running on. | ||
| 138 | # Define ARCH for our purposes; | ||
| 139 | # Define CPU for use by ntwin32.mak; | ||
| 140 | # Define CONFIG_H to the appropriate config.h for the system; | ||
| 141 | # | ||
| 142 | ifdef PROCESSOR_ARCHITECTURE | ||
| 143 | # We're on Windows NT | ||
| 144 | CPU = $(PROCESSOR_ARCHITECTURE) | ||
| 145 | CONFIG_H = config.nt | ||
| 146 | OS_TYPE = windowsnt | ||
| 147 | ifeq "$(PROCESSOR_ARCHITECTURE)" "x86" | ||
| 148 | ARCH = i386 | ||
| 149 | CPU = i386 | ||
| 150 | EMACS_HEAPSIZE = 27 | ||
| 151 | EMACS_PURESIZE = 5000000 | ||
| 152 | EMACS_MANIFEST = emacs-x86.manifest | ||
| 153 | else | ||
| 154 | ifeq "$(PROCESSOR_ARCHITECTURE)" "MIPS" | ||
| 155 | ARCH = mips | ||
| 156 | EMACS_HEAPSIZE = 27 | ||
| 157 | EMACS_PURESIZE = 5000000 | ||
| 158 | EMACS_MANIFEST = emacs-mips.manifest | ||
| 159 | else | ||
| 160 | ifeq "$(PROCESSOR_ARCHITECTURE)" "ALPHA" | ||
| 161 | ARCH = alpha | ||
| 162 | EMACS_HEAPSIZE = 27 | ||
| 163 | EMACS_PURESIZE = 5000000 | ||
| 164 | EMACS_MANIFEST = emacs-alpha.manifest | ||
| 165 | else | ||
| 166 | ifeq "$(PROCESSOR_ARCHITECTURE)" "PPC" | ||
| 167 | ARCH = ppc | ||
| 168 | EMACS_HEAPSIZE = 27 | ||
| 169 | EMACS_PURESIZE = 5000000 | ||
| 170 | EMACS_MANIFEST = emacs-ppc.manifest | ||
| 171 | else | ||
| 172 | $(error Unknown architecture type "$(PROCESSOR_ARCHITECTURE)") | ||
| 173 | endif | ||
| 174 | endif | ||
| 175 | endif | ||
| 176 | endif | ||
| 177 | else | ||
| 178 | # We're on Windows 95 | ||
| 179 | ARCH = i386 | ||
| 180 | CPU = i386 | ||
| 181 | CONFIG_H = config.nt | ||
| 182 | OS_TYPE = windows95 | ||
| 183 | endif | ||
| 184 | |||
| 185 | AR = ar -rsc | ||
| 186 | AR_OUT = | ||
| 187 | CC = gcc | ||
| 188 | CC_OUT = -o$(SPACE) | ||
| 189 | LINK = gcc | ||
| 190 | LINK_OUT = -o$(SPACE) | ||
| 191 | RC = windres -O coff | ||
| 192 | RC_OUT = -o$(SPACE) | ||
| 193 | RC_INCLUDE = --include-dir$(SPACE) | ||
| 194 | |||
| 195 | libc = | ||
| 196 | baselibs = | ||
| 197 | O = o | ||
| 198 | A = a | ||
| 199 | |||
| 200 | BASE_LIBS = $(libc) $(baselibs) | ||
| 201 | |||
| 202 | ADVAPI32 = -ladvapi32 | ||
| 203 | COMCTL32 = -lcomctl32 | ||
| 204 | COMDLG32 = -lcomdlg32 | ||
| 205 | GDI32 = -lgdi32 | ||
| 206 | MPR = -lmpr | ||
| 207 | SHELL32 = -lshell32 | ||
| 208 | USER32 = -luser32 | ||
| 209 | WSOCK32 = -lwsock32 | ||
| 210 | WINMM = -lwinmm | ||
| 211 | WINSPOOL = -lwinspool | ||
| 212 | OLE32 = -lole32 | ||
| 213 | UNISCRIBE = -lusp10 | ||
| 214 | UUID = -luuid | ||
| 215 | |||
| 216 | # Used by src/makefile.w32-in, since Nmake barfs on $(func SOMETHING) | ||
| 217 | OBJ0_c = $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ0)) | ||
| 218 | OBJ1_c = $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ1)) | ||
| 219 | OBJ2_c = $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ2)) | ||
| 220 | |||
| 221 | ifdef NOOPT | ||
| 222 | DEBUG_CFLAGS = -DEMACSDEBUG -fno-crossjumping -std=gnu99 | ||
| 223 | else | ||
| 224 | DEBUG_CFLAGS = | ||
| 225 | endif | ||
| 226 | |||
| 227 | MWINDOWS = -mwindows | ||
| 228 | |||
| 229 | CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) | ||
| 230 | ESC_CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(PROFILE_CFLAGS) $(ESC_USER_CFLAGS) $(LOCAL_FLAGS) | ||
| 231 | EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 | ||
| 232 | |||
| 233 | ifdef PROFILE | ||
| 234 | PROFILE_CFLAGS = -pg | ||
| 235 | PROFILE_LDFLAGS = -pg | ||
| 236 | else | ||
| 237 | PROFILE_CFLAGS = | ||
| 238 | PROFILE_LDFLAGS = | ||
| 239 | endif | ||
| 240 | |||
| 241 | |||
| 242 | # see comments in allocate_heap in w32heap.c before changing any of the | ||
| 243 | # -stack, -heap, or -image-base settings. | ||
| 244 | TEMACS_EXTRA_LINK = -Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 $(SUBSYSTEM_CONSOLE) -Wl,-entry,__start -Wl,-Map,$(BLD)/temacs.map | ||
| 245 | |||
| 246 | ifdef NOOPT | ||
| 247 | OBJDIR = oo | ||
| 248 | else | ||
| 249 | OBJDIR = oo-spd | ||
| 250 | endif | ||
| 251 | $(OBJDIR):; -mkdir "$(OBJDIR)" | ||
| 252 | BLD = $(OBJDIR)/$(ARCH) | ||
| 253 | stamp_BLD: $(OBJDIR) | ||
| 254 | -mkdir "$(BLD)" | ||
| 255 | echo $(BLD) > $@ | ||
| 256 | |||
| 257 | COMPILER_TEMP_FILES = | ||
| 258 | |||
| 259 | CP = cp -f | ||
| 260 | CP_DIR = cp -rf | ||
| 261 | DEL = rm | ||
| 262 | DEL_TREE = rm -r | ||
| 263 | |||
| 264 | DIRNAME = $(notdir $(CURDIR)) | ||
| 265 | |||
| 266 | ifdef USING_SH | ||
| 267 | |||
| 268 | IFNOTSAMEDIR = if [ ! -s ../$(DIRNAME)_same-dir.tst ] ; then | ||
| 269 | FOREACH = for f in | ||
| 270 | FORVAR = $${f} | ||
| 271 | FORDO = ; do | ||
| 272 | ENDFOR = ; done | ||
| 273 | ENDIF = ; fi | ||
| 274 | ARGQUOTE = ' | ||
| 275 | ifdef NEW_CYGWIN | ||
| 276 | DQUOTE = " | ||
| 277 | else | ||
| 278 | DQUOTE = "" | ||
| 279 | endif | ||
| 280 | |||
| 281 | else | ||
| 282 | |||
| 283 | IFNOTSAMEDIR = if not exist ../$(DIRNAME)_same-dir.tst | ||
| 284 | FOREACH = for %%f in ( | ||
| 285 | FORVAR = %%f | ||
| 286 | FORDO = ) do | ||
| 287 | ENDFOR = | ||
| 288 | ENDIF = | ||
| 289 | ARGQUOTE = " | ||
| 290 | DQUOTE = \" | ||
| 291 | |||
| 292 | endif | ||
| 293 | |||
| 294 | ifdef NODEBUG | ||
| 295 | DEBUG_FLAG = | ||
| 296 | DEBUG_LINK = | ||
| 297 | else | ||
| 298 | DEBUG_FLAG = $(DEBUG_INFO) | ||
| 299 | DEBUG_LINK = $(DEBUG_INFO) | ||
| 300 | endif | ||
| 301 | |||
| 302 | ifdef NOCYGWIN | ||
| 303 | NOCYGWIN = -mno-cygwin | ||
| 304 | endif | ||
| 305 | |||
| 306 | ifdef USER_LIBS | ||
| 307 | USER_LIBS := $(patsubst %,-l%,$(USER_LIBS)) | ||
| 308 | endif | ||
| 309 | |||
| 310 | PRAGMA_SYSTEM_HEADER = \#pragma GCC system_header | ||
| 311 | |||
| 312 | ifeq "$(ARCH)" "i386" | ||
| 313 | ifdef NOOPT | ||
| 314 | ARCH_CFLAGS = -c $(DEBUG_FLAG) $(NOCYGWIN) | ||
| 315 | else | ||
| 316 | ARCH_CFLAGS = -c $(DEBUG_FLAG) $(NOCYGWIN) $(MCPU_FLAG) -O2 \ | ||
| 317 | # -fbuiltin \ | ||
| 318 | # -finline-functions \ | ||
| 319 | # -fomit-frame-pointer | ||
| 320 | endif | ||
| 321 | ARCH_LDFLAGS = $(SYS_LDFLAGS) | ||
| 322 | else | ||
| 323 | ERROR Unknown architecture type "$(ARCH)". | ||
| 324 | endif | ||
| 325 | |||
| 326 | LINK_FLAGS = $(ARCH_LDFLAGS) $(DEBUG_LINK) $(PROFILE_LDFLAGS) $(NOCYGWIN) $(USER_LDFLAGS) | ||
| 327 | |||
| 328 | export XMFLAGS | ||
| 329 | |||
| 330 | .DEFAULT: | ||
| 331 | |||
| 332 | $(BLD)/%.o: %.c | ||
| 333 | $(CC) $(CFLAGS) $(CC_OUT)$@ $< | ||
diff --git a/nt/makefile.w32-in b/nt/makefile.w32-in deleted file mode 100644 index ff2bf27cde8..00000000000 --- a/nt/makefile.w32-in +++ /dev/null | |||
| @@ -1,465 +0,0 @@ | |||
| 1 | # -*- Makefile -*- for GNU Emacs on the Microsoft Windows API. | ||
| 2 | # Copyright (C) 2000-2015 Free Software Foundation, Inc. | ||
| 3 | # | ||
| 4 | # Top level makefile for building GNU Emacs on Windows NT | ||
| 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 | # FIXME: This file uses DOS EOLs. Convert to Unix after 22.1 is out | ||
| 23 | # (and remove or replace this comment). | ||
| 24 | |||
| 25 | VERSION = 25.0.50 | ||
| 26 | |||
| 27 | TMP_DIST_DIR = emacs-$(VERSION) | ||
| 28 | |||
| 29 | TRES = $(BLD)/emacs.res | ||
| 30 | CLIENTRES = $(BLD)/emacsclient.res | ||
| 31 | |||
| 32 | LOCAL_FLAGS = -DOLD_PATHS=1 | ||
| 33 | |||
| 34 | XMFLAGS = | ||
| 35 | |||
| 36 | ALL = $(BLD)/addpm.exe $(BLD)/ddeclient.exe $(BLD)/runemacs.exe \ | ||
| 37 | $(BLD)/cmdproxy.exe $(BLD)/addsection.exe $(BLD)/preprep.exe | ||
| 38 | |||
| 39 | $(BLD)/addpm.exe: $(BLD)/addpm.$(O) | ||
| 40 | $(LINK) $(LINK_OUT)$@ \ | ||
| 41 | $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) \ | ||
| 42 | $(USER32) $(OLE32) $(UUID) $(SHELL32) | ||
| 43 | |||
| 44 | $(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O) | ||
| 45 | $(LINK) $(LINK_OUT)$@ \ | ||
| 46 | $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | ||
| 47 | |||
| 48 | $(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O) | ||
| 49 | $(LINK) $(LINK_OUT)$@ \ | ||
| 50 | $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) | ||
| 51 | |||
| 52 | $(BLD)/addsection.exe: $(BLD)/addsection.$(O) | ||
| 53 | $(LINK) $(LINK_OUT)$@ \ | ||
| 54 | $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) | ||
| 55 | |||
| 56 | $(BLD)/preprep.exe: $(BLD)/preprep.$(O) | ||
| 57 | $(LINK) $(LINK_OUT)$@ \ | ||
| 58 | $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) | ||
| 59 | |||
| 60 | # | ||
| 61 | # The resource file. NT 3.10 requires the use of cvtres; even though | ||
| 62 | # it is not necessary on later versions, it is still ok to use it. | ||
| 63 | # | ||
| 64 | $(TRES): emacs.rc icons/emacs.ico $(EMACS_MANIFEST) stamp_BLD | ||
| 65 | $(RC) $(RC_OUT)$(TRES) emacs.rc | ||
| 66 | |||
| 67 | $(CLIENTRES): emacsclient.rc stamp_BLD | ||
| 68 | $(RC) $(RC_OUT)$(CLIENTRES) emacsclient.rc | ||
| 69 | |||
| 70 | $(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES) | ||
| 71 | $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \ | ||
| 72 | $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | ||
| 73 | |||
| 74 | which-sh: | ||
| 75 | @echo Using $(THE_SHELL) as shell. | ||
| 76 | |||
| 77 | # These depend on stamp_BLD to make sure the $(BLD) directory is created | ||
| 78 | # before the compilation begins, even if Make runs several commands | ||
| 79 | # in parallel under "make -j". | ||
| 80 | # | ||
| 81 | $(BLD)/addpm.$(O) $(BLD)/ddeclient.$(O) $(BLD)/runemacs.$(O) $(BLD)/cmdproxy.$(O) $(BLD)/addsection.$(O) $(BLD)/preprep.$(O): stamp_BLD | ||
| 82 | |||
| 83 | # | ||
| 84 | # Build emacs | ||
| 85 | # | ||
| 86 | all: which-sh $(ALL) $(CLIENTRES) all-other-dirs-$(MAKETYPE) | ||
| 87 | |||
| 88 | all-other-dirs-$(MAKETYPE): maybe-bootstrap | ||
| 89 | |||
| 90 | all-other-dirs-nmake: $(BLD)/addsection.exe | ||
| 91 | cd ..\lib | ||
| 92 | $(MAKE) $(MFLAGS) all | ||
| 93 | cd ..\lib-src | ||
| 94 | $(MAKE) $(MFLAGS) all | ||
| 95 | cd ..\src | ||
| 96 | $(MAKE) $(MFLAGS) all | ||
| 97 | cd ..\lisp | ||
| 98 | $(MAKE) $(MFLAGS) all | ||
| 99 | cd ..\leim | ||
| 100 | $(MAKE) $(MFLAGS) all | ||
| 101 | cd ..\nt | ||
| 102 | |||
| 103 | all-other-dirs-gmake: $(BLD)/addsection.exe | ||
| 104 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib all | ||
| 105 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src all | ||
| 106 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src all | ||
| 107 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp all | ||
| 108 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim all | ||
| 109 | |||
| 110 | recompile: recompile-$(MAKETYPE) | ||
| 111 | |||
| 112 | recompile-nmake: | ||
| 113 | cd ..\lisp | ||
| 114 | $(MAKE) $(MFLAGS) recompile | ||
| 115 | cd ..\nt | ||
| 116 | |||
| 117 | recompile-gmake: | ||
| 118 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp recompile | ||
| 119 | |||
| 120 | #### Bootstrapping. | ||
| 121 | |||
| 122 | ### This is meant for Emacs maintainers only. It first cleans the | ||
| 123 | ### lisp subdirectory, removing all compiled Lisp files. Then a | ||
| 124 | ### special emacs executable is built from Lisp sources, which is then | ||
| 125 | ### used to compile Lisp files. The last step is a "normal" make. | ||
| 126 | |||
| 127 | maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE) | ||
| 128 | |||
| 129 | # dummy target to force other targets to be evaluated. | ||
| 130 | doit: | ||
| 131 | |||
| 132 | maybe-bootstrap-CMD: doit | ||
| 133 | @echo . | ||
| 134 | @if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing. You should either | ||
| 135 | @if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow | ||
| 136 | @echo . | ||
| 137 | @if not EXIST ..\lisp\abbrev.elc exit -1 | ||
| 138 | |||
| 139 | maybe-bootstrap-SH: doit | ||
| 140 | @if [ ! -f ../lisp/abbrev.elc ] ; then \ | ||
| 141 | echo; \ | ||
| 142 | echo "Essential Lisp files seem to be missing. You should either"; \ | ||
| 143 | echo "do \`make bootstrap' or create \`lisp/abbrev.elc' somehow."; \ | ||
| 144 | echo; \ | ||
| 145 | exit -1; \ | ||
| 146 | fi | ||
| 147 | |||
| 148 | # Bootstrap depends on cmdproxy because some Lisp functions | ||
| 149 | # loaded during bootstrap may need to run shell commands. | ||
| 150 | bootstrap: $(BLD)/addsection.exe $(BLD)/cmdproxy.exe bootstrap-$(MAKETYPE) | ||
| 151 | $(MAKE) $(MFLAGS) $(XMFLAGS) all | ||
| 152 | |||
| 153 | bootstrap-nmake: $(BLD)/addsection.exe $(BLD)/cmdproxy.exe | ||
| 154 | cd ..\lisp | ||
| 155 | $(MAKE) $(MFLAGS) bootstrap-clean | ||
| 156 | cd ..\src | ||
| 157 | $(MAKE) $(MFLAGS) clean | ||
| 158 | cd ..\lib-src | ||
| 159 | $(MAKE) $(MFLAGS) clean make-docfile | ||
| 160 | cd ..\lib | ||
| 161 | $(MAKE) $(MFLAGS) clean all | ||
| 162 | cd ..\src | ||
| 163 | $(MAKE) $(MFLAGS) bootstrap | ||
| 164 | $(MAKE) $(MFLAGS) bootstrap-clean | ||
| 165 | cd ..\nt | ||
| 166 | $(CP) $(BLD)/cmdproxy.exe ../bin | ||
| 167 | cd ..\lisp | ||
| 168 | $(MAKE) $(MFLAGS) SHELL=$(SHELLTYPE) bootstrap | ||
| 169 | cd ..\lib-src | ||
| 170 | $(MAKE) $(MFLAGS) DOC | ||
| 171 | cd ..\nt | ||
| 172 | |||
| 173 | bootstrap-gmake: $(BLD)/addsection.exe $(BLD)/cmdproxy.exe | ||
| 174 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean | ||
| 175 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean | ||
| 176 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean | ||
| 177 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src make-docfile | ||
| 178 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean | ||
| 179 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib all | ||
| 180 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap | ||
| 181 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean | ||
| 182 | $(CP) $(BLD)/cmdproxy.exe ../bin | ||
| 183 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap | ||
| 184 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src DOC | ||
| 185 | |||
| 186 | bootstrap-clean: bootstrap-clean-$(MAKETYPE) | ||
| 187 | |||
| 188 | bootstrap-clean-nmake: | ||
| 189 | cd ..\src | ||
| 190 | $(MAKE) $(MFLAGS) bootstrap-clean | ||
| 191 | cd ..\lib | ||
| 192 | $(MAKE) $(MFLAGS) clean | ||
| 193 | cd ..\lisp | ||
| 194 | $(MAKE) $(MFLAGS) bootstrap-clean | ||
| 195 | |||
| 196 | bootstrap-clean-gmake: | ||
| 197 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean | ||
| 198 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean | ||
| 199 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean | ||
| 200 | |||
| 201 | $(INSTALL_DIR): | ||
| 202 | - mkdir "$(INSTALL_DIR)" | ||
| 203 | |||
| 204 | $(INSTALL_DIR)/bin: $(INSTALL_DIR) | ||
| 205 | - mkdir "$(INSTALL_DIR)/bin" | ||
| 206 | |||
| 207 | # | ||
| 208 | # Build and install emacs in INSTALL_DIR | ||
| 209 | # | ||
| 210 | .PHONY: install-bin install-shortcuts | ||
| 211 | |||
| 212 | install: install-bin install-shortcuts | ||
| 213 | |||
| 214 | install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) | ||
| 215 | - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin | ||
| 216 | - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin | ||
| 217 | - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin | ||
| 218 | - $(CP) README.W32 $(INSTALL_DIR) | ||
| 219 | - $(DEL) ../$(DIRNAME)_same-dir.tst | ||
| 220 | - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst | ||
| 221 | echo SameDirTest > "$(INSTALL_DIR)/$(DIRNAME)_same-dir.tst" | ||
| 222 | - mkdir "$(INSTALL_DIR)/etc" | ||
| 223 | - mkdir "$(INSTALL_DIR)/info" | ||
| 224 | - mkdir "$(INSTALL_DIR)/lock" | ||
| 225 | - mkdir "$(INSTALL_DIR)/data" | ||
| 226 | - mkdir "$(INSTALL_DIR)/site-lisp" | ||
| 227 | - mkdir "$(INSTALL_DIR)/etc/icons" | ||
| 228 | $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF) | ||
| 229 | $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF) | ||
| 230 | - $(CP_DIR) icons $(INSTALL_DIR)/etc | ||
| 231 | $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF) | ||
| 232 | $(IFNOTSAMEDIR) $(CP) ../COPYING $(INSTALL_DIR) $(ENDIF) | ||
| 233 | - $(CP) ../COPYING $(INSTALL_DIR)/bin | ||
| 234 | - $(DEL) ../$(DIRNAME)_same-dir.tst | ||
| 235 | - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst | ||
| 236 | |||
| 237 | install-other-dirs-nmake: all | ||
| 238 | cd ..\lib-src | ||
| 239 | $(MAKE) $(MFLAGS) install | ||
| 240 | cd ..\src | ||
| 241 | $(MAKE) $(MFLAGS) install | ||
| 242 | cd ..\lisp | ||
| 243 | $(MAKE) $(MFLAGS) install | ||
| 244 | cd ..\leim | ||
| 245 | $(MAKE) $(MFLAGS) install | ||
| 246 | cd ..\nt | ||
| 247 | |||
| 248 | install-other-dirs-gmake: all | ||
| 249 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install | ||
| 250 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install | ||
| 251 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install | ||
| 252 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install | ||
| 253 | |||
| 254 | install-addpm: $(INSTALL_DIR)/bin $(BLD)/addpm.exe | ||
| 255 | - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin | ||
| 256 | |||
| 257 | install-shortcuts: install-addpm | ||
| 258 | "$(INSTALL_DIR)/bin/addpm" -q | ||
| 259 | |||
| 260 | maybe-copy-distfiles: maybe-copy-distfiles-$(SHELLTYPE) | ||
| 261 | |||
| 262 | maybe-copy-distfiles-CMD: create-tmp-dist-dir doit | ||
| 263 | @if not $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE) == "" $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin | ||
| 264 | |||
| 265 | maybe-copy-distfiles-SH: create-tmp-dist-dir doit | ||
| 266 | @if [ ! $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE) == "" ] ; then \ | ||
| 267 | $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin ; \ | ||
| 268 | fi | ||
| 269 | |||
| 270 | create-tmp-dist-dir: | ||
| 271 | mkdir "$(TMP_DIST_DIR)" | ||
| 272 | # Also create bin directory for dist files. | ||
| 273 | mkdir "$(TMP_DIST_DIR)/bin" | ||
| 274 | |||
| 275 | dist: install-bin install-addpm maybe-copy-distfiles | ||
| 276 | $(CP) "$(INSTALL_DIR)/BUGS" $(TMP_DIST_DIR) | ||
| 277 | $(CP) "$(INSTALL_DIR)/COPYING" $(TMP_DIST_DIR) | ||
| 278 | $(CP) "$(INSTALL_DIR)/README" $(TMP_DIST_DIR) | ||
| 279 | $(CP) "$(INSTALL_DIR)/README.W32" $(TMP_DIST_DIR) | ||
| 280 | $(CP_DIR) "$(INSTALL_DIR)/bin" $(TMP_DIST_DIR) | ||
| 281 | $(CP_DIR) "$(INSTALL_DIR)/etc" $(TMP_DIST_DIR) | ||
| 282 | $(CP_DIR) "$(INSTALL_DIR)/info" $(TMP_DIST_DIR) | ||
| 283 | $(CP_DIR) "$(INSTALL_DIR)/lisp" $(TMP_DIST_DIR) | ||
| 284 | $(CP_DIR) "$(INSTALL_DIR)/leim" $(TMP_DIST_DIR) | ||
| 285 | $(CP_DIR) "$(INSTALL_DIR)/site-lisp" $(TMP_DIST_DIR) | ||
| 286 | $(COMSPEC)$(ComSpec) /c $(ARGQUOTE)zipdist.bat $(VERSION)$(ARGQUOTE) | ||
| 287 | $(DEL_TREE) $(TMP_DIST_DIR) | ||
| 288 | |||
| 289 | force-info: | ||
| 290 | # Note that doc/emacs/makefile knows how to | ||
| 291 | # put the info files in $(infodir), | ||
| 292 | # so we can do ok running make in the build dir. | ||
| 293 | info: force-info info-$(MAKETYPE) | ||
| 294 | |||
| 295 | info-nmake: | ||
| 296 | cd ..\doc\emacs | ||
| 297 | $(MAKE) $(MFLAGS) info | ||
| 298 | cd ..\misc | ||
| 299 | $(MAKE) $(MFLAGS) info | ||
| 300 | cd ..\lispref | ||
| 301 | $(MAKE) $(MFLAGS) info | ||
| 302 | cd ..\lispintro | ||
| 303 | $(MAKE) $(MFLAGS) info | ||
| 304 | cd $(MAKEDIR) | ||
| 305 | |||
| 306 | info-gmake: emacs misc lispref lispintro | ||
| 307 | |||
| 308 | emacs misc lispref lispintro: | ||
| 309 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/$@ info | ||
| 310 | |||
| 311 | # | ||
| 312 | # Maintenance | ||
| 313 | # | ||
| 314 | clean: clean-other-dirs-$(MAKETYPE) | ||
| 315 | - $(DEL) $(COMPILER_TEMP_FILES) | ||
| 316 | - $(DEL_TREE) $(OBJDIR) | ||
| 317 | - $(DEL) stamp_BLD | ||
| 318 | - $(DEL) ../etc/DOC | ||
| 319 | |||
| 320 | clean-other-dirs-nmake: | ||
| 321 | cd ..\lib | ||
| 322 | $(MAKE) $(MFLAGS) clean | ||
| 323 | cd ..\lib-src | ||
| 324 | $(MAKE) $(MFLAGS) clean | ||
| 325 | cd ..\src | ||
| 326 | $(MAKE) $(MFLAGS) clean | ||
| 327 | cd ..\doc\lispintro | ||
| 328 | $(MAKE) $(MFLAGS) clean | ||
| 329 | cd ..\lispref | ||
| 330 | $(MAKE) $(MFLAGS) clean | ||
| 331 | cd ..\..\leim | ||
| 332 | $(MAKE) $(MFLAGS) clean | ||
| 333 | cd ..\doc\emacs | ||
| 334 | $(MAKE) $(MFLAGS) clean | ||
| 335 | cd ..\misc | ||
| 336 | $(MAKE) $(MFLAGS) clean | ||
| 337 | cd ..\..\nt | ||
| 338 | |||
| 339 | clean-other-dirs-gmake: | ||
| 340 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean | ||
| 341 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean | ||
| 342 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean | ||
| 343 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim clean | ||
| 344 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs clean | ||
| 345 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc clean | ||
| 346 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro clean | ||
| 347 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref clean | ||
| 348 | |||
| 349 | cleanall-other-dirs-nmake: | ||
| 350 | cd ..\lib | ||
| 351 | $(MAKE) $(MFLAGS) cleanall | ||
| 352 | cd ..\lib-src | ||
| 353 | $(MAKE) $(MFLAGS) cleanall | ||
| 354 | cd ..\src | ||
| 355 | $(MAKE) $(MFLAGS) cleanall | ||
| 356 | cd ..\nt | ||
| 357 | |||
| 358 | cleanall-other-dirs-gmake: | ||
| 359 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib cleanall | ||
| 360 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src cleanall | ||
| 361 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src cleanall | ||
| 362 | |||
| 363 | # We used to delete *~ here, but that might inadvertently remove | ||
| 364 | # precious files if it happens to match their short 8+3 aliases. | ||
| 365 | cleanall: clean cleanall-other-dirs-$(MAKETYPE) | ||
| 366 | - $(DEL_TREE) obj | ||
| 367 | - $(DEL_TREE) obj-spd | ||
| 368 | - $(DEL_TREE) oo | ||
| 369 | - $(DEL_TREE) oo-spd | ||
| 370 | |||
| 371 | top-distclean: | ||
| 372 | - $(DEL) $(COMPILER_TEMP_FILES) | ||
| 373 | - $(DEL_TREE) obj | ||
| 374 | - $(DEL_TREE) obj-spd | ||
| 375 | - $(DEL_TREE) oo | ||
| 376 | - $(DEL_TREE) oo-spd | ||
| 377 | - $(DEL) stamp_BLD | ||
| 378 | - $(DEL) ../etc/DOC | ||
| 379 | - $(DEL) config.log Makefile | ||
| 380 | - $(DEL) ../README.W32 | ||
| 381 | |||
| 382 | distclean: distclean-other-dirs-$(MAKETYPE) top-distclean | ||
| 383 | |||
| 384 | distclean-other-dirs-nmake: | ||
| 385 | cd ..\lib | ||
| 386 | $(MAKE) $(MFLAGS) distclean | ||
| 387 | cd ..\lib-src | ||
| 388 | $(MAKE) $(MFLAGS) distclean | ||
| 389 | cd ..\src | ||
| 390 | $(MAKE) $(MFLAGS) distclean | ||
| 391 | cd ..\lisp | ||
| 392 | $(MAKE) $(MFLAGS) distclean | ||
| 393 | cd ..\leim | ||
| 394 | $(MAKE) $(MFLAGS) distclean | ||
| 395 | cd ..\doc\emacs | ||
| 396 | $(MAKE) $(MFLAGS) distclean | ||
| 397 | cd ..\misc | ||
| 398 | $(MAKE) $(MFLAGS) distclean | ||
| 399 | cd ..\lispintro | ||
| 400 | $(MAKE) $(MFLAGS) distclean | ||
| 401 | cd ..\lispref | ||
| 402 | $(MAKE) $(MFLAGS) distclean | ||
| 403 | cd ..\..\nt | ||
| 404 | |||
| 405 | distclean-other-dirs-gmake: | ||
| 406 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib distclean | ||
| 407 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src distclean | ||
| 408 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src distclean | ||
| 409 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp distclean | ||
| 410 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim distclean | ||
| 411 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs distclean | ||
| 412 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc distclean | ||
| 413 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro distclean | ||
| 414 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref distclean | ||
| 415 | |||
| 416 | maintainer-clean: maintainer-clean-other-dirs-$(MAKETYPE) top-distclean | ||
| 417 | |||
| 418 | maintainer-clean-other-dirs-nmake: | ||
| 419 | cd ..\lib | ||
| 420 | $(MAKE) $(MFLAGS) maintainer-clean | ||
| 421 | cd ..\lib-src | ||
| 422 | $(MAKE) $(MFLAGS) maintainer-clean | ||
| 423 | cd ..\src | ||
| 424 | $(MAKE) $(MFLAGS) maintainer-clean | ||
| 425 | cd ..\lisp | ||
| 426 | $(MAKE) $(MFLAGS) maintainer-clean | ||
| 427 | cd ..\leim | ||
| 428 | $(MAKE) $(MFLAGS) maintainer-clean | ||
| 429 | cd ..\doc\emacs | ||
| 430 | $(MAKE) $(MFLAGS) maintainer-clean | ||
| 431 | cd ..\misc | ||
| 432 | $(MAKE) $(MFLAGS) maintainer-clean | ||
| 433 | cd ..\lispintro | ||
| 434 | $(MAKE) $(MFLAGS) maintainer-clean | ||
| 435 | cd ..\lispref | ||
| 436 | $(MAKE) $(MFLAGS) maintainer-clean | ||
| 437 | cd ..\..\nt | ||
| 438 | |||
| 439 | maintainer-clean-other-dirs-gmake: | ||
| 440 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib maintainer-clean | ||
| 441 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src maintainer-clean | ||
| 442 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src maintainer-clean | ||
| 443 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp maintainer-clean | ||
| 444 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim maintainer-clean | ||
| 445 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs maintainer-clean | ||
| 446 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc maintainer-clean | ||
| 447 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro maintainer-clean | ||
| 448 | $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref maintainer-clean | ||
| 449 | |||
| 450 | realclean: cleanall | ||
| 451 | - $(DEL_TREE) ../bin | ||
| 452 | |||
| 453 | TAGS: TAGS-$(MAKETYPE) | ||
| 454 | |||
| 455 | frc: | ||
| 456 | TAGS-gmake: frc | ||
| 457 | ../lib-src/$(BLD)/etags $(CURDIR)/*.c | ||
| 458 | $(MAKE) $(MFLAGS) -C ../src TAGS TAGS-LISP | ||
| 459 | $(MAKE) $(MFLAGS) -C ../lib-src TAGS | ||
| 460 | $(MAKE) $(MFLAGS) -C ../lib TAGS | ||
| 461 | |||
| 462 | TAGS-nmake: | ||
| 463 | echo This target is not supported with NMake | ||
| 464 | |||
| 465 | .PHONY: frc | ||
diff --git a/nt/multi-install-info.bat b/nt/multi-install-info.bat deleted file mode 100644 index f69ee485c11..00000000000 --- a/nt/multi-install-info.bat +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | @echo off | ||
| 2 | |||
| 3 | rem Hack to run install-info with multiple info files on the command | ||
| 4 | rem line on the Windows platform. | ||
| 5 | |||
| 6 | rem Copyright (C) 2003-2015 Free Software Foundation, Inc. | ||
| 7 | |||
| 8 | rem This file is part of GNU Emacs. | ||
| 9 | |||
| 10 | rem GNU Emacs is free software: you can redistribute it and/or modify | ||
| 11 | rem it under the terms of the GNU General Public License as published by | ||
| 12 | rem the Free Software Foundation, either version 3 of the License, or | ||
| 13 | rem (at your option) any later version. | ||
| 14 | |||
| 15 | rem GNU Emacs is distributed in the hope that it will be useful, | ||
| 16 | rem but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | rem GNU General Public License for more details. | ||
| 19 | |||
| 20 | rem You should have received a copy of the GNU General Public License | ||
| 21 | rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/. | ||
| 22 | |||
| 23 | |||
| 24 | rem Usage: | ||
| 25 | rem multi-install-info <switch passed to install-info> FILE1 FILE2 ... | ||
| 26 | rem | ||
| 27 | rem By Peter 'Luna' Runestig <peter@runestig.com> 2003 | ||
| 28 | |||
| 29 | set INSTALL_INFO=install-info | ||
| 30 | set II_SWITCH=%1=%2 | ||
| 31 | rem Eat the install-info switch: | ||
| 32 | shift | ||
| 33 | |||
| 34 | :Loop | ||
| 35 | shift | ||
| 36 | if .%1% == . goto EndLoop | ||
| 37 | %INSTALL_INFO% %II_SWITCH% %1 | ||
| 38 | goto Loop | ||
| 39 | :EndLoop | ||
| 40 | |||
diff --git a/nt/nmake.defs b/nt/nmake.defs deleted file mode 100644 index 5424b9d9125..00000000000 --- a/nt/nmake.defs +++ /dev/null | |||
| @@ -1,294 +0,0 @@ | |||
| 1 | # -*- Makefile -*- definition file for building GNU Emacs on Windows NT. | ||
| 2 | # Copyright (C) 2000-2015 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 3 of the License, or | ||
| 9 | # (at your option) 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. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | |||
| 20 | # Ensure 'all' is the default target | ||
| 21 | all: | ||
| 22 | |||
| 23 | THE_SHELL = $(COMSPEC) | ||
| 24 | SHELLTYPE=CMD | ||
| 25 | SWITCHCHAR=/ | ||
| 26 | |||
| 27 | MAKETYPE=nmake | ||
| 28 | |||
| 29 | CURDIR = $(MAKEDIR:\=/) | ||
| 30 | THISDIR = $(MAKEDIR) | ||
| 31 | DIRNAME = | ||
| 32 | |||
| 33 | ALL_DEPS = $** | ||
| 34 | |||
| 35 | SUBSYSTEM_WINDOWS=-subsystem:windows | ||
| 36 | SUBSYSTEM_CONSOLE=-subsystem:console | ||
| 37 | |||
| 38 | # INSTALL_DIR is the directory into which emacs will be installed. | ||
| 39 | # | ||
| 40 | !ifndef INSTALL_DIR | ||
| 41 | INSTALL_DIR = $(CURDIR)/.. | ||
| 42 | !endif | ||
| 43 | |||
| 44 | # Ensure EMACSLOADPATH is defined in the environment. | ||
| 45 | # | ||
| 46 | !if [set EMACSLOADPATH=foo] | ||
| 47 | !endif | ||
| 48 | |||
| 49 | # Allow detection of builds with MSVC 5 or later, so we can | ||
| 50 | # speed up compiles (see rule at end). | ||
| 51 | # | ||
| 52 | _NMAKE_VER_5=162 | ||
| 53 | _NMAKE_VER_4=0 | ||
| 54 | |||
| 55 | !IFNDEF _NMAKE_VER | ||
| 56 | _NMAKE_VER=$(_NMAKE_VER_4) | ||
| 57 | !ENDIF | ||
| 58 | |||
| 59 | # Check that the INCLUDE and LIB environment variables are set. | ||
| 60 | # | ||
| 61 | !ifndef INCLUDE | ||
| 62 | !error The INCLUDE environment variable needs to be set. | ||
| 63 | !endif | ||
| 64 | !ifndef LIB | ||
| 65 | !error The LIB environment variable needs to be set. | ||
| 66 | !endif | ||
| 67 | |||
| 68 | # Determine the architecture we're running on. | ||
| 69 | # Define ARCH for our purposes; | ||
| 70 | # Define CPU for use by ntwin32.mak; | ||
| 71 | # Define CONFIG_H to the appropriate config.h for the system; | ||
| 72 | # | ||
| 73 | !ifdef PROCESSOR_ARCHITECTURE | ||
| 74 | # We're on Windows NT | ||
| 75 | CPU = $(PROCESSOR_ARCHITECTURE) | ||
| 76 | CONFIG_H = config.nt | ||
| 77 | OS_TYPE = windowsnt | ||
| 78 | ! if "$(PROCESSOR_ARCHITECTURE)" == "x86" | ||
| 79 | ARCH = i386 | ||
| 80 | CPU = i386 | ||
| 81 | ! else | ||
| 82 | ! if "$(PROCESSOR_ARCHITECTURE)" == "MIPS" | ||
| 83 | ARCH = mips | ||
| 84 | ! else | ||
| 85 | ! if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA" | ||
| 86 | ARCH = alpha | ||
| 87 | ! else | ||
| 88 | ! if "$(PROCESSOR_ARCHITECTURE)" == "PPC" | ||
| 89 | ARCH = ppc | ||
| 90 | ! else | ||
| 91 | ! if "$(PROCESSOR_ARCHITECTURE)" == "AMD64" | ||
| 92 | ARCH = AMD64 | ||
| 93 | ! else | ||
| 94 | ! error Unknown architecture type "$(PROCESSOR_ARCHITECTURE)" | ||
| 95 | ! endif | ||
| 96 | ! endif | ||
| 97 | ! endif | ||
| 98 | ! endif | ||
| 99 | ! endif | ||
| 100 | !else | ||
| 101 | # We're on Windows 95 | ||
| 102 | ARCH = i386 | ||
| 103 | CPU = i386 | ||
| 104 | CONFIG_H = config.nt | ||
| 105 | OS_TYPE = windows95 | ||
| 106 | !endif | ||
| 107 | |||
| 108 | AR = lib | ||
| 109 | AR_OUT = -out: | ||
| 110 | CC = cl | ||
| 111 | CC_OUT = -Fo | ||
| 112 | LINK = link | ||
| 113 | LINK_OUT = -out: | ||
| 114 | RC = rc $(ARCH_RCFLAGS) | ||
| 115 | RC_OUT = -Fo | ||
| 116 | RC_INCLUDE = -i | ||
| 117 | |||
| 118 | USE_CRT_DLL = 1 | ||
| 119 | |||
| 120 | !if $(USE_CRT_DLL) | ||
| 121 | libc = msvcrt$(D).lib | ||
| 122 | EMACS_EXTRA_C_FLAGS= -D_DLL -D_MT -DUSE_CRT_DLL=1 | ||
| 123 | !else | ||
| 124 | libc = libcmt$(D).lib | ||
| 125 | EMACS_EXTRA_C_FLAGS= -D_MT | ||
| 126 | !endif | ||
| 127 | baselibs = | ||
| 128 | O = obj | ||
| 129 | A = lib | ||
| 130 | |||
| 131 | BASE_LIBS = $(libc) $(baselibs) oldnames.lib | ||
| 132 | |||
| 133 | ADVAPI32 = advapi32.lib | ||
| 134 | COMCTL32 = comctl32.lib | ||
| 135 | COMDLG32 = comdlg32.lib | ||
| 136 | GDI32 = gdi32.lib | ||
| 137 | MPR = mpr.lib | ||
| 138 | SHELL32 = shell32.lib | ||
| 139 | USER32 = user32.lib | ||
| 140 | WSOCK32 = wsock32.lib | ||
| 141 | WINMM = winmm.lib | ||
| 142 | WINSPOOL = winspool.lib | ||
| 143 | OLE32 = ole32.lib | ||
| 144 | UNISCRIBE = usp10.lib | ||
| 145 | UUID = uuid.lib | ||
| 146 | |||
| 147 | !ifdef NOOPT | ||
| 148 | DEBUG_CFLAGS = -DEMACSDEBUG | ||
| 149 | !else | ||
| 150 | DEBUG_CFLAGS = | ||
| 151 | !endif | ||
| 152 | |||
| 153 | MWINDOWS = -subsystem:windows -entry:mainCRTStartup | ||
| 154 | |||
| 155 | CFLAGS = -I. $(ARCH_CFLAGS) -D_CRT_SECURE_NO_WARNINGS \ | ||
| 156 | $(DEBUG_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) | ||
| 157 | ESC_CFLAGS = -I. $(ARCH_CFLAGS) -D_CRT_SECURE_NO_WARNINGS \ | ||
| 158 | $(DEBUG_CFLAGS) $(ESC_USER_CFLAGS) $(LOCAL_FLAGS) | ||
| 159 | |||
| 160 | #SYS_LDFLAGS = -nologo -release -incremental:no -version:3.10 -swaprun:cd -swaprun:net setargv.obj | ||
| 161 | SYS_LDFLAGS = -nologo -manifest -dynamicbase:no -incremental:no -version:3.10 -swaprun:cd -swaprun:net setargv.obj | ||
| 162 | |||
| 163 | # see comments in allocate_heap in w32heap.c before changing any of the | ||
| 164 | # -stack, -heap, or -base settings. | ||
| 165 | !if "$(ARCH)" == "i386" | ||
| 166 | TEMACS_EXTRA_LINK = -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -pdb:$(BLD)\temacs.pdb -machine:x86 $(SUBSYSTEM_CONSOLE) -entry:_start -map:$(BLD)\temacs.map $(EXTRA_LINK) | ||
| 167 | !elseif "$(ARCH)" == "AMD64" | ||
| 168 | TEMACS_EXTRA_LINK = -stack:0x00800000 -heap:0x00100000 -base:0x400000000 -pdb:$(BLD)\temacs.pdb -machine:x64 $(SUBSYSTEM_CONSOLE) -entry:_start -map:$(BLD)\temacs.map $(EXTRA_LINK) | ||
| 169 | !endif | ||
| 170 | |||
| 171 | !ifdef NOOPT | ||
| 172 | OBJDIR = obj | ||
| 173 | !else | ||
| 174 | OBJDIR = obj-spd | ||
| 175 | !endif | ||
| 176 | $(OBJDIR):; -mkdir $(OBJDIR) | ||
| 177 | BLD = $(OBJDIR)/$(ARCH) | ||
| 178 | stamp_BLD: $(OBJDIR) | ||
| 179 | -mkdir "$(BLD)" | ||
| 180 | echo $(BLD) > $@ | ||
| 181 | |||
| 182 | COMPILER_TEMP_FILES = *.pdb | ||
| 183 | |||
| 184 | CP = cp -f | ||
| 185 | CP_DIR = cp -rf | ||
| 186 | IFNOTSAMEDIR = if not exist ..\$(DIRNAME)_same-dir.tst | ||
| 187 | ENDIF = | ||
| 188 | FOREACH = for %%f in ( | ||
| 189 | FORVAR = %%f | ||
| 190 | FORDO = ) do | ||
| 191 | ENDFOR = | ||
| 192 | ARGQUOTE = " | ||
| 193 | # " | ||
| 194 | DQUOTE = \" | ||
| 195 | DEL = rm | ||
| 196 | DEL_TREE = rm -r | ||
| 197 | |||
| 198 | !ifdef NODEBUG | ||
| 199 | DEBUG_FLAG = | ||
| 200 | DEBUG_LINK = | ||
| 201 | D = | ||
| 202 | !else | ||
| 203 | DEBUG_FLAG = -Zi | ||
| 204 | DEBUG_LINK = -debug | ||
| 205 | D = d | ||
| 206 | !endif | ||
| 207 | |||
| 208 | # gcc-specific pragma (ignore for MSVC) | ||
| 209 | PRAGMA_SYSTEM_HEADER = | ||
| 210 | |||
| 211 | !if "$(ARCH)" == "i386" | ||
| 212 | !ifdef NOOPT | ||
| 213 | #ARCH_CFLAGS = -nologo -c -Zel -W2 -H63 -Od -G3d -Zp8 $(DEBUG_FLAG) | ||
| 214 | ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zl -Zp8 -W2 -Od -Gd $(DEBUG_FLAG) | ||
| 215 | !else | ||
| 216 | #ARCH_CFLAGS = -nologo -c -Zel -W2 -H63 -Oxsb2 -Oy- -G6dF -Zp8 $(DEBUG_FLAG) | ||
| 217 | ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zl -Zp8 -W2 -Oi -Ot -Oy- -Ob2 -GF -Gy -Gd $(DEBUG_FLAG) | ||
| 218 | !endif | ||
| 219 | ARCH_LDFLAGS = $(SYS_LDFLAGS) | ||
| 220 | EMACS_HEAPSIZE = 27 | ||
| 221 | EMACS_PURESIZE = 5000000 | ||
| 222 | EMACS_MANIFEST = emacs-x86.manifest | ||
| 223 | |||
| 224 | !else | ||
| 225 | !if "$(ARCH)" == "mips" | ||
| 226 | ARCH_CFLAGS = -D_MIPS_=1 -c -W2 -Zi -Od -Gt0 | ||
| 227 | ARCH_LDFLAGS = $(SYS_LDFLAGS) | ||
| 228 | EMACS_HEAPSIZE = 27 | ||
| 229 | EMACS_PURESIZE = 5000000 | ||
| 230 | EMACS_MANIFEST = emacs-mips.manifest | ||
| 231 | |||
| 232 | !else | ||
| 233 | !if "$(ARCH)" == "alpha" | ||
| 234 | !if "$(BUILD_TYPE)" == "spd" | ||
| 235 | ARCH_CFLAGS = -D_ALPHA_=1 -c -Ze -Zi -W2 -Od -D__stdcall= -D__cdecl= | ||
| 236 | !else | ||
| 237 | ARCH_CFLAGS = -D_ALPHA_=1 -c -Ze -Zi -W2 -O1 -D__stdcall= -D__cdecl= | ||
| 238 | !endif | ||
| 239 | ARCH_LDFLAGS = $(SYS_LDFLAGS) | ||
| 240 | EMACS_HEAPSIZE = 27 | ||
| 241 | EMACS_PURESIZE = 5000000 | ||
| 242 | EMACS_MANIFEST = emacs-alpha.manifest | ||
| 243 | |||
| 244 | !else | ||
| 245 | !if "$(ARCH)" == "ppc" | ||
| 246 | # These flags are a guess...if they don't work, please send me mail. | ||
| 247 | ARCH_LDFLAGS = $(SYS_LDFLAGS) | ||
| 248 | EMACS_HEAPSIZE = 27 | ||
| 249 | EMACS_PURESIZE = 5000000 | ||
| 250 | EMACS_MANIFEST = emacs-ppc.manifest | ||
| 251 | |||
| 252 | !else | ||
| 253 | !if "$(ARCH)" == "AMD64" | ||
| 254 | !ifdef NOOPT | ||
| 255 | ARCH_CFLAGS = -nologo -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 -c -Zl -Zp8 -W2 -Od -Gd -Wp64 $(DEBUG_FLAG) | ||
| 256 | !else | ||
| 257 | ARCH_CFLAGS = -nologo -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 -c -Zl -Zp8 -W2 -O2x -GF -Gy -Gd $(DEBUG_FLAG) | ||
| 258 | !endif | ||
| 259 | ARCH_LDFLAGS = $(SYS_LDFLAGS) -machine:x64 | ||
| 260 | ARCH_RCFLAGS = -DWIN64 | ||
| 261 | EMACS_HEAPSIZE = 42 | ||
| 262 | EMACS_PURESIZE = 10000000 | ||
| 263 | EMACS_MANIFEST = emacs-x64.manifest | ||
| 264 | |||
| 265 | !else | ||
| 266 | !ERROR Unknown architecture type "$(ARCH)". | ||
| 267 | !endif | ||
| 268 | !endif | ||
| 269 | !endif | ||
| 270 | !endif | ||
| 271 | !endif | ||
| 272 | |||
| 273 | LINK_FLAGS = $(ARCH_LDFLAGS) $(DEBUG_LINK) $(USER_LDFLAGS) | ||
| 274 | |||
| 275 | # From MSVC 5.0 onwards, it seem base relocation information is not included, | ||
| 276 | # at least in release builds. We need to ensure the reloc info is included | ||
| 277 | # in order to use the MSVC profiler. | ||
| 278 | !IF ("$(_NMAKE_VER)" == "$(_NMAKE_VER_4)") | ||
| 279 | EXTRA_LINK = | ||
| 280 | !ELSE | ||
| 281 | EXTRA_LINK = -profile | ||
| 282 | !ENDIF | ||
| 283 | |||
| 284 | # | ||
| 285 | # If the compiler supports compiling multiple .c files to .o files at | ||
| 286 | # one time, use this feature. | ||
| 287 | # | ||
| 288 | !IF ("$(_NMAKE_VER)" == "$(_NMAKE_VER_4)") | ||
| 289 | .c{$(BLD)}.obj: | ||
| 290 | $(CC) $(CFLAGS) -Fo$(BLD)\ $< | ||
| 291 | !ELSE | ||
| 292 | .c{$(BLD)}.obj:: | ||
| 293 | $(CC) $(CFLAGS) -Fo$(BLD)\ $< | ||
| 294 | !ENDIF | ||
diff --git a/nt/paths.h b/nt/paths.h deleted file mode 100644 index d6dfaad8f4e..00000000000 --- a/nt/paths.h +++ /dev/null | |||
| @@ -1,66 +0,0 @@ | |||
| 1 | /* paths.h file for MS Windows | ||
| 2 | |||
| 3 | Copyright (C) 1993, 1995, 1997, 1999, 2001-2015 Free Software | ||
| 4 | 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 | /* Relative file names in this file that begin with "%emacs_dir%/" are | ||
| 22 | treated specially by decode_env_path: they are expanded relative to | ||
| 23 | the value of the emacs_dir environment variable, which points to | ||
| 24 | the root of the Emacs tree. */ | ||
| 25 | |||
| 26 | /* The default search path for Lisp function "load". | ||
| 27 | Together with PATH_SITELOADSEARCH, this sets load-path. */ | ||
| 28 | /* #define PATH_LOADSEARCH "/usr/local/lib/emacs/lisp" */ | ||
| 29 | #define PATH_LOADSEARCH "%emacs_dir%/lisp" | ||
| 30 | |||
| 31 | /* Like PATH_LOADSEARCH, but contains the non-standard pieces. */ | ||
| 32 | #define PATH_SITELOADSEARCH "%emacs_dir%/site-lisp;%emacs_dir%/../site-lisp" | ||
| 33 | |||
| 34 | /* Like PATH_LOADSEARCH, but used only when Emacs is dumping. This | ||
| 35 | path is usually identical to PATH_LOADSEARCH except that the entry | ||
| 36 | for the directory containing the installed lisp files has been | ||
| 37 | replaced with ../lisp. */ | ||
| 38 | #define PATH_DUMPLOADSEARCH "../lisp" | ||
| 39 | |||
| 40 | /* The extra search path for programs to invoke. This is appended to | ||
| 41 | whatever the PATH environment variable says to set the Lisp | ||
| 42 | variable exec-path and the first file name in it sets the Lisp | ||
| 43 | variable exec-directory. exec-directory is used for finding | ||
| 44 | executables and other architecture-dependent files. */ | ||
| 45 | /* #define PATH_EXEC "/usr/local/lib/emacs/etc" */ | ||
| 46 | #define PATH_EXEC "%emacs_dir%/bin;%emacs_dir%/lib-src/oo-spd/i386;%emacs_dir%/lib-src/oo/i386;%emacs_dir%/nt/oo-spd/i386;%emacs_dir%/nt/oo/i386" | ||
| 47 | |||
| 48 | /* Where Emacs should look for its architecture-independent data | ||
| 49 | files, like the NEWS file. The lisp variable data-directory | ||
| 50 | is set to this value. */ | ||
| 51 | /* #define PATH_DATA "/usr/local/lib/emacs/data" */ | ||
| 52 | #define PATH_DATA "%emacs_dir%/etc" | ||
| 53 | |||
| 54 | /* Where Emacs should look for X bitmap files. | ||
| 55 | The lisp variable x-bitmap-file-path is set based on this value. */ | ||
| 56 | #define PATH_BITMAPS "" | ||
| 57 | |||
| 58 | /* Where Emacs should look for its docstring file. The lisp variable | ||
| 59 | doc-directory is set to this value. */ | ||
| 60 | #define PATH_DOC "%emacs_dir%/etc" | ||
| 61 | |||
| 62 | /* Where the configuration process believes the info tree lives. The | ||
| 63 | lisp variable configure-info-directory gets its value from this | ||
| 64 | macro, and is then used to set the Info-default-directory-list. */ | ||
| 65 | /* #define PATH_INFO "/usr/local/info" */ | ||
| 66 | #define PATH_INFO "C:/emacs/info" | ||