From a9102fbdf9a07a390f0e57876d13464f59acf8a6 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 7 Nov 2000 14:16:54 +0000 Subject: [PATCH] * aclang.m4 (ac_cv_prog_gcc, ac_cv_prog_gxx, ac_cv_prog_g77): Be AU_DEFUN'd, not AU_ALIAS'd. Reported by Ralf Corsepius. * tests/mktests.sh (exclude_list): Skip these variables. --- ChangeLog | 7 +++++++ aclang.m4 | 9 ++++++--- lib/autoconf/c.m4 | 9 ++++++--- lib/autoconf/fortran.m4 | 9 ++++++--- lib/autoconf/lang.m4 | 9 ++++++--- tests/mktests.sh | 16 ++++++++++++++-- 6 files changed, 45 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index b72ded61..8cb673e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-11-07 Akim Demaille + + * aclang.m4 (ac_cv_prog_gcc, ac_cv_prog_gxx, ac_cv_prog_g77): + Be AU_DEFUN'd, not AU_ALIAS'd. + Reported by Ralf Corsepius. + * tests/mktests.sh (exclude_list): Skip these variables. + 2000-11-07 Akim Demaille m4_syscmd was reestablished as `syscd' intead of `syscmd' because diff --git a/aclang.m4 b/aclang.m4 index 1b8c970d..a3b33597 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -681,7 +681,8 @@ AC_DEFUN([AC_LANG_COMPILER(C)], # ac_cv_prog_gcc # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_gcc], [ac_cv_c_compiler_gnu]) +AU_DEFUN([ac_cv_prog_gcc], +[ac_cv_c_compiler_gnu]) # AC_PROG_CC([COMPILER ...]) @@ -875,7 +876,8 @@ AC_DEFUN([AC_LANG_COMPILER(C++)], # ac_cv_prog_gxx # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_gxx], [ac_cv_cxx_compiler_gnu]) +AU_DEFUN([ac_cv_prog_gxx], +[ac_cv_cxx_compiler_gnu]) # AC_PROG_CXX([LIST-OF-COMPILERS]) @@ -957,7 +959,8 @@ AC_DEFUN([AC_LANG_COMPILER(Fortran 77)], # ac_cv_prog_g77 # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_g77], [ac_cv_f77_compiler_gnu]) +AU_DEFUN([ac_cv_prog_g77], +[ac_cv_f77_compiler_gnu]) # AC_PROG_F77([COMPILERS...]) diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 1b8c970d..a3b33597 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -681,7 +681,8 @@ AC_DEFUN([AC_LANG_COMPILER(C)], # ac_cv_prog_gcc # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_gcc], [ac_cv_c_compiler_gnu]) +AU_DEFUN([ac_cv_prog_gcc], +[ac_cv_c_compiler_gnu]) # AC_PROG_CC([COMPILER ...]) @@ -875,7 +876,8 @@ AC_DEFUN([AC_LANG_COMPILER(C++)], # ac_cv_prog_gxx # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_gxx], [ac_cv_cxx_compiler_gnu]) +AU_DEFUN([ac_cv_prog_gxx], +[ac_cv_cxx_compiler_gnu]) # AC_PROG_CXX([LIST-OF-COMPILERS]) @@ -957,7 +959,8 @@ AC_DEFUN([AC_LANG_COMPILER(Fortran 77)], # ac_cv_prog_g77 # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_g77], [ac_cv_f77_compiler_gnu]) +AU_DEFUN([ac_cv_prog_g77], +[ac_cv_f77_compiler_gnu]) # AC_PROG_F77([COMPILERS...]) diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 1b8c970d..a3b33597 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -681,7 +681,8 @@ AC_DEFUN([AC_LANG_COMPILER(C)], # ac_cv_prog_gcc # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_gcc], [ac_cv_c_compiler_gnu]) +AU_DEFUN([ac_cv_prog_gcc], +[ac_cv_c_compiler_gnu]) # AC_PROG_CC([COMPILER ...]) @@ -875,7 +876,8 @@ AC_DEFUN([AC_LANG_COMPILER(C++)], # ac_cv_prog_gxx # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_gxx], [ac_cv_cxx_compiler_gnu]) +AU_DEFUN([ac_cv_prog_gxx], +[ac_cv_cxx_compiler_gnu]) # AC_PROG_CXX([LIST-OF-COMPILERS]) @@ -957,7 +959,8 @@ AC_DEFUN([AC_LANG_COMPILER(Fortran 77)], # ac_cv_prog_g77 # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_g77], [ac_cv_f77_compiler_gnu]) +AU_DEFUN([ac_cv_prog_g77], +[ac_cv_f77_compiler_gnu]) # AC_PROG_F77([COMPILERS...]) diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 1b8c970d..a3b33597 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -681,7 +681,8 @@ AC_DEFUN([AC_LANG_COMPILER(C)], # ac_cv_prog_gcc # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_gcc], [ac_cv_c_compiler_gnu]) +AU_DEFUN([ac_cv_prog_gcc], +[ac_cv_c_compiler_gnu]) # AC_PROG_CC([COMPILER ...]) @@ -875,7 +876,8 @@ AC_DEFUN([AC_LANG_COMPILER(C++)], # ac_cv_prog_gxx # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_gxx], [ac_cv_cxx_compiler_gnu]) +AU_DEFUN([ac_cv_prog_gxx], +[ac_cv_cxx_compiler_gnu]) # AC_PROG_CXX([LIST-OF-COMPILERS]) @@ -957,7 +959,8 @@ AC_DEFUN([AC_LANG_COMPILER(Fortran 77)], # ac_cv_prog_g77 # -------------- # We used to name the cache variable this way. -AU_ALIAS([ac_cv_prog_g77], [ac_cv_f77_compiler_gnu]) +AU_DEFUN([ac_cv_prog_g77], +[ac_cv_f77_compiler_gnu]) # AC_PROG_F77([COMPILERS...]) diff --git a/tests/mktests.sh b/tests/mktests.sh index 89e79091..bddb8517 100755 --- a/tests/mktests.sh +++ b/tests/mktests.sh @@ -44,6 +44,18 @@ export LANG; LANG=C export LC_ALL; LC_ALL=C +# exclude_list +# ------------ +# Macros which must not be checked at all (not by syntax.at, not udpate.at). +# The trailing new line is meant. +# +# - ac_cv_prog_gcc, gxx, g77 +# Not macros, just mapping from old variable name to a new one. +exclude_list='^ac_cv_prog_(gcc|gxx|g77)$ +' + + + ## ----------- ## ## syntax.at. ## ## ----------- ## @@ -106,7 +118,7 @@ _AC_' # Build a single egrep pattern out of filter_macros_list. # Sed is used to get rid of the trailing `|' coming from the trailing # `\n' from `echo'. -syntax_exclude_egrep=`echo "$syntax_exclude_list" | tr ' +syntax_exclude_egrep=`echo "$exclude_list$syntax_exclude_list" | tr ' ' '|' | sed 's/.$//'` sed 's/^ *//' >syntax.tat <