comparison nt/configure.bat @ 109458:a2184d0e089b

* configure.bat: New option --enable-checking. * gmake.defs, nmake.defs (CHECKING_CFLAGS): New define. (CFLAGS): Include it.
author Juanma Barranquero <lekktu@gmail.com>
date Sun, 18 Jul 2010 11:41:48 +0200
parents 1d1d5d9bd884
children 1277fe6717c9
comparison
equal deleted inserted replaced
109457:c581eca79ab5 109458:a2184d0e089b
78 rem ---------------------------------------------------------------------- 78 rem ----------------------------------------------------------------------
79 rem Default settings. 79 rem Default settings.
80 set prefix= 80 set prefix=
81 set nodebug=N 81 set nodebug=N
82 set noopt=N 82 set noopt=N
83 set enablechecking=N
83 set profile=N 84 set profile=N
84 set nocygwin=N 85 set nocygwin=N
85 set COMPILER= 86 set COMPILER=
86 set usercflags= 87 set usercflags=
87 set docflags= 88 set docflags=
98 if "%1" == "--prefix" goto setprefix 99 if "%1" == "--prefix" goto setprefix
99 if "%1" == "--with-gcc" goto withgcc 100 if "%1" == "--with-gcc" goto withgcc
100 if "%1" == "--with-msvc" goto withmsvc 101 if "%1" == "--with-msvc" goto withmsvc
101 if "%1" == "--no-debug" goto nodebug 102 if "%1" == "--no-debug" goto nodebug
102 if "%1" == "--no-opt" goto noopt 103 if "%1" == "--no-opt" goto noopt
104 if "%1" == "--enable-checking" goto enablechecking
103 if "%1" == "--profile" goto profile 105 if "%1" == "--profile" goto profile
104 if "%1" == "--no-cygwin" goto nocygwin 106 if "%1" == "--no-cygwin" goto nocygwin
105 if "%1" == "--cflags" goto usercflags 107 if "%1" == "--cflags" goto usercflags
106 if "%1" == "--ldflags" goto userldflags 108 if "%1" == "--ldflags" goto userldflags
107 if "%1" == "--without-png" goto withoutpng 109 if "%1" == "--without-png" goto withoutpng
117 echo. --prefix PREFIX install Emacs in directory PREFIX 119 echo. --prefix PREFIX install Emacs in directory PREFIX
118 echo. --with-gcc use GCC to compile Emacs 120 echo. --with-gcc use GCC to compile Emacs
119 echo. --with-msvc use MSVC to compile Emacs 121 echo. --with-msvc use MSVC to compile Emacs
120 echo. --no-debug exclude debug info from executables 122 echo. --no-debug exclude debug info from executables
121 echo. --no-opt disable optimization 123 echo. --no-opt disable optimization
124 echo. --enable-checking enable checks and assertions
122 echo. --profile enable profiling 125 echo. --profile enable profiling
123 echo. --no-cygwin use -mno-cygwin option with GCC 126 echo. --no-cygwin use -mno-cygwin option with GCC
124 echo. --cflags FLAG pass FLAG to compiler 127 echo. --cflags FLAG pass FLAG to compiler
125 echo. --ldflags FLAG pass FLAG to compiler when linking 128 echo. --ldflags FLAG pass FLAG to compiler when linking
126 echo. --without-png do not use PNG library even if it is installed 129 echo. --without-png do not use PNG library even if it is installed
152 shift 155 shift
153 goto again 156 goto again
154 rem ---------------------------------------------------------------------- 157 rem ----------------------------------------------------------------------
155 :noopt 158 :noopt
156 set noopt=Y 159 set noopt=Y
160 shift
161 goto again
162 rem ----------------------------------------------------------------------
163 :enablechecking
164 set enablechecking=Y
157 shift 165 shift
158 goto again 166 goto again
159 rem ---------------------------------------------------------------------- 167 rem ----------------------------------------------------------------------
160 :profile 168 :profile
161 set profile=Y 169 set profile=Y
527 echo COMPILER=%COMPILER%>>config.settings 535 echo COMPILER=%COMPILER%>>config.settings
528 if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings 536 if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings
529 if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings 537 if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings
530 if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings 538 if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings
531 if (%noopt%) == (Y) echo NOOPT=1 >>config.settings 539 if (%noopt%) == (Y) echo NOOPT=1 >>config.settings
540 if (%enablechecking%) == (Y) echo ENABLECHECKS=1 >>config.settings
532 if (%profile%) == (Y) echo PROFILE=1 >>config.settings 541 if (%profile%) == (Y) echo PROFILE=1 >>config.settings
533 if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings 542 if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings
534 if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings 543 if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings
535 rem We go thru docflags because usercflags could be "-DFOO=bar" -something 544 rem We go thru docflags because usercflags could be "-DFOO=bar" -something
536 rem and the if command cannot cope with this 545 rem and the if command cannot cope with this
658 set $foo$= 667 set $foo$=
659 :end 668 :end
660 set prefix= 669 set prefix=
661 set nodebug= 670 set nodebug=
662 set noopt= 671 set noopt=
672 set enablechecking=
663 set profile= 673 set profile=
664 set nocygwin= 674 set nocygwin=
665 set COMPILER= 675 set COMPILER=
666 set MAKECMD= 676 set MAKECMD=
667 set usercflags= 677 set usercflags=