2 rem ----------------------------------------------------------------------
3 rem Configuration script for MS Windows operating systems
4 rem Copyright (C) 1999-2011 Free Software Foundation, Inc.
6 rem This file is part of GNU Emacs.
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.
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.
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/.
21 rem ----------------------------------------------------------------------
22 rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS:
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 W32 API headers and libraries.
27 rem + Visual Studio 2005 is not supported at this time.
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
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]
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.
62 if exist config.log
del config.log
64 rem ----------------------------------------------------------------------
65 rem See if the environment is large enough. We need 43 (?) bytes.
66 set $foo$
=123456789_123456789_123456789_123456789_123
67 if not "%$foo$%" == "123456789_123456789_123456789_123456789_123" goto SmallEnv
70 rem ----------------------------------------------------------------------
71 rem Make sure we are running in the nt subdir
72 if exist configure.bat
goto start
73 echo You must
run configure from the nt subdirectory.
77 rem ----------------------------------------------------------------------
78 rem Attempt to enable command extensions. Set use_extensions to 1 if
79 rem they are available and 0 if they are not available.
81 setlocal ENABLEEXTENSIONS
82 if "%CMDEXTVERSION%" == "" set use_extensions
=0
83 if "%use_extensions%" == "1" goto afterext
85 echo.
Command extensions are
not available. Using parameters that include the
=
86 echo. character by enclosing them in quotes will
not be supported.
90 rem ----------------------------------------------------------------------
113 rem ----------------------------------------------------------------------
114 rem Handle arguments.
116 if "%1" == "-h" goto usage
117 if "%1" == "--help" goto usage
118 if "%1" == "--prefix" goto setprefix
119 if "%1" == "--with-gcc" goto withgcc
120 if "%1" == "--with-msvc" goto withmsvc
121 if "%1" == "--no-debug" goto nodebug
122 if "%1" == "--no-opt" goto noopt
123 if "%1" == "--enable-checking" goto enablechecking
124 if "%1" == "--profile" goto profile
125 if "%1" == "--no-cygwin" goto nocygwin
126 if "%1" == "--cflags" goto usercflags
127 if "%1" == "--ldflags" goto userldflags
128 if "%1" == "--lib" goto extrauserlibs
129 if "%1" == "--without-png" goto withoutpng
130 if "%1" == "--without-jpeg" goto withoutjpeg
131 if "%1" == "--without-gif" goto withoutgif
132 if "%1" == "--without-tiff" goto withouttiff
133 if "%1" == "--without-gnutls" goto withoutgnutls
134 if "%1" == "--without-xpm" goto withoutxpm
135 if "%1" == "--with-svg" goto withsvg
136 if "%1" == "--distfiles" goto distfiles
137 if "%1" == "" goto checkutils
140 echo Usage
: configure
[options
]
142 echo.
--prefix PREFIX install Emacs in directory PREFIX
143 echo.
--with
-gcc
use GCC to compile Emacs
144 echo.
--with
-msvc
use MSVC to compile Emacs
145 echo.
--no
-debug exclude
debug info from executables
146 echo.
--no
-opt disable optimization
147 echo.
--enable
-checking enable checks and assertions
148 echo.
--profile enable profiling
149 echo.
--no
-cygwin
use -mno
-cygwin option with GCC
150 echo.
--cflags FLAG pass FLAG to compiler
151 echo.
--ldflags FLAG pass FLAG to compiler
when linking
152 echo.
--lib LIB link to extra library LIB
153 echo.
--without
-png
do not use PNG library even
if it is installed
154 echo.
--without
-jpeg
do not use JPEG library even
if it is installed
155 echo.
--without
-gif
do not use GIF library even
if it is installed
156 echo.
--without
-tiff
do not use TIFF library even
if it is installed
157 echo.
--without
-xpm
do not use XPM library even
if it is installed
158 echo.
--without
-gnutls
do not use GNUTLS library even
if it is installed
159 echo.
--with
-svg
use the RSVG library
(experimental
)
160 echo.
--distfiles
path to
files for make dist
, e.g. libXpm.dll
161 if "%use_extensions%" == "0" goto end
163 echo. The cflags and ldflags arguments support parameters that include the
=
164 echo. character. However
, since the
= character is normally treated as a
165 echo. separator character you will need to enclose any parameter that includes
166 echo. the
= character in quotes.
For example
, to include
167 echo.
-DSITELOAD_PURESIZE_EXTRA
=100000 as one of the cflags you would
run
168 echo. configure.bat as follows
:
169 echo. configure.bat
--cflags
"-DSITELOAD_PURESIZE_EXTRA=100000"
171 echo. Note that this capability of processing parameters that include the
=
172 echo. character depends on
command extensions. This batch file attempts to
173 echo. enable
command extensions.
If command extensions cannot be enabled
, a
174 echo. warning message will be displayed.
177 rem ----------------------------------------------------------------------
185 rem ----------------------------------------------------------------------
192 rem ----------------------------------------------------------------------
199 rem ----------------------------------------------------------------------
206 rem ----------------------------------------------------------------------
213 rem ----------------------------------------------------------------------
220 rem ----------------------------------------------------------------------
227 rem ----------------------------------------------------------------------
234 rem ----------------------------------------------------------------------
237 if "%use_extensions%" == "1" goto ucflagex
242 set usercflags
=%usercflags%%sep1%%~
1
243 set escusercflags
=%usercflags
:"=\"%
250 set usercflags=%usercflags%%sep1%%1
251 set escusercflags=%usercflags%
258 echo. extrauserlibs: %extrauserlibs%
259 set extrauserlibs=%extrauserlibs%%sep4%%1
264 rem ----------------------------------------------------------------------
267 if "%use_extensions%" == "1" goto ulflagex
272 set userldflags=%userldflags%%sep2%%~1
273 set escuserldflags=%userldflags:"=\"%
280 set userldflags
=%userldflags%%sep2%%1
281 set escuserldflags
=%userldflags%
286 rem ----------------------------------------------------------------------
294 rem ----------------------------------------------------------------------
302 rem ----------------------------------------------------------------------
310 rem ----------------------------------------------------------------------
318 rem ----------------------------------------------------------------------
326 rem ----------------------------------------------------------------------
339 rem ----------------------------------------------------------------------
344 set distfiles
=%distfiles%%sep3%%1
349 rem ----------------------------------------------------------------------
350 rem Check that necessary utilities (cp and rm) are present.
353 echo Checking
for 'cp'...
354 cp configure.bat junk.bat
355 if not exist junk.bat
goto needcp
356 echo Checking
for 'rm'...
358 if exist junk.bat
goto needrm
362 echo You need
'cp' (the Unix file
copy program
) to build Emacs.
367 echo You need
'rm' (the Unix file delete program
) to build Emacs.
370 rem ----------------------------------------------------------------------
371 rem Auto-detect compiler if not specified, and validate GCC if chosen.
374 if (%COMPILER%)==(cl
) goto compilercheckdone
375 if (%COMPILER%)==(gcc
) goto checkgcc
377 echo Checking whether
'gcc' is available...
378 echo main
(){} >junk.c
380 if exist junk.o
goto checkgcc
382 echo Checking whether
'cl' is available...
384 if exist junk.obj
goto clOK
388 if exist junk.o
del junk.o
389 Rem WARNING -- COMMAND.COM on some systems only looks at the first
390 Rem 8 characters of a label. So do NOT be tempted to change
391 Rem chkapi* into something fancier like checkw32api
392 Rem You HAVE been warned!
393 if (%nocygwin%) == (Y
) goto chkapiN
394 echo Checking whether gcc requires
'-mno-cygwin'...
395 echo #include
"cygwin/version.h" >junk.c
396 echo main
(){} >>junk.c
397 echo gcc
-c junk.c
>>config.log
398 gcc
-c junk.c
>>config.log
2>&1
399 if not exist junk.o
goto chkapi
400 echo gcc
-mno
-cygwin
-c junk.c
>>config.log
401 gcc
-mno
-cygwin
-c junk.c
>>config.log
2>&1
402 if exist junk.o
set nocygwin
=Y
405 echo The failed program was
: >>config.log
406 type junk.c
>>config.log
410 rem ----------------------------------------------------------------------
411 rem Older versions of the Windows API headers either don't have any of
412 rem the IMAGE_xxx definitions (the headers that come with Cygwin b20.1
413 rem are like this), or have a typo in the definition of
414 rem IMAGE_FIRST_SECTION (the headers with gcc/mingw32 2.95 have this
415 rem problem). The gcc/mingw32 2.95.2 headers are okay, as are distros
416 rem of w32api-xxx.zip from Anders Norlander since 1999-11-18 at least.
417 rem Beginning with Emacs 23, we need usp10.h.
419 echo Checking whether W32 API headers are too old...
420 echo #include
"windows.h" >junk.c
421 echo #include
"usp10.h" >>junk.c
422 echo test
(PIMAGE_NT_HEADERS pHeader
) >>junk.c
423 echo {PIMAGE_SECTION_HEADER pSection
= IMAGE_FIRST_SECTION
(pHeader
);} >>junk.c
424 if (%nocygwin%) == (Y
) goto chkapi1
429 set cf
=%usercflags% -mno
-cygwin
435 @
echo gcc
%cf% -c junk.c
>>config.log
436 gcc
%cf% -c junk.c
>>config.log
2>&1
438 if exist junk.o
goto chkuser
439 echo The failed program was
: >>config.log
440 type junk.c
>>config.log
445 echo int main
(int argc
, char
*argv
[]) {>junk.c
446 echo char
*usercflags
= "%escusercflags%";>>junk.c
448 echo gcc
-Werror
-c junk.c
>>config.log
449 gcc
-Werror
-c junk.c
>>config.log
2>&1
450 if exist junk.o
goto gccOk
452 echo Error in
--cflags argument
: %usercflags%
453 echo Backslashes and quotes cannot be used with
--cflags. Please
use forward
454 echo slashes
for filenames and paths
(e.g.
when passing directories to
-I
).
460 echo Configure failed.
461 echo To configure Emacs
for Windows
, you need to have either
462 echo gcc
-2.95 or later with Mingw32 and the W32 API headers
,
463 echo or MSVC
2.x or later.
471 Rem It is not clear what GCC version began supporting -mtune
472 Rem and pentium4 on x86, so check this explicitly.
473 echo main
(){} >junk.c
474 echo gcc
-c
-O2
-mtune
=pentium4 junk.c
>>config.log
475 gcc
-c
-O2
-mtune
=pentium4 junk.c
>>config.log
2>&1
476 if not errorlevel 1 goto gccMtuneOk
477 echo The failed program was
: >>config.log
478 type junk.c
>>config.log
484 echo GCC supports
-mtune
=pentium4
>>config.log
485 set mf
=-mtune
=pentium4
489 rem Check for DWARF-2 debug info support, else default to stabs
490 echo main
(){} >junk.c
491 echo gcc
-c
-gdwarf
-2 -g3 junk.c
>>config.log
492 gcc
-c
-gdwarf
-2 -g3 junk.c
>>config.log
2>&1
493 if not errorlevel 1 goto gccdwarf
494 echo The failed program was
: >>config.log
495 type junk.c
>>config.log
498 goto compilercheckdone
501 echo GCC supports DWARF
-2 >>config.log
502 set dbginfo
=-gdwarf
-2 -g3
504 goto compilercheckdone
508 rm
-f junk.c junk.obj
513 rem ----------------------------------------------------------------------
514 rem Check for external image libraries. Since they are loaded
515 rem dynamically, the libraries themselves do not need to be present
516 rem at compile time, but the header files are required.
520 if (%nocygwin%) == (N
) goto flagsOK
521 set mingwflag
=-mno
-cygwin
525 if (%pngsupport%) == (N
) goto pngDone
527 echo Checking
for libpng...
528 echo #include
"png.h" >junk.c
529 echo main
(){} >>junk.c
530 rem -o option is ignored with cl, but allows result to be consistent.
531 echo %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>>config.log
532 %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>junk.out
2>>config.log
533 if exist junk.obj
goto havePng
535 echo ...png.h
not found
, building without PNG support.
536 echo The failed program was
: >>config.log
537 type junk.c
>>config.log
542 echo ...PNG header available
, building with PNG support.
546 rm
-f junk.c junk.obj
548 if (%tlssupport%) == (N
) goto tlsDone
550 rem this is a copy of the PNG detection
551 echo Checking
for libgnutls...
552 echo #include
"gnutls/gnutls.h" >junk.c
553 echo main
(){} >>junk.c
554 rem -o option is ignored with cl, but allows result to be consistent.
555 echo %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>>config.log
556 %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>junk.out
2>>config.log
557 if exist junk.obj
goto haveTls
559 echo ...gnutls.h
not found
, building without TLS support.
560 echo The failed program was
: >>config.log
561 type junk.c
>>config.log
566 echo ...GNUTLS header available
, building with GNUTLS support.
570 rm
-f junk.c junk.obj
572 if (%jpegsupport%) == (N
) goto jpegDone
574 echo Checking
for jpeg
-6b...
575 echo #include
"jconfig.h" >junk.c
576 echo main
(){} >>junk.c
577 rem -o option is ignored with cl, but allows result to be consistent.
578 echo %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>>config.log
579 %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>junk.out
2>>config.log
580 if exist junk.obj
goto haveJpeg
582 echo ...jconfig.h
not found
, building without JPEG support.
583 echo The failed program was
: >>config.log
584 type junk.c
>>config.log
589 echo ...JPEG header available
, building with JPEG support.
593 rm
-f junk.c junk.obj
595 if (%gifsupport%) == (N
) goto gifDone
597 echo Checking
for libgif...
598 echo #include
"gif_lib.h" >junk.c
599 echo main
(){} >>junk.c
600 rem -o option is ignored with cl, but allows result to be consistent.
601 echo %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>>config.log
602 %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>junk.out
2>>config.log
603 if exist junk.obj
goto haveGif
605 echo ...gif_lib.h
not found
, building without GIF support.
606 echo The failed program was
: >>config.log
607 type junk.c
>>config.log
612 echo ...GIF header available
, building with GIF support.
616 rm
-f junk.c junk.obj
618 if (%tiffsupport%) == (N
) goto tiffDone
620 echo Checking
for tiff...
621 echo #include
"tiffio.h" >junk.c
622 echo main
(){} >>junk.c
623 rem -o option is ignored with cl, but allows result to be consistent.
624 echo %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>>config.log
625 %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>junk.out
2>>config.log
626 if exist junk.obj
goto haveTiff
628 echo ...tiffio.h
not found
, building without TIFF support.
629 echo The failed program was
: >>config.log
630 type junk.c
>>config.log
635 echo ...TIFF header available
, building with TIFF support.
639 rm
-f junk.c junk.obj
641 if (%xpmsupport%) == (N
) goto xpmDone
643 echo Checking
for libXpm...
644 echo #define FOR_MSW
1 >junk.c
645 echo #include
"X11/xpm.h" >>junk.c
646 echo main
(){} >>junk.c
647 rem -o option is ignored with cl, but allows result to be consistent.
648 echo %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>>config.log
649 %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>junk.out
2>>config.log
650 if exist junk.obj
goto haveXpm
652 echo ...X11
/xpm.h
not found
, building without XPM support.
653 echo The failed program was
: >>config.log
654 type junk.c
>>config.log
659 echo ...XPM header available
, building with XPM support.
663 rm
-f junk.c junk.obj
665 if not (%svgsupport%) == (Y
) goto :svgDone
666 echo Checking
for librsvg...
667 echo #include
"librsvg/rsvg.h" >junk.c
668 echo main
(){} >>junk.c
669 rem -o option is ignored with cl, but allows result to be consistent.
670 echo %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>>config.log
671 %COMPILER% %usercflags% %mingwflag% -c junk.c
-o junk.obj
>junk.out
2>>config.log
672 if exist junk.obj
goto haveSvg
674 echo ...librsvg
/rsvg.h or dependencies
not found
, building without SVG support.
675 echo The failed program was
: >>config.log
676 type junk.c
>>config.log
681 echo ...librsvg header available
, building with SVG support
(EXPERIMENTAL
).
685 rm
-f junk.c junk.obj junk.err junk.out
687 rem Any distfiles provided for building distribution? If no, we're done.
688 if "(%HAVE_DISTFILES%)"=="()" goto :distFilesDone
690 rem Any arguments to --distfiles specified? If no, we're done.
691 if not "%distfiles%"=="" goto :checkDistFiles
693 echo No arguments specified
for option
--distfiles
!
697 echo Checking
for distfiles...
698 rem Check if all specified distfiles exist
700 for %%d in
(%distfiles%) do if not exist %%d
set fileNotFound
=%%d
701 if not "%fileNotFound%"=="" goto distFilesNotFound
704 echo ...all distfiles found.
709 echo ...
%fileNotFound% not found.
716 rem ----------------------------------------------------------------------
719 echo Generating makefiles
720 if %COMPILER% == gcc
set MAKECMD
=gmake
721 if %COMPILER% == cl
set MAKECMD
=nmake
723 rem Pass on chosen settings to makefiles.
724 rem NB. Be very careful to not have a space before redirection symbols
725 rem except when there is a preceding digit, when a space is required.
727 echo #
Start of settings from configure.bat
>config.settings
728 echo COMPILER
=%COMPILER%>>config.settings
729 if not "(%mf%)" == "()" echo MCPU_FLAG
=%mf%>>config.settings
730 if not "(%dbginfo%)" == "()" echo DEBUG_INFO
=%dbginfo%>>config.settings
731 if (%nodebug%) == (Y
) echo NODEBUG
=1 >>config.settings
732 if (%noopt%) == (Y
) echo NOOPT
=1 >>config.settings
733 if (%enablechecking%) == (Y
) echo ENABLECHECKS
=1 >>config.settings
734 if (%profile%) == (Y
) echo PROFILE
=1 >>config.settings
735 if (%nocygwin%) == (Y
) echo NOCYGWIN
=1 >>config.settings
736 if not "(%prefix%)" == "()" echo INSTALL_DIR
=%prefix%>>config.settings
737 if not "(%distfiles%)" == "()" echo DIST_FILES
=%distfiles%>>config.settings
738 rem We go thru docflags because usercflags could be "-DFOO=bar" -something
739 rem and the if command cannot cope with this
740 for %%v in
(%usercflags%) do if not (%%v
)==() set docflags
=Y
741 if (%docflags%)==(Y
) echo USER_CFLAGS
=%usercflags%>>config.settings
742 if (%docflags%)==(Y
) echo ESC_USER_CFLAGS
=%escusercflags%>>config.settings
743 for %%v in
(%userldflags%) do if not (%%v
)==() set doldflags
=Y
744 if (%doldflags%)==(Y
) echo USER_LDFLAGS
=%userldflags%>>config.settings
745 for %%v in
(%extrauserlibs%) do if not (%%v
)==() set doextralibs
=Y
746 if (%doextralibs%)==(Y
) echo USER_LIBS
=%extrauserlibs%>>config.settings
747 echo #
End of settings from configure.bat
>>config.settings
748 echo.
>>config.settings
750 copy config.nt config.tmp
752 echo /* Start of settings from configure.bat.
*/ >>config.tmp
753 rem We write USER_CFLAGS and USER_LDFLAGS starting with a space to simplify
754 rem processing of compiler options in w32.c:get_emacs_configuration_options
755 if (%docflags%) == (Y
) echo #define USER_CFLAGS
" %escusercflags%">>config.tmp
756 if (%doldflags%) == (Y
) echo #define USER_LDFLAGS
" %escuserldflags%">>config.tmp
757 if (%profile%) == (Y
) echo #define PROFILING
1 >>config.tmp
758 if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG
1 >>config.tmp
759 if not "(%HAVE_GNUTLS%)" == "()" echo #define HAVE_GNUTLS
1 >>config.tmp
760 if not "(%HAVE_JPEG%)" == "()" echo #define HAVE_JPEG
1 >>config.tmp
761 if not "(%HAVE_GIF%)" == "()" echo #define HAVE_GIF
1 >>config.tmp
762 if not "(%HAVE_TIFF%)" == "()" echo #define HAVE_TIFF
1 >>config.tmp
763 if not "(%HAVE_XPM%)" == "()" echo #define HAVE_XPM
1 >>config.tmp
764 if "(%HAVE_RSVG%)" == "(1)" echo #define HAVE_RSVG
1 >>config.tmp
766 echo /* End of settings from configure.bat.
*/ >>config.tmp
768 Rem See if fc.exe returns a meaningful exit status. If it does, we
769 Rem might as well avoid unnecessary overwriting of config.h and epaths.h,
770 Rem since this forces recompilation of every source file.
771 if exist foo.bar
del foo.bar
772 fc
/b foo.bar foo.bar
>nul
2>&1
773 if not errorlevel 2 goto doCopy
774 fc
/b config.tmp ..\src\config.h
>nul
2>&1
775 if errorlevel 1 goto doCopy
776 fc
/b paths.h ..\src\epaths.h
>nul
2>&1
777 if not errorlevel 1 goto dontCopy
780 copy config.tmp ..\src\config.h
781 copy paths.h ..\src\epaths.h
784 if exist config.tmp
del config.tmp
785 copy /b config.settings
+%MAKECMD%.defs
+..
\nt\makefile.w32
-in ..
\nt\makefile
786 if exist ..
\admin\unidata
copy /b config.settings
+%MAKECMD%.defs
+..
\admin\unidata\makefile.w32
-in ..
\admin\unidata\makefile
787 copy /b config.settings
+%MAKECMD%.defs
+..\lib
-src\makefile.w32
-in ..\lib
-src\makefile
788 copy /b config.settings
+%MAKECMD%.defs
+..\lib\makefile.w32
-in ..\lib\makefile
789 copy /b config.settings
+%MAKECMD%.defs
+..\src\makefile.w32
-in ..\src\makefile
790 copy /b config.settings
+%MAKECMD%.defs
+..\doc\emacs\makefile.w32
-in ..\doc\emacs\makefile
791 copy /b config.settings
+%MAKECMD%.defs
+..\doc\misc\makefile.w32
-in ..\doc\misc\makefile
792 copy /b config.settings
+%MAKECMD%.defs
+..\doc\lispref\makefile.w32
-in ..\doc\lispref\makefile
793 copy /b config.settings
+%MAKECMD%.defs
+..\doc\lispintro\makefile.w32
-in ..\doc\lispintro\makefile
794 if exist ..\lisp\makefile rm
-f ..
/lisp
/[Mm
]akefile
795 copy /b config.settings
+%MAKECMD%.defs
+..\lisp\makefile.w32
-in ..\lisp\makefile
796 rem Use the default (no-op) Makefile.in if the nt version is not present.
797 if exist ..\leim\makefile.w32
-in
copy /b config.settings
+%MAKECMD%.defs
+..\leim\makefile.w32
-in ..\leim\makefile
798 if not exist ..\leim\makefile.w32
-in
copy /b config.settings
+%MAKECMD%.defs
+..\leim\Makefile.in ..\leim\makefile
801 Rem Some people use WinZip which doesn't create empty directories!
802 if not exist ..\site
-lisp
\nul
mkdir ..\site
-lisp\
803 Rem Update subdirs.el only if it is different or fc.exe doesn't work.
804 if exist foo.bar
del foo.bar
805 fc
/b foo.bar foo.bar
>nul
2>&1
806 if not errorlevel 2 goto doUpdateSubdirs
807 fc
/b subdirs.el ..\site
-lisp\subdirs.el
>nul
2>&1
808 if not errorlevel 1 goto dontUpdateSubdirs
811 if exist ..\site
-lisp\subdirs.el
del ..\site
-lisp\subdirs.el
812 copy subdirs.el ..\site
-lisp\subdirs.el
817 rem check that we have all the libraries we need.
820 if not "(%HAVE_XPM%)" == "()" goto checkpng
821 if (%xpmsupport%) == (N
) goto checkpng
823 echo XPM support is missing. It is required
for color icons in the toolbar.
824 echo Install libXpm development
files or
use --without
-xpm
827 if not "(%HAVE_PNG%)" == "()" goto checkjpeg
828 if (%pngsupport%) == (N
) goto checkjpeg
830 echo PNG support is missing.
831 echo Install libpng development
files or
use --without
-png
834 if not "(%HAVE_JPEG%)" == "()" goto checktiff
835 if (%jpegsupport%) == (N
) goto checktiff
837 echo JPEG support is missing.
838 echo Install jpeg development
files or
use --without
-jpeg
841 if not "(%HAVE_TIFF%)" == "()" goto checkgif
842 if (%tiffsupport%) == (N
) goto checkgif
844 echo TIFF support is missing.
845 echo Install libtiff development
files or
use --without
-tiff
848 if not "(%HAVE_GIF%)" == "()" goto checkdistfiles
849 if (%gifsupport%) == (N
) goto checkdistfiles
851 echo GIF support is missing.
852 echo Install giflib or libungif development
files or
use --without
-gif
855 if "(%HAVE_DISTFILES%)" == "()" goto donelibchecks
856 if (%distFilesOk%) == (1) goto donelibchecks
858 echo Files specified with option
--distfiles could
not be found.
859 echo Fix these issues before running make dist
862 if (%libsOK%) == (1) goto success
864 echo Important libraries are missing. Fix these issues before running make.
868 echo Emacs successfully configured.
869 echo Emacs successfully configured.
>>config.log
870 if (%MAKECMD%) == (gmake
) set MAKECMD
=make
871 echo Run `
%MAKECMD%' to build, then run `%MAKECMD% install' to install.
875 echo Your environment size is too small. Please enlarge it and rerun configure.
876 echo For example
, type "command.com /e:2048" to have
2048 bytes available.