[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: TIM_FD
From: |
Akim Demaille |
Subject: |
FYI: TIM_FD |
Date: |
20 Apr 2001 18:51:35 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
I'm applying this.
Index: ChangeLog
from Tim Van Holder <address@hidden>
* acgeneral.m4 (AC_OUTPUT): Close the descriptor before running
config.status so config.log is properly created on MS-DOS.
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.717
diff -u -u -r1.717 acgeneral.m4
--- acgeneral.m4 2001/04/18 16:49:11 1.717
+++ acgeneral.m4 2001/04/20 16:47:53
@@ -3588,7 +3588,23 @@
dnl Commands to run after config.status was created
AC_OUTPUT_COMMANDS_POST()dnl
-test "$no_create" = yes || $SHELL $CONFIG_STATUS || AS_EXIT([1])
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ exec AS_MESSAGE_LOG_FD>/dev/null
+ $SHELL $CONFIG_STATUS || ac_cs_success=false
+ exec AS_MESSAGE_LOG_FD>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || AS_EXIT([1])
+fi
dnl config.status should not do recursion.
AC_PROVIDE_IFELSE([AC_CONFIG_SUBDIRS], [_AC_OUTPUT_SUBDIRS()])dnl
])# AC_OUTPUT
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: TIM_FD,
Akim Demaille <=