diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-07-03 14:16:59 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-07-03 14:16:59 +0000 |
commit | d4360477682363406d83d61bedcdfcfd6d7af488 (patch) | |
tree | cf24b692c1a3b4105d4d0c2d499b906f348c37cd /configure | |
parent | 9dc9ae7437b85eaed48bdc32d796af3a88f2b50f (diff) | |
download | gcc-d4360477682363406d83d61bedcdfcfd6d7af488.zip gcc-d4360477682363406d83d61bedcdfcfd6d7af488.tar.gz gcc-d4360477682363406d83d61bedcdfcfd6d7af488.tar.bz2 |
configure.ac: Set srcdir when sourcing config-lang.in fragments.
* configure.ac: Set srcdir when sourcing config-lang.in fragments.
* configure: Rebuilt.
gcc/objcp/
* config-lang.in: Source cp/config-lang.in, sort objc++ gtfiles list.
From-SVN: r249922
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -6166,7 +6166,12 @@ if test -d ${srcdir}/gcc; then language= lang_requires= lang_requires_boot_languages= - . ${lang_frag} + # set srcdir during sourcing lang_frag to the gcc dir. + # Sadly overriding srcdir on the . line doesn't work in plain sh as it + # polutes this shell + saved_srcdir=${srcdir} + srcdir=${srcdir}/gcc . ${lang_frag} + srcdir=${saved_srcdir} for other in ${lang_requires} ${lang_requires_boot_languages}; do case ,${enable_languages}, in *,$other,*) ;; @@ -6241,7 +6246,10 @@ if test -d ${srcdir}/gcc; then subdir_requires= boot_language=no build_by_default=yes - . ${lang_frag} + # set srcdir during sourcing. See above about save & restore + saved_srcdir=${srcdir} + srcdir=${srcdir}/gcc . ${lang_frag} + srcdir=${saved_srcdir} if test x${language} = x; then echo "${lang_frag} doesn't set \$language." 1>&2 exit 1 |