[patch] configure "make check" for configured languages
DJ Delorie
dj@redhat.com
Tue Feb 13 17:15:00 GMT 2001
Just checked in; this should limit "make check" to configured
languages. Let me know if there are any problems with it.
2001-02-13 DJ Delorie <dj@redhat.com>
* configure.in (check_languages): determine languages to check
* Makefile.in (check-c++): alias for check-g++
(check-f77): alias for check-g77
(CHECK_TARGETS): depend on configured languages
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.604
diff -p -3 -r1.604 Makefile.in
*** Makefile.in 2001/02/12 23:15:38 1.604
--- Makefile.in 2001/02/14 01:12:05
*************** site.exp: ./config.status Makefile
*** 2775,2781 ****
-e '1,/^## All variables above are.*##/ d' >> site.exp
-@rm -f ./tmp?
! CHECK_TARGETS = check-gcc check-g++ check-g77 check-objc @CHECK_PO@
check: $(CHECK_TARGETS)
--- 2775,2785 ----
-e '1,/^## All variables above are.*##/ d' >> site.exp
-@rm -f ./tmp?
! CHECK_TARGETS = check-gcc @check_languages@ @CHECK_PO@
!
! check-c++ : check-g++
! check-f77 : check-g77
! check-java :
check: $(CHECK_TARGETS)
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.484
diff -p -3 -r1.484 configure.in
*** configure.in 2001/02/13 13:00:04 1.484
--- configure.in 2001/02/14 01:12:06
*************** do
*** 1675,1680 ****
--- 1675,1689 ----
fi
done
+ check_languages=
+ for language in .. $all_languages
+ do
+ if test $language != ".."
+ then
+ check_languages="$check_languages check-$language"
+ fi
+ done
+
# Since we can't use `::' targets, we link each language in
# with a set of hooks, reached indirectly via lang.${target}.
*************** AC_SUBST(all_stagestuff)
*** 1805,1810 ****
--- 1814,1820 ----
AC_SUBST(build_exeext)
AC_SUBST(build_install_headers_dir)
AC_SUBST(build_xm_file_list)
+ AC_SUBST(check_languages)
AC_SUBST(cc_set_by_configure)
AC_SUBST(quoted_cc_set_by_configure)
AC_SUBST(cpp_install_dir)
Index: configure
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure,v
retrieving revision 1.490
diff -p -3 -r1.490 configure
*** configure 2001/02/13 13:00:04 1.490
--- configure 2001/02/14 01:12:10
*************** do
*** 6638,6643 ****
--- 6638,6652 ----
fi
done
+ check_languages=
+ for language in .. $all_languages
+ do
+ if test $language != ".."
+ then
+ check_languages="$check_languages check-$language"
+ fi
+ done
+
# Since we can't use `::' targets, we link each language in
# with a set of hooks, reached indirectly via lang.${target}.
*************** ${CONFIG_SHELL-/bin/sh} $srcdir/configur
*** 6821,6826 ****
--- 6830,6836 ----
+
# Echo that links are built
if test x$host = x$target
then
*************** s%@all_stagestuff@%$all_stagestuff%g
*** 7084,7089 ****
--- 7094,7100 ----
s%@build_exeext@%$build_exeext%g
s%@build_install_headers_dir@%$build_install_headers_dir%g
s%@build_xm_file_list@%$build_xm_file_list%g
+ s%@check_languages@%$check_languages%g
s%@cc_set_by_configure@%$cc_set_by_configure%g
s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
s%@cpp_install_dir@%$cpp_install_dir%g
More information about the Gcc-patches
mailing list