diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-02-18 03:18:38 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-02-18 03:18:38 +0000 |
commit | 7afe8c419bb43051d7b9aa8a5be0de2c1bd83bfc (patch) | |
tree | 30ed6e9e05cbf69e0cee015260cf92550b56838a /gcc/aclocal.m4 | |
parent | c750255cace52869888717eef672fc0494dde657 (diff) | |
download | gcc-7afe8c419bb43051d7b9aa8a5be0de2c1bd83bfc.zip gcc-7afe8c419bb43051d7b9aa8a5be0de2c1bd83bfc.tar.gz gcc-7afe8c419bb43051d7b9aa8a5be0de2c1bd83bfc.tar.bz2 |
aclocal.m4 (gcc_AC_CHECK_DECL): Before attempting the test...
* aclocal.m4 (gcc_AC_CHECK_DECL): Before attempting the test,
define HAVE_DECL_* to 1 to mask potential backup declarations.
* configure: Regenerated.
From-SVN: r39814
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r-- | gcc/aclocal.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index 8c8efd8..9cee656 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -42,6 +42,15 @@ changequote([, ])dnl gcc_AC_CHECK_DECL($ac_func, [AC_DEFINE_UNQUOTED($ac_tr_decl, 1) $2], [AC_DEFINE_UNQUOTED($ac_tr_decl, 0) $3], +dnl It is possible that the include files passed in here are local headers +dnl which supply a backup declaration for the relevant prototype based on +dnl the definition of (or lack of) the HAVE_DECL_ macro. If so, this test +dnl will always return success. E.g. see libiberty.h's handling of +dnl `basename'. To avoid this, we define the relevant HAVE_DECL_ macro to +dnl 1 so that any local headers used do not provide their own prototype +dnl during this test. +#undef $ac_tr_decl +#define $ac_tr_decl 1 $4 ) done |