Commit 7afe8c41 by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent c750255c
2001-02-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* aclocal.m4 (gcc_AC_CHECK_DECL): Before attempting the test,
define HAVE_DECL_* to 1 to mask potential backup declarations.
* configure: Regenerated.
2001-02-17 Mark Mitchell <mark@codesourcery.com>
* invoke.texi (-Woverloaded-virtual): Clarify documentation.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment