aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-09-02 22:11:54 +0000
committerRalf Wildenhues <rwild@gcc.gnu.org>2009-09-02 22:11:54 +0000
commit6330e1d9fedc81a1d81546012005e15c840e678c (patch)
tree86edea893a0bf1459489d3c0c3582fe754ab73e9
parent865dfe398b530c3c952d031d2c9a1d212be01c23 (diff)
downloadgcc-6330e1d9fedc81a1d81546012005e15c840e678c.zip
gcc-6330e1d9fedc81a1d81546012005e15c840e678c.tar.gz
gcc-6330e1d9fedc81a1d81546012005e15c840e678c.tar.bz2
v3: fix config.status instantiation of subdir makefiles.
libstdc++-v3/: * configure.ac: Replace AC_CONFIG_COMMANDS([default]) instantiation with additional commands issued for each Makefile in glibcxx_SUBDIRS, so `./config.status subdir/Makefile' also runs these commands. Add a separate AC_CONFIG_COMMANDS([generate-headers]) for running `make' in include, passing `pch_build=' to `make'. * configure: Regenerate. From-SVN: r151352
-rw-r--r--libstdc++-v3/ChangeLog8
-rwxr-xr-xlibstdc++-v3/configure101
-rw-r--r--libstdc++-v3/configure.ac52
3 files changed, 95 insertions, 66 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b58d086..d0562a6 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,13 @@
2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * configure.ac: Replace AC_CONFIG_COMMANDS([default])
+ instantiation with additional commands issued for each Makefile
+ in glibcxx_SUBDIRS, so `./config.status subdir/Makefile' also
+ runs these commands.
+ Add a separate AC_CONFIG_COMMANDS([generate-headers]) for
+ running `make' in include, passing `pch_build=' to `make'.
+ * configure: Regenerate.
+
PR libstdc++/41220
* include/Makefile.am (CLEANFILES): Add stamp-host.
* include/Makefile.in: Regenerate.
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 9bfa40b..2d0c977 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -59052,12 +59052,23 @@ else
fi
-ac_config_files="$ac_config_files Makefile include/Makefile libsupc++/Makefile python/Makefile src/Makefile doc/Makefile po/Makefile testsuite/Makefile"
+ac_config_files="$ac_config_files Makefile"
ac_config_files="$ac_config_files scripts/testsuite_flags"
-ac_config_commands="$ac_config_commands default"
+# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
+# that multilib installs will end up installed in the correct place.
+# The testsuite needs it for multilib-aware ABI baseline files.
+# To work around this not being passed down from config-ml.in ->
+# srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
+# append it here. Only modify Makefiles that have just been created.
+#
+# Also, get rid of this simulated-VPATH thing that automake does.
+ac_config_files="$ac_config_files include/Makefile libsupc++/Makefile python/Makefile src/Makefile doc/Makefile po/Makefile testsuite/Makefile"
+
+
+ac_config_commands="$ac_config_commands generate-headers"
cat >confcache <<\_ACEOF
@@ -60196,11 +60207,6 @@ ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
-# Variables needed in config.status (file generation) which aren't already
-# passed by autoconf.
-SUBDIRS="$SUBDIRS"
-
-
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
@@ -60214,6 +60220,7 @@ do
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
"include/gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/gstdint.h" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "scripts/testsuite_flags") CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
"libsupc++/Makefile") CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
"python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
@@ -60221,8 +60228,7 @@ do
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
"po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
"testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
- "scripts/testsuite_flags") CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
- "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
+ "generate-headers") CONFIG_COMMANDS="$CONFIG_COMMANDS generate-headers" ;;
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
@@ -61946,32 +61952,63 @@ fi
;;
"scripts/testsuite_flags":F) chmod +x scripts/testsuite_flags ;;
- "default":C) if test -n "$CONFIG_FILES"; then
- # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
- # that multilib installs will end up installed in the correct place.
- # The testsuite needs it for multilib-aware ABI baseline files.
- # To work around this not being passed down from config-ml.in ->
- # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
- # append it here. Only modify Makefiles that have just been created.
- #
- # Also, get rid of this simulated-VPATH thing that automake does.
- cat > vpsed << \_EOF
+ "include/Makefile":F) cat > vpsed$$ << \_EOF
s!`test -f '$<' || echo '$(srcdir)/'`!!
_EOF
- for i in $SUBDIRS; do
- case $CONFIG_FILES in
- *${i}/Makefile*)
- #echo "Adding MULTISUBDIR to $i/Makefile"
- sed -f vpsed $i/Makefile > tmp
- grep '^MULTISUBDIR =' Makefile >> tmp
- mv tmp $i/Makefile
- ;;
- esac
- done
- rm vpsed
- fi
- (cd include && ${MAKE-make})
+ sed -f vpsed$$ $ac_file > tmp$$
+ grep '^MULTISUBDIR =' Makefile >> tmp$$
+ mv tmp$$ $ac_file
+ rm vpsed$$
+ ;;
+ "libsupc++/Makefile":F) cat > vpsed$$ << \_EOF
+s!`test -f '$<' || echo '$(srcdir)/'`!!
+_EOF
+ sed -f vpsed$$ $ac_file > tmp$$
+ grep '^MULTISUBDIR =' Makefile >> tmp$$
+ mv tmp$$ $ac_file
+ rm vpsed$$
+ ;;
+ "python/Makefile":F) cat > vpsed$$ << \_EOF
+s!`test -f '$<' || echo '$(srcdir)/'`!!
+_EOF
+ sed -f vpsed$$ $ac_file > tmp$$
+ grep '^MULTISUBDIR =' Makefile >> tmp$$
+ mv tmp$$ $ac_file
+ rm vpsed$$
+ ;;
+ "src/Makefile":F) cat > vpsed$$ << \_EOF
+s!`test -f '$<' || echo '$(srcdir)/'`!!
+_EOF
+ sed -f vpsed$$ $ac_file > tmp$$
+ grep '^MULTISUBDIR =' Makefile >> tmp$$
+ mv tmp$$ $ac_file
+ rm vpsed$$
+ ;;
+ "doc/Makefile":F) cat > vpsed$$ << \_EOF
+s!`test -f '$<' || echo '$(srcdir)/'`!!
+_EOF
+ sed -f vpsed$$ $ac_file > tmp$$
+ grep '^MULTISUBDIR =' Makefile >> tmp$$
+ mv tmp$$ $ac_file
+ rm vpsed$$
+ ;;
+ "po/Makefile":F) cat > vpsed$$ << \_EOF
+s!`test -f '$<' || echo '$(srcdir)/'`!!
+_EOF
+ sed -f vpsed$$ $ac_file > tmp$$
+ grep '^MULTISUBDIR =' Makefile >> tmp$$
+ mv tmp$$ $ac_file
+ rm vpsed$$
+ ;;
+ "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
+s!`test -f '$<' || echo '$(srcdir)/'`!!
+_EOF
+ sed -f vpsed$$ $ac_file > tmp$$
+ grep '^MULTISUBDIR =' Makefile >> tmp$$
+ mv tmp$$ $ac_file
+ rm vpsed$$
;;
+ "generate-headers":C) (cd include && ${MAKE-make} pch_build= ) ;;
esac
done # for ac_tag
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index bc05d2d..e8f6805 100644
--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -388,45 +388,29 @@ AC_SUBST(LIBSUPCXX_PICFLAGS)
dnl In autoconf 2.5x, AC_OUTPUT is replaced by four AC_CONFIG_* macros,
dnl which can all be called multiple times as needed, plus one (different)
dnl AC_OUTPUT macro. This one lists the files to be created:
-AC_CONFIG_FILES( \
- Makefile \
- AC_FOREACH([DIR], glibcxx_SUBDIRS, [DIR/Makefile ])
- )
+AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES([scripts/testsuite_flags],[chmod +x scripts/testsuite_flags])
-dnl These commands are run at the end of config.status:
-AC_CONFIG_COMMANDS([default],
-[if test -n "$CONFIG_FILES"; then
- # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
- # that multilib installs will end up installed in the correct place.
- # The testsuite needs it for multilib-aware ABI baseline files.
- # To work around this not being passed down from config-ml.in ->
- # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
- # append it here. Only modify Makefiles that have just been created.
- #
- # Also, get rid of this simulated-VPATH thing that automake does.
- cat > vpsed << \_EOF
+# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
+# that multilib installs will end up installed in the correct place.
+# The testsuite needs it for multilib-aware ABI baseline files.
+# To work around this not being passed down from config-ml.in ->
+# srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
+# append it here. Only modify Makefiles that have just been created.
+#
+# Also, get rid of this simulated-VPATH thing that automake does.
+AC_CONFIG_FILES(AC_FOREACH([DIR], glibcxx_SUBDIRS, [DIR/Makefile ]),
+ [cat > vpsed$$ << \_EOF
s!`test -f '$<' || echo '$(srcdir)/'`!!
_EOF
- for i in $SUBDIRS; do
- case $CONFIG_FILES in
- *${i}/Makefile*)
- #echo "Adding MULTISUBDIR to $i/Makefile"
- sed -f vpsed $i/Makefile > tmp
- grep '^MULTISUBDIR =' Makefile >> tmp
- mv tmp $i/Makefile
- ;;
- esac
- done
- rm vpsed
- fi
- (cd include && ${MAKE-make})
-],
-[
-# Variables needed in config.status (file generation) which aren't already
-# passed by autoconf.
-SUBDIRS="$SUBDIRS"
+ sed -f vpsed$$ $ac_file > tmp$$
+ grep '^MULTISUBDIR =' Makefile >> tmp$$
+ mv tmp$$ $ac_file
+ rm vpsed$$
])
+AC_CONFIG_COMMANDS([generate-headers],
+ [(cd include && ${MAKE-make} pch_build= )])
+
dnl And this actually makes things happen:
AC_OUTPUT