Commit 6a556ad6 by Tom Tromey Committed by Tom Tromey

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

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

From-SVN: r40309
parent 75382c6d
2001-03-07 Tom Tromey <tromey@redhat.com>
* configure.in: Allow config-lang.in to set `lang_requires' to list
of other required languages.
2001-03-06 Laurynas Biveinis <lauras@softhome.net> 2001-03-06 Laurynas Biveinis <lauras@softhome.net>
* Makefile.in: Remove RANLIB definition. Use RANLIB * Makefile.in: Remove RANLIB definition. Use RANLIB
......
...@@ -993,6 +993,39 @@ else ...@@ -993,6 +993,39 @@ else
exit 1 exit 1
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}/gcc/*/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.
${srcdir}/gcc/[*]/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,*)
;;
*)
echo " \`$other' language required by \`$lang_alias'; enabling" 1>&2
enable_languages="$enable_languages,$other"
;;
esac
done
;;
esac
done
subdirs= subdirs=
for lang in ${srcdir}/gcc/*/config-lang.in .. for lang in ${srcdir}/gcc/*/config-lang.in ..
do do
...@@ -1026,7 +1059,6 @@ do ...@@ -1026,7 +1059,6 @@ do
esac esac
done done
# Remove the entries in $skipdirs and $noconfigdirs from $configdirs and # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
# $target_configdirs. # $target_configdirs.
# If we have the source for $noconfigdirs entries, add them to $notsupp. # If we have the source for $noconfigdirs entries, add them to $notsupp.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment