- Prevent non-keyword fontification by default.
[bpt/emacs.git] / nt / configure.bat
CommitLineData
f466241d
EZ
1@echo off\r
2rem ----------------------------------------------------------------------\r
12ff2dc5 3rem Configuration script for MS Windows 95/98/Me and NT/2000/XP\r
ceb4c4d3 4rem Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005,\r
4e6835db 5rem 2006, 2007 Free Software Foundation, Inc.\r
f466241d
EZ
6\r
7rem This file is part of GNU Emacs.\r
8\r
9rem GNU Emacs is free software; you can redistribute it and/or modify\r
10rem it under the terms of the GNU General Public License as published by\r
11rem the Free Software Foundation; either version 2, or (at your option)\r
12rem any later version.\r
13\r
14rem GNU Emacs is distributed in the hope that it will be useful,\r
15rem but WITHOUT ANY WARRANTY; without even the implied warranty of\r
16rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
17rem GNU General Public License for more details.\r
18\r
19rem You should have received a copy of the GNU General Public License\r
20rem along with GNU Emacs; see the file COPYING. If not, write to the\r
364c38d3
LK
21rem Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\r
22rem Boston, MA 02110-1301, USA.\r
f466241d
EZ
23rem ----------------------------------------------------------------------\r
24rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS:\r
25rem\r
12ff2dc5 26rem + MS Windows 95/98/Me or NT/2000/XP\r
f466241d 27rem + either MSVC 2.x or later, or gcc-2.95 or later (with gmake 3.75\r
56a469c3
EZ
28rem or later) and the Mingw32 and W32 API headers and libraries.\r
29rem + Visual Studio 2005 is not supported at this time.\r
f466241d
EZ
30rem\r
31rem For reference, here is a list of which builds of gmake are known to\r
32rem work or not, and whether they work in the presence and/or absence of\r
33rem sh.exe.\r
7019fb66 34rem\r
f466241d 35rem sh exists no sh\r
56a469c3 36rem cygwin b20.1 make (3.75): fails[1,5] fails[2,5]\r
f466241d
EZ
37rem MSVC compiled gmake 3.77: okay okay\r
38rem MSVC compiled gmake 3.78.1: okay okay\r
39rem MSVC compiled gmake 3.79.1: okay okay\r
56a469c3
EZ
40rem mingw32/gcc-2.92.2 make (3.77): okay okay[4]\r
41rem cygwin compiled gmake 3.77: fails[1,5] fails[2,5]\r
42rem cygwin compiled gmake 3.78.1: fails[5] fails[2,5]\r
43rem cygwin compiled gmake 3.79.1: fails[3,5] fails[2?,5]\r
44rem cygwin compiled make 3.80: fails?[6] fails?[6]\r
45rem cygwin compiled make 3.81: fails fails?[6]\r
46rem mingw32 compiled make 3.79.1: okay okay\r
47rem mingw32 compiled make 3.80: okay okay?[6]\r
48rem mingw32 compiled make 3.81: okay okay[7]\r
f466241d
EZ
49rem\r
50rem [1] doesn't cope with makefiles with DOS line endings, so must mount\r
51rem emacs source with text!=binary.\r
52rem [2] fails when needs to invoke shell commands; okay invoking gcc etc.\r
56a469c3
EZ
53rem [3] requires LC_MESSAGES support to build; cannot build with early\r
54rem versions of cygwin.\r
55rem [4] may fail on Windows 9X and Windows ME; if so, install Bash.\r
56rem [5] fails when building leim due to the use of cygwin style paths.\r
57rem May work if building emacs without leim.\r
58rem [6] not recommended; please report if you try this combination.\r
59rem [7] tested only on Windows XP.\r
f466241d
EZ
60rem\r
61\r
dbbdb507
EZ
62if exist config.log del config.log\r
63\r
f466241d
EZ
64rem ----------------------------------------------------------------------\r
65rem See if the environment is large enough. We need 43 (?) bytes.\r
66set $foo$=123456789_123456789_123456789_123456789_123\r
67if not "%$foo$%" == "123456789_123456789_123456789_123456789_123" goto SmallEnv\r
68set $foo$=\r
69\r
70rem ----------------------------------------------------------------------\r
71rem Make sure we are running in the nt subdir\r
72if exist configure.bat goto start\r
73echo You must run configure from the nt subdirectory.\r
74goto end\r
75\r
76:start\r
77rem ----------------------------------------------------------------------\r
78rem Default settings.\r
79set prefix=\r
80set nodebug=N\r
81set noopt=N\r
82set nocygwin=N\r
83set COMPILER=\r
84set usercflags=\r
85set userldflags=\r
86set sep1=\r
87set sep2=\r
88\r
89rem ----------------------------------------------------------------------\r
90rem Handle arguments.\r
91:again\r
92if "%1" == "-h" goto usage\r
93if "%1" == "--help" goto usage\r
94if "%1" == "--prefix" goto setprefix\r
95if "%1" == "--with-gcc" goto withgcc\r
96if "%1" == "--with-msvc" goto withmsvc\r
97if "%1" == "--no-debug" goto nodebug\r
98if "%1" == "--no-opt" goto noopt\r
99if "%1" == "--no-cygwin" goto nocygwin\r
100if "%1" == "--cflags" goto usercflags\r
101if "%1" == "--ldflags" goto userldflags\r
e0006538 102if "%1" == "--without-png" goto withoutpng\r
aad0eae4 103if "%1" == "--without-jpeg" goto withoutjpeg\r
12ff2dc5 104if "%1" == "--without-gif" goto withoutgif\r
47c01e80 105if "%1" == "--without-tiff" goto withouttiff\r
507f5dce 106if "%1" == "--without-xpm" goto withoutxpm\r
f466241d
EZ
107if "%1" == "" goto checkutils\r
108:usage\r
109echo Usage: configure [options]\r
110echo Options:\r
111echo. --prefix PREFIX install Emacs in directory PREFIX\r
112echo. --with-gcc use GCC to compile Emacs\r
113echo. --with-msvc use MSVC to compile Emacs\r
114echo. --no-debug exclude debug info from executables\r
115echo. --no-opt disable optimization\r
116echo. --no-cygwin use -mno-cygwin option with GCC\r
117echo. --cflags FLAG pass FLAG to compiler\r
118echo. --ldflags FLAG pass FLAG to compiler when linking\r
7019fb66 119echo. --without-png do not use libpng even if it is installed\r
507f5dce
JR
120echo. --without-jpeg do not use jpeg-6b even if it is installed\r
121echo. --without-gif do not use libungif even if it is installed\r
6ed82072
JB
122echo. --without-tiff do not use libtiff even if it is installed\r
123echo. --without-xpm do not use libXpm even if it is installed\r
f466241d
EZ
124goto end\r
125rem ----------------------------------------------------------------------\r
126:setprefix\r
127shift\r
128set prefix=%1\r
129shift\r
130goto again\r
131rem ----------------------------------------------------------------------\r
132:withgcc\r
133set COMPILER=gcc\r
134shift\r
135goto again\r
136rem ----------------------------------------------------------------------\r
137:withmsvc\r
138set COMPILER=cl\r
139shift\r
140goto again\r
141rem ----------------------------------------------------------------------\r
142:nodebug\r
143set nodebug=Y\r
144shift\r
145goto again\r
146rem ----------------------------------------------------------------------\r
147:noopt\r
148set noopt=Y\r
149shift\r
150goto again\r
151rem ----------------------------------------------------------------------\r
152:nocygwin\r
153set nocygwin=Y\r
154shift\r
155goto again\r
156rem ----------------------------------------------------------------------\r
157:usercflags\r
158shift\r
159set usercflags=%usercflags%%sep1%%1\r
160set sep1= %nothing%\r
161shift\r
162goto again\r
163rem ----------------------------------------------------------------------\r
164:userldflags\r
165shift\r
166set userldflags=%userldflags%%sep2%%1\r
167set sep2= %nothing%\r
168shift\r
169goto again\r
e0006538
JR
170rem ----------------------------------------------------------------------\r
171\r
172:withoutpng\r
173set pngsupport=N\r
174set HAVE_PNG=\r
39bd0e03 175shift\r
e0006538 176goto again\r
f466241d 177\r
aad0eae4
JR
178rem ----------------------------------------------------------------------\r
179\r
180:withoutjpeg\r
181set jpegsupport=N\r
182set HAVE_JPEG=\r
39bd0e03 183shift\r
aad0eae4
JR
184goto again\r
185\r
12ff2dc5
JB
186rem ----------------------------------------------------------------------\r
187\r
188:withoutgif\r
189set gifsupport=N\r
190set HAVE_GIF=\r
191shift\r
192goto again\r
193\r
47c01e80
JB
194rem ----------------------------------------------------------------------\r
195\r
196:withouttiff\r
197set tiffsupport=N\r
198set HAVE_TIFF=\r
199shift\r
200goto again\r
201\r
507f5dce
JR
202rem ----------------------------------------------------------------------\r
203\r
204:withoutxpm\r
205set xpmsupport=N\r
206set HAVE_XPM=\r
207shift\r
208goto again\r
209\r
f466241d
EZ
210rem ----------------------------------------------------------------------\r
211rem Check that necessary utilities (cp and rm) are present.\r
212:checkutils\r
213echo Checking for 'cp'...\r
214cp configure.bat junk.bat\r
215if not exist junk.bat goto needcp\r
216echo Checking for 'rm'...\r
217rm junk.bat\r
218if exist junk.bat goto needrm\r
219goto checkcompiler\r
220:needcp\r
221echo You need 'cp' (the Unix file copy program) to build Emacs.\r
222goto end\r
223:needrm\r
224del junk.bat\r
225echo You need 'rm' (the Unix file delete program) to build Emacs.\r
226goto end\r
227\r
228rem ----------------------------------------------------------------------\r
229rem Auto-detect compiler if not specified, and validate GCC if chosen.\r
230:checkcompiler\r
e0006538 231if (%COMPILER%)==(cl) goto compilercheckdone\r
f466241d
EZ
232if (%COMPILER%)==(gcc) goto checkgcc\r
233\r
234echo Checking whether 'cl' is available...\r
235echo main(){} >junk.c\r
236cl -nologo -c junk.c\r
237if exist junk.obj goto clOK\r
238\r
239echo Checking whether 'gcc' is available...\r
240gcc -c junk.c\r
241if not exist junk.o goto nocompiler\r
242del junk.o\r
243\r
244:checkgcc\r
245Rem WARNING -- COMMAND.COM on some systems only looks at the first\r
246Rem 8 characters of a label. So do NOT be tempted to change\r
247Rem chkapi* into something fancier like checkw32api\r
248Rem You HAVE been warned!\r
249if (%nocygwin%) == (Y) goto chkapi\r
250echo Checking whether gcc requires '-mno-cygwin'...\r
251echo #include "cygwin/version.h" >junk.c\r
252echo main(){} >>junk.c\r
dbbdb507
EZ
253echo gcc -c junk.c >>config.log\r
254gcc -c junk.c >>config.log 2>&1\r
f466241d 255if not exist junk.o goto chkapi\r
dbbdb507
EZ
256echo gcc -mno-cygwin -c junk.c >>config.log\r
257gcc -mno-cygwin -c junk.c >>config.log 2>&1\r
f466241d
EZ
258if exist junk.o set nocygwin=Y\r
259rm -f junk.c junk.o\r
260\r
261:chkapi\r
dbbdb507
EZ
262echo The failed program was: >>config.log\r
263type junk.c >>config.log\r
f466241d
EZ
264rem ----------------------------------------------------------------------\r
265rem Older versions of the Windows API headers either don't have any of\r
266rem the IMAGE_xxx definitions (the headers that come with Cygwin b20.1\r
267rem are like this), or have a typo in the definition of\r
268rem IMAGE_FIRST_SECTION (the headers with gcc/mingw32 2.95 have this\r
269rem problem). The gcc/mingw32 2.95.2 headers are okay, as are distros\r
270rem of w32api-xxx.zip from Anders Norlander since 1999-11-18 at least.\r
271rem\r
272echo Checking whether W32 API headers are too old...\r
273echo #include "windows.h" >junk.c\r
274echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c\r
275echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c\r
276if (%nocygwin%) == (Y) goto chkapi1\r
277set cf=%usercflags%\r
278goto chkapi2\r
279:chkapi1\r
280set cf=%usercflags% -mno-cygwin\r
281:chkapi2\r
282echo on\r
283gcc %cf% -c junk.c\r
dbbdb507
EZ
284@echo off\r
285@echo gcc %cf% -c junk.c >>config.log\r
286gcc %cf% -c junk.c >>config.log 2>&1\r
f466241d
EZ
287set cf=\r
288if exist junk.o goto gccOk\r
dbbdb507
EZ
289echo The failed program was: >>config.log\r
290type junk.c >>config.log\r
f466241d
EZ
291\r
292:nocompiler\r
293echo.\r
294echo Configure failed.\r
295echo To configure Emacs for Windows, you need to have either\r
296echo gcc-2.95 or later with Mingw32 and the W32 API headers,\r
297echo or MSVC 2.x or later.\r
298del junk.c\r
299goto end\r
300\r
301:gccOk\r
302set COMPILER=gcc\r
f466241d 303echo Using 'gcc'\r
dbbdb507
EZ
304rm -f junk.c junk.o\r
305Rem It is not clear what GCC version began supporting -mtune\r
306Rem and pentium4 on x86, so check this explicitly.\r
307echo main(){} >junk.c\r
308echo gcc -c -O2 -mtune=pentium4 junk.c >>config.log\r
309gcc -c -O2 -mtune=pentium4 junk.c >>config.log 2>&1\r
310if not errorlevel 1 goto gccMtuneOk\r
311echo The failed program was: >>config.log\r
312type junk.c >>config.log\r
313set mf=-mcpu=i686\r
314rm -f junk.c junk.o\r
315goto compilercheckdone\r
316:gccMtuneOk\r
317echo GCC supports -mtune=pentium4 >>config.log\r
318set mf=-mtune=pentium4\r
319rm -f junk.c junk.o\r
e0006538 320goto compilercheckdone\r
f466241d
EZ
321\r
322:clOk\r
323set COMPILER=cl\r
324rm -f junk.c junk.obj\r
325echo Using 'MSVC'\r
e0006538
JR
326\r
327:compilercheckdone\r
328\r
329rem ----------------------------------------------------------------------\r
330rem Check for external image libraries. Since they are loaded\r
331rem dynamically, the libraries themselves do not need to be present\r
332rem at compile time, but the header files are required.\r
333\r
112dc8e1
JR
334set mingwflag=\r
335\r
336if (%nocygwin%) == (N) goto flagsOK\r
337set mingwflag=-mno-cygwin\r
338\r
339:flagsOK\r
340\r
e0006538
JR
341if (%pngsupport%) == (N) goto pngDone\r
342\r
343echo Checking for libpng...\r
344echo #include "png.h" >junk.c\r
345echo main (){} >>junk.c\r
346rem -o option is ignored with cl, but allows result to be consistent.\r
dbbdb507
EZ
347echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log\r
348%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log\r
e0006538
JR
349if exist junk.obj goto havePng\r
350\r
507f5dce 351echo ...png.h not found, building without PNG support.\r
dbbdb507
EZ
352echo The failed program was: >>config.log\r
353type junk.c >>config.log\r
e0006538
JR
354set HAVE_PNG=\r
355goto :pngDone\r
356\r
357:havePng\r
358echo ...PNG header available, building with PNG support.\r
359set HAVE_PNG=1\r
360\r
361:pngDone\r
362rm -f junk.c junk.obj\r
f466241d 363\r
aad0eae4
JR
364if (%jpegsupport%) == (N) goto jpegDone\r
365\r
507f5dce 366echo Checking for jpeg-6b...\r
aad0eae4
JR
367echo #include "jconfig.h" >junk.c\r
368echo main (){} >>junk.c\r
369rem -o option is ignored with cl, but allows result to be consistent.\r
dbbdb507
EZ
370echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log\r
371%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log\r
aad0eae4
JR
372if exist junk.obj goto haveJpeg\r
373\r
507f5dce 374echo ...jconfig.h not found, building without JPEG support.\r
dbbdb507
EZ
375echo The failed program was: >>config.log\r
376type junk.c >>config.log\r
aad0eae4
JR
377set HAVE_JPEG=\r
378goto :jpegDone\r
379\r
380:haveJpeg\r
381echo ...JPEG header available, building with JPEG support.\r
382set HAVE_JPEG=1\r
383\r
384:jpegDone\r
385rm -f junk.c junk.obj\r
386\r
12ff2dc5
JB
387if (%gifsupport%) == (N) goto gifDone\r
388\r
507f5dce 389echo Checking for libgif...\r
12ff2dc5
JB
390echo #include "gif_lib.h" >junk.c\r
391echo main (){} >>junk.c\r
392rem -o option is ignored with cl, but allows result to be consistent.\r
dbbdb507
EZ
393echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log\r
394%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log\r
12ff2dc5
JB
395if exist junk.obj goto haveGif\r
396\r
507f5dce 397echo ...gif_lib.h not found, building without GIF support.\r
dbbdb507
EZ
398echo The failed program was: >>config.log\r
399type junk.c >>config.log\r
12ff2dc5
JB
400set HAVE_GIF=\r
401goto :gifDone\r
402\r
403:haveGif\r
404echo ...GIF header available, building with GIF support.\r
405set HAVE_GIF=1\r
406\r
407:gifDone\r
408rm -f junk.c junk.obj\r
409\r
47c01e80
JB
410if (%tiffsupport%) == (N) goto tiffDone\r
411\r
412echo Checking for tiff...\r
413echo #include "tiffio.h" >junk.c\r
414echo main (){} >>junk.c\r
415rem -o option is ignored with cl, but allows result to be consistent.\r
dbbdb507
EZ
416echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log\r
417%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log\r
47c01e80
JB
418if exist junk.obj goto haveTiff\r
419\r
507f5dce 420echo ...tiffio.h not found, building without TIFF support.\r
dbbdb507
EZ
421echo The failed program was: >>config.log\r
422type junk.c >>config.log\r
47c01e80
JB
423set HAVE_TIFF=\r
424goto :tiffDone\r
425\r
426:haveTiff\r
427echo ...TIFF header available, building with TIFF support.\r
428set HAVE_TIFF=1\r
429\r
430:tiffDone\r
431rm -f junk.c junk.obj\r
432\r
507f5dce
JR
433if (%xpmsupport%) == (N) goto xpmDone\r
434\r
435echo Checking for libXpm...\r
436echo #define FOR_MSW 1 >junk.c\r
437echo #include "X11/xpm.h" >>junk.c\r
438echo main (){} >>junk.c\r
439rem -o option is ignored with cl, but allows result to be consistent.\r
dbbdb507
EZ
440echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log\r
441%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>>config.log\r
507f5dce
JR
442if exist junk.obj goto haveXpm\r
443\r
444echo ...X11/xpm.h not found, building without XPM support.\r
dbbdb507
EZ
445echo The failed program was: >>config.log\r
446type junk.c >>config.log\r
507f5dce
JR
447set HAVE_XPM=\r
448goto :xpmDone\r
449\r
450:haveXpm\r
451echo ...XPM header available, building with XPM support.\r
452set HAVE_XPM=1\r
453\r
454:xpmDone\r
455rm -f junk.c junk.obj junk.err junk.out\r
456\r
f466241d
EZ
457rem ----------------------------------------------------------------------\r
458:genmakefiles\r
459echo Generating makefiles\r
460if %COMPILER% == gcc set MAKECMD=gmake\r
461if %COMPILER% == cl set MAKECMD=nmake\r
462\r
463rem Pass on chosen settings to makefiles.\r
464rem NB. Be very careful to not have a space before redirection symbols\r
465rem except when there is a preceding digit, when a space is required.\r
466rem\r
467echo # Start of settings from configure.bat >config.settings\r
468echo COMPILER=%COMPILER%>>config.settings\r
dbbdb507 469if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings\r
f466241d
EZ
470if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings\r
471if (%noopt%) == (Y) echo NOOPT=1 >>config.settings\r
472if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings\r
473if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings\r
474if not "(%usercflags%)" == "()" echo USER_CFLAGS=%usercflags%>>config.settings\r
475if not "(%userldflags%)" == "()" echo USER_LDFLAGS=%userldflags%>>config.settings\r
476echo # End of settings from configure.bat>>config.settings\r
477echo. >>config.settings\r
478\r
c262c68c
EZ
479copy config.nt config.tmp\r
480echo. >>config.tmp\r
481echo /* Start of settings from configure.bat. */ >>config.tmp\r
482if not "(%usercflags%)" == "()" echo #define USER_CFLAGS " %usercflags%">>config.tmp\r
483if not "(%userldflags%)" == "()" echo #define USER_LDFLAGS " %userldflags%">>config.tmp\r
484if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>config.tmp\r
485if not "(%HAVE_JPEG%)" == "()" echo #define HAVE_JPEG 1 >>config.tmp\r
486if not "(%HAVE_GIF%)" == "()" echo #define HAVE_GIF 1 >>config.tmp\r
487if not "(%HAVE_TIFF%)" == "()" echo #define HAVE_TIFF 1 >>config.tmp\r
488if not "(%HAVE_XPM%)" == "()" echo #define HAVE_XPM 1 >>config.tmp\r
489echo /* End of settings from configure.bat. */ >>config.tmp\r
490\r
491Rem See if fc.exe returns a meaningful exit status. If it does, we\r
492Rem might as well avoid unnecessary overwriting of config.h and epaths.h,\r
493Rem since this forces recompilation of every source file.\r
494if exist foo.bar del foo.bar\r
495fc /b foo.bar foo.bar >nul 2>&1\r
496if not errorlevel 2 goto doCopy\r
497fc /b config.tmp ..\src\config.h >nul 2>&1\r
498if errorlevel 1 goto doCopy\r
499fc /b paths.h ..\src\epaths.h >nul 2>&1\r
500if errorlevel 0 goto dontCopy\r
501:doCopy\r
502copy config.tmp ..\src\config.h\r
f466241d
EZ
503copy paths.h ..\src\epaths.h\r
504\r
c262c68c
EZ
505:dontCopy\r
506if exist config.tmp del config.tmp\r
f466241d
EZ
507copy /b config.settings+%MAKECMD%.defs+..\nt\makefile.w32-in ..\nt\makefile\r
508copy /b config.settings+%MAKECMD%.defs+..\lib-src\makefile.w32-in ..\lib-src\makefile\r
509copy /b config.settings+%MAKECMD%.defs+..\src\makefile.w32-in ..\src\makefile\r
80c164ec
JR
510copy /b config.settings+%MAKECMD%.defs+..\man\makefile.w32-in ..\man\makefile\r
511copy /b config.settings+%MAKECMD%.defs+..\lispref\makefile.w32-in ..\lispref\makefile\r
512copy /b config.settings+%MAKECMD%.defs+..\lispintro\makefile.w32-in ..\lispintro\makefile\r
f466241d
EZ
513if exist ..\lisp\makefile rm -f ../lisp/[Mm]akefile\r
514copy /b config.settings+%MAKECMD%.defs+..\lisp\makefile.w32-in ..\lisp\makefile\r
515rem Use the default (no-op) Makefile.in if the nt version is not present.\r
516if exist ..\leim\makefile.w32-in copy /b config.settings+%MAKECMD%.defs+..\leim\makefile.w32-in ..\leim\makefile\r
517if not exist ..\leim\makefile.w32-in copy /b config.settings+%MAKECMD%.defs+..\leim\Makefile.in ..\leim\makefile\r
518del config.settings\r
519\r
e44f8099
EZ
520Rem Some people use WinZip which doesn't create empty directories!\r
521if not exist ..\site-lisp\nul mkdir ..\site-lisp\\r
f466241d
EZ
522if not exist ..\site-lisp\subdirs.el copy subdirs.el ..\site-lisp\subdirs.el\r
523\r
524echo.\r
525echo Emacs successfully configured.\r
a27014fc 526echo Emacs successfully configured. >>config.log\r
f466241d
EZ
527echo Run `%MAKECMD%' to build, then run `%MAKECMD% install' to install.\r
528goto end\r
529\r
530:SmallEnv\r
531echo Your environment size is too small. Please enlarge it and rerun configure.\r
532echo For example, type "command.com /e:2048" to have 2048 bytes available.\r
533set $foo$=\r
534:end\r
535set prefix=\r
536set nodebug=\r
537set noopt=\r
538set nocygwin=\r
539set COMPILER=\r
540set MAKECMD=\r
541set usercflags=\r
542set userldflags=\r
112dc8e1 543set mingwflag=\r
dbbdb507 544set mf=\r
a2fcf029
MB
545\r
546goto skipArchTag\r
547 arch-tag: 300d20a4-1675-4e75-b615-7ce1a8c5376c\r
548:skipArchTag\r