1
--- config_office/configure.in
2
+++ config_office/configure.in
7
+if test "$_os" = "WINNT"; then
8
+ # Set TMP (and TEMP) to a short value to avoid potential problems with
9
+ # too long lines in ddf files
10
+ AC_MSG_CHECKING([for problematic length of TMP and TEMP])
11
+ # $TMP and $TEMP are usually the same, but just to be sure...
12
+ # and I am not sure which one actually gets used
13
+ case "`cygpath -w $TMP`!`cygpath -w $TEMP`" in
14
+ ??????????*!*|*!????????*)
15
+ # Either is "long", try using "C:\tmp"
16
+ AC_MSG_RESULT([yes])
17
+ mkdir /cygdrive/c/tmp 2>/dev/null
18
+ if test -d /cygdrive/c/tmp && touch /cygdrive/c/tmp/foobarzap 2>/dev/null; then
19
+ rm /cygdrive/c/tmp/foobarzap
20
+ TEMPORARY_DIRECTORY=/cygdrive/c/tmp
21
+ AC_SUBST(TEMPORARY_DIRECTORY)
22
+ echo Using `cygpath -w $TEMPORARY_DIRECTORY`
24
+ AC_MSG_WARN([One or both are too long, but can't figure out what to use instead])
33
# make sure config.guess is +x; we execute config.guess, so it has to be so;
34
chmod +x $_solenv/bin/config.guess
36
dummy line to avoid confusing diff-mode
37
--- config_office/set_soenv.in
38
+++ config_office/set_soenv.in
39
@@ -1660,6 +1660,10 @@
40
ToFile( "NSIS_PATH", "@NSIS_PATH@", "e" );
41
ToFile( "DISABLE_ACTIVEX", "@DISABLE_ACTIVEX@","e" );
42
ToFile( "USE_NEW_SDK", $USE_NEW_SDK, "e" );
43
+ if( '@TEMPORARY_DIRECTORY@' ) {
44
+ ToFile( "TMP", "@TEMPORARY_DIRECTORY@", "e");
45
+ ToFile( "TEMP", "@TEMPORARY_DIRECTORY@", "e");
48
ToFile( "PERL", $PERL, "e" );
49
ToFile( "RPM", "@RPM@", "e" );