This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch for IA64 HP-UX build
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: drow at false dot org
- Cc: wilson at specifixinc dot com, binutils at sources dot redhat dot com,hjl at lucon dot org
- Date: Thu, 5 May 2005 09:57:54 -0700 (PDT)
- Subject: Re: Patch for IA64 HP-UX build
> > OK, Here is a new version of the patch using ACX_HEADER_STRING. In my
> > first attempt I forgot to put the undef of ACX_HEADER_STRING into
> > config.in. This one has been tested and all of bfd built on IA64 HP-UX.
>
> That's a generated file - run autoheader.
>
> --
> Daniel Jacobowitz
> CodeSourcery, LLC
So it is. I guess that means my first patch was right, other than
needing a 'regenerate' line in ChangeLog for config.in. Here is that
patch again with the modified ChangeLog (and after running autoheader
and retesting to make sure nothing broke).
bfd/ChangeLog:
2005-05-05 Steve Ellcey <sje@cup.hp.com>
configure.in: Add ACX_HEADER_STRING check.
configure: Regenerate.
config.in: Regenerate.
sysdep.h: Change ifdefs around include of string.h and strings.h.
*** src.orig/bfd/configure.in Thu May 5 09:05:21 2005
--- src/bfd/configure.in Thu May 5 09:05:05 2005
*************** AC_CHECK_HEADERS(stddef.h string.h strin
*** 124,129 ****
--- 124,130 ----
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
AC_HEADER_TIME
AC_HEADER_DIRENT
+ ACX_HEADER_STRING
AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
AC_CHECK_FUNCS(strtoull)
*** src.orig/bfd/sysdep.h Wed May 4 16:31:48 2005
--- src/bfd/sysdep.h Thu May 5 09:00:10 2005
*************** Foundation, Inc., 51 Franklin Street - F
*** 39,44 ****
--- 39,48 ----
extern int errno;
#endif
+ #ifdef STRING_WITH_STRINGS
+ #include <string.h>
+ #include <strings.h>
+ #else
#ifdef HAVE_STRING_H
#include <string.h>
#else
*************** extern int errno;
*** 47,52 ****
--- 51,57 ----
#else
extern char *strchr ();
extern char *strrchr ();
+ #endif
#endif
#endif