[Patch/gas]: Check basename declaration for IVMS cross assembler

Tristan Gingold gingold@adacore.com
Thu Sep 3 08:47:00 GMT 2009


Hi,

when configured for itanium VMS, tc-ia64.c calls basename().  But  
libiberty.h requires to check for its
declaration.  This patch add the check in gas configure.in

Checked on Darwin host and ia64-openvms target.

Ok to commit ?

Tristan.

2009-09-03  Tristan Gingold  <gingold@adacore.com>

	* configure.in: Check for basename declaration.
	* config.in: Regenerate.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.213
diff -c -r1.213 configure.in
*** configure.in	6 Aug 2009 17:38:02 -0000	1.213
--- configure.in	3 Sep 2009 08:42:35 -0000
***************
*** 693,699 ****
   GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers)
   GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers)

! AC_CHECK_DECLS([vsnprintf])

   BFD_BINARY_FOPEN

--- 693,699 ----
   GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers)
   GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers)

! AC_CHECK_DECLS([vsnprintf, basename])

   BFD_BINARY_FOPEN




More information about the Binutils mailing list