From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16393 invoked by alias); 5 May 2005 16:58:18 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 16286 invoked from network); 5 May 2005 16:58:08 -0000 Received: from unknown (HELO palrel12.hp.com) (156.153.255.237) by sourceware.org with SMTP; 5 May 2005 16:58:08 -0000 Received: from smtp1.ptp.hp.com (smtp1.ptp.hp.com [15.1.28.250]) by palrel12.hp.com (Postfix) with ESMTP id DA6A34027FD; Thu, 5 May 2005 09:58:07 -0700 (PDT) Received: from hpsje.cup.hp.com (hpsje.cup.hp.com [15.244.96.221]) by smtp1.ptp.hp.com (Postfix) with ESMTP id D8BE314B2B7; Thu, 5 May 2005 16:57:54 +0000 (UTC) Received: (from sje@localhost) by hpsje.cup.hp.com (8.9.3 (PHNE_24419+JAGae58098)/8.7.3 TIS Messaging 5.0) id JAA17339; Thu, 5 May 2005 09:57:54 -0700 (PDT) Date: Thu, 05 May 2005 17:14:00 -0000 From: Steve Ellcey Message-Id: <200505051657.JAA17339@hpsje.cup.hp.com> To: drow@false.org Cc: wilson@specifixinc.com, binutils@sources.redhat.com, hjl@lucon.org Subject: Re: Patch for IA64 HP-UX build In-Reply-To: <20050505163805.GA15342@nevyn.them.org> X-SW-Source: 2005-05/txt/msg00181.txt.bz2 > > 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 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 + #include + #else #ifdef HAVE_STRING_H #include #else *************** extern int errno; *** 47,52 **** --- 51,57 ---- #else extern char *strchr (); extern char *strrchr (); + #endif #endif #endif