From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17436 invoked by alias); 5 May 2005 16:32:19 -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 16866 invoked from network); 5 May 2005 16:32:09 -0000 Received: from unknown (HELO palrel12.hp.com) (156.153.255.237) by sourceware.org with SMTP; 5 May 2005 16:32:09 -0000 Received: from smtp1.ptp.hp.com (smtp1.ptp.hp.com [15.1.28.250]) by palrel12.hp.com (Postfix) with ESMTP id 9FA294042A9; Thu, 5 May 2005 09:32:08 -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 839661503E3; Thu, 5 May 2005 16:32:08 +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 JAA17274; Thu, 5 May 2005 09:32:08 -0700 (PDT) Date: Thu, 05 May 2005 16:37:00 -0000 From: Steve Ellcey Message-Id: <200505051632.JAA17274@hpsje.cup.hp.com> To: wilson@specifixinc.com Cc: binutils@sources.redhat.com Subject: Re: Patch for IA64 HP-UX build In-Reply-To: <1115253339.5426.180.camel@aretha.corp.specifixinc.com> X-SW-Source: 2005-05/txt/msg00177.txt.bz2 > The configure test for this is ACX_HEADER_STRING which is in > config/acx.m4, which also happens to be in the binutils tree. So it > would be possible for us to use it here. > -- > Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com 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. Steve Ellcey sje@cup.hp.com bfd/ChangeLog: 2005-05-05 Steve Ellcey configure.in: Add ACX_HEADER_STRING check. configure: Regenerate. config.in: Add undef of STRING_WITH_STRINGS. 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/config.in Thu May 5 09:22:03 2005 --- src/bfd/config.in Thu May 5 09:21:53 2005 *************** *** 322,327 **** --- 322,330 ---- /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS + /* Define if you can safely include both and . */ + #undef STRING_WITH_STRINGS + /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME *** 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