aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2007-10-20 12:37:09 +0000
committerEli Zaretskii2007-10-20 12:37:09 +0000
commitaa9dea6475cb6a6ab8b02a26bc931f72a92c35f7 (patch)
tree646468e44460f2e97fab0db20896f869919f93d1
parentf42fc119bc43ac1e902c530eaf3f88f49de8be6c (diff)
downloademacs-aa9dea6475cb6a6ab8b02a26bc931f72a92c35f7.tar.gz
emacs-aa9dea6475cb6a6ab8b02a26bc931f72a92c35f7.zip
(docflags, doldflags): New variables.
(genmakefiles): Use them to work around problems with whitespace in arguments of the `if' command.
-rw-r--r--nt/ChangeLog6
-rwxr-xr-xnt/configure.bat14
2 files changed, 16 insertions, 4 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 88cddd2643e..aeb8068325d 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,9 @@
12007-10-20 Eli Zaretskii <eliz@gnu.org>
2
3 * configure.bat (docflags, doldflags): New variables.
4 (genmakefiles): Use them to work around problems with whitespace
5 in arguments of the `if' command.
6
12007-10-18 Jason Rumney <jasonr@gnu.org> 72007-10-18 Jason Rumney <jasonr@gnu.org>
2 8
3 * makefile.w32-in (install): Install COPYING in top-level and bin dirs. 9 * makefile.w32-in (install): Install COPYING in top-level and bin dirs.
diff --git a/nt/configure.bat b/nt/configure.bat
index 5ff084832dd..2ea58ecf933 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -84,7 +84,9 @@ set noopt=N
84set nocygwin=N 84set nocygwin=N
85set COMPILER= 85set COMPILER=
86set usercflags= 86set usercflags=
87set docflags=
87set userldflags= 88set userldflags=
89set doldflags=
88set sep1= 90set sep1=
89set sep2= 91set sep2=
90 92
@@ -473,16 +475,20 @@ if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings
473if (%noopt%) == (Y) echo NOOPT=1 >>config.settings 475if (%noopt%) == (Y) echo NOOPT=1 >>config.settings
474if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings 476if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings
475if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings 477if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings
476if not "(%usercflags%)" == "()" echo USER_CFLAGS=%usercflags%>>config.settings 478rem We go thru docflags because usercflags could be "-DFOO=bar" -something
477if not "(%userldflags%)" == "()" echo USER_LDFLAGS=%userldflags%>>config.settings 479rem and the if command cannot cope with this
480for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y
481if (%docflags%)==(Y) echo USER_CFLAGS=%usercflags%>>config.settings
482for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y
483if (%doldflags%)==(Y) echo USER_LDFLAGS=%userldflags%>>config.settings
478echo # End of settings from configure.bat>>config.settings 484echo # End of settings from configure.bat>>config.settings
479echo. >>config.settings 485echo. >>config.settings
480 486
481copy config.nt config.tmp 487copy config.nt config.tmp
482echo. >>config.tmp 488echo. >>config.tmp
483echo /* Start of settings from configure.bat. */ >>config.tmp 489echo /* Start of settings from configure.bat. */ >>config.tmp
484if not "(%usercflags%)" == "()" echo #define USER_CFLAGS " %usercflags%">>config.tmp 490if (%docflags%) == (Y) echo #define USER_CFLAGS " %usercflags%">>config.tmp
485if not "(%userldflags%)" == "()" echo #define USER_LDFLAGS " %userldflags%">>config.tmp 491if (%doldflags%) == (Y) echo #define USER_LDFLAGS " %userldflags%">>config.tmp
486if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>config.tmp 492if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>config.tmp
487if not "(%HAVE_JPEG%)" == "()" echo #define HAVE_JPEG 1 >>config.tmp 493if not "(%HAVE_JPEG%)" == "()" echo #define HAVE_JPEG 1 >>config.tmp
488if not "(%HAVE_GIF%)" == "()" echo #define HAVE_GIF 1 >>config.tmp 494if not "(%HAVE_GIF%)" == "()" echo #define HAVE_GIF 1 >>config.tmp