X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/c8d3a25c0981020e1b8aa3bf96a4a0059be82431..3a880af4a79688e90da45311a8d85bae2d59a811:/nt/configure.bat diff --git a/nt/configure.bat b/nt/configure.bat index cecf52ee92..7fedff411b 100755 --- a/nt/configure.bat +++ b/nt/configure.bat @@ -23,7 +23,7 @@ rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: rem rem + MS Windows 95, NT or later rem + either MSVC 2.x or later, or gcc-2.95 or later (with GNU make 3.75 -rem or later) and the Mingw32 and W32 API headers and libraries. +rem or later) and the Mingw32 and Windows API headers and libraries. rem + Visual Studio 2005 is not supported at this time. rem rem For reference, here is a list of which builds of GNU make are known to @@ -145,7 +145,7 @@ echo. --with-gcc use GCC to compile Emacs echo. --with-msvc use MSVC to compile Emacs echo. --no-debug exclude debug info from executables echo. --no-opt disable optimization -echo. --enable-checking enable checks and assertions +echo. --enable-checking enable additional run-time checks echo. --profile enable profiling echo. --no-cygwin use -mno-cygwin option with GCC echo. --cflags FLAG pass FLAG to compiler @@ -426,7 +426,7 @@ rem problem). The gcc/mingw32 2.95.2 headers are okay, as are distros rem of w32api-xxx.zip from Anders Norlander since 1999-11-18 at least. rem Beginning with Emacs 23, we need usp10.h. rem -echo Checking whether W32 API headers are too old... +echo Checking whether Windows API headers are too old... echo #include "windows.h" >junk.c echo #include "usp10.h" >>junk.c echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c @@ -469,7 +469,7 @@ goto end echo. echo Configure failed. echo To configure Emacs for Windows, you need to have either -echo gcc-2.95 or later with Mingw32 and the W32 API headers, +echo gcc-2.95 or later with Mingw32 and the Windows API headers, echo or MSVC 2.x or later. del junk.c goto end @@ -627,7 +627,10 @@ rm -f junk.c junk.obj if (%gifsupport%) == (N) goto gifDone echo Checking for libgif... -echo #include "gif_lib.h" >junk.c +rem giflib-5.0.0 needs size_t defined before gif_lib.h is included +rem redirection characters need to be protected from the shell +echo #include ^ >junk.c +echo #include "gif_lib.h" >>junk.c echo main (){} >>junk.c rem -o option is ignored with cl, but allows result to be consistent. echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log @@ -769,7 +772,6 @@ if not "(%mf%)" == "()" >>config.settings echo MCPU_FLAG=%mf% if not "(%dbginfo%)" == "()" >>config.settings echo DEBUG_INFO=%dbginfo% if (%nodebug%) == (Y) >>config.settings echo NODEBUG=1 if (%noopt%) == (Y) >>config.settings echo NOOPT=1 -if (%enablechecking%) == (Y) >>config.settings echo ENABLECHECKS=1 if (%profile%) == (Y) >>config.settings echo PROFILE=1 if (%nocygwin%) == (Y) >>config.settings echo NOCYGWIN=1 if not "(%prefix%)" == "()" >>config.settings echo INSTALL_DIR=%prefix% @@ -794,6 +796,7 @@ rem processing of compiler options in w32.c:get_emacs_configuration_options if (%docflags%) == (Y) echo #define USER_CFLAGS " %escusercflags%" >>config.tmp if (%doldflags%) == (Y) echo #define USER_LDFLAGS " %escuserldflags%" >>config.tmp if (%profile%) == (Y) echo #define PROFILING 1 >>config.tmp +if (%enablechecking%) == (Y) echo #define ENABLE_CHECKING 1 >>config.tmp if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>config.tmp if not "(%HAVE_GNUTLS%)" == "()" echo #define HAVE_GNUTLS 1 >>config.tmp if not "(%HAVE_LIBXML2%)" == "()" echo #define HAVE_LIBXML2 1 >>config.tmp @@ -949,4 +952,6 @@ set HAVE_PNG= set HAVE_TIFF= set HAVE_XPM= set dbginfo= +endlocal +set use_extensions=