summaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac14
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 7edb522d9da..795145cbd96 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -1379,16 +1379,9 @@ xm_file="ansidecl.h ${xm_file}"
# UNSORTED
# --------
-# Get the version trigger filename from the toplevel
-if test "${with_gcc_version_trigger+set}" = set; then
- gcc_version_trigger=$with_gcc_version_trigger
-else
- gcc_version_trigger=${srcdir}/version.c
-fi
-changequote(,)dnl
-gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
-gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
+TL_AC_GCC_VERSION([$srcdir/..])
+changequote(,)dnl
# Compile in configure arguments.
if test -f configargs.h ; then
# Being re-configured.
@@ -3246,9 +3239,6 @@ AC_SUBST(float_h_file)
AC_SUBST(gcc_config_arguments)
AC_SUBST(gcc_gxx_include_dir)
AC_SUBST(libstdcxx_incdir)
-AC_SUBST(gcc_version)
-AC_SUBST(gcc_version_full)
-AC_SUBST(gcc_version_trigger)
AC_SUBST(host_exeext)
AC_SUBST(host_xm_file_list)
AC_SUBST(host_xm_include_list)