Changeset 4665 for trunk/admin

Show
Ignore:
Timestamp:
10/02/06 06:56:29 (2 years ago)
Author:
erijo
Message:

Updated libtool, automake and gettext files

Location:
trunk/admin
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/config.guess

    r4569 r4665  
    22# Attempt to guess a canonical system name. 
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 
    4 #   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 
    5  
    6 timestamp='2005-12-13' 
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 
     5#   Inc. 
     6 
     7timestamp='2006-07-02' 
    78 
    89# This file is free software; you can redistribute it and/or modify it 
     
    107108trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 
    108109: ${TMPDIR=/tmp} ; 
    109  { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 
     110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 
    110111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 
    111112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 
     
    207208    echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 
    208209    exit ;; 
     210    *:SolidBSD:*:*) 
     211    echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 
     212    exit ;; 
    209213    macppc:MirBSD:*:*) 
    210     echo powerppc-unknown-mirbsd${UNAME_RELEASE} 
     214    echo powerpc-unknown-mirbsd${UNAME_RELEASE} 
    211215    exit ;; 
    212216    *:MirBSD:*:*) 
     
    765769    exit ;; 
    766770    *:FreeBSD:*:*) 
    767     echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 
     771    case ${UNAME_MACHINE} in 
     772        pc98) 
     773        echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 
     774        amd64) 
     775        echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 
     776        *) 
     777        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 
     778    esac 
    768779    exit ;; 
    769780    i*:CYGWIN*:*) 
     
    780791    echo ${UNAME_MACHINE}-pc-pw32 
    781792    exit ;; 
    782     x86:Interix*:[345]*) 
    783     echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 
     793    x86:Interix*:[3456]*) 
     794    echo i586-pc-interix${UNAME_RELEASE} 
     795    exit ;; 
     796    EM64T:Interix*:[3456]*) 
     797    echo x86_64-unknown-interix${UNAME_RELEASE} 
    784798    exit ;; 
    785799    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 
     
    816830    exit ;; 
    817831    arm*:Linux:*:*) 
     832    echo ${UNAME_MACHINE}-unknown-linux-gnu 
     833    exit ;; 
     834    avr32*:Linux:*:*) 
    818835    echo ${UNAME_MACHINE}-unknown-linux-gnu 
    819836    exit ;; 
     
    852869    #endif 
    853870EOF 
    854     eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 
     871    eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 
     872        /^CPU/{ 
     873        s: ::g 
     874        p 
     875        }'`" 
    855876    test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 
    856877    ;; 
     
    871892    #endif 
    872893EOF 
    873     eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 
     894    eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 
     895        /^CPU/{ 
     896        s: ::g 
     897        p 
     898        }'`" 
    874899    test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 
    875900    ;; 
     
    968993    # endif 
    969994    #else 
    970     #if defined(__INTEL_COMPILER) || defined(__PGI) 
     995    #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 
    971996    LIBC=gnu 
    972997    #else 
     
    9781003    #endif 
    9791004EOF 
    980     eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`" 
     1005    eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 
     1006        /^LIBC/{ 
     1007        s: ::g 
     1008        p 
     1009        }'`" 
    9811010    test x"${LIBC}" != x && { 
    9821011        echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 
  • trunk/admin/config.rpath

    r4569 r4665  
    33# run time search path of shared libraries in an executable. 
    44# 
    5 #   Copyright 1996-2005 Free Software Foundation, Inc. 
     5#   Copyright 1996-2006 Free Software Foundation, Inc. 
    66#   Taken from GNU libtool, 2001 
    77#   Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 
     
    2626#   directory and/or the installation directory. 
    2727 
    28 # All known linkers require a `.a' archive for static linking (except M$VC, 
     28# All known linkers require a `.a' archive for static linking (except MSVC, 
    2929# which needs '.lib'). 
    3030libext=a 
     
    3636host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
    3737 
    38 cc_basename=`echo "$CC" | sed -e 's%^.*/%%'` 
     38# Code taken from libtool.m4's _LT_CC_BASENAME. 
     39 
     40for cc_temp in $CC""; do 
     41  case $cc_temp in 
     42    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 
     43    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 
     44    \-*) ;; 
     45    *) break;; 
     46  esac 
     47done 
     48cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` 
    3949 
    4050# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. 
     
    4959      ;; 
    5060    darwin*) 
    51       case "$cc_basename" in 
     61      case $cc_basename in 
    5262        xlc*) 
    5363          wl='-Wl,' 
     
    7888        como) 
    7989          wl='-lopt=' 
     90          ;; 
     91        *) 
     92          case `$CC -V 2>&1 | sed 5q` in 
     93            *Sun\ C*) 
     94              wl='-Wl,' 
     95              ;; 
     96          esac 
    8097          ;; 
    8198      esac 
     
    121138    fi 
    122139    ;; 
     140  interix*) 
     141    # we just hope/assume this is gcc and not c89 (= MSVC++) 
     142    with_gnu_ld=yes 
     143    ;; 
    123144  openbsd*) 
    124145    with_gnu_ld=no 
     
    128149ld_shlibs=yes 
    129150if test "$with_gnu_ld" = yes; then 
     151  # Set some defaults for GNU ld with shared library support. These 
     152  # are reset later if shared libraries are not supported. Putting them 
     153  # here allows them to be overridden if necessary. 
     154  # Unlike libtool, we use -rpath here, not --rpath, since the documented 
     155  # option of GNU ld is called -rpath, not --rpath. 
     156  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 
    130157  case "$host_os" in 
    131158    aix3* | aix4* | aix5*) 
     
    163190      fi 
    164191      ;; 
     192    interix3*) 
     193      hardcode_direct=no 
     194      hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 
     195      ;; 
     196    linux*) 
     197      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 
     198        : 
     199      else 
     200        ld_shlibs=no 
     201      fi 
     202      ;; 
    165203    netbsd*) 
    166204      ;; 
    167     solaris* | sysv5*) 
     205    solaris*) 
    168206      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 
    169207        ld_shlibs=no 
     
    174212      fi 
    175213      ;; 
     214    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 
     215      case `$LD -v 2>&1` in 
     216        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
     217          ld_shlibs=no 
     218          ;; 
     219        *) 
     220          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 
     221            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 
     222          else 
     223            ld_shlibs=no 
     224          fi 
     225          ;; 
     226      esac 
     227      ;; 
    176228    sunos4*) 
    177229      hardcode_direct=yes 
    178       ;; 
    179     linux*) 
    180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 
    181         : 
    182       else 
    183         ld_shlibs=no 
    184       fi 
    185230      ;; 
    186231    *) 
     
    192237      ;; 
    193238  esac 
    194   if test "$ld_shlibs" = yes; then 
    195     # Unlike libtool, we use -rpath here, not --rpath, since the documented 
    196     # option of GNU ld is called -rpath, not --rpath. 
    197     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 
     239  if test "$ld_shlibs" = no; then 
     240    hardcode_libdir_flag_spec= 
    198241  fi 
    199242else 
     
    226269            fi 
    227270          done 
     271          ;; 
    228272        esac 
    229273      fi 
     
    245289            hardcode_libdir_separator= 
    246290          fi 
     291          ;; 
    247292        esac 
    248293      fi 
     
    292337        : 
    293338      else 
    294         case "$cc_basename" in 
     339        case $cc_basename in 
    295340          xlc*) 
    296341            ;; 
     
    327372      hardcode_minus_L=yes 
    328373      ;; 
    329     hpux10* | hpux11*) 
     374    hpux10*) 
    330375      if test "$with_gnu_ld" = no; then 
    331         case "$host_cpu" in 
    332           hppa*64*) 
    333             hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 
    334             hardcode_libdir_separator=: 
     376        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 
     377        hardcode_libdir_separator=: 
     378        hardcode_direct=yes 
     379        # hardcode_minus_L: Not really in the search PATH, 
     380        # but as the default location of the library. 
     381        hardcode_minus_L=yes 
     382      fi 
     383      ;; 
     384    hpux11*) 
     385      if test "$with_gnu_ld" = no; then 
     386        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 
     387        hardcode_libdir_separator=: 
     388        case $host_cpu in 
     389          hppa*64*|ia64*) 
    335390            hardcode_direct=no 
    336391            ;; 
    337           ia64*) 
    338             hardcode_libdir_flag_spec='-L$libdir' 
    339             hardcode_direct=no 
    340             # hardcode_minus_L: Not really in the search PATH, 
    341             # but as the default location of the library. 
    342             hardcode_minus_L=yes 
    343             ;; 
    344392          *) 
    345             hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 
    346             hardcode_libdir_separator=: 
    347393            hardcode_direct=yes 
    348394            # hardcode_minus_L: Not really in the search PATH, 
     
    398444      hardcode_libdir_separator=: 
    399445      ;; 
    400     sco3.2v5*) 
    401       ;; 
    402446    solaris*) 
    403447      hardcode_libdir_flag_spec='-R$libdir' 
     
    428472      fi 
    429473      ;; 
    430     sysv4.2uw2*) 
    431       hardcode_direct=yes 
    432       hardcode_minus_L=no 
    433       ;; 
    434     sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) 
    435       ;; 
    436     sysv5*) 
    437       hardcode_libdir_flag_spec= 
     474    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 
     475      ;; 
     476    sysv5* | sco3.2v5* | sco5v6*) 
     477      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 
     478      hardcode_libdir_separator=':' 
    438479      ;; 
    439480    uts4*) 
     
    472513  kfreebsd*-gnu) 
    473514    ;; 
    474   freebsd*) 
     515  freebsd* | dragonfly*) 
    475516    ;; 
    476517  gnu*) 
    477518    ;; 
    478519  hpux9* | hpux10* | hpux11*) 
    479     case "$host_cpu" in 
     520    case $host_cpu in 
    480521      ia64*) 
    481522        shrext=.so 
     
    488529        ;; 
    489530    esac 
     531    ;; 
     532  interix3*) 
    490533    ;; 
    491534  irix5* | irix6* | nonstopux*) 
     
    524567  osf3* | osf4* | osf5*) 
    525568    ;; 
    526   sco3.2v5*) 
    527     ;; 
    528569  solaris*) 
    529570    ;; 
    530571  sunos4*) 
    531572    ;; 
    532   sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 
     573  sysv4 | sysv4.3*) 
    533574    ;; 
    534575  sysv4*MP*) 
     576    ;; 
     577  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 
    535578    ;; 
    536579  uts4*) 
  • trunk/admin/config.sub

    r4569 r4665  
    22# Configuration validation subroutine script. 
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 
    4 #   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 
    5  
    6 timestamp='2005-12-11' 
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 
     5#   Inc. 
     6 
     7timestamp='2006-07-02' 
    78 
    89# This file is (in principle) common to ALL GNU software. 
     
    241242    | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 
    242243    | am33_2.0 \ 
    243     | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 
     244    | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 
    244245    | bfin \ 
    245246    | c4x | clipper \ 
     
    249250    | i370 | i860 | i960 | ia64 \ 
    250251    | ip2k | iq2000 \ 
    251     | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 
     252    | m32c | m32r | m32rle | m68000 | m68k | m88k \ 
     253    | maxq | mb | microblaze | mcore \ 
    252254    | mips | mipsbe | mipseb | mipsel | mipsle \ 
    253255    | mips16 \ 
     
    269271    | mt \ 
    270272    | msp430 \ 
     273    | nios | nios2 \ 
    271274    | ns16k | ns32k \ 
    272275    | or32 \ 
     
    274277    | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 
    275278    | pyramid \ 
    276     | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 
     279    | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 
    277280    | sh64 | sh64le \ 
    278     | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 
    279     | sparcv8 | sparcv9 | sparcv9b \ 
    280     | strongarm \ 
     281    | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 
     282    | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 
     283    | spu | strongarm \ 
    281284    | tahoe | thumb | tic4x | tic80 | tron \ 
    282285    | v850 | v850e \ 
     
    284287    | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 
    285288    | z8k) 
    286         basic_machine=$basic_machine-unknown 
    287         ;; 
    288     m32c) 
    289289        basic_machine=$basic_machine-unknown 
    290290        ;; 
     
    318318    | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 
    319319    | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \ 
    320     | avr-* \ 
     320    | avr-* | avr32-* \ 
    321321    | bfin-* | bs2000-* \ 
    322322    | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 
     
    329329    | i*86-* | i860-* | i960-* | ia64-* \ 
    330330    | ip2k-* | iq2000-* \ 
    331     | m32r-* | m32rle-* \ 
     331    | m32c-* | m32r-* | m32rle-* \ 
    332332    | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 
    333333    | m88110-* | m88k-* | maxq-* | mcore-* \ 
     
    351351    | mt-* \ 
    352352    | msp430-* \ 
     353    | nios-* | nios2-* \ 
    353354    | none-* | np1-* | ns16k-* | ns32k-* \ 
    354355    | orion-* \ 
     
    357358    | pyramid-* \ 
    358359    | romp-* | rs6000-* \ 
    359     | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 
     360    | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 
    360361    | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 
    361     | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 
     362    | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 
    362363    | sparclite-* \ 
    363     | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 
     364    | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 
    364365    | tahoe-* | thumb-* \ 
    365366    | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 
     
    371372    | ymp-* \ 
    372373    | z8k-*) 
    373         ;; 
    374     m32c-*) 
    375374        ;; 
    376375    # Recognize the various machine names and aliases which stand 
     
    819818        basic_machine=ns32k-pc532 
    820819        ;; 
     820    pc98) 
     821        basic_machine=i386-pc 
     822        ;; 
     823    pc98-*) 
     824        basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 
     825        ;; 
    821826    pentium | p5 | k5 | k6 | nexgen | viac3) 
    822827        basic_machine=i586-pc 
     
    11211126        basic_machine=sh-unknown 
    11221127        ;; 
    1123     sparc | sparcv8 | sparcv9 | sparcv9b) 
     1128    sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 
    11241129        basic_machine=sparc-sun 
    11251130        ;; 
     
    11941199          | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 
    11951200          | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 
    1196           | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 
     1201          | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 
     1202          | -openbsd* | -solidbsd* \ 
    11971203          | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 
    11981204          | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 
     
    12091215          | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 
    12101216          | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 
    1211           | -skyos* | -haiku* | -rdos*) 
     1217          | -skyos* | -haiku* | -rdos* | -toppers*) 
    12121218    # Remember, each alternative MUST END IN *, to match a version number. 
    12131219        ;; 
     
    13611367 
    13621368case $basic_machine in 
     1369        spu-*) 
     1370        os=-elf 
     1371        ;; 
    13631372    *-acorn) 
    13641373        os=-riscix1.2 
     
    13701379        os=-aout 
    13711380        ;; 
    1372     c4x-* | tic4x-*) 
    1373         os=-coff 
    1374         ;; 
     1381        c4x-* | tic4x-*) 
     1382            os=-coff 
     1383        ;; 
    13751384    # This must come before the *-dec entry. 
    13761385    pdp10-*) 
  • trunk/admin/install-sh

    r4569 r4665  
    22# install - install a program, script, or datafile 
    33 
    4 scriptversion=2005-11-07.23 
     4scriptversion=2005-05-14.22 
    55 
    66# This originates from X11R5 (mit/util/scripts/install.sh), which was 
     
    5959mkdirprog="${MKDIRPROG-mkdir}" 
    6060 
    61 posix_glob= 
    62 posix_mkdir= 
    63  
    64 # Symbolic mode for testing mkdir with directories. 
    65 # It is the same as 755, but also tests that "u+" works. 
    66 test_mode=u=rwx,g=rx,o=rx,u+wx 
    67  
    68 # Desired mode of installed file. 
    69 mode=0755 
    70  
    71 # Desired mode of newly created intermediate directories. 
    72 # It is empty if not known yet. 
    73 intermediate_mode= 
    74  
    75 chmodcmd=$chmodprog 
     61chmodcmd="$chmodprog 0755" 
    7662chowncmd= 
    7763chgrpcmd= 
     
    126112    --help) echo "$usage"; exit $?;; 
    127113 
    128     -m) mode=$2 
     114    -m) chmodcmd="$chmodprog $2" 
    129115        shift 
    130116        shift 
     
    179165fi 
    180166 
    181 test -n "$dir_arg" || trap '(exit $?); exit' 1 2 13 15 
    182  
    183167for src 
    184168do 
     
    190174  if test -n "$dir_arg"; then 
    191175    dst=$src 
    192     dstdir=$dst 
    193     test -d "$dstdir" 
    194     dstdir_status=$? 
     176    src= 
     177 
     178    if test -d "$dst"; then 
     179      mkdircmd=: 
     180      chmodcmd= 
     181    else 
     182      mkdircmd=$mkdirprog 
     183    fi 
    195184  else 
    196  
    197185    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command 
    198186    # might cause directories to be created, which would be especially bad 
     
    221209    exit 1 
    222210      fi 
    223       dstdir=$dst 
    224       dst=$dstdir/`basename "$src"` 
    225       dstdir_status=0 
    226     else 
    227       # Prefer dirname, but fall back on a substitute if dirname fails. 
    228       dstdir=` 
    229     (dirname "$dst") 2>/dev/null || 
    230     expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 
    231          X"$dst" : 'X\(//\)[^/]' \| \ 
    232          X"$dst" : 'X\(//\)$' \| \ 
    233          X"$dst" : 'X\(/\)' \| \ 
    234          .       : '\(.\)' 2>/dev/null || 
    235     echo X"$dst" | 
    236         sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 
    237           /^X\(\/\/\)[^/].*/{ s//\1/; q; } 
    238           /^X\(\/\/\)$/{ s//\1/; q; } 
    239           /^X\(\/\).*/{ s//\1/; q; } 
    240           s/.*/./; q' 
    241       ` 
    242  
    243       test -d "$dstdir" 
    244       dstdir_status=$? 
     211      dst=$dst/`basename "$src"` 
    245212    fi 
    246213  fi 
    247214 
    248   obsolete_mkdir_used=false 
    249  
    250   if test $dstdir_status != 0; then 
    251     case $posix_mkdir in 
    252       '') 
    253     posix_mkdir=false 
    254     if $mkdirprog -m $test_mode -p -- / >/dev/null 2>&1; then 
    255       posix_mkdir=true 
    256     else 
    257       # Remove any dirs left behind by ancient mkdir implementations. 
    258       rmdir ./-m "$test_mode" ./-p ./-- 2>/dev/null 
    259     fi ;; 
    260     esac 
    261  
    262     if 
    263       $posix_mkdir && { 
    264  
    265     # With -d, create the new directory with the user-specified mode. 
    266     # Otherwise, create it using the same intermediate mode that 
    267     # mkdir -p would use when creating intermediate directories. 
    268     # POSIX says that this mode is "$(umask -S),u+wx", so use that 
    269     # if umask -S works. 
    270  
    271     if test -n "$dir_arg"; then 
    272       mkdir_mode=$mode 
    273 </