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
This commit is contained in:
parent
865dfe398b
commit
6330e1d9fe
3 changed files with 95 additions and 66 deletions
|
@ -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.
|
||||
|
|
101
libstdc++-v3/configure
vendored
101
libstdc++-v3/configure
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue