[RFA] obsoleting BFD_NEED_DECLARATION
Jerome Guitton
guitton@adacore.com
Tue Apr 26 09:48:00 GMT 2005
More information about the Binutils mailing list
Tue Apr 26 09:48:00 GMT 2005
- Previous message (by thread): [RFA] obsoleting BFD_NEED_DECLARATION
- Next message (by thread): Build failure on Debian testing (cross to arm-none-eabi)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Daniel Jacobowitz (drow@false.org): > Jerome, could you please revert the bfd.m4 parts of this patch for now? > binutils/, ld/, and mmalloc/ all use this. Those directories still use > autoconf 2.13. Mmmm, indeed; sorry for that. Thanks for noticing it. FYI, here is the patch that I checked in: 2005-04-26 Jerome Guitton <guitton@gnat.com> * bfd.m4 (BFD_NEED_DECLARATION): Restore. Index: bfd.m4 =================================================================== RCS file: /cvs/src/src/bfd/bfd.m4,v retrieving revision 1.2 diff -u -r1.2 bfd.m4 --- bfd.m4 22 Apr 2005 13:58:11 -0000 1.2 +++ bfd.m4 26 Apr 2005 09:18:42 -0000 @@ -1,6 +1,36 @@ dnl This file was derived from acinclude.m4. +dnl See whether we need a declaration for a function. + +AC_DEFUN([BFD_NEED_DECLARATION], +[AC_MSG_CHECKING([whether $1 must be declared]) +AC_CACHE_VAL(bfd_cv_decl_needed_$1, +[AC_TRY_COMPILE([ +#include <stdio.h> +#ifdef HAVE_STRING_H +#include <string.h> +#else +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif +#endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif], +[char *(*pfn) = (char *(*)) $1], +bfd_cv_decl_needed_$1=no, bfd_cv_decl_needed_$1=yes)]) +AC_MSG_RESULT($bfd_cv_decl_needed_$1) +if test $bfd_cv_decl_needed_$1 = yes; then + AC_DEFINE([NEED_DECLARATION_]translit($1, [a-z], [A-Z]), 1, + [Define if $1 is not declared in system header files.]) +fi +])dnl + + dnl Check for existence of a type $1 in sys/procfs.h AC_DEFUN([BFD_HAVE_SYS_PROCFS_TYPE],
- Previous message (by thread): [RFA] obsoleting BFD_NEED_DECLARATION
- Next message (by thread): Build failure on Debian testing (cross to arm-none-eabi)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list