Skip to content
Snippets Groups Projects
Commit 75382c6d authored by Tom Tromey's avatar Tom Tromey Committed by Tom Tromey
Browse files

configure: Rebuilt.

	* configure: Rebuilt.
	* configure.in: Allow config-lang.in to set `lang_requires' to list
	of other required languages.

From-SVN: r40308
parent bcacc465
No related merge requests found
2001-03-07 Tom Tromey <tromey@redhat.com>
* configure: Rebuilt.
* configure.in: Allow config-lang.in to set `lang_requires' to list
of other required languages.
2001-03-07 Andrew MacLeod <amacleod@redhat.com> 2001-03-07 Andrew MacLeod <amacleod@redhat.com>
* config/a29k/a29k.c (print_operand): Free a29k_last_prologue_insn * config/a29k/a29k.c (print_operand): Free a29k_last_prologue_insn
......
This diff is collapsed.
...@@ -1491,6 +1491,40 @@ else ...@@ -1491,6 +1491,40 @@ else
AC_MSG_ERROR([--enable-languages needs at least one argument]) AC_MSG_ERROR([--enable-languages needs at least one argument])
fi fi
fi fi
# First scan to see if an enabled language requires some other language.
# We assume that a given config-lang.in will list all the language
# front ends it requires, even if some are required indirectly.
for lang in ${srcdir}/*/config-lang.in ..
do
case $lang in
..)
;;
# The odd quoting in the next line works around
# an apparent bug in bash 1.12 on linux.
changequote(,)dnl
${srcdir}/[*]/config-lang.in)
;;
*)
lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
for other in $this_lang_requires
do
case ,${enable_languages}, in
*,$other,*)
;;
*,all,*)
;;
*)
enable_languages="$enable_languages,$other"
;;
esac
done
;;
changequote([,])dnl
esac
done
subdirs= subdirs=
for lang in ${srcdir}/*/config-lang.in .. for lang in ${srcdir}/*/config-lang.in ..
do do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment