Ignore:
Timestamp:
Apr 28, 2004, 6:58:06 AM (22 years ago)
Author:
bird
Message:

#1040: Joined the GCC 3.3.3 with the trunk.

Location:
trunk/src/gcc/libiberty
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/libiberty/Makefile.in

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1393 r1394  
    11#
    22# Makefile
    3 #   Copyright (C) 1990, 91-99, 2000, 2001, 2003
     3#   Copyright (C) 1990, 91-99, 2000, 2001, 2003
    44#   Free Software Foundation
    55#
     
    3636bindir = @bindir@
    3737libdir = @libdir@
     38
     39
    3840
    3941SHELL = @SHELL@
     
    5254mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs
    5355
     56
     57
     58
    5459AR = @AR@
    5560AR_FLAGS = rc
     
    7378# A configuration can specify extra .o files that should be included,
    7479# even if they are in libc. (Perhaps the libc version is buggy.)
    75 EXTRA_OFILES = 
     80EXTRA_OFILES =
    7681
    7782# Flags to pass to a recursive make.
     
    103108# FIXME: add @BUILD_INFO@ once we're sure it works for everyone.
    104109all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir
    105 ifeq "$(BUILD_PLATFORM)" "OS2"
    106         $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
    107 else
    108110        @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
    109 endif
    110111
    111112.PHONY: check installcheck
     
    122123          $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
    123124        else true; fi
    124         $(COMPILE.c) $<
     125        $(COMPILE.c) $<
    125126
    126127# NOTE: If you add new files to the library, add them to this list
     
    137138        index.c insque.c                                                \
    138139        lbasename.c                                                     \
     140
    139141        make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c     \
    140142         memset.c mkstemps.c                                            \
    141143        objalloc.c obstack.c                                            \
    142         partition.c pexecute.c putenv.c                                 \
     144        partition.c pexecute.c p                       \
    143145        random.c regex.c rename.c rindex.c                              \
    144146        safe-ctype.c setenv.c sigsetmask.c sort.c spaces.c              \
     
    161163        hashtab.o hex.o                                                 \
    162164        lbasename.o                                                     \
     165
    163166        make-temp-file.o                                                \
    164167        objalloc.o obstack.o                                            \
    165         partition.o pexecute.o                                          \
     168        partition.o p                                \
    166169        safe-ctype.o sort.o spaces.o splay-tree.o strerror.o            \
    167170         strsignal.o                                                    \
     
    189192        waitpid.o
    190193
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
     207
     208
     209
    191210$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
    192211        -rm -f $(TARGETLIB) pic/$(TARGETLIB)
     
    245264
    246265install_to_libdir: all
    247         $(mkinstalldirs) $(DESTDIR)$(libdir)$(MULTISUBDIR)
     266        $ $(DESTDIR)$(libdir)$(MULTISUBDIR)
    248267        $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
    249         ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) && \
    250           $(RANLIB) $(TARGETLIB)n && \
    251           mv -f $(TARGETLIB)n $(TARGETLIB) )
     268        ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
     269        mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)
     270        if test -n "${target_header_dir}"; then \
     271          case "${target_header_dir}" in \
     272            /*)    thd=${target_header_dir};; \
     273            *)     thd=${includedir}${MULTISUBDIR}/${target_header_dir};; \
     274          esac; \
     275          ${mkinstalldirs} $(DESTDIR)$${thd}; \
     276          for h in ${INSTALLED_HEADERS}; do \
     277            ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
     278          done; \
     279        fi
    252280        @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
    253281
     282
     283
     284
     285
     286
    254287install_to_tooldir: all
    255         $(mkinstalldirs) $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`
    256         $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`/$(TARGETLIB)n
    257         ( cd $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory` && \
    258           $(RANLIB) $(TARGETLIB)n && \
    259           mv -f $(TARGETLIB)n $(TARGETLIB) )
     288        ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
     289        $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
     290        ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; $(RANLIB) $(TARGETLIB)n )
     291        mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
    260292        @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
    261293
     
    412444lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
    413445        $(INCDIR)/safe-ctype.h
     446
     447
    414448make-temp-file.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
    415449md5.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
     
    426460pexecute.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
    427461        $(INCDIR)/safe-ctype.h
     462
    428463putenv.o: config.h $(INCDIR)/ansidecl.h
    429464random.o: $(INCDIR)/ansidecl.h
  • trunk/src/gcc/libiberty/config.table

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1393 r1394  
     1
     2
     3
     4
     5
     6
    17case "${host}" in
    28  rs6000-ibm-aix3.1 | rs6000-ibm-aix)
     
    1016esac
    1117
    12 frags=$frag
     18if [ -n "${frag}" ]; then
     19  frags=${libiberty_topdir}/libiberty/config/$frag
     20else
     21  frags=
     22fi
    1323
    1424# If they didn't specify --enable-shared, don't generate shared libs.
     
    2030esac
    2131if [ "${shared}" = "yes" ]; then
     32
    2233  case "${host}" in
    2334    *-*-cygwin*)        ;;
    2435    *-*-*emx)           ;;
    25     alpha*-*-linux*)    frags="${frags} ../../config/mh-elfalphapic" ;;
    26     arm*-*-*)           frags="${frags} ../../config/mh-armpic" ;;
    27     hppa*-*-*)          frags="${frags} ../../config/mh-papic" ;;
    28     i[3456]86-*-*)      frags="${frags} ../../config/mh-x86pic" ;;
     36    alpha*-*-linux*)    frag=mh-elfalphapic ;;
     37    arm*-*-*)           frag=mh-armpic ;;
     38    hppa*-*-*)          frag=mh-papic ;;
     39    i[3456]86-*-* | x86_64-*-*)
     40                        frag=mh-x86pic ;;
    2941    powerpc*-*-aix*)    ;;
    30     powerpc*-*-*)       frags="${frags} ../../config/mh-ppcpic" ;;
    31     sparc*-*-*)         frags="${frags} ../../config/mh-sparcpic" ;;
    32     *-*-*)              frags="${frags} ../../config/mh-${host_cpu}pic" ;;
     42    powerpc*-*-*)       frag=mh-ppcpic ;;
     43    sparc*-*-*)         frag=mh-sparcpic ;;
     44    s390*-*-*)          frag=mh-s390pic ;;
     45    *)                  frag=mh-${host_cpu}pic ;;
    3346  esac
     47
     48
     49
    3450fi
    3551
     
    3753
    3854for frag in ${frags}; do
    39   case ${frag} in
    40     ../* )
    41       if [ ${srcdir} = . ]; then
    42         [ -n "${with_target_subdir}" ] && frag=../${frag}
    43         [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
    44       fi
    45       ;;
    46   esac
    47   frag=${srcdir}/${xsrcdir}config/$frag
    4855  if [ -f ${frag} ]; then
    4956    echo "Appending ${frag} to xhost-mkfrag"
  • trunk/src/gcc/libiberty/configure

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1393 r1394  
    1313# Any additions from configure.in:
    1414ac_help="$ac_help
    15   --with-target-subdir=SUBDIR      Configuring in a subdirectory"
     15  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target"
     16ac_help="$ac_help
     17  --with-build-subdir=SUBDIR       Configuring in a subdirectory for build"
    1618ac_help="$ac_help
    1719  --with-cross-host=HOST           Configuring with a cross compiler"
     
    2224                          enable make rules and dependencies not useful
    2325                          (and sometimes confusing) to the casual installer"
     26
     27
    2428
    2529# Initialize some variables set by options.
     
    532536
    533537echo $ac_n "checking for path separator""... $ac_c" 1>&6
    534 echo "configure:535: checking for path separator" >&5
     538echo "configure:53: checking for path separator" >&5
    535539# Filter path to get backslahes into forwardslashes
    536540case "`uname -s 2> /dev/null`" in
     
    546550
    547551echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
    548 echo "configure:549: checking for Cygwin environment" >&5
     552echo "configure:5: checking for Cygwin environment" >&5
    549553if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
    550554  echo $ac_n "(cached) $ac_c" 1>&6
    551555else
    552556  cat > conftest.$ac_ext <<EOF
    553 #line 554 "configure"
     557#line 55 "configure"
    554558#include "confdefs.h"
    555559
     
    562566; return 0; }
    563567EOF
    564 if { (eval echo configure:565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     568if { (eval echo configure:56: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    565569  rm -rf conftest*
    566570  ac_cv_cygwin=yes
     
    579583test "$ac_cv_cygwin" = yes && CYGWIN=yes
    580584echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
    581 echo "configure:582: checking for mingw32 environment" >&5
     585echo "configure:58: checking for mingw32 environment" >&5
    582586if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
    583587  echo $ac_n "(cached) $ac_c" 1>&6
    584588else
    585589  cat > conftest.$ac_ext <<EOF
    586 #line 587 "configure"
     590#line 5 "configure"
    587591#include "confdefs.h"
    588592
     
    591595; return 0; }
    592596EOF
    593 if { (eval echo configure:594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     597if { (eval echo configure:59: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    594598  rm -rf conftest*
    595599  ac_cv_mingw32=yes
     
    608612test "$ac_cv_mingw32" = yes && MINGW32=yes
    609613echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
    610 echo "configure:611: checking for EMX/OS2 environment" >&5
     614echo "configure:61: checking for EMX/OS2 environment" >&5
    611615if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
    612616  echo $ac_n "(cached) $ac_c" 1>&6
     
    614618  : ${CC=gcc.exe}
    615619cat > conftest.$ac_ext <<EOF
    616 #line 617 "configure"
     620#line 6 "configure"
    617621#include "confdefs.h"
    618622
     
    621625; return 0; }
    622626EOF
    623 if { (eval echo configure:624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     627if { (eval echo configure:62: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    624628  rm -rf conftest*
    625629  ac_cv_emxos2=yes
     
    652656
    653657echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    654 echo "configure:655: checking for executable suffix" >&5
     658echo "configure:65: checking for executable suffix" >&5
    655659if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
    656660  echo $ac_n "(cached) $ac_c" 1>&6
     
    662666  echo 'int main () { return 0; }' > conftest.$ac_ext
    663667  ac_cv_exeext=
    664   if { (eval echo configure:665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     668  if { (eval echo configure:66: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    665669    for file in conftest.*; do
    666670      case $file in
     
    696700fi
    697701
     702
     703
     704
     705
     706
     707
    698708# Check whether --with-cross-host or --without-cross-host was given.
    699709if test "${with_cross_host+set}" = set; then
     
    710720
    711721if test "${srcdir}" = "."; then
    712   if test -z "${with_target_subdir}"; then
     722  if test -n "${with_build_subdir}"; then
     723    libiberty_topdir="${srcdir}/../.."
     724    with_target_subdir=
     725  elif test -z "${with_target_subdir}"; then
    713726    libiberty_topdir="${srcdir}/.."
    714727  else
     
    745758
    746759echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
    747 echo "configure:748: checking whether to enable maintainer-specific portions of Makefiles" >&5
     760echo "configure:7: checking whether to enable maintainer-specific portions of Makefiles" >&5
    748761    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    749762if test "${enable_maintainer_mode+set}" = set; then
     
    770783set dummy makeinfo; ac_word=$2
    771784echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    772 echo "configure:773: checking for $ac_word" >&5
     785echo "configure:7: checking for $ac_word" >&5
    773786if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
    774787  echo $ac_n "(cached) $ac_c" 1>&6
     
    817830set dummy perl; ac_word=$2
    818831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    819 echo "configure:820: checking for $ac_word" >&5
     832echo "configure:8: checking for $ac_word" >&5
    820833if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    821834  echo $ac_n "(cached) $ac_c" 1>&6
     
    858871
    859872echo $ac_n "checking host system type""... $ac_c" 1>&6
    860 echo "configure:861: checking host system type" >&5
     873echo "configure:8: checking host system type" >&5
    861874
    862875host_alias=$host
     
    881894
    882895echo $ac_n "checking build system type""... $ac_c" 1>&6
    883 echo "configure:884: checking build system type" >&5
     896echo "configure:8: checking build system type" >&5
    884897
    885898build_alias=$build
     
    907920set dummy ${ac_tool_prefix}ar; ac_word=$2
    908921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    909 echo "configure:910: checking for $ac_word" >&5
     922echo "configure:9: checking for $ac_word" >&5
    910923if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    911924  echo $ac_n "(cached) $ac_c" 1>&6
     
    940953set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    941954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    942 echo "configure:943: checking for $ac_word" >&5
     955echo "configure:9: checking for $ac_word" >&5
    943956if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    944957  echo $ac_n "(cached) $ac_c" 1>&6
     
    973986set dummy ranlib; ac_word=$2
    974987echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    975 echo "configure:976: checking for $ac_word" >&5
     988echo "configure:9: checking for $ac_word" >&5
    976989if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    977990  echo $ac_n "(cached) $ac_c" 1>&6
     
    10111024set dummy gcc; ac_word=$2
    10121025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1013 echo "configure:1014: checking for $ac_word" >&5
     1026echo "configure:10: checking for $ac_word" >&5
    10141027if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10151028  echo $ac_n "(cached) $ac_c" 1>&6
     
    10421055set dummy cc; ac_word=$2
    10431056echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1044 echo "configure:1045: checking for $ac_word" >&5
     1057echo "configure:10: checking for $ac_word" >&5
    10451058if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10461059  echo $ac_n "(cached) $ac_c" 1>&6
     
    10931106
    10941107echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1095 echo "configure:1096: checking whether we are using GNU C" >&5
     1108echo "configure:1: checking whether we are using GNU C" >&5
    10961109if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10971110  echo $ac_n "(cached) $ac_c" 1>&6
     
    11021115#endif
    11031116EOF
    1104 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1117if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:11: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    11051118  ac_cv_prog_gcc=yes
    11061119else
     
    11181131  CFLAGS=
    11191132  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1120 echo "configure:1121: checking whether ${CC-cc} accepts -g" >&5
     1133echo "configure:11: checking whether ${CC-cc} accepts -g" >&5
    11211134if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11221135  echo $ac_n "(cached) $ac_c" 1>&6
     
    11481161
    11491162
     1163
     1164
     1165
     1166
     1167
     1168
     1169
     1170
     1171
     1172
     1173
     1174
     1175
     1176
     1177
     1178
     1179
     1180
     1181
     1182
     1183
     1184
     1185
     1186
     1187
     1188
     1189
     1190
     1191
     1192
     1193
     1194
     1195
     1196
     1197
     1198
     1199
     1200
     1201
     1202
     1203
     1204
     1205
     1206
     1207
     1208
     1209
     1210
     1211
     1212
     1213
     1214
     1215
     1216
     1217
     1218
     1219
     1220
     1221
     1222
     1223
    11501224echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1151 echo "configure:1152: checking for POSIXized ISC" >&5
     1225echo "configure:1: checking for POSIXized ISC" >&5
    11521226if test -d /etc/conf/kconfig.d &&
    11531227  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     
    11701244
    11711245echo $ac_n "checking for working const""... $ac_c" 1>&6
    1172 echo "configure:1173: checking for working const" >&5
     1246echo "configure:1: checking for working const" >&5
    11731247if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    11741248  echo $ac_n "(cached) $ac_c" 1>&6
    11751249else
    11761250  cat > conftest.$ac_ext <<EOF
    1177 #line 1178 "configure"
     1251#line 1 "configure"
    11781252#include "confdefs.h"
    11791253
     
    12241298; return 0; }
    12251299EOF
    1226 if { (eval echo configure:1227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1300if { (eval echo configure:1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    12271301  rm -rf conftest*
    12281302  ac_cv_c_const=yes
     
    12451319
    12461320echo $ac_n "checking for inline""... $ac_c" 1>&6
    1247 echo "configure:1248: checking for inline" >&5
     1321echo "configure:1: checking for inline" >&5
    12481322if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    12491323  echo $ac_n "(cached) $ac_c" 1>&6
     
    12521326for ac_kw in inline __inline__ __inline; do
    12531327  cat > conftest.$ac_ext <<EOF
    1254 #line 1255 "configure"
     1328#line 1 "configure"
    12551329#include "confdefs.h"
    12561330
     
    12591333; return 0; }
    12601334EOF
    1261 if { (eval echo configure:1262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1335if { (eval echo configure:1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    12621336  rm -rf conftest*
    12631337  ac_cv_c_inline=$ac_kw; break
     
    13021376# ./install, which can be erroneously created by make from ./install.sh.
    13031377echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1304 echo "configure:1305: checking for a BSD compatible install" >&5
     1378echo "configure:13: checking for a BSD compatible install" >&5
    13051379if test -z "$INSTALL"; then
    13061380if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    13651439# something.
    13661440echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1367 echo "configure:1368: checking how to run the C preprocessor" >&5
     1441echo "configure:1: checking how to run the C preprocessor" >&5
    13681442# On Suns, sometimes $CPP names a directory.
    13691443if test -n "$CPP" && test -d "$CPP"; then
     
    13811455  cat > conftest.$ac_ext <<EOF
    13821456#include <sys/types.h>
    1383 #line 1384 "configure"
     1457#line 1 "configure"
    13841458#include "confdefs.h"
    13851459#include <assert.h>
     
    13871461EOF
    13881462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1389 { (eval echo configure:1390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1463{ (eval echo configure:1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13901464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13911465if test -z "$ac_err"; then
     
    13991473  cat > conftest.$ac_ext <<EOF
    14001474#include <sys/types.h>
    1401 #line 1402 "configure"
     1475#line 14 "configure"
    14021476#include "confdefs.h"
    14031477#include <assert.h>
     
    14051479EOF
    14061480ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1407 { (eval echo configure:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1481{ (eval echo configure:14: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14081482ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14091483if test -z "$ac_err"; then
     
    14171491  cat > conftest.$ac_ext <<EOF
    14181492#include <sys/types.h>
    1419 #line 1420 "configure"
     1493#line 14 "configure"
    14201494#include "confdefs.h"
    14211495#include <assert.h>
     
    14231497EOF
    14241498ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1425 { (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1499{ (eval echo configure:1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14261500ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14271501if test -z "$ac_err"; then
     
    14471521echo "$ac_t""$CPP" 1>&6
    14481522
    1449 for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h
     1523for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h .h
    14501524do
    14511525ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    14521526echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1453 echo "configure:1454: checking for $ac_hdr" >&5
     1527echo "configure:1: checking for $ac_hdr" >&5
    14541528if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    14551529  echo $ac_n "(cached) $ac_c" 1>&6
     
    14571531  cat > conftest.$ac_ext <<EOF
    14581532#include <sys/types.h>
    1459 #line 1460 "configure"
     1533#line 1 "configure"
    14601534#include "confdefs.h"
    14611535#include <$ac_hdr>
    14621536EOF
    14631537ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1464 { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1538{ (eval echo configure:1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14651539ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14661540if test -z "$ac_err"; then
     
    14891563
    14901564echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
    1491 echo "configure:1492: checking for sys/wait.h that is POSIX.1 compatible" >&5
     1565echo "configure:1: checking for sys/wait.h that is POSIX.1 compatible" >&5
    14921566if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
    14931567  echo $ac_n "(cached) $ac_c" 1>&6
    14941568else
    14951569  cat > conftest.$ac_ext <<EOF
    1496 #line 1497 "configure"
     1570#line 1 "configure"
    14971571#include "confdefs.h"
    14981572#include <sys/types.h>
     
    15101584; return 0; }
    15111585EOF
    1512 if { (eval echo configure:1513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1586if { (eval echo configure:15: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    15131587  rm -rf conftest*
    15141588  ac_cv_header_sys_wait_h=yes
     
    15311605
    15321606echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1533 echo "configure:1534: checking whether time.h and sys/time.h may both be included" >&5
     1607echo "configure:1: checking whether time.h and sys/time.h may both be included" >&5
    15341608if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    15351609  echo $ac_n "(cached) $ac_c" 1>&6
    15361610else
    15371611  cat > conftest.$ac_ext <<EOF
    1538 #line 1539 "configure"
     1612#line 1 "configure"
    15391613#include "confdefs.h"
    15401614#include <sys/types.h>
     
    15451619; return 0; }
    15461620EOF
    1547 if { (eval echo configure:1548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1621if { (eval echo configure:1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    15481622  rm -rf conftest*
    15491623  ac_cv_header_time=yes
     
    15671641
    15681642echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6
    1569 echo "configure:1570: checking whether errno must be declared" >&5
     1643echo "configure:1: checking whether errno must be declared" >&5
    15701644if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then
    15711645  echo $ac_n "(cached) $ac_c" 1>&6
    15721646else
    15731647  cat > conftest.$ac_ext <<EOF
    1574 #line 1575 "configure"
     1648#line 1 "configure"
    15751649#include "confdefs.h"
    15761650#include <errno.h>
     
    15791653; return 0; }
    15801654EOF
    1581 if { (eval echo configure:1582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1655if { (eval echo configure:1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    15821656  rm -rf conftest*
    15831657  libiberty_cv_declare_errno=no
     
    16011675
    16021676echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1603 echo "configure:1604: checking for ANSI C header files" >&5
     1677echo "configure:16: checking for ANSI C header files" >&5
    16041678if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    16051679  echo $ac_n "(cached) $ac_c" 1>&6
     
    16071681  cat > conftest.$ac_ext <<EOF
    16081682#include <sys/types.h>
    1609 #line 1610 "configure"
     1683#line 16 "configure"
    16101684#include "confdefs.h"
    16111685#include <stdlib.h>
     
    16151689EOF
    16161690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1617 { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1691{ (eval echo configure:16: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    16181692ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    16191693if test -z "$ac_err"; then
     
    16321706  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    16331707cat > conftest.$ac_ext <<EOF
    1634 #line 1635 "configure"
     1708#line 1 "configure"
    16351709#include "confdefs.h"
    16361710#include <string.h>
     
    16501724  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    16511725cat > conftest.$ac_ext <<EOF
    1652 #line 1653 "configure"
     1726#line 1 "configure"
    16531727#include "confdefs.h"
    16541728#include <stdlib.h>
     
    16711745else
    16721746  cat > conftest.$ac_ext <<EOF
    1673 #line 1674 "configure"
     1747#line 1 "configure"
    16741748#include "confdefs.h"
    16751749#include <ctype.h>
     
    16821756
    16831757EOF
    1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1758if { (eval echo configure:1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16851759then
    16861760  :
     
    17061780
    17071781echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6
    1708 echo "configure:1709: checking for uintptr_t" >&5
     1782echo "configure:17: checking for uintptr_t" >&5
    17091783if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then
    17101784  echo $ac_n "(cached) $ac_c" 1>&6
    17111785else
    17121786  cat > conftest.$ac_ext <<EOF
    1713 #line 1714 "configure"
     1787#line 17 "configure"
    17141788#include "confdefs.h"
    17151789#include <sys/types.h>
     
    17381812fi
    17391813
    1740 
    1741 if test $ac_cv_type_uintptr_t = yes
    1742 then
     1814# Given the above check, we always have uintptr_t or a fallback
     1815# definition.  So define HAVE_UINTPTR_T in case any imported code
     1816# relies on it.
     1817cat >> confdefs.h <<\EOF
     1818#define HAVE_UINTPTR_T 1
     1819EOF
     1820
     1821
     1822echo $ac_n "checking for pid_t""... $ac_c" 1>&6
     1823echo "configure:1824: checking for pid_t" >&5
     1824if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
     1825  echo $ac_n "(cached) $ac_c" 1>&6
     1826else
     1827  cat > conftest.$ac_ext <<EOF
     1828#line 1829 "configure"
     1829#include "confdefs.h"
     1830#include <sys/types.h>
     1831#if STDC_HEADERS
     1832#include <stdlib.h>
     1833#include <stddef.h>
     1834#endif
     1835EOF
     1836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1837  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1838  rm -rf conftest*
     1839  ac_cv_type_pid_t=yes
     1840else
     1841  rm -rf conftest*
     1842  ac_cv_type_pid_t=no
     1843fi
     1844rm -f conftest*
     1845
     1846fi
     1847echo "$ac_t""$ac_cv_type_pid_t" 1>&6
     1848if test $ac_cv_type_pid_t = no; then
    17431849  cat >> confdefs.h <<\EOF
    1744 #define HAVE_UINTPTR_T 1
    1745 EOF
    1746 
    1747 fi
     1850#define pid_t int
     1851EOF
     1852
     1853fi
     1854
    17481855
    17491856# This is the list of functions which libiberty will provide if they
     
    17971904
    17981905checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
     1906
     1907
    17991908
    18001909# These are neither executed nor required, but they help keep
     
    18041913do
    18051914echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1806 echo "configure:1807: checking for $ac_func" >&5
     1915echo "configure:1: checking for $ac_func" >&5
    18071916if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    18081917  echo $ac_n "(cached) $ac_c" 1>&6
    18091918else
    18101919  cat > conftest.$ac_ext <<EOF
    1811 #line 1812 "configure"
     1920#line 1 "configure"
    18121921#include "confdefs.h"
    18131922/* System header to define __stub macros and hopefully few prototypes,
     
    18321941; return 0; }
    18331942EOF
    1834 if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1943if { (eval echo configure:1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18351944  rm -rf conftest*
    18361945  eval "ac_cv_func_$ac_func=yes"
     
    18591968do
    18601969echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1861 echo "configure:1862: checking for $ac_func" >&5
     1970echo "configure:1: checking for $ac_func" >&5
    18621971if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    18631972  echo $ac_n "(cached) $ac_c" 1>&6
    18641973else
    18651974  cat > conftest.$ac_ext <<EOF
    1866 #line 1867 "configure"
     1975#line 1 "configure"
    18671976#include "confdefs.h"
    18681977/* System header to define __stub macros and hopefully few prototypes,
     
    18871996; return 0; }
    18881997EOF
    1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1998if { (eval echo configure:1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18901999  rm -rf conftest*
    18912000  eval "ac_cv_func_$ac_func=yes"
     
    19142023do
    19152024echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1916 echo "configure:1917: checking for $ac_func" >&5
     2025echo "configure:: checking for $ac_func" >&5
    19172026if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    19182027  echo $ac_n "(cached) $ac_c" 1>&6
    19192028else
    19202029  cat > conftest.$ac_ext <<EOF
    1921 #line 1922 "configure"
     2030#line "configure"
    19222031#include "confdefs.h"
    19232032/* System header to define __stub macros and hopefully few prototypes,
     
    19422051; return 0; }
    19432052EOF
    1944 if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2053if { (eval echo configure:: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19452054  rm -rf conftest*
    19462055  eval "ac_cv_func_$ac_func=yes"
     
    19692078do
    19702079echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1971 echo "configure:1972: checking for $ac_func" >&5
     2080echo "configure:: checking for $ac_func" >&5
    19722081if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    19732082  echo $ac_n "(cached) $ac_c" 1>&6
    19742083else
    19752084  cat > conftest.$ac_ext <<EOF
    1976 #line 1977 "configure"
     2085#line "configure"
    19772086#include "confdefs.h"
    19782087/* System header to define __stub macros and hopefully few prototypes,
     
    19972106; return 0; }
    19982107EOF
    1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2108if { (eval echo configure:2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20002109  rm -rf conftest*
    20012110  eval "ac_cv_func_$ac_func=yes"
     
    20242133do
    20252134echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2026 echo "configure:2027: checking for $ac_func" >&5
     2135echo "configure:2: checking for $ac_func" >&5
    20272136if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    20282137  echo $ac_n "(cached) $ac_c" 1>&6
    20292138else
    20302139  cat > conftest.$ac_ext <<EOF
    2031 #line 2032 "configure"
     2140#line 2 "configure"
    20322141#include "confdefs.h"
    20332142/* System header to define __stub macros and hopefully few prototypes,
     
    20522161; return 0; }
    20532162EOF
    2054 if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2163if { (eval echo configure:2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20552164  rm -rf conftest*
    20562165  eval "ac_cv_func_$ac_func=yes"
     
    20792188do
    20802189echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2081 echo "configure:2082: checking for $ac_func" >&5
     2190echo "configure:2: checking for $ac_func" >&5
    20822191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    20832192  echo $ac_n "(cached) $ac_c" 1>&6
    20842193else
    20852194  cat > conftest.$ac_ext <<EOF
    2086 #line 2087 "configure"
     2195#line 2 "configure"
    20872196#include "confdefs.h"
    20882197/* System header to define __stub macros and hopefully few prototypes,
     
    21072216; return 0; }
    21082217EOF
    2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2218if { (eval echo configure:2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21102219  rm -rf conftest*
    21112220  eval "ac_cv_func_$ac_func=yes"
     
    21342243do
    21352244echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2136 echo "configure:2137: checking for $ac_func" >&5
     2245echo "configure:2: checking for $ac_func" >&5
    21372246if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    21382247  echo $ac_n "(cached) $ac_c" 1>&6
    21392248else
    21402249  cat > conftest.$ac_ext <<EOF
    2141 #line 2142 "configure"
     2250#line 2 "configure"
    21422251#include "confdefs.h"
    21432252/* System header to define __stub macros and hopefully few prototypes,
     
    21622271; return 0; }
    21632272EOF
    2164 if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2273if { (eval echo configure:2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21652274  rm -rf conftest*
    21662275  eval "ac_cv_func_$ac_func=yes"
     
    21862295done
    21872296
     2297
     2298
     2299
     2300
     2301
     2302
     2303
     2304
     2305
     2306
     2307
     2308
     2309
     2310
     2311
     2312
     2313
     2314
     2315
     2316
     2317
     2318
     2319
     2320
     2321
     2322
     2323
     2324
     2325
     2326
     2327
     2328
     2329
     2330
     2331
     2332
     2333
     2334
     2335
     2336
     2337
     2338
     2339
     2340
     2341
     2342
     2343
     2344
     2345
     2346
     2347
     2348
     2349
     2350
     2351
     2352
     2353
     2354
     2355
     2356
     2357
     2358
     2359
     2360
     2361
     2362
     2363
     2364
     2365
     2366
     2367
     2368
     2369
     2370
     2371
     2372
     2373
     2374
     2375
     2376
     2377
     2378
     2379
     2380
     2381
     2382
     2383
     2384
     2385
     2386
     2387
     2388
     2389
     2390
     2391
     2392
     2393
     2394
     2395
     2396
     2397
     2398
     2399
     2400
     2401
     2402
     2403
     2404
     2405
     2406
    21882407  cat >> confdefs.h <<\EOF
    21892408#define HAVE_SYS_ERRLIST 1
     
    22062425setobjs=
    22072426CHECK=
     2427
    22082428if test -n "${with_target_subdir}"; then
    22092429
     
    22462466  fi
    22472467
     2468
     2469
     2470
     2471
     2472
     2473
     2474
     2475
     2476
     2477
     2478
     2479
     2480
     2481
     2482
     2483
     2484
     2485
     2486
     2487
     2488
     2489
     2490
     2491
    22482492else
    22492493
     
    22522496
    22532497fi
     2498
    22542499
    22552500
     
    23662611  # tests.  This will only work if the compiler works.
    23672612  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2368 echo "configure:2369: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2613echo "configure:2: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    23692614
    23702615ac_ext=c
     
    23772622cat > conftest.$ac_ext << EOF
    23782623
    2379 #line 2380 "configure"
     2624#line 2 "configure"
    23802625#include "confdefs.h"
    23812626
    23822627main(){return(0);}
    23832628EOF
    2384 if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2629if { (eval echo configure:2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23852630  ac_cv_prog_cc_works=yes
    23862631  # If we can't run a trivial program, we are probably using a cross compiler.
     
    24082653fi
    24092654echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2410 echo "configure:2411: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2655echo "configure:2: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    24112656echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    24122657cross_compiling=$ac_cv_prog_cc_cross
     
    24152660do
    24162661echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2417 echo "configure:2418: checking for $ac_func" >&5
     2662echo "configure:2: checking for $ac_func" >&5
    24182663if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    24192664  echo $ac_n "(cached) $ac_c" 1>&6
    24202665else
    24212666  cat > conftest.$ac_ext <<EOF
    2422 #line 2423 "configure"
     2667#line 2 "configure"
    24232668#include "confdefs.h"
    24242669/* System header to define __stub macros and hopefully few prototypes,
     
    24432688; return 0; }
    24442689EOF
    2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2690if { (eval echo configure:2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    24462691  rm -rf conftest*
    24472692  eval "ac_cv_func_$ac_func=yes"
     
    24702715
    24712716  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2472 echo "configure:2473: checking whether alloca needs Cray hooks" >&5
     2717echo "configure:2: checking whether alloca needs Cray hooks" >&5
    24732718if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    24742719  echo $ac_n "(cached) $ac_c" 1>&6
    24752720else
    24762721  cat > conftest.$ac_ext <<EOF
    2477 #line 2478 "configure"
     2722#line 2 "configure"
    24782723#include "confdefs.h"
    24792724#if defined(CRAY) && ! defined(CRAY2)
     
    25002745  for ac_func in _getb67 GETB67 getb67; do
    25012746    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2502 echo "configure:2503: checking for $ac_func" >&5
     2747echo "configure:2: checking for $ac_func" >&5
    25032748if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    25042749  echo $ac_n "(cached) $ac_c" 1>&6
    25052750else
    25062751  cat > conftest.$ac_ext <<EOF
    2507 #line 2508 "configure"
     2752#line 2 "configure"
    25082753#include "confdefs.h"
    25092754/* System header to define __stub macros and hopefully few prototypes,
     
    25282773; return 0; }
    25292774EOF
    2530 if { (eval echo configure:2531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2775if { (eval echo configure:2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    25312776  rm -rf conftest*
    25322777  eval "ac_cv_func_$ac_func=yes"
     
    25542799
    25552800echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2556 echo "configure:2557: checking stack direction for C alloca" >&5
     2801echo "configure:2: checking stack direction for C alloca" >&5
    25572802if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    25582803  echo $ac_n "(cached) $ac_c" 1>&6
     
    25622807else
    25632808  cat > conftest.$ac_ext <<EOF
    2564 #line 2565 "configure"
     2809#line 2 "configure"
    25652810#include "confdefs.h"
    25662811find_stack_direction ()
     
    25812826}
    25822827EOF
    2583 if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2828if { (eval echo configure:2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25842829then
    25852830  ac_cv_c_stack_direction=1
     
    26012846
    26022847
    2603   echo $ac_n "checking for pid_t""... $ac_c" 1>&6
    2604 echo "configure:2605: checking for pid_t" >&5
    2605 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
    2606   echo $ac_n "(cached) $ac_c" 1>&6
    2607 else
    2608   cat > conftest.$ac_ext <<EOF
    2609 #line 2610 "configure"
    2610 #include "confdefs.h"
    2611 #include <sys/types.h>
    2612 #if STDC_HEADERS
    2613 #include <stdlib.h>
    2614 #include <stddef.h>
    2615 #endif
    2616 EOF
    2617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2618   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    2619   rm -rf conftest*
    2620   ac_cv_type_pid_t=yes
    2621 else
    2622   rm -rf conftest*
    2623   ac_cv_type_pid_t=no
    2624 fi
    2625 rm -f conftest*
    2626 
    2627 fi
    2628 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
    2629 if test $ac_cv_type_pid_t = no; then
    2630   cat >> confdefs.h <<\EOF
    2631 #define pid_t int
    2632 EOF
    2633 
    2634 fi
    2635 
    2636 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
     2848  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
    26372849echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
    2638 echo "configure:2639: checking for vfork.h" >&5
     2850echo "configure:2: checking for vfork.h" >&5
    26392851if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    26402852  echo $ac_n "(cached) $ac_c" 1>&6
     
    26422854  cat > conftest.$ac_ext <<EOF
    26432855#include <sys/types.h>
    2644 #line 2645 "configure"
     2856#line 2 "configure"
    26452857#include "confdefs.h"
    26462858#include <vfork.h>
    26472859EOF
    26482860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2649 { (eval echo configure:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2861{ (eval echo configure:2: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    26502862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    26512863if test -z "$ac_err"; then
     
    26722884
    26732885echo $ac_n "checking for working vfork""... $ac_c" 1>&6
    2674 echo "configure:2675: checking for working vfork" >&5
     2886echo "configure:2: checking for working vfork" >&5
    26752887if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
    26762888  echo $ac_n "(cached) $ac_c" 1>&6
     
    26782890  if test "$cross_compiling" = yes; then
    26792891  echo $ac_n "checking for vfork""... $ac_c" 1>&6
    2680 echo "configure:2681: checking for vfork" >&5
     2892echo "configure:2: checking for vfork" >&5
    26812893if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
    26822894  echo $ac_n "(cached) $ac_c" 1>&6
    26832895else
    26842896  cat > conftest.$ac_ext <<EOF
    2685 #line 2686 "configure"
     2897#line 2 "configure"
    26862898#include "confdefs.h"
    26872899/* System header to define __stub macros and hopefully few prototypes,
     
    27062918; return 0; }
    27072919EOF
    2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2920if { (eval echo configure:2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    27092921  rm -rf conftest*
    27102922  eval "ac_cv_func_vfork=yes"
     
    27282940else
    27292941  cat > conftest.$ac_ext <<EOF
    2730 #line 2731 "configure"
     2942#line 2 "configure"
    27312943#include "confdefs.h"
    27322944/* Thanks to Paul Eggert for this test.  */
     
    28233035}
    28243036EOF
    2825 if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3037if { (eval echo configure:: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    28263038then
    28273039  ac_cv_func_vfork_works=yes
     
    28553067do
    28563068echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2857 echo "configure:2858: checking for $ac_func" >&5
     3069echo "configure:: checking for $ac_func" >&5
    28583070if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    28593071  echo $ac_n "(cached) $ac_c" 1>&6
    28603072else
    28613073  cat > conftest.$ac_ext <<EOF
    2862 #line 2863 "configure"
     3074#line "configure"
    28633075#include "confdefs.h"
    28643076/* System header to define __stub macros and hopefully few prototypes,
     
    28833095; return 0; }
    28843096EOF
    2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3097if { (eval echo configure:: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28863098  rm -rf conftest*
    28873099  eval "ac_cv_func_$ac_func=yes"
     
    29133125do
    29143126echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2915 echo "configure:2916: checking for $ac_func" >&5
     3127echo "configure:: checking for $ac_func" >&5
    29163128if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    29173129  echo $ac_n "(cached) $ac_c" 1>&6
    29183130else
    29193131  cat > conftest.$ac_ext <<EOF
    2920 #line 2921 "configure"
     3132#line "configure"
    29213133#include "confdefs.h"
    29223134/* System header to define __stub macros and hopefully few prototypes,
     
    29413153; return 0; }
    29423154EOF
    2943 if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3155if { (eval echo configure:: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29443156  rm -rf conftest*
    29453157  eval "ac_cv_func_$ac_func=yes"
     
    29693181  for v in $vars; do
    29703182    echo $ac_n "checking for $v""... $ac_c" 1>&6
    2971 echo "configure:2972: checking for $v" >&5
     3183echo "configure:: checking for $v" >&5
    29723184    if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then
    29733185  echo $ac_n "(cached) $ac_c" 1>&6
    29743186else
    29753187  cat > conftest.$ac_ext <<EOF
    2976 #line 2977 "configure"
     3188#line "configure"
    29773189#include "confdefs.h"
    29783190int *p;
     
    29813193; return 0; }
    29823194EOF
    2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3195if { (eval echo configure:: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29843196  rm -rf conftest*
    29853197  eval "libiberty_cv_var_$v=yes"
     
    30043216    fi
    30053217  done
     3218
     3219
     3220
     3221
     3222
     3223
     3224
     3225
     3226
     3227
     3228
     3229
     3230
     3231
     3232
     3233
     3234
     3235
     3236
     3237
     3238
     3239
     3240
     3241
     3242
     3243
     3244
     3245
     3246
     3247
     3248
     3249
     3250
     3251
     3252
     3253
     3254
     3255
     3256
     3257
     3258
     3259
     3260
     3261
     3262
     3263
     3264
     3265
     3266
     3267
     3268
     3269
     3270
     3271
     3272
     3273
     3274
     3275
     3276
     3277
     3278
     3279
     3280
     3281
     3282
     3283
     3284
     3285
     3286
     3287
     3288
     3289
     3290
     3291
     3292
     3293
    30063294  for ac_func in $checkfuncs
    30073295do
    30083296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3009 echo "configure:3010: checking for $ac_func" >&5
     3297echo "configure:3: checking for $ac_func" >&5
    30103298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    30113299  echo $ac_n "(cached) $ac_c" 1>&6
    30123300else
    30133301  cat > conftest.$ac_ext <<EOF
    3014 #line 3015 "configure"
     3302#line 3 "configure"
    30153303#include "confdefs.h"
    30163304/* System header to define __stub macros and hopefully few prototypes,
     
    30353323; return 0; }
    30363324EOF
    3037 if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3325if { (eval echo configure:3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    30383326  rm -rf conftest*
    30393327  eval "ac_cv_func_$ac_func=yes"
     
    30653353ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    30663354echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3067 echo "configure:3068: checking for $ac_hdr" >&5
     3355echo "configure:3: checking for $ac_hdr" >&5
    30683356if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    30693357  echo $ac_n "(cached) $ac_c" 1>&6
     
    30713359  cat > conftest.$ac_ext <<EOF
    30723360#include <sys/types.h>
    3073 #line 3074 "configure"
     3361#line 3 "configure"
    30743362#include "confdefs.h"
    30753363#include <$ac_hdr>
    30763364EOF
    30773365ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3078 { (eval echo configure:3079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3366{ (eval echo configure:3: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    30793367ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    30803368if test -z "$ac_err"; then
     
    31053393do
    31063394echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3107 echo "configure:3108: checking for $ac_func" >&5
     3395echo "configure:3: checking for $ac_func" >&5
    31083396if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    31093397  echo $ac_n "(cached) $ac_c" 1>&6
    31103398else
    31113399  cat > conftest.$ac_ext <<EOF
    3112 #line 3113 "configure"
     3400#line 3 "configure"
    31133401#include "confdefs.h"
    31143402/* System header to define __stub macros and hopefully few prototypes,
     
    31333421; return 0; }
    31343422EOF
    3135 if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3423if { (eval echo configure:3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    31363424  rm -rf conftest*
    31373425  eval "ac_cv_func_$ac_func=yes"
     
    31583446
    31593447echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    3160 echo "configure:3161: checking for working mmap" >&5
     3448echo "configure:3: checking for working mmap" >&5
    31613449if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    31623450  echo $ac_n "(cached) $ac_c" 1>&6
     
    31663454else
    31673455  cat > conftest.$ac_ext <<EOF
    3168 #line 3169 "configure"
     3456#line 3 "configure"
    31693457#include "confdefs.h"
    31703458
     
    33063594
    33073595EOF
    3308 if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3596if { (eval echo configure:3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33093597then
    33103598  ac_cv_func_mmap_fixed_mapped=yes
     
    33303618
    33313619echo $ac_n "checking for working strncmp""... $ac_c" 1>&6
    3332 echo "configure:3333: checking for working strncmp" >&5
     3620echo "configure:3: checking for working strncmp" >&5
    33333621if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then
    33343622  echo $ac_n "(cached) $ac_c" 1>&6
     
    33383626else
    33393627  cat > conftest.$ac_ext <<EOF
    3340 #line 3341 "configure"
     3628#line 3 "configure"
    33413629#include "confdefs.h"
    33423630
     
    34023690
    34033691EOF
    3404 if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3692if { (eval echo configure:3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    34053693then
    34063694  ac_cv_func_strncmp_works=yes
     
    35943882s%@CC@%$CC%g
    35953883s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g
     3884
     3885
    35963886s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    35973887s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     
    36013891s%@CPP@%$CPP%g
    36023892s%@CHECK@%$CHECK%g
     3893
    36033894s%@LIBOBJS@%$LIBOBJS%g
    36043895s%@INSTALL_DEST@%$INSTALL_DEST%g
     
    38194110target=${target}
    38204111with_target_subdir=${with_target_subdir}
     4112
    38214113with_multisubdir=${with_multisubdir}
    38224114ac_configure_args="--enable-multilib ${ac_configure_args}"
    38234115CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     4116
    38244117libiberty_topdir=${libiberty_topdir}
    38254118
     
    38284121test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    38294122if test -n "$CONFIG_FILES"; then
    3830   if test -n "${with_target_subdir}"; then
     4123  if test -n "${with_target_subdir}"; then
    38314124    # FIXME: We shouldn't need to set ac_file
    38324125    ac_file=Makefile
  • trunk/src/gcc/libiberty/lbasename.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1393 r1394  
    11/* Libiberty basename.  Like basename, but is not overridden by the
    22   system C library.
    3    Copyright (C) 2001 Free Software Foundation, Inc.
     3   Copyright (C) 2001 Free Software Foundation, Inc.
    44
    55This file is part of the libiberty library.
     
    5454#endif
    5555
    56 /* Define IS_DIR_SEPARATOR. VMS uses '::', ':', '[...]' and '<...>' to
    57    separate the different components of a file specification.  It's a
    58    bit of a stretch to call ':', ']' and '>' directory separators, so
    59    just define the test to find the file name component.  */
    60 #ifdef VMS
    61 #  define IS_DIR_SEPARATOR(ch) ((ch) == ':' || (ch) == ']' || (ch) == '>')
     56#ifndef DIR_SEPARATOR_2
     57#  define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
    6258#else
    63 #  ifndef DIR_SEPARATOR_2
    64 #    define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
    65 #  else
    66 #    define IS_DIR_SEPARATOR(ch) \
     59#  define IS_DIR_SEPARATOR(ch) \
    6760        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
    68 #  endif
    6961#endif
    7062
Note: See TracChangeset for help on using the changeset viewer.