[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH: bugfix for broken AC_CONFIG_xxx in 2.50
From: |
Paolo Bonzini |
Subject: |
PATCH: bugfix for broken AC_CONFIG_xxx in 2.50 |
Date: |
Mon, 18 Jun 2001 12:13:27 +0200 |
The command line for config.status is read before the INIT-CMDS
are evaluated, so using $xxx in AC_CONFIG_xxx macros won't
work (such as in the example for AC_CONFIG_LINKS found in
the info documentation).
The fix is simply to move the INIT-CMDS output phase right after
AS_SHELL_SANITIZE.
This bug is very critical, since most packages using AC_CONFIG_LINKS
will likely be broken (using $xxx with symbolic links is very common)!
The only workaround (other than patch patch patch) is not to use 2.50!
*** autoconf-2.50-orig/acgeneral.m4~ Sat May 19 19:29:30 2001
--- autoconf-2.50acgeneral.m4 Mon Jun 18 11:42:17 2001
***************
*** 3716,3721 ****
--- 3716,3732 ----
])dnl
EOF
+ dnl We output the INIT-CMDS first for obvious reasons :)
+ m4_ifset([_AC_OUTPUT_COMMANDS_INIT],
+ [cat >>$CONFIG_STATUS <<EOF
+ #
+ # INIT-COMMANDS section.
+ #
+
+ _AC_OUTPUT_COMMANDS_INIT()
+ EOF])
+
+
cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value. By we need to know if files were specified by the user.
***************
*** 3833,3849 ****
EOF
])[]dnl m4_ifval
-
- dnl We output the INIT-CMDS first for obvious reasons :)
- m4_ifset([_AC_OUTPUT_COMMANDS_INIT],
- [cat >>$CONFIG_STATUS <<EOF
- #
- # INIT-COMMANDS section.
- #
-
- _AC_OUTPUT_COMMANDS_INIT()
- EOF])
-
dnl The following four sections are in charge of their own here
dnl documenting into $CONFIG_STATUS.
--- 3844,3849 ----
- PATCH: bugfix for broken AC_CONFIG_xxx in 2.50,
Paolo Bonzini <=