diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-18 03:18:38 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-18 03:18:38 +0000 |
commit | 344c569e768f7482b7ba5059fa8bb0b5aae4708b (patch) | |
tree | 30ed6e9e05cbf69e0cee015260cf92550b56838a /gcc/aclocal.m4 | |
parent | c319168d73d00d314d5ed1437e9d29ec85db05df (diff) | |
download | gcc-344c569e768f7482b7ba5059fa8bb0b5aae4708b.tar.gz |
* aclocal.m4 (gcc_AC_CHECK_DECL): Before attempting the test,
define HAVE_DECL_* to 1 to mask potential backup declarations.
* configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39814 138bc75d-0d04-0410-961f-82ee72b054a4
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 8c8efd84b84..9cee65627df 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 |